Skip to main content
err:unkey:application:deployment_not_stopped
Example

What Happened?

You called startDeployment on a deployment that is not in stopped status. Start only applies to a deployment that was previously stopped; a deployment that is building, ready, or in another state has nothing to start. getDeployment reports the current status, and availableActions lists start only when the deployment is stopped.

How To Fix

  1. Fetch the deployment with getDeployment and check status.
  2. Only call start when the deployment is stopped.
  3. If the deployment is already ready, it is running and no action is needed.

Common Mistakes

  • Starting a running deployment: Calling start on a deployment that is already ready.
  • Starting mid-build: Calling start before the deployment has ever been stopped.
Last modified on July 20, 2026