My pmnibus gitlab running version 13.8.4 on ubuntu 18.04 . I am trying to upgrade my omnibus git into 13.11.2 but facing bellow error. what can I do?
Running handlers:
There was an error running gitlab-ctl reconfigure:
bash[migrate gitlab-rails database] (gitlab::database_migrations line 70) had an error: Mixlib::ShellOut::ShellCommandFailed: Expected process to exit with [0], but received ‘1’
---- Begin output of “bash” “/tmp/chef-script20210430-28469-189b2tj” ----
STDOUT: rake aborted!
PG::ConnectionBad: could not connect to server: No route to host
Is the server running on host “10.33.30.55” and accepting
TCP/IP connections on port 5432?
/opt/gitlab/embedded/service/gitlab-rails/lib/tasks/gitlab/db.rake:60:in block (3 levels) in <top (required)>' /opt/gitlab/embedded/bin/bundle:23:in load’
/opt/gitlab/embedded/bin/bundle:23:in `’
Tasks: TOP => gitlab:db:configure
(See full trace by running task with --trace)
STDERR:
---- End output of “bash” “/tmp/chef-script20210430-28469-189b2tj” ----
Ran “bash” “/tmp/chef-script20210430-28469-189b2tj” returned 1
Running handlers complete
Chef Infra Client failed. 0 resources updated in 01 minutes 28 seconds
There was an error running gitlab-ctl reconfigure. Please check the output above for more
details.
dpkg: error processing package gitlab-ce (–configure):
installed gitlab-ce package post-installation script subprocess returned error exit status 1
Did you stop gitlab before attempting the upgrade? If you did, then that would be the mistake, since Gitlab will stop the services itself and leave services like postgres running so that the migrate tasks can be completed.
and then dpkg --configure -a wrote it the wrong away around for the gitlab-ctl command. Once it has finished, and all gitlab services have started it can take a few minutes to stabilise before web interface will be ready.