err:unkey:application:deployment_is_stoppingExample
What Happened?
You calledstopDeployment on a deployment whose stop is already in progress. A stopping deployment keeps ready status until its last instance is removed, so status alone does not reveal that a stop is underway. getDeployment reflects this through availableActions: a running deployment offers stop, but once a stop is in progress it offers no lifecycle actions at all. start appears only after the deployment has fully reached stopped status.
How To Fix
- Fetch the deployment with
getDeploymentand inspectavailableActions. - If the deployment reports
status: readybutstopis not listed, a stop is already in progress; wait for it to finish. - Once the deployment reaches
stopped,startbecomes available; usestartDeploymentto bring it back.
Common Mistakes
- Double-stopping: Issuing a second
stopwhile the first is still in progress. - Relying on status alone: A deployment can still report
readywhile it is stopping; useavailableActionsto see which operations apply.
Related Errors
- err:unkey:application:deployment_not_running - When the deployment is not running
- err:unkey:application:deployment_not_stopped - When starting a deployment that is not stopped
- err:unkey:application:deployment_is_production - When the deployment is in production