Hi all
I’m updating Gitlab EE from 10.6 to 10.8 on RHEL 7.6 and having some trouble doing so.
The yum update command completes fine, and the site then returns 502 errors when accessed through the browser.
gitlab-ctl restart doesn’t fix it, so I’m trying gitlab-ctl reconfigure instead
This fails on the step bash[mirate gitlab-rails database] giving an error
rake aborted!
ActiveRecord::DuplicateMigrationNameError:
Multiple migrations have the name CreateGeoUploadDeletedEvents
/opt/gitlab/embedded/service/gitlab-rails/lib/tasks/gitlab/db.rake:50:in `block (3 levels) in <top (required)>'
/opt/gitlab/embedded/bin/bundle:23:in `load'
/opt/gitlab/embedded/bin/bundle:23:in `<main>'
Tasks: TOP => db:migrate
I managed to track down the files that it’s got duplicates of - one set of the .rb files (for example 20170614053336_create_geo_repository_deleted_events.rb ) was in /opt/gitlab/embedded/service/gitlab-rails/ee/db/migrate/ and another set in /opt/gitlab/embedded/service/gitlab-rails/db/migrate
Copied both sets of the .rb files out of those directories and re-ran gitlab-ctl reconfigure which now produces the following error
rake aborted!
TypeError: no implicit conversion of Pathname into String
/opt/gitlab/embedded/service/gitlab-rails/lib/tasks/migrate/add_limits_mysql.rake:1:in `<top (required)>'
/opt/gitlab/embedded/service/gitlab-rails/Rakefile:10:in `<top (required)>'
/opt/gitlab/embedded/bin/bundle:23:in `load'
/opt/gitlab/embedded/bin/bundle:23:in `<main>'
I’ve seen similar error messages on here re TypeError: no implicit conversion of Pathname into String associated with settings in the gitlab.rb file, but mine seems to conform to the recommended format (and are commented out anyway) as below
# git_data_dirs({
# "default" => {
# "path" => "/mnt/nfs-01/git-data"
# }
# })
I then changed my /etc/gitlab/gitlab.rb file to explicitly define the path for git_data_dirs, as below
git_data_dirs({
"default" => {
"path" => "/var/opt/gitlab/git-data"
}
})
Re-ran gitlab-ctl reconfigure and get the same error
STDOUT: rake aborted!
TypeError: no implicit conversion of Pathname into String
/opt/gitlab/embedded/service/gitlab-rails/lib/tasks/migrate/add_limits_mysql.rake:1:in `<top (required)>'
/opt/gitlab/embedded/service/gitlab-rails/Rakefile:10:in `<top (required)>'
/opt/gitlab/embedded/bin/bundle:23:in `load'
/opt/gitlab/embedded/bin/bundle:23:in `<main>'
(See full trace by running task with --trace)
I’m sure i’m missing something obvious here, but can’t for the life of me figure out what!
Thanks
Daniel