docker-zulip: database files are incompatible with server
Hey together,
i tried the docker-compose script today, sadly the database container is not starting because of this error message:
2018-06-07 10:27:39.630 UTC [1] FATAL: database files are incompatible with server
2018-06-07 10:27:39.630 UTC [1] DETAIL: The data directory was initialized by PostgreSQL version 9.5, which is not compatible with this version 10.4 (Debian 10.4-1.pgdg90+1).
Since i cannot find a repo for the zulip-postgres image, i am posting it here.
BR H3n
About this issue
- Original URL
- State: closed
- Created 6 years ago
- Comments: 15 (4 by maintainers)
Commits related to this issue
- docs: Add upgrade instructions for old postgres container. Fixes #123 Signed-off-by: Alexander Trost <galexrt@googlemail.com> — committed to zulip/docker-zulip by galexrt 6 years ago
@H3npi @zingmars @parity3 You need to upgrade the files by doing some manual steps.
This assumes that your postgres data is saved at
/opt/docker/zulip/postgresql/data.docker stopand notdocker-compose stop).That should run through successfully. 5. Run:
zulip/zulip-postgresql:latestimage.docker-compose rmdocker-compose up.To note: the Postgres upgrade is https://github.com/docker-library/postgres/issues/37 not too good in general right, that is why
pg_dumpis used.I just ran into this. You were right - basically, you were running the old version (changed with this commit) of the zulip containers, which used the database image from
quay.io/galexrt/postgres-zulip-tsearchextras:latestto set up the database.As I understand, the old galexrt’s images are now replaced by ones maintained by Zulip. A way to upgrade from these images to the new ones would be appreciated.