Gitlab fails to update on CentOS if I'm using my own Postgresql database
Downloading Packages:
gitlab-ce-8.1.3-ce.0.el6.x86_64.rpm | 343 MB 00:36
Running rpm_check_debug
Running Transaction Test
Transaction Test Succeeded
Running Transaction
gitlab preinstall: Backing up GitLab SQL database (excluding Git repositories, uploads)
Dumping database ...
Dumping PostgreSQL database gitlab_production ... pg_dump: server version: 9.4.5; pg_dump version: 9.2.10
pg_dump: aborting because of server version mismatch
Backup failed
[FAILED]
gitlab preinstall:
gitlab preinstall: Backup failed! If you want to skip this backup, run the following command and
gitlab preinstall: try again:
gitlab preinstall:
gitlab preinstall: sudo touch /etc/gitlab/skip-auto-migrations
gitlab preinstall:
error: %pre(gitlab-ce-8.1.3-ce.0.el6.x86_64) scriptlet failed, exit status 1
Error in PREIN scriptlet in rpm package gitlab-ce-8.1.3-ce.0.el6.x86_64
error: install: %pre scriptlet failed (2), skipping gitlab-ce-8.1.3-ce.0.el6
Verifying : gitlab-ce-8.1.3-ce.0.el6.x86_64 1/2
gitlab-ce-8.1.2-ce.0.el6.x86_64 was supposed to be removed but is not!
Verifying : gitlab-ce-8.1.2-ce.0.el6.x86_64 2/2
Failed:
gitlab-ce.x86_64 0:8.1.2-ce.0.el6 gitlab-ce.x86_64 0:8.1.3-ce.0.el6
When I skip the backup everything seems to work by doing
touch /etc/gitlab/skip-auto-migrations
yum install gitlab-ce
gitlab-ctl reconfigure
Suggestion: use old config settings during upgrade and not embedded ones?