Skip to main content
These failures come from the application itself: how it starts, which port it listens on, how it answers health checks, and how it reads its configuration. You fix them. Your customer has nothing to do, and their install page tells them so.

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 code CONTAINER_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.
Checks:
  1. Read the Stopped reason and Exit code in Technical details.
  2. 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 CMD or ENTRYPOINT in the Dockerfile, or a start script), so you change it there and create a new release.
  3. Check that every variable the application requires has a value for this customer. See Configure environment variables.
Fix: Correct the setting or the code, then deploy again. A code fix needs a new release. Who acts: you.

The health check fails

Symptom: Failure code IMAGE_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 from 200 to 399, so a redirect to a sign-in page passes.
  • For an application that checks the Host header, a 400 response also passes.
For the full explanation, see Health check path. Checks:
  1. Port. The Port on the Configuration screen must match the port the application listens on. Deployz also sets the PORT environment variable to this value, so an application that reads PORT stays in step. A wrong port shows up as this failure.
  2. Address. The application must listen on 0.0.0.0, not on localhost or 127.0.0.1. An application bound to localhost can’t receive requests from the load balancer.
  3. Health check path. The Health check value on the Configuration screen must be a path that returns 200 without signing in. A path you entered or the analysis detected fails if it redirects, returns 404, or needs authentication.
  4. Readiness. The path must return 200 once 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.
  5. 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.
Fix: Correct the setting or the code, then deploy again. Who acts: you.
How the health check works. In this example, the analysis detected a /health route, so the load balancer sends GET /health to the container on its configured port, 3000, and the application must return HTTP 200 once it's ready. If the analysis finds no health route, Deployz checks / instead and accepts any response from 200 to 399. The application must listen on 0.0.0.0, not 127.0.0.1. Common failures: the port doesn't match, the server is bound to localhost, or a detected or entered path redirects, returns 404, or needs sign-in. Each new container gets five minutes after it starts before failed health checks count. If the deployment still isn't healthy about 30 minutes after the install or deploy finished, Deployz marks it as failed.How the health check works. In this example, the analysis detected a /health route, so the load balancer sends GET /health to the container on its configured port, 3000, and the application must return HTTP 200 once it's ready. If the analysis finds no health route, Deployz checks / instead and accepts any response from 200 to 399. The application must listen on 0.0.0.0, not 127.0.0.1. Common failures: the port doesn't match, the server is bound to localhost, or a detected or entered path redirects, returns 404, or needs sign-in. Each new container gets five minutes after it starts before failed health checks count. If the deployment still isn't healthy about 30 minutes after the install or deploy finished, Deployz marks it as failed.

The health check request, common reasons it fails, and how long Deployz waits.

The port is wrong

Symptom: Failure code PORT_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 code MISSING_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 code MIGRATION_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.
A migration that failed part of the way through can leave the database partly changed. Rolling back to an earlier release doesn’t reverse migrations. Write the fix so it works from the database’s current state. See Roll back a deployment.
Who acts: you.

The application fails to reach its database

Symptom: Failure code DATABASE_CONNECTION_FAILED. The recovery panel says the application started but can’t reach its database. Checks:
  1. Does the application read its connection settings from the environment? Deployz provides DATABASE_URL, plus DATABASE_HOST, DATABASE_PORT, DATABASE_NAME, DATABASE_USER, and DATABASE_PASSWORD. A hard-coded host or a different variable name won’t connect.
  2. Does the application accept an encrypted connection? The connection settings Deployz provides use TLS. For PostgreSQL, DATABASE_URL includes sslmode=require. When the task starts, Deployz downloads the certificate bundle for the database into the container, and NODE_EXTRA_CA_CERTS points to it. If the download fails, the application still starts, without the bundle. Make sure your database client doesn’t turn TLS off.
Fix: Change the application to read the provided values and accept TLS, create a new release, and deploy it. If the database stays unreachable, ask your customer to check it in their AWS account. Who acts: you. Your customer checks the database only if it stays unavailable.

The application fails to reach its cache

Symptom: The application starts but can’t reach its cache. Deployz reserves the failure code REDIS_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.
A code change needs a new release first. See Create a release.