Upgrade from 17.11.2 to 18.0 failed
Problem to solve
Upgrade failed because:
Running scriptlet: gitlab-ce-18.0.0-ce.0.el9.x86_64 1/2
-
git_data_dirs has been deprecated since 17.8 and was removed in 18.0. Seehttps://docs.gitlab.com/omnibus/settings/configuration.html#migrating-from-git_data_dirs`` for migration instructions. Deprecations found. Please correct them and try again. error: %prein(gitlab-ce-18.0.0-ce.0.el9.x86_64) scriptlet failed, exit status 1``
Error in PREIN scriptlet in rpm package gitlab-ce
Verifying : gitlab-ce-18.0.0-ce.0.el9.x86_64 1/2
Verifying : gitlab-ce-17.11.2-ce.0.el9.x86_64 2/2
Workaround with marking migration complete didn't help.
Configuration
I have following configration item in /etc/gitlab/gitlab.rb (self-hosted Gitlab instance):
gitaly['configuration'] = { storage: [ { name: 'default', path: '/var/opt/gitlab/git-data/repositories', }, ], }
Steps to reproduce
dnf update
Versions
Self-hosted 17.11.2
CentOS 9 Stream
Edited by Maksym Domin