-
Notifications
You must be signed in to change notification settings - Fork 22
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
"/var/lib/postgresql/data" is not a valid data directory (upgrading from 14 to 17). #78
Comments
Could it be that the container crashed between do you plan to use one-shot mode (so later use the Postgres image again) or keep ours permanently? |
Observed Behavior: The following log entries were recorded before the Docker container crashed, based on my observations. The logs captured from the Docker container also exhibit similar entries. Additional Attempts(as suggested): I attempted to include the -e PGAUTO_ONESHOT=yes environment variable as part of the Docker run command to address the issue. Unfortunately, this yielded the same result, with no change in behavior. |
I'm wondering if there are some specific conditions in your database that make one of our queries inside "Determing our own initdb arguments" crash. Can you try to run the command below, which provides these docker run --name pgauto -it --mount type=bind,source="/home/$USER/postgres/data",target="/var/lib/postgresql/data"-e PGAUTO_ONESHOT=yes -e POSTGRES_INITDB_ARGS="--encoding=UTF-8" pgautoupgrade/pgautoupgrade:17-bookworm I am actually not sure if |
COMMAND:
RESPONSE LOG:
|
|
Note that I just updated the logs and command text output in this issue to make it a bit more readable for others. No change to the content. 😄 |
My server has around 24GB of memory and the Postgres data folder's complete size is around 4.5GB. I ran a few commands to show you memory, which is below COMMAND1:
RESPONSE1:
COMMAND2:
RESPOSNSE2:
|
Hmmm, maybe the user that docker is running as doesn't have permission to allocate the desired resources? Are you using standard Docker, or something else (ie podman), etc? |
I already tried running pgauto ducker with "sudo" also, same response was coming. Docker version: |
Interesting. Does the standard PostgreSQL docker container seem to run ok? Also, which Linux distribution are you running? I'm wondering if it's something that has restrictions in place (by default) for some purpose. |
Hello ,
I encountered an issue while running the pgautoupgrade process to update to postgres version 17 using "pgautoupgrade:17-bookwarm". The tool fails(error logs are attached).
COMMAND :
LOG:
The text was updated successfully, but these errors were encountered: