Cannot create projects after restore
Summary
After restoring a backup to your existing instance, you can no longer create new projects in GitLab unless you first clear the gitaly repository storage prior to the restore.
It looks like this was caused a while back when we removed the step that deletes all gitaly repos from restore: !18390 (merged)
Steps to reproduce
- Take a backup of a running instance
- Create a new project and ensure it has a repository by adding a file
- Restore the backup to the same instance
- Try to create a new project
Example Project
From gitlab-org/charts/gitlab#2553 (closed) we've been seeing this error for months whenever we run the tests multiple times against the same environment. (The environment does a restore of know state prior to running tests)
What is the current bug behavior?
Regardless of the name of your new project, it will try to use the hashed storage location based on project id, which will match the already existing hashed location from you had created after the backup/prior to the restore.
What is the expected correct behavior?
During the restore, old repositories should have been deleted from gitaly.