Hi I am in the process of upgrading gitlab but i want to do the upgrade as a test on a vm. I have installed the same version of gitlab on this vm and have backed up the relevant files from our live server. Now I am trying to restore to this server using the command below and I get an error. Is it something i am missing?
sudo gitlab-rake gitlab:backup:restore BACKUP=1612443980_2021_02_04
Do you want to continue (yes/no)? yes
Removing all tables. Press Ctrl-C
within 5 seconds to abort
Cleaning the database …
rake aborted!
PG::ConnectionBad: could not connect to server: No such file or directory
Is the server running locally and accepting
connections on Unix domain socket “/var/opt/gitlab/postgresql/.s.PGSQL.5432”?
/opt/gitlab/embedded/service/gitlab-rails/lib/tasks/gitlab/db.rake:27:in block (3 levels) in <top (required)>' /opt/gitlab/embedded/service/gitlab-rails/lib/tasks/gitlab/backup.rake:51:in
block (3 levels) in <top (required)>’
/opt/gitlab/embedded/bin/bundle:22:in load' /opt/gitlab/embedded/bin/bundle:22:in
’
Tasks: TOP => gitlab:db:drop_tables
(See full trace by running task with --trace)