Upgrading omnibus installation connected to external db and web server
I installed GitLab CE using the omnibus package, but opted to use my existing postgresql database, nginx server, etc. at configuration time.
When I run apt-get update && apt-get upgrade
on my server, the gitlab-ce update attempts to backup and upgrade the database, but expects its version of postgresql to be present:
Preparing to unpack .../gitlab-ce_8.17.0-ce.0_amd64.deb ...
gitlab preinstall: Automatically backing up only the GitLab SQL database (excluding everything else!)
Dumping database ...
Dumping PostgreSQL database gitlabhq_production ... pg_dump: server version: 9.4.10; pg_dump version: 9.2.18
pg_dump: aborting because of server version mismatch
[FAILED]
Backup 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:
dpkg: error processing archive /var/cache/apt/archives/gitlab-ce_8.17.0-ce.0_amd64.deb (--unpack):
subprocess new pre-installation script returned error exit status 1
I see in embedded/postgresql/ subdirectories for version 9.2.18 and 9.6.1. debian's version is 9.4. Can I assume gitlab is attempting to upgrade from its own 9.2 to its own 9.6, and terminating because it detects that the available pg_dump is (debian's) 9.4?
What's my best path forward given that I want to stay with debian's version of postgresql? Would I be better off installing another (non-omnibus) version of gitlab?