Python Dash app: deploy failed, but log looks fine - problem with health signal?

Dear Render experts,

I am trying to run a Python Dash app on Render as a Web Service. I’m fairly new to both Render and Dash.

Render tells me that the deploy has failed. The log, however, does not provide any information about what went wrong. These are the last few lines of the log:

Apr 29 07:46:22 AM  WARNING: You are using pip version 20.1.1; however, version 23.1.2 is available.
Apr 29 07:46:22 AM  You should consider upgrading via the '/opt/render/project/src/.venv/bin/python -m pip install --upgrade pip' command.
Apr 29 07:46:22 AM  ==> Generating container image from build. This may take a few minutes...
Apr 29 07:48:00 AM  ==> Uploading build...
Apr 29 07:48:28 AM  ==> Build uploaded in 19s
Apr 29 07:48:28 AM  ==> Build successful 🎉
Apr 29 07:48:28 AM  ==> Deploying...
Apr 29 07:49:01 AM  ==> Starting service with 'gunicorn app:server'

I know that my app runs a model for some basic analysis and it takes about 50 s to finish on my laptop (which really isn’t exactly SOTA :wink: ). So I replaced the model with a much simpler one that finishes almost instantly and the app runs as expected, i.e., I can reach the app online. I therefore suspect that it has something to do with Render having some sort of problem with my slower code. (The few people looking at this app certainly won’t mind :relieved: ) I further suspect that Render might expect a health signal from the app in order to serve it.

Could this indeed be the problem? What other problem could cause the problem? If it really is about the health signal not being received, how can I implement such a signal in my Python Dash app?

Cheers,
Michael

Hi there,

Would you be able to send me the service id for your application? I’d be happy to have a look. Feel free to open a ticket if you don’t want to share this information on the public forum.

Regards,

Matt

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