Document database upgrade steps with official container when using podman
Original Title: Problem with postgresql upgrading gitlab from 8.17.7-ee.0 to 9.5.10 (PODMAN)
Hi!
I'm upgrading gitlab from 8.17.7 to 9.5.10 and i got some problems with postgresql. I use PODMAN.
The specific problem is creating a directory so i created manually that directory but error persists.
LOG:
Creating temporary data directory:Error creating new directory: /var/opt/gitlab/postgresql/data.9.6.3
STDOUT:
**STDERR: su: System error
Creating temporary data directory: NOT OK**
== Fatal error ==
Please check the output
== Reverting ==
ok: down: postgresql: 1s, normally up
ok: run: postgresql: (pid 881) 1s
== Reverted ==
== Reverted to 9.2.18. Please check output for what went wrong ==
Toggling deploy page:rm -f /opt/gitlab/embedded/service/gitlab-rails/public/index.html
Toggling deploy page: OK
Toggling services:ok: run: gitaly: (pid 434) 32s
ok: run: gitlab-monitor: (pid 444) 32s
ok: run: logrotate: (pid 446) 32s
ok: run: node-exporter: (pid 441) 32s
ok: run: postgres-exporter: (pid 429) 32s
ok: run: prometheus: (pid 432) 32s
ok: run: redis-exporter: (pid 437) 32s
ok: run: sidekiq: (pid 426) 32s
ok: run: sshd: (pid 903) 0s
Toggling services: OK
Upgrading the existing database to 9.6 failed and was reverted.
Please check the output, and open an issue at:
https://gitlab.com/gitlab-org/omnibus-gitlab/issues
If you would like to restart the instance without attempting to
upgrade, add the following to your docker command:
-e GITLAB_SKIP_PG_UPGRADE=true
Please help
Thanks
Edited by Robert Marshall