I get the following error in my deploy, without any follow or before errors shown in the low. Can someone advice on how to debug?
What’s funny is that the app was working yesterday, I have no clue what changed - I did develop it a bit, but cannot find a source of error and rolling back to yesterday’s build that worked doesn’t help.
Instance
ID = ef1b7b3e
Process = app
Version = 1
Region = waw
Desired = stop
Status = complete
Health Checks = 1 total, 1 passing
Restarts = 0
Created = 20m8s ago
Events
TIMESTAMP TYPE MESSAGE
2022-11-13T16:43:29Z Received Task received by client
2022-11-13T16:43:29Z Task Setup Building Task Directory
2022-11-13T16:43:38Z Started Task started by client
2022-11-13T16:49:11Z Killing Sent interrupt. Waiting 5s before force killing
2022-11-13T16:49:28Z Terminated Exit Code: 0
2022-11-13T16:49:28Z Killed Task successfully killed
Checks
ID SERVICE STATE OUTPUT
3df2415693844068640885b45074b954 tcp-8080 passing TCP connect 172.19.2.226:8080: Success
Instance
ID = b30f58e1
Process = app
Version = 3
Region = waw
Desired = stop
Status = complete
Health Checks = 1 total, 1 passing
Restarts = 0
Created = 6m22s ago
Events
TIMESTAMP TYPE MESSAGE
2022-11-13T16:55:24Z Received Task received by client
2022-11-13T16:55:24Z Task Setup Building Task Directory
2022-11-13T16:55:36Z Started Task started by client
2022-11-13T16:59:17Z Killing Sent interrupt. Waiting 5s before force killing
2022-11-13T16:59:34Z Terminated Exit Code: 0
2022-11-13T16:59:34Z Killed Task successfully killed
Checks
ID SERVICE STATE OUTPUT
3df2415693844068640885b45074b954 tcp-8080 passing TCP connect 172.19.2.226:8080: Success
Recent Logs
2022-11-13T16:59:32Z [info]Running __init__.py
2022-11-13T16:59:32Z [info]Name: run
2022-11-13T16:59:32Z [info]run.py - trying to load configurations: Production
2022-11-13T16:59:32Z [info]Production
2022-11-13T16:59:32Z [info]<class 'apps.config.ProductionConfig'>
2022-11-13T16:59:32Z [info]Loaded configuration
2022-11-13T16:59:32Z [info]__init__.py - create_app()
2022-11-13T16:59:32Z [info]apps
2022-11-13T16:59:32Z [info]__init__.py - register_extensions()
2022-11-13T16:59:32Z [info]__init__.py - register_extensions() - success
2022-11-13T16:59:32Z [info]__init__.py - register_blueprints()
2022-11-13T16:59:32Z [info]__init__.py - register_blueprints() - success
2022-11-13T16:59:32Z [info]__init__.py - configure_database()
2022-11-13T16:59:32Z [info]__init__.py - configure_database() - success
2022-11-13T16:59:32Z [info]__init__.py - create_app() - success
2022-11-13T16:59:32Z [info]Created app & migrated
2022-11-13T16:59:32Z [info]Minified
2022-11-13T16:59:32Z [info]Scheduler?
2022-11-13T16:59:32Z [info]Scheduler finished
2022-11-13T16:59:32Z [info]Name: run
2022-11-13T16:59:32Z [info]After printing, before if
2022-11-13T16:59:32Z [info][2022-11-13 16:59:32 +0000] [521] [INFO] Shutting down: Master
2022-11-13T16:59:33Z [info]Starting clean up.
Not sure what to do with that further - don’t see anything suggesting that something went bad with health checks and what exactly. Can you suggest next steps to help me debug?
Ok, let me try to deploy the current version and let’s have a look at this one. Couple info:
The app is running perfectly on local (when I run it with flask run) - the only diff is that it uses proxied postgres into localhost on local, vs the normal address on deployed (worked fine yesterday).
Procfile:
web: gunicorn run:app
The app structure is run.py + apps/* with various parts of the app, all on flask & sqlalchemy
I’ve deployed v7 (basically the same as previous, no changes tbh):
v7 true release succeeded Deploy image ruryop@gmail.com 33s ago
ht-pl-youth personal running nomad 1m17s ago
After this deploy, I don’t see anything in logs at all and fly open does not open the app