Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add a dockerfile and compose file for running the image. #55

Merged
merged 7 commits into from
Aug 16, 2024

Conversation

jklein24
Copy link
Contributor

No description provided.

@jklein24
Copy link
Contributor Author

@mgorven this seems to spin up correctly, but about half the time, requests are resulting in worker timeouts and I can't seem to figure out why. Reloading the same path will work very quickly sometimes and otherwise just hang and timeout.

nwc-1  | [2024-08-14 04:38:05 +0000] [1] [CRITICAL] WORKER TIMEOUT (pid:7)
nwc-1  | [2024-08-14 04:38:05 +0000] [7] [ERROR] Error handling request (no URI read)
nwc-1  | Traceback (most recent call last):
nwc-1  |   File "/usr/local/lib/python3.11/site-packages/gunicorn/workers/sync.py", line 133, in handle
nwc-1  |     req = next(parser)
nwc-1  |           ^^^^^^^^^^^^
nwc-1  |   File "/usr/local/lib/python3.11/site-packages/gunicorn/http/parser.py", line 41, in __next__
nwc-1  |     self.mesg = self.mesg_class(self.cfg, self.unreader, self.source_addr, self.req_count)
nwc-1  |                 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
nwc-1  |   File "/usr/local/lib/python3.11/site-packages/gunicorn/http/message.py", line 259, in __init__
nwc-1  |     super().__init__(cfg, unreader, peer_addr)
nwc-1  |   File "/usr/local/lib/python3.11/site-packages/gunicorn/http/message.py", line 60, in __init__
nwc-1  |     unused = self.parse(self.unreader)
nwc-1  |              ^^^^^^^^^^^^^^^^^^^^^^^^^
nwc-1  |   File "/usr/local/lib/python3.11/site-packages/gunicorn/http/message.py", line 271, in parse
nwc-1  |     self.get_data(unreader, buf, stop=True)
nwc-1  |   File "/usr/local/lib/python3.11/site-packages/gunicorn/http/message.py", line 262, in get_data
nwc-1  |     data = unreader.read()
nwc-1  |            ^^^^^^^^^^^^^^^
nwc-1  |   File "/usr/local/lib/python3.11/site-packages/gunicorn/http/unreader.py", line 36, in read
nwc-1  |     d = self.chunk()
nwc-1  |         ^^^^^^^^^^^^
nwc-1  |   File "/usr/local/lib/python3.11/site-packages/gunicorn/http/unreader.py", line 63, in chunk
nwc-1  |     return self.sock.recv(self.mxchunk)
nwc-1  |            ^^^^^^^^^^^^^^^^^^^^^^^^^^^^
nwc-1  |   File "/usr/local/lib/python3.11/site-packages/gunicorn/workers/base.py", line 204, in handle_abort
nwc-1  |     sys.exit(1)
nwc-1  | SystemExit: 1

@mgorven
Copy link

mgorven commented Aug 14, 2024

Does the request succeed? Or it fails when the worker times out?

@jklein24
Copy link
Contributor Author

Does the request succeed? Or it fails when the worker times out?

It fails on timeout

@mgorven
Copy link

mgorven commented Aug 14, 2024

It looks like it's stuck while reading the HTTP request from the client. The application code probably hasn't been called yet.

@jklein24
Copy link
Contributor Author

It looks like it's stuck while reading the HTTP request from the client. The application code probably hasn't been called yet.

Hmm yeah, it's also just weird that it happens inconsistently and I can't really find a pattern

@jklein24 jklein24 merged commit 1255d35 into main Aug 16, 2024
1 check passed
@jklein24 jklein24 deleted the feat/dockerfile branch October 1, 2024 22:37
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants