Laravel container restarts because its SQLite database path is invalid

The application is not running: its container keeps exiting. Nothing answered on any published port because the process never stays up. Read the container output — the reason it exits is there. | The application is restarting, not running. Docker reports app (Restarting (1) 28 seconds ago). Nothing answered on any published port because the process keeps exiting. Read the container output with container_service_logs; the reason it exits is there. | The application is up, but a service it depen…

Seen18 times · 7 variants

Why it happens

The Laravel app exits during startup while preparing SQLite. Its configured path resolves to a nested location such as /app/database/app/database/database.sqlite, which cannot be created. The container then enters a restart loop, so port 8000 never becomes reachable.

What the log looks like

Deploy log
Container output at the point of failure:app-1  | SQLite Database Path: /app/database/app/database/database.sqliteapp-1  | touch(): Unable to create file /app/database/app/database/database.sqliteapp-1  | AppServiceProvider.php:167...Health check: http://[ip]:8000/ did not answerDocker reports app (Restarting (1))

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