Skip to content

pg-upgrade Checking if we already upgraded: NOT OK

Summary

pg-upgrade returning Checking if we already upgraded: NOT OK during upgrade even when upgrade has not yet been done and then continue to be successfully completed

Steps to reproduce

Run sudo gitlab-ctl pg-upgrade

What is the current bug behavior?

Returning Checking if we already upgraded: NOT OK

What is the expected correct behavior?

Return Checking if we already upgraded: OK if upgrade not yet completed

Relevant logs

Relevant logs
[me@server /]$ sudo gitlab-ctl pg-upgrade
Checking for an omnibus managed postgresql: OK
Checking for a newer version of PostgreSQL to install
Upgrading PostgreSQL to 10.7
Checking if we already upgraded: NOT OK
Checking if PostgreSQL bin files are symlinked to the expected location: OK
Waiting 30 seconds to ensure tasks complete before PostgreSQL upgrade.
See https://docs.gitlab.com/omnibus/settings/database.html#upgrade-packaged-postgresql-server for details
If you do not want to upgrade the PostgreSQL server at this time, enter Ctrl-C and see the documentation for details

Please hit Ctrl-C now if you want to cancel the operation. Toggling deploy page:cp /opt/gitlab/embedded/service/gitlab-rails/public/deploy.html /opt/gitlab/embedded/service/gitlab-rails/public/index.html Toggling deploy page: OK Toggling services:ok: down: alertmanager: 0s, normally up, want up ok: down: gitaly: 0s, normally up ok: down: gitlab-monitor: 0s, normally up ok: down: gitlab-pages: 1s, normally up ok: down: grafana: 0s, normally up ok: down: logrotate: 1s, normally up ok: down: mailroom: 0s, normally up ok: down: node-exporter: 1s, normally up ok: down: postgres-exporter: 0s, normally up ok: down: prometheus: 1s, normally up ok: down: redis-exporter: 0s, normally up ok: down: registry: 1s, normally up ok: down: sidekiq: 0s, normally up Toggling services: OK Stopping the database:ok: down: postgresql: 0s, normally up Stopping the database: OK Symlink correct version of binaries: OK Creating temporary data directory: OK Initializing the new database: OK Upgrading the data: OK Move the old data directory out of the way: OK Rename the new data directory: OK Upgrade is complete, doing post configuration steps Running reconfigure to re-generate PG configuration

Details of package version

Provide the package version installation details
gitlab-ce-12.1.3-ce.0.el6.x86_64

Environment details

  • Operating System: RHEL 6.10
  • Installation Target: VM
  • Installation Type: upgrade

Configuration details

Provide the relevant sections of `/etc/gitlab/gitlab.rb`