Troubleshooting
Each entry follows: symptom -> diagnostic command -> fix.
Deploy hangs at “pulling image”
Section titled “Deploy hangs at “pulling image””Symptom: Deploy progress bar sticks. Logs show Pulling foo/bar:latest... for >5 minutes.
Diagnose:
# Check what compose is doingsudo docker compose -f /etc/simpledeploy/apps/<slug>/compose.yaml pull
# Check registry authsimpledeploy registry listFix:
- Bad image name or tag: correct the
image:line in the compose file. - Private registry: add credentials via Settings -> Registries (or
simpledeploy registry add). - Network issue: confirm DNS works (
getent hosts registry-1.docker.io) and outbound 443 is open. - Rate limited by Docker Hub: log in to a paid account or use a registry mirror.
Deploy failed
Section titled “Deploy failed”Symptom: The app shows error and the activity feed says Deploy failed: compose up: <reason>: exit status 1 (or Rollback to version N failed: ...).
What it means: docker compose up itself stopped with an error. <reason> is the last lines docker compose printed, so it usually names the problem. The full output is in the deploy log and the app’s deploy history.
Common reasons:
pull access deniedorunauthorized: the image name or tag is wrong, or the image is private. Fix theimage:line or add the registry under Settings -> Registries.port is already allocated: another app or program uses that host port. Pick a different host port inports:.manifest unknownornot found: the tag does not exist.required variable X is missing a value: addXin the Config tab.
Fix the cause and redeploy.
Deploy reported “Unstable”
Section titled “Deploy reported “Unstable””Symptom: The deploy wizard shows a yellow “Unstable” status. The per-service summary lists one or more services as restarting, unhealthy, or with restarted Nx.
What it means: docker compose up finished without an error, but during the 30-second post-deploy stabilization window one of the containers either kept restarting, reported unhealthy from its healthcheck, or exited. This is almost always an application-level error rather than a SimpleDeploy bug.
Diagnose:
# Watch the offending container's logs (replace slug + service)sudo docker logs simpledeploy-<slug>-<service>-1 --tail 200In the UI: open the app, Logs tab, pick the unhealthy service, scroll to the latest entries. The actual error from the container is usually in the last few lines before the restart.
Common causes:
- Permission errors writing to a volume (
EACCES,Permission denied). The image runs as a non-root user but the named volume was created root-owned. Adduser: "1000:1000"(or whatever UID the image documents) to the service, or use the templated version of the app from the wizard which handles this. - Required env var missing. Container exits with “X is required”. Add the missing env var via the Config tab.
- Port already bound in
port-onlymode if the same host port is requested by another app. - Healthcheck endpoint not yet implemented in your code. Either add the endpoint or relax the healthcheck (longer
start_period).
Fix and redeploy: edit the compose via the Config tab and click Redeploy. The next deploy will re-run the stabilization check.
Deploy fails with “compose file rejected”
Section titled “Deploy fails with “compose file rejected””Symptom: Deploy, rollback, pull or scale refused with a list of violations (compose file contains disallowed directives, or Stopped before starting: the compose file breaks these security rules: in the deploy log). An app added through git sync or SSH never starts.
Diagnose: The dashboard and API show each violation. For files picked up from disk, check the server log:
journalctl -u simpledeploy | grep "SECURITY: skipping"The check runs with ${VARS} filled in from the app’s .env, so a value there can cause a violation too.
Fix: Remove or change the offending setting and deploy again. The full list is in Compose security validation. If an app needs a host folder under a protected path (for example a media library under /home), add that folder to allowed_bind_paths in config.yaml and restart SimpleDeploy. Other rules have no override; if you genuinely need one, file an issue explaining the use case.
App still serves traffic but redeploys are refused
Section titled “App still serves traffic but redeploys are refused”Symptom: After an upgrade, an app keeps working, but redeploy, pull and scale fail with violations, and saving endpoints, IP access or .env returns 409 with “this app’s compose file no longer passes security checks”. The log shows keeping routes for the running app; fix its compose file before the next deploy.
What it means: The app was deployed before the current compose rules. It keeps its routes only while its compose file is unchanged.
Fix: Edit the compose file so it passes the checks (see the entry above) and redeploy. Any change to the file ends the route retention: a file that still fails stays offline until it is fixed.
TLS certificate fails to issue
Section titled “TLS certificate fails to issue”Symptom: Browser shows cert error or tls: no certificates configured. Logs show ACME errors.
Diagnose:
journalctl -u simpledeploy -n 200 | grep -i acme# Verify DNSdig +short manage.example.com# Verify port 80 reachable from outsidecurl -I http://manage.example.com/.well-known/acme-challenge/testFix:
- DNS not pointing at this host: fix A/AAAA record, wait for TTL.
- Port 80 blocked: open inbound
80/tcpin firewall and any cloud security group. - Let’s Encrypt rate limit (5 certs/week per domain): wait 1 week or use staging endpoint while testing.
- CAA record blocking:
dig CAA example.comshould includeletsencrypt.orgor be empty. tls.emailmissing: required for ACME. Set in config and restart.
“permission denied” on data_dir
Section titled ““permission denied” on data_dir”Symptom: Service fails to start with permission errors writing to /var/lib/simpledeploy.
Diagnose:
ls -la /var/lib/simpledeployps aux | grep simpledeploy # what user is the process running as?Fix:
sudo chown -R simpledeploy:simpledeploy /var/lib/simpledeploysudo chmod 0700 /var/lib/simpledeploysudo chmod 0600 /var/lib/simpledeploy/simpledeploy.dbWebSocket logs not streaming
Section titled “WebSocket logs not streaming”Symptom: Log viewer in the UI shows “Connecting…” forever or disconnects immediately.
Diagnose: Open browser dev tools -> Network -> WS. Look for the failed /api/apps/<slug>/logs connection and read the close code.
Fix:
- Behind Cloudflare with WS disabled: enable WebSockets in Cloudflare dashboard for the management hostname.
- Behind nginx/another proxy: ensure
proxy_set_header Upgrade $http_upgrade; proxy_set_header Connection upgrade;are set. - Origin mismatch: the management UI must be served from the same hostname and port as the API. Cross-origin WS is rejected by design. A proxy that drops the port from
Hoststill works when the browser sendsSec-Fetch-Site: same-origin. - Close code
1008(“authorization changed”): sockets re-check the session every 60 seconds and close after logout, a password or role change, API key revocation, or lost app access. Sign in again, or ask an admin to restore access. - Idle timeout: connections close after 5 minutes idle. The UI auto-reconnects.
High memory usage
Section titled “High memory usage”Symptom: Server RAM growing over time. top shows large simpledeploy or Docker resident size.
Diagnose:
free -mdocker system dfdocker images | wc -ldu -sh /var/lib/simpledeployFix:
# Clean up unused Docker stuffdocker image prune -afdocker volume prune -fdocker system prune -af --volumes # nuclear option
# Lower metrics retention if DB is huge (see capacity-sizing.md)If SimpleDeploy itself is leaking, capture a profile:
curl http://localhost:8443/debug/pprof/heap > heap.outand open a GitHub issue.
App not reachable from the internet
Section titled “App not reachable from the internet”Symptom: App’s domain returns 404, connection refused, or times out.
Diagnose:
# Is the container actually running?docker ps | grep <app-slug>
# Is it listening on the expected port inside the container?docker exec -it <container> ss -tln
# Does Caddy know about this domain?curl -s http://localhost:2019/config/ | jq '.apps.http.servers'Fix:
- Container not running: redeploy. Check container logs for crash loop.
- Missing endpoint label: add
simpledeploy.endpoint=example.comto the service incompose.yaml. - Domain claimed by two apps: the log shows
domain is already served by app "...". See 409 domain already used by another app. - Wrong port: confirm the service
expose:orports:matches what the app listens on. - DNS not resolving:
dig +short example.comshould match server IP.
429 rate limit hitting the dashboard
Section titled “429 rate limit hitting the dashboard”Symptom: Dashboard or API returns 429 Too Many Requests. Common during scripted use.
Diagnose: Check what is hammering the server. Audit log for repeated requests from one IP.
Fix:
- Login flood (10/min): wait 60s. Check for misconfigured auto-login scripts.
- Per-app rate limit: tune
simpledeploy.ratelimit.*labels on the affected app. - Behind a proxy: set
trusted_proxiesin config so rate limiting uses real client IPs. - Restore returns
too many restores in progress, try again later: at most 4 restores run at once (uploads and backup history together). Wait for one to finish. See Concurrent restores.
409 domain already used by another app
Section titled “409 domain already used by another app”Symptom: Saving endpoints or .env values, or restoring or rolling back to a compose version, returns 409 with domain ... is already used by app "..." (or by another app), is reserved for the SimpleDeploy dashboard, or is a wildcard domain; only a super admin can add one.
What it means: Each domain is served by one app, even on different paths. The dashboard domain and wildcard domains are reserved for super admins.
Fix: Remove the domain from the other app first, or pick another domain. If two compose files on disk (for example from git sync) claim the same domain, the app created first keeps it and the other app’s routes on it are dropped with a log warning.
Backup failed
Section titled “Backup failed”Symptom: Backup run shows failed in Backups UI.
Diagnose:
# Check the backup run logcurl -H "Authorization: Bearer $SD_API_KEY" \ https://manage.example.com/api/apps/<slug>/backups/runs/<id>Fix:
- Bad S3 credentials: re-enter in Settings -> Backup target.
- S3 bucket not reachable: check region, endpoint URL, network.
- Strategy script crashed: check the run logs for the exact error from
pg_dump/tar. - Disk full on local target: free space or move target to S3.
- Restore fails with
backup archive exceeds the restore size limit: raiseSIMPLEDEPLOY_RESTORE_MAX_GB. See Restore size limits.
S3 endpoint refused as a private address
Section titled “S3 endpoint refused as a private address”Symptom: Saving an S3 backup config, Test S3, or a backup run fails with S3 endpoint points to a private or reserved network address.
What it means: Custom S3 endpoints on loopback, private, link-local or CGNAT/Tailscale addresses (for example MinIO on the same server or LAN) are refused by default. Public S3 services need nothing extra.
Fix: Start the server with SIMPLEDEPLOY_ALLOW_PRIVATE_S3=1 (for example Environment=SIMPLEDEPLOY_ALLOW_PRIVATE_S3=1 in the systemd unit) and restart. Set it in your shell too for simpledeploy backup run and simpledeploy restore. See Environment variables.
Git sync: “rebase refused”
Section titled “Git sync: “rebase refused””Symptom: The Git Sync page shows rebase refused: apps_dir has uncommitted or untracked changes that the pull would overwrite.
What it means: Files in apps_dir that git sync does not commit itself (files outside the synced config files, or symlinks) differ from git, and git will not apply remote commits over them. Changes SimpleDeploy makes to synced config files are committed automatically before each pull, also in pull-only mode.
Diagnose:
sudo git -C /etc/simpledeploy/apps statusFix: Commit or remove those files in apps_dir (for example git stash -u keeps a copy), then sync again.
Startup warning about master_secret
Section titled “Startup warning about master_secret”Symptom: The log shows WARNING: master_secret is still the example placeholder ... or master_secret is shorter than 32 characters.
What it means: The config still has an example value from the docs (or a weak one). With a placeholder, sessions are signed with a random key from data_dir/session-signing.key, but stored credentials are still encrypted with the public value.
Fix: Generate a new secret with openssl rand -hex 32, put it in config.yaml, and restart. Then re-enter registry and S3 credentials and re-create API keys; everyone signs in again. See Generating a master secret.
Forgot admin password
Section titled “Forgot admin password”Diagnose: No need; if you cannot log in, you cannot log in.
Fix:
# Create a new super_admin (will prompt for password)sudo -u simpledeploy simpledeploy users create \ --username recovery \ --role super_admin
# Log in as 'recovery', delete the old account from the UI# Then delete the recovery account or rotate its passwordService won’t start after upgrade
Section titled “Service won’t start after upgrade”See Upgrade and rollback - Rollback. Usually a migration ran that the previous binary does not understand. Restore the pre-upgrade DB backup and downgrade.
Still stuck
Section titled “Still stuck”- Search GitHub issues.
- Open a new issue with: version (
simpledeploy version), OS, last 200 lines ofjournalctl -u simpledeploy, and steps to reproduce.