Gitlab upgrade failed 12.9.5 CE to 13.3
While upgrading gitlab CE form 12.9.5 to 13.3 , I am getting following error:
gitlab-ams004-13.0.2 | Recipe: gitlab::database_migrations
gitlab-ams004-13.0.2 | * bash[migrate gitlab-rails database] action run
gitlab-ams004-13.0.2 | [execute] rake aborted!
gitlab-ams004-13.0.2 | PG::ConnectionBad: could not connect to server: No such file or directory
gitlab-ams004-13.0.2 | Is the server running locally and accepting
gitlab-ams004-13.0.2 | connections on Unix domain socket "/var/opt/gitlab/postgresql/.s.PGSQL.5432"?
gitlab-ams004-13.0.2 | /opt/gitlab/embedded/service/gitlab-rails/lib/tasks/gitlab/db.rake:48:in block (3 levels) in <top (required)>' gitlab-ams004-13.0.2 | /opt/gitlab/embedded/bin/bundle:23:in
load'
gitlab-ams004-13.0.2 | /opt/gitlab/embedded/bin/bundle:23:in <main>' gitlab-ams004-13.0.2 | Tasks: TOP => gitlab:db:configure gitlab-ams004-13.0.2 | (See full trace by running task with --trace) gitlab-ams004-13.0.2 | gitlab-ams004-13.0.2 | ================================================================================ gitlab-ams004-13.0.2 | Error executing action
runon resource 'bash[migrate gitlab-rails database]' gitlab-ams004-13.0.2 | ================================================================================ gitlab-ams004-13.0.2 | gitlab-ams004-13.0.2 | Mixlib::ShellOut::ShellCommandFailed gitlab-ams004-13.0.2 | ------------------------------------ gitlab-ams004-13.0.2 | Expected process to exit with [0], but received '1' gitlab-ams004-13.0.2 | ---- Begin output of "bash" "/tmp/chef-script20200916-22-1puttsz" ---- gitlab-ams004-13.0.2 | STDOUT: rake aborted! gitlab-ams004-13.0.2 | PG::ConnectionBad: could not connect to server: No such file or directory gitlab-ams004-13.0.2 | Is the server running locally and accepting gitlab-ams004-13.0.2 | connections on Unix domain socket "/var/opt/gitlab/postgresql/.s.PGSQL.5432"? gitlab-ams004-13.0.2 | /opt/gitlab/embedded/service/gitlab-rails/lib/tasks/gitlab/db.rake:48:in
block (3 levels) in <top (required)>'
gitlab-ams004-13.0.2 | /opt/gitlab/embedded/bin/bundle:23:in load' gitlab-ams004-13.0.2 | /opt/gitlab/embedded/bin/bundle:23:in
'
gitlab-ams004-13.0.2 | Tasks: TOP => gitlab:db:configure
gitlab-ams004-13.0.2 | (See full trace by running task with --trace)