Closed Aboitier closed 1 month ago
👋 @Aboitier
Please share the commands you used and whether any of the Docker Compose containers were running at the time. Note that in the default configuration plausible
attempts to run migrations (i.e. create the missing tables) on startup: https://github.com/plausible/community-edition/blob/938f5510ed021537b9a5b204d1e8468b7ba5744e/compose.yml#L34
And please check out https://github.com/plausible/community-edition/wiki/Upgrade-PostgreSQL
It contains an easy guide on a backing up and restoring plausible_db
Thanks for the quick answer @ruslandoga :)
I am indeed running the default configuration with this command :
command: sh -c "sleep 10 && /entrypoint.sh db createdb && /entrypoint.sh db migrate && /entrypoint.sh run"
I removed the /entrypoint.sh db createdb && /entrypoint.sh db migrate
from the above command and followed the steps described in the link you shared. Postgres upgraded and restored successfully 🎉
On to Clickhouse now !
Glad you got it worked out!
On to Clickhouse now !
These might be helpful:
Hello,
I want to restore the pg plausible_db database from a backup I made. I tried with both pg_restore and pg_dumpall and the exact same error shows up right after restoring in the plausible container logs :
The backup is made from a postgres v14. I tried to restore it to a v14, a v15 and a v16 and I always get the same error. I wiped clean the pg plausible_db several times. I am using Plausible 2.1.4.
Do you have any hint on how to approach this ?