Skip to content

package_to_helm: storage not found

I have :

  • gitlab_Omnibus_Docker 14.10.5
  • gitlab_Helm 14.10.5

I do the migration in the following steps

https://docs.gitlab.com/charts/installation/migration/package_to_helm.html

For gitlab_Omnibus , there are settings like this:

git_data_dirs({
  'default' => {
    'path' => '/mnt/vol/gitlab/git-data'
  },
  'storage' => {
    'path' => '/mnt/vol1/gitlab/git-data'
  },
})

toolbox gives an error when I try to restore a backup

DONE]
2023-02-08 13:06:13 +0000 -- Restoring database ... done
2023-02-08 13:06:23 +0000 -- Restoring repositories ...
rake aborted!
storage not found: "storage"
/srv/gitlab/lib/gitlab/gitaly_client.rb:96:in `address'
/srv/gitlab/lib/gitlab/gitaly_client.rb:115:in `connection_data'
/srv/gitlab/lib/backup/gitaly_backup.rb:75:in `schedule_backup_job'
/srv/gitlab/lib/backup/gitaly_backup.rb:66:in `enqueue'
/srv/gitlab/lib/backup/repositories.rb:56:in `enqueue_project'
/srv/gitlab/lib/backup/repositories.rb:47:in `block in enqueue_consecutive_projects'
/srv/gitlab/vendor/bundle/ruby/2.7.0/gems/activerecord-6.1.4.7/lib/active_record/relation/batches.rb:71:in `block (2 levels) in find_each'
/srv/gitlab/vendor/bundle/ruby/2.7.0/gems/activerecord-6.1.4.7/lib/active_record/relation/batches.rb:71:in `each'
/srv/gitlab/vendor/bundle/ruby/2.7.0/gems/activerecord-6.1.4.7/lib/active_record/relation/batches.rb:71:in `block in find_each'
/srv/gitlab/vendor/bundle/ruby/2.7.0/gems/activerecord-6.1.4.7/lib/active_record/relation/batches.rb:138:in `block in find_in_batches'
/srv/gitlab/vendor/bundle/ruby/2.7.0/gems/activerecord-6.1.4.7/lib/active_record/relation/batches.rb:245:in `block in in_batches'
/srv/gitlab/vendor/bundle/ruby/2.7.0/gems/activerecord-6.1.4.7/lib/active_record/relation/batches.rb:229:in `loop'
/srv/gitlab/vendor/bundle/ruby/2.7.0/gems/activerecord-6.1.4.7/lib/active_record/relation/batches.rb:229:in `in_batches'
/srv/gitlab/vendor/bundle/ruby/2.7.0/gems/activerecord-6.1.4.7/lib/active_record/relation/batches.rb:137:in `find_in_batches'
/srv/gitlab/vendor/bundle/ruby/2.7.0/gems/activerecord-6.1.4.7/lib/active_record/relation/batches.rb:70:in `find_each'
/srv/gitlab/lib/backup/repositories.rb:46:in `enqueue_consecutive_projects'
/srv/gitlab/lib/backup/repositories.rb:41:in `enqueue_consecutive'
/srv/gitlab/lib/backup/repositories.rb:27:in `restore'
/srv/gitlab/lib/backup/manager.rb:128:in `run_restore_task'
/srv/gitlab/lib/tasks/gitlab/backup.rake:29:in `block (4 levels) in <main>'
/srv/gitlab/vendor/bundle/ruby/2.7.0/gems/sentry-ruby-core-5.1.1/lib/sentry/rake.rb:26:in `execute'
/srv/gitlab/vendor/bundle/ruby/2.7.0/gems/rake-13.0.6/exe/rake:27:in `<top (required)>'
/srv/gitlab/bin/bundle:5:in `load'
/srv/gitlab/bin/bundle:5:in `<main>'
Tasks: TOP => gitlab:backup:repo:restore
(See full trace by running task with --trace)
    command terminated with exit code 1
To upload designs, you'll need to enable LFS and have an admin enable hashed storage. More information