Closed samr28 closed 11 months ago
Hmm, that's odd for sure -- when updating from 4.x to 5.x, did you first make sure to update to the most recent 4.x? (per https://ghost.org/docs/update-major-version/#update-to-the-latest-minor-version)
Beyond that, I don't have many ideas. :see_no_evil:
Hey I've been working on updating my ghost instances from an older v4 to the latest v5. I am already running mysql (I read that there are issues switching from mysqlite but that doesn't apply to my case)
Instructions and some issues I've read say to update to the latest minor version which I did fine but then when going from tag
4-alpine
to5-alpine
, it first fails to connect to the database. But if I manually specify the database connection info via environment variables, the database gets wiped (see logs below of it creating all new tables in mysql). Luckily I have backups so I restored back to one of those and tried updating the tag to5.0.1-alpine
which worked completely fine. I then stepped through each minor version up to5.5.1-alpine
and they all worked fine. I then went for it and upgraded to5-alpine
which broke once again, failing to connect to the database. When I manually specified the database connection params, it created the new tables once again.(I have removed sensitive creds and the name of my site/url) original docker-compose.yml
new docker-compose.yaml original docker-compose.yml
Here's the first logs, failing to connect to the database
And when using the second compose yaml, wiping the db: