-
Notifications
You must be signed in to change notification settings - Fork 119
Upgrading from 11 to 12 failing with "/var/lib/postgresql/11/data/PG_VERSION": No such file or directory
#36
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
Comments
"/var/lib/postgresql/11/data/PG_VERSION": No such file or directory
"/var/lib/postgresql/11/data/PG_VERSION": No such file or directory
I am getting the same issue with
|
The directory It seems like the postgres cluster has not been initialised? My database is small enough that I think a pg_restore is my best option. |
P.s. Also fails with...
|
@davidbartonau what base does your container image use (i.e. debian, alpine, etc?). The other thread mentioned that permission issues as a possible root cause, but a different directory stucture could be to blame also(?).. |
Re-arranging the bind volume directory structure, so that it matched the first example in the README, worked for me.
so I could run the upgrade with:
(Replacing Don't know if there is an issue with the implementation when using the method I used above (mounting two seperate bind points) or I was just using it wrong. Either way, I will close this. |
Uh oh!
There was an error while loading. Please reload this page.
This is related/similar to #29.
The issue
I'm running a timescale postgres on pg11, launching with docker-compose. When running the upgrade I get the following output and failure message
My setup
I am starting with a docker-compose setup where I recently upgrade the timescale from 1.3.1 to 17.5 (I give this for context but I don't think this is in anyway the source of the issue).
The compose takes the pattern as following:
As you'll see, My config is already a bit outside the pattern(s) described in the README.
Steps to run upgrade
Since my PGDATAOLD is effectively mounted, quite awkwardly, as
~/DIR/data/postgres:/var/lib/postgresql/data
, may plan was to mount PGDATANEW as~/DIR/data/12/postgres:/var/lib/postgresql/data
.I didn't do any 'upgrade testing' outlined in the step outline in the README, so be kind. ;)
I ran (from within working directory):
Result
As outlined above.
Also...
FATAL: no pg_hba.conf entry for host "w.x.y.z", user "postgres", database "postgres", SSL off
. This led to further investigation, but probably not worthwhile to explain in detail here (I can supply more details if requested).The text was updated successfully, but these errors were encountered: