Chapter 9: “vapor cloud run "revert --all --yes” fails

When I run the “vapor cloud run "revert --all --yes” command I am prompted for the environment but after I enter it within a few seconds I am returned to the command line. It appears to be silently failing. The database on Vapor Cloud is unchanged. Thoughts?

@0xtim Can you please help with this when you get a chance? Thank you - much appreciated! :]

@shogunkaramazov, @0xtim had me edit my cloud.yml to look like:

type: “vapor”
swift_version: “4.1.0”
docker_template: “vapor-4.1.0-til”
run_parameters: “serve --port 8080 --hostname 0.0.0.0”

then deploy
then revert
then deploy

I needed to run the revert twice for some reason for it to work so my actual steps were

edit yml
deploy
revert
revert
deploy

all working now.

I was getting an HTTP/1.1 Internal Server Error with a Response Body in RESTed of:

{
“error”: true,
“reason”: “Error: column "userID" of relation "acronyms" does not exist”
}

I tried your solution @foamx and it worked for me. Thanks very much. :slight_smile:

3 Likes

I have the same issue on Chapter 19.
I tried with the stapes as @foamx described. But no results.
Could someone help me?

@0xtim Can you please help with this when you get a chance? Thank you - much appreciated! :]

Do you get no output from the console when trying to revert? Looks like a memory issue (it’s cropped up a lot recently so I’m not sure if something has changed). Have you tried reverting right after a deploy without actually visiting the site? The Leaf cache can put the memory usage pretty high.

If that doesn’t work, you can delete the DB from the dashboard in Vapor Cloud