Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Postgres upgrade instructions missing #249

Open
nidico opened this issue Sep 19, 2021 · 3 comments
Open

Postgres upgrade instructions missing #249

nidico opened this issue Sep 19, 2021 · 3 comments

Comments

@nidico
Copy link
Contributor

nidico commented Sep 19, 2021

Postgres has recently (in 9469c23) been upgraded from 9.6 to 13.4 in the default/example docker-compose.yml file.

Users just upgrading the container repo will face the following error:

The data directory was initialized by PostgreSQL version 9.6, which is not compatible with this version 13.4.

Database upgrade instructions should be added to the docker upgrade notes.

@SISheogorath
Copy link
Contributor

I wrote a first draft for a guide, maybe needs some testing and validation: https://demo.hedgedoc.org/WDjvPVweTBWqVyUEg8A6Kw#

Feel free to try it and give some feedback :)

@nidico
Copy link
Contributor Author

nidico commented Sep 20, 2021

Thanks!

I've tried it and it works for me when changing exec -t to exec -T in step 11.

@GrSto
Copy link

GrSto commented Oct 10, 2021

Thanks a lot for this guide!

I followed these steps, but unfortunately, all our pads were empty after step 11. I'm not sure what exactly went wrong. There were no error messages logged to the console; in fact, step 11 produced no output at all.

I tried the following command from the official documentation instead:

cat backup-$(date +%Y-%m-%d).sql | docker exec -i $(docker-compose ps -q database) psql -U hedgedoc

This produced many lines of SQL console messages (like ALTER TABLE, COPY, ...). Now everything seems to work again.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants