Issue with worker


I tried changing the Port to 5000 and host to 0.0.0.0 but still does not work. It stays trying that and gives me 502 error when in the browser.

Hi there,

Are these the only logs you see in your service? Based on the logs you have provided, your service seems to be binding to the correct host.

If your service logs a worker timeout of your workers are being killed (due to hitting memory limits), then this will result in a 502 response.

Regards,

Keith
Render Support, UTC+10 :australia:

Here is the new log:

My code is:
with app.app_context():
app.run(‘0.0.0.0’, 10000, debug=True)
There are similar questions about my issue but I cant see any of them resolved

Hi there,

I highly recommend you don’t run multiple services by chaining start commands together. You should run gunicorn app:app, python crawler.py and python worker.py --timeout 90 as separate services.

Regards,

Keith
Render Support, UTC+10 :australia:

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.