Installing/upgrading GitLab messes up access rights of db/geo/schema.rb
See this Sentry error: https://sentry.gitlap.com/gitlab/geo2/issues/114306/
/opt/gitlab/embedded/service/gitlab-rails/lib/gitlab/git/repository.rb:24: warning: already initialized constant Gitlab::Git::Repository::GITALY_INTERNAL_URL
/opt/gitlab/embedded/service/gitlab-rails/lib/gitlab/git/repository.rb:21: warning: previous definition of GITALY_INTERNAL_URL was here
rake aborted!
Errno::EACCES: Permission denied @ rb_sysopen - db/geo/schema.rb
/opt/gitlab/embedded/service/gitlab-rails/lib/gitlab/geo/database_tasks.rb:62:in `initialize'
/opt/gitlab/embedded/service/gitlab-rails/lib/gitlab/geo/database_tasks.rb:62:in `open'
/opt/gitlab/embedded/service/gitlab-rails/lib/gitlab/geo/database_tasks.rb:62:in `block in dump'
/opt/gitlab/embedded/service/gitlab-rails/lib/gitlab/geo/database_tasks.rb:169:in `with_geo_db'
/opt/gitlab/embedded/service/gitlab-rails/lib/gitlab/geo/database_tasks.rb:60:in `dump'
/opt/gitlab/embedded/service/gitlab-rails/lib/tasks/geo.rake:105:in `block (4 levels) in <top (required)>'
/opt/gitlab/embedded/service/gitlab-rails/lib/tasks/geo.rake:77:in `block (3 levels) in <top (required)>'
/opt/gitlab/embedded/service/gitlab-rails/lib/tasks/geo.rake:28: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 => geo:db:schema:dump
(See full trace by running task with --trace)
In gitlab-ctl reconfigure
it's already chown
ing it, but that does not run when GitLab updated.