-
Notifications
You must be signed in to change notification settings - Fork 117
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
Upgrading from 14 to 15 failing with "/var/lib/postgresql/14/data/PG_VERSION": No such file or directory
#68
Comments
"/var/lib/postgresql/14/data/PG_VERSION"
: No such file or directory
I have the same problem. Have any solution? |
Reading and rereading the documentation I got an Idea: is not possible upgrade. This tool is for pg_upgrade that is not intended for major upgrade |
@casalegno the first paragraph of https://www.postgresql.org/docs/9.5/pgupgrade.html
|
Same problem here. The error makes sense since I don't have installed PG locally. I followed the documentation to use the volume to point to my data directory which contains PG_VERSION. But the docker container doesnt seem to use it. I might try to install locally Postgres so it can find the file and the binary files. |
"/var/lib/postgresql/14/data/PG_VERSION"
: No such file or directory"/var/lib/postgresql/14/data/PG_VERSION": No such file or directory
Alright I found the way to solve it. To give more context. My old data directory is mounted in a external disk in "/mnt/data/postgres" and I want to move the files to /mnt/data/postgres/16/postgres.
The That way works without setting "could not create hard link between old and new data directories: Invalid cross-device link Update:
And it works as expected 😄 |
Both containers need to be running, right? |
This is a reoccurrence of #36
I am using the alpine postgres image if that matters
The text was updated successfully, but these errors were encountered: