How a startup failure looks
In the dashboard: after a first install, the deployment page shows Application couldn’t start, and the deployments list shows Install failed. After an update, the page shows Update failed, and the previous release usually keeps serving. The recovery panel explains the likely cause and fix. For startup failures, Deployz can write this explanation from the failure signals. It then shows Likely cause and Suggested fix, with the note “Explained by Deployz from the failure signals.” Treat it as a lead and check it against Technical details. In Technical details: look for the failure code and, when available, the container’s Exit code, Stop code, Restart count, and Stopped reason. The stopped reason often names the problem directly, for example a missing file or a failed command. On your customer’s install page: your customer sees Application couldn’t start and “Your software provider must fix this. No action is needed from you.” How long Deployz waits: each new web container gets five minutes after it starts before failed health checks count against it. If the deployment still isn’t healthy about 30 minutes after the last install or deploy finished, Deployz marks it as failed.Find the application logs
Deployz doesn’t collect or read your application’s logs. Technical details says “Raw container logs are not collected.” The logs stay in your customer’s AWS account, in Amazon CloudWatch Logs, with one log group for each service, worker, and migration task. Log groups keep entries for seven days. To see them, ask your customer to open CloudWatch Logs in the deployment’s Region and send you the relevant lines. They should check the lines for secrets before they share them. If a container stops before it writes any output, the logs may be empty. The stopped reason and exit code in Technical details are then the best signal.The application stops right after it starts
Symptom: Failure codeCONTAINER_START_FAILED. The recovery panel says the application started and then stopped.
Likely causes:
- The start command is wrong, or it isn’t in the release.
- A required environment variable is missing, or has a value the application rejects.
- The application crashes before it begins serving, for example during its own startup checks.
- The port is wrong.
- Read the Stopped reason and Exit code in Technical details.
- On the application’s Configuration screen, check the Port, and check the Start command row to see which command Deployz detected. The start command comes from your repository (a
CMDorENTRYPOINTin the Dockerfile, or astartscript), so you change it there and create a new release. - Check that every variable the application requires has a value for this customer. See Configure environment variables.
The health check fails
Symptom: Failure codeIMAGE_HEALTH_CHECK_FAILED. The recovery panel says the application started but never reported itself healthy.
How the health check works: Deployz sends HTTP requests to the application’s health check path, on its port, through the load balancer. Which responses pass depends on the path:
- A path the analysis detected, or a path you entered, must return HTTP
200. - If the analysis found no health route and you haven’t entered a path, Deployz checks
/and accepts any response from200to399, so a redirect to a sign-in page passes. - For an application that checks the
Hostheader, a400response also passes.
- Port. The Port on the Configuration screen must match the port the application listens on. Deployz also sets the
PORTenvironment variable to this value, so an application that readsPORTstays in step. A wrong port shows up as this failure. - Address. The application must listen on
0.0.0.0, not onlocalhostor127.0.0.1. An application bound tolocalhostcan’t receive requests from the load balancer. - Health check path. The Health check value on the Configuration screen must be a path that returns
200without signing in. A path you entered or the analysis detected fails if it redirects, returns404, or needs authentication. - Readiness. The path must return
200once the application can serve requests. If startup takes longer than five minutes, for example because of slow migrations or cache warm-up, health checks start failing before the application is ready. - Dependencies. If the health route checks the database or cache, a connection problem fails the health check too. See the database and cache sections below.
The health check request, common reasons it fails, and how long Deployz waits.
The port is wrong
Symptom: Failure codePORT_MISMATCH. The recovery panel says nothing answered on the expected port.
Cause: The port configured for the application isn’t the one it binds. Deployz rarely reports this code. A wrong port usually appears as a health check failure.
Fix: Compare the Port on the Configuration screen with the port your application binds. Correct the setting, or change the application to read the PORT environment variable. Then deploy again.
Who acts: you.
A required secret is missing
Symptom: Failure codeMISSING_SECRET. The recovery panel says a required secret has no value for this customer.
Cause: The application needs a secret that isn’t set as a default for all customers or as a value for this customer.
Fix: Set the value on the Configuration screen, then deploy again. See Configure environment variables and Change a customer’s configuration.
Who acts: you.
The database migration failed
Symptom: Failure codeMIGRATION_FAILED. The recovery panel says the database migration step failed, so the new version wasn’t started.
Cause: The migration command exited with an error. Deployz runs it as a one-off task before it starts the new version. The task runs your migration command through sh, so the release’s container image must include sh.
Checks: Read the Stopped reason and Exit code. Ask your customer for the migration task’s log lines in CloudWatch Logs.
Fix: Fix the migration in your repository, create a new release, and deploy it. See Database migrations.
Who acts: you.
The application fails to reach its database
Symptom: Failure codeDATABASE_CONNECTION_FAILED. The recovery panel says the application started but can’t reach its database.
Checks:
- Does the application read its connection settings from the environment? Deployz provides
DATABASE_URL, plusDATABASE_HOST,DATABASE_PORT,DATABASE_NAME,DATABASE_USER, andDATABASE_PASSWORD. A hard-coded host or a different variable name won’t connect. - Does the application accept an encrypted connection? The connection settings Deployz provides use TLS. For PostgreSQL,
DATABASE_URLincludessslmode=require. When the task starts, Deployz downloads the certificate bundle for the database into the container, andNODE_EXTRA_CA_CERTSpoints to it. If the download fails, the application still starts, without the bundle. Make sure your database client doesn’t turn TLS off.
The application fails to reach its cache
Symptom: The application starts but can’t reach its cache. Deployz reserves the failure codeREDIS_CONNECTION_FAILED for this, but doesn’t currently report it, so the failure can appear under another code.
Checks: Make sure the application reads REDIS_URL, or REDIS_HOST and REDIS_PORT, from the environment. The cache connection isn’t encrypted, so the URL starts with redis://. A client that requires rediss:// (TLS) can’t connect.
Fix: Retry. If it keeps failing, contact support.
Who acts: you.
A live application stops responding
Symptom: A deployment that was live shows Your application is not responding or Your application is degraded. The deployments list shows Needs attention · Not responding or Needs attention · Degraded. Cause: Some or all health checks are failing on the running release. It can be the application itself, for example an overloaded process or a failing dependency, or the database or cache. Checks: Look at Technical details on the deployment page, and ask your customer for recent log lines from CloudWatch Logs. Fix: Depending on the cause, restart the deployment, roll back to the previous release, or deploy a fix. See Restart a deployment, Roll back a deployment, and Deploy an update. Who acts: you.Deploy again after a fix
Who: you (the vendor), in the Deployz dashboard.- First install failed: select Retry install. See Fix install failures.
- Install finished but the deployment never became healthy, or an update failed: select Deploy update or Retry update, and choose the release to deploy. See Deploy an update.
