Skip to content

DocsHelp

Failed deployments

The messages of a deployment that did not go live: a failed build, a version that does not start, a failed deploy command, a refused deployment, the deploy hook.

The message of a failed deployment is on its page under Deployments. The version that was running stays online: your visitors do not see a failed deployment.

Message or sign What to do
There is no package.json at the top of the repository Your app is in a folder. Set the Root directory. See Root directory
The root directory … is not in the repository The folder name is wrong, or it is not on this branch. Correct the Root directory
Branch … was not found The branch was renamed or removed. Choose the branch under Settings, Build & deploy
A command is “not found” during the build, tsc for example The tool is not in your package.json: on your machine it is installed for every project. Add it to devDependencies. See Packages
The install fails because the lockfile does not match Run the install on your machine, commit the lockfile, push
The start command cannot run bun Bun installs the packages, and the app itself runs with Node. Start it with node, or with npm run start. See Package manager
The install fails in a prepare or postinstall script The script calls a tool that is not installed. Make it skip the tool when it is missing
The app listens on port N, and ports below 1024 are not open to an app Choose a port from 1024 up under Settings, Build & deploy. See Port
A package of the same repository is not found during the install or the build The app is part of a workspace. Set its folder as the Root directory and commit the lockfile at the top of the workspace. See An app in a workspace
A package fails to compile native code during the install There is no compiler. Use a package that ships ready binaries
The build took longer than 30 minutes and was stopped Make the build shorter, or build less
The repository takes more than 2 GB on GitHub with its history, which is more than a build accepts. Take large files out of the repository’s history and deploy again. Removing a file in a new commit is not enough: it stays in the history. Take it out of the history, then deploy again
The archive of this commit is larger than 512 MB, which is more than a build accepts. Keep large files out of the repository, then deploy again
The repository unpacks to more than 4 GB, which is more than a build accepts. Or: The repository unpacks to more than 4 GB or 1,000,000 files, which is more than a build accepts. Keep large files and generated folders out of the repository, then deploy again
The repository download stalled for a minute. Deploy again. Deploy again
… could not be read (…), so the build was not started. A package.json is larger than 1 MB, nested too deep, a link, or not plain JSON. Fix it and deploy again
The build printed more than 50 MB of output and was stopped. Make the build print less: turn off verbose or debug output of the install and the build tools
The build was stopped before it finished. Deploy again. The deployment was ended while it built. Deploy again
A build line that installs system packages fails The build has no root rights and no system packages. Use npm packages that ship what you need. See What the build does not use
Message What it means What to do
… exited right after starting with the new image The app crashed when it started Read the runtime log. Often a variable is missing, or the start command is wrong
… did not start with the new image The start command did not run Check the Start command
… started but its health check did not pass … (nothing listens on port N, so make sure the app listens on 0.0.0.0:N, not only on 127.0.0.1) Nothing listened on the port in time, or the server listens on localhost Listen on process.env.PORT and on 0.0.0.0, within 2 minutes. See Port and address
… health check did not pass … (GET /health had no healthy answer within 60 seconds; it must answer with a status under 400) The health check path did not answer in the wait you set, or nothing listened Make the path answer with a status under 400 once the app is ready, or give it a longer wait under Settings, Health check. See Health check
… health check did not pass … (GET /health answered 503) The path answered, with an error status The app started but was not ready within the wait. Read the runtime log: often a database is not reachable or a variable is missing
The start command could not be run The command does not exist in the app Check the Start command. A tool from devDependencies is not in the running app
There is no index.html in dist. Check that the build command writes the app there, or name the right folder in the start command The platform’s server found no built files in the folder the start command names Name the folder your build writes to, out or dist/<project>/browser for example. See the guide of your framework

In the runtime log you may also see:

  • Waiting for the app to listen on port N. The app has started but does not listen yet.
  • The app refused a connection … make sure it listens on 0.0.0.0:N, not only on 127.0.0.1. Your server listens on localhost. See Port and address.

The running app is not changed. The deployment page shows the message:

Message Meaning
A deploy command failed (exit code N). The running app was not changed. A command ended with an error. Its output is in the build log
The deploy commands did not finish within 15 minutes. The running app was not changed. They took too long
The deploy commands ran out of memory. The running app was not changed. They need more memory than the size of the app has
The deploy commands were stopped before they finished. Deploy again. The deployment was ended while they ran. Deploy again

See Deploy commands.

A deployment whose commands, file names at the top of the repository or package.json files name software of a kind the platform does not host is refused before anything is built. The kinds are listed under Software the platform does not host. The page says what was found and where: “This deployment was refused: … Software of this kind may not run on the platform.” The version that was running stays. Remove the software and deploy again; if this is a mistake, contact support. The acceptable use policy says what is not allowed.

“Your plan’s 300 build minutes for this cycle are used up. They reset in 12 days.” Each plan has build minutes for the billing cycle and a number of builds that may run at the same time; the pricing page lists them. Wait for the reset, or choose a bigger plan. A build that ran longer than the 30 minutes allowed is stopped with “The build ran longer than your plan allows”: make it faster, or write to support when it needs the time.

  • Builds are paused for maintenance. A banner says so, and Deploy answers “Builds are paused for maintenance right now. Try again in a little while.” A deployment already queued says “Builds are paused for maintenance right now. Your deployment will start when they resume.” and starts by itself. See If you see a banner.
  • The app is paused. Choose Resume, then deploy.
  • Auto deploy on push is off. Switch it on under Settings, Build & deploy, or choose Deploy.
  • The push went to another branch. Only the branch of the app deploys. See The branch.

The answer is JSON with a message. Nothing was started.

Status Message What to do
404 This deploy hook does not exist. It may have been turned off or made anew The address is not the app’s current one. Make a new address under Settings, Build & deploy, Deploy hook, and put it where the hook is called from
409 The app is paused, billing does not allow the app to run, the build minutes of the cycle are used up, or builds are paused for maintenance The message is the dashboard’s own sentence for it. Resume the app, settle the billing, wait for the next cycle, or call again in a little while
429 Too Many Attempts. The hook was called too often in a short time. Wait a minute, and call the hook once per change

A call while a deployment runs is not an error: it answers 202 and the next deployment waits behind the running one.

See Deploy hook.