I created an app yesterday and got it all working. Figured I’d suspend it overnight and carry on working on it today.
I ran flyctl suspend on it yesterday. All good.
I ran flyctl resume today. Error. Tried a re-deploy, in case that would give it a kick. No. Hmm:
$ flyctl resume
Error server returned a non-200 status code: 503
$ flyctl deploy
Deploying NAME
==> Validating app configuration
Error not possible to validate configuration: server returned server returned a non-200 status code: 503
Hmm … What’s gone wrong?
How do I resume/re-deploy a suspended app? It’s the cdn logs one if you want to check it out at your end.
I tried flyctl resume three times. No luck. Error each time.
I just tried it again and I don’t know if you did anything at your end. But it now says now it’s not suspended. I checked its status, and it showed as ‘dead’. Which is … progress?
Anyway, I tried a re-deploy, and it appears to be re-deploying now. So that’ll do.
Tried a restart too. In case that is the resurrection command for an app whose status is dead. Seemed promising. But no. It did not arise from the dead.
$ flyctl resume
Error App is not suspended
$ flyctl restart
NAME is being restarted
$ flyctl status
... [dead]
The issues in this thread were about the Nomad platform, which is mostly phased out now. fly resume is also Nomad-specific. Currently, apps run on Machines.
When a Machines app is suspended, that just means none of the machines are running. This could be because of autostop.