Skip to content

We are having some problems when trying to upgrade PostgreSQL 9.4. to 9.6 #3

Closed
@tabdoelhafiezkhan

Description

@tabdoelhafiezkhan

Hello tianon,

Thank you for the image. We hope you can help us with this question: We are trying to upgrade from postgres 9.4 to 9.6, but the docker hub default images do not have the postgres version in there path $PGDATA. So it's /var/lib/postgresql/data and not /var/lib/postgresql/9.4/data.

We are getting these errors when trying the upgrade:

TEST1:

[tiabd@dockerbuild tmp]$ docker run --rm
-v /tmp/9.4:/var/lib/postgresql/data
-v /tmp/9.6:/var/lib/postgresql/data
tianon/postgres-upgrade:9.4-to-9.6
docker: Error response from daemon: Duplicate mount point '/var/lib/postgresql/data'.
See 'docker run --help'.
[tiabd@dockerbuild tmp]$

TEST2:

[tiabd@dockerbuild tmp]$ docker run --rm \

-v /tmp/9.4/data:/var/lib/postgresql/9.4/data \
-v /tmp/9.6/data:/var/lib/postgresql/9.6/data \
tianon/postgres-upgrade:9.4-to-9.6

...
...
initdb: directory "/var/lib/postgresql/9.6/data" exists but is not empty
If you want to create a new database system, either remove or empty
the directory "/var/lib/postgresql/9.6/data" or run initdb
with an argument other than "/var/lib/postgresql/9.6/data".
Failure, exiting

TEST3:

[tiabd@dockerbuild tmp]$ docker run --rm -v /tmp/9.4:/var/lib/postgresql/9.4/data -v /tmp/9.6:/var/lib/postgresql/9.6/data tianon/postgres-upgrade:9.4-to-9.6
...
check for "/var/lib/postgresql/9.4/data/base" failed: No such file or directory

Failure, exiting

Hope you can help us further.

Kind regards,
Tim

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions