Omnibus erronenously warns about hashed storage migration if database is down
I attempted to upgrade to a custom branch:
$ sudo dpkg -i gitlab.deb
(Reading database ... 443864 files and directories currently installed.)
Preparing to unpack gitlab.deb ...
gitlab preinstall:
gitlab preinstall: This node does not appear to be running a database
gitlab preinstall: Skipping version check, if you think this is an error exit now
gitlab preinstall:
gitlab preinstall:
gitlab preinstall: Legacy storage is no longer supported. Please migrate your data to hashed storage.
gitlab preinstall: Check https://docs.gitlab.com/ee/administration/raketasks/storage.html#migrate-to-hashed-storage for details.
gitlab preinstall:
gitlab preinstall: Upgrade failed. Retry the upgrade after migrating your data to hashed storage.
dpkg: error processing archive gitlab.deb (--install):
new gitlab-ee package pre-installation script subprocess returned error exit status 1
Errors were encountered while processing:
gitlab.deb
Then I checked:
$ sudo gitlab-rake gitlab:storage:migrate_to_hashed
There are no projects requiring storage migration. Nothing to do!
Edited by Stan Hu