Forums

Uvicorn is being auto shutdown immediately after restart

Hello, My fastapi app(nicegui) gets shutdown immediately after startup. Initially I could not reload the app. Now when uvicorn starts, it is shutdown immediately.

Is there anything I can do to solve this? Here's what the app log looks like on startup.

2025-11-10 10:30:44,738 - [main:<module>:62] - INFO - Using `JSONFileStorage` for config and state storage

I

NFO:     Started server process [1]
INFO:     Waiting for application startup.
INFO:     Application startup complete.
INFO:     Uvicorn running on unix socket /var/sockets/flowlinescada.pythonanywhere.com/app.sock (Press CTRL+C to quit)
INFO:     Shutting down
INFO:     Waiting for application shutdown.
INFO:     Application shutdown complete.
INFO:     Finished server process [1]

What is the command you use to run the app?