Python Flask deploy failing

Hello,

I am trying to port my python flask app from Heroku (where it works)
and although the build is successful, the Deploy is marked as “failed” and the website doesn’t work.

Unfortunately there is no real error message - except the warnings:

Feb 19 05:48:20 PM  WARNING: You are using pip version 22.0.4; however, version 23.0.1 is available.
Feb 19 05:48:20 PM  You should consider upgrading via the '/opt/render/project/src/.venv/bin/python3.9 -m pip install --upgrade pip' command.
Feb 19 05:48:20 PM  ==> Generating container image from build. This may take a few minutes...
Feb 19 05:50:35 PM  ==> Uploading build...
Feb 19 05:51:00 PM  ==> Build uploaded in 17s
Feb 19 05:51:00 PM  ==> Build successful 🎉
Feb 19 05:51:00 PM  ==> Deploying...
Feb 19 05:51:49 PM  ==> Starting service with 'gunicorn main:app'
Feb 19 05:56:51 PM  [2023-02-19 16:56:51 +0000] [51] [INFO] Starting gunicorn 19.10.0
Feb 19 05:56:51 PM  [2023-02-19 16:56:51 +0000] [51] [INFO] Listening at: http://0.0.0.0:10000 (51)
Feb 19 05:56:51 PM  [2023-02-19 16:56:51 +0000] [51] [INFO] Using worker: sync
Feb 19 05:56:51 PM  /opt/render/project/python/Python-3.9.16/lib/python3.9/os.py:1023: RuntimeWarning: line buffering (buffering=1) isn't supported in binary mode, the default buffer size will be used
Feb 19 05:56:51 PM    return io.open(fd, *args, **kwargs)
Feb 19 05:56:51 PM  [2023-02-19 16:56:51 +0000] [66] [INFO] Booting worker with pid: 66

Anything I am missing? Or how could I get more information?

Thank you!

Hi,

Those logs don’t seem to show any obvious issues.

Please could you share some specific details of the issue you are experiencing that may help us troubleshoot it with you, e.g. service name/ID, URL, etc. If you don’t want to share these details on the community forum, please feel free to raise a ticket from the “Contact Support” link at the bottom of the Dashboard.

Alan

Hi Alan

thank you! The service id is com.dibulo.cv.python

Unfortunately I don’t have any more information other than the logs provided. Unless there are other ways to get more detailed logs?

Francois

I’m still not seeing anything obviously wrong, but it looks like your app didn’t respond to the healthcheck in time, maybe try a new manual deploy?

Alan

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