Build successful but stuck on deploying and fails

Here is the log output before failure:

Jun 12 12:52:46 AM  ==> Uploading build...
Jun 12 12:53:04 AM  ==> Build successful 🎉
Jun 12 12:53:04 AM  ==> Deploying...
Jun 12 12:53:46 AM  ==> Starting service with 'gunicorn aapi.wsgi:application'
Jun 12 12:53:48 AM  [2021-06-12 00:53:48 -0700] [49] [INFO] Starting gunicorn 20.1.0
Jun 12 12:53:48 AM  [2021-06-12 00:53:48 -0700] [49] [INFO] Listening at: http://0.0.0.0:10000 (49)
Jun 12 12:53:48 AM  [2021-06-12 00:53:48 -0700] [49] [INFO] Using worker: sync
Jun 12 12:53:48 AM  [2021-06-12 00:53:48 -0700] [52] [INFO] Booting worker with pid: 52
Jun 12 12:53:48 AM  [2021-06-12 00:53:48 -0700] [53] [INFO] Booting worker with pid: 53
Jun 12 12:53:48 AM  [2021-06-12 00:53:48 -0700] [54] [INFO] Booting worker with pid: 54
Jun 12 12:53:48 AM  [2021-06-12 00:53:48 -0700] [55] [INFO] Booting worker with pid: 55

It hangs for 10 minutes like this and then the deploy fails

Hello,

I think there might be a mismatch in the detected port 5432 and the port that your application is listening on 10000.

Can you try adding a PORT environment variable matching the port your server is listening on: 10000

1 Like

That was it, thank you so much!