Hi all,
1st of all, I must admitt I am a totally noob in gitlab.
I made a lot of search and I have an issue.
My devs are using Gitlab on an old Ubuntu 14.04 server
Gitlab is 10.4.1
I want to migrate this one on a centos 7 server, enable https, sso, …
I maybe wanted to do it quickly, so I create my new server and install the latest gitlab-ce version.
I configure all I need and the new server works perfectly.
BUT, I saw (too late, of course) I couldn’t migrate from an older version.
No problem, the documentation explain how to downgrade, so I unistall the gitlab version and install the gitlab-ce-10.4.1-ce.0.el7
But I cannot restore the backup.
when I run the reconfigure I have this error :
Running handlers:
There was an error running gitlab-ctl reconfigure:
bash[migrate gitlab-rails database] (gitlab::database_migrations line 51) had an error: Mixlib::ShellOut::ShellCommandFailed: Expected process to exit with [0], but received ‘1’
---- Begin output of “bash” “/tmp/chef-script20220624-5712-10wquzf” ----
STDOUT: 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:49: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-script20220624-5712-10wquzf” ----
Ran “bash” “/tmp/chef-script20220624-5712-10wquzf” returned 1
and when I try to restore the database I have this :
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:52: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:drop_tables
(See full trace by running task with --trace)
I think the issue is because of the postgres version, but it’s just a thought…
How can I solve this, keep my config and migrate db, then upgrade Gitlab.
If anyone can help me, would be great.
thank you