Python app restarts because Gunicorn fails to import the application

The application started but did not answer on any port it publishes. The deploy log has the per-port result; a worker or queue-only app can ignore this. | The application is running but does not answer on the port it publishes. app listens on 39879, not on 8095. Its output is in the deploy log, or read it with container_service_logs.

Seen6 times
WherePython

Why it happens

The container starts, but the Gunicorn process exits while loading the application. Because it keeps restarting, port 8000 never answers the health check. The final import error is not included in the available log excerpt, so the specific startup cause is unclear.

What the log looks like

Deploy log
Starting application (docker compose up -d)Container project-app-1 StartedHealth check: http://[ip]:8000/ did not answer — Failed to connect to [ip] port 8000Check failed: The application is restarting, not runningapp-1  | ... gunicorn/app/wsgiapp.py ...app-1  | return util.import_app(self.app_uri)app-1  | ... importlib.import_module(module)

Try PanelAlpha Engine yourself.

The easiest way to turn your server into a safe, controlled environment for your AI agent. Deploy, manage and maintain any project from Claude Code, Cursor, Codex or any other MCP client. Open source under Apache 2.0, free to run.

Requires Ubuntu 24.04 or 26.04 · 2 GB RAM · 1 CPURead the documentation