Cannot create project: Name has already been taken, Path has already been taken
Summary
Trying to create a new project in a group we consistently get the form validation error. "Name has already been taken, Path has already been taken"
We attempted to import this project from an export from another Gitlab instance and ran into PG::UniqueViolation errors as described in https://gitlab.com/gitlab-org/gitlab-ce/issues/23475
Requested work-around: Is there a way to manually clean up (remove) whatever stale data is triggering this validation error? Is there any other known work-around to create a new repository with the same name?
There are no pending background jobs in /admin/background_jobs
Steps to reproduce
With Gitlab CE 8.14.1 on EL-7
- Create a project in a group, e.g. puppet/control-repo
- Add one or more merge requests which run CI Jobs.
- Export the project
- Import the project into another Gitlab CE 8.14.1 instance. Observe the import fails on "bad decrypt" https://gitlab.com/gitlab-org/gitlab-ce/issues/24458
- Delete the project partially created from the import.
- Try to re-create the project as a bare repository using the normal "New Project" button from the group page.
- Observe the Form validation error, Name has already been taken, Path has already been taken
Expected behavior
New project should be created successfully.
Actual behavior
New project is not created.
Relevant logs and/or screenshots
I'm happy to attach logs, but I'd like some help knowing which logs to look in for this error.
Output of checks
Results of GitLab application Check
(For installations with omnibus-gitlab package run and paste the output of:
sudo gitlab-rake gitlab:check SANITIZE=true
)
gitlab-rake gitlab:check SANITIZE=true
Checking GitLab Shell ...
GitLab Shell version >= 4.0.0 ? ... OK (4.0.0)
Repo base directory exists?
default... yes
Repo storage directories are symlinks?
default... no
Repo paths owned by git:git?
default... no
User id for git: 996. Groupd id for git: 994
Try fixing it:
sudo chown -R git:git /var/opt/gitlab/git-data/repositories
For more information see:
doc/install/installation.md in section "GitLab Shell"
Please fix the error above and rerun the checks.
Repo paths access is drwxrws---?
default... yes
hooks directories in repos are links: ...
4/4 ... ok
4/5 ... ok
4/7 ... ok
Running /opt/gitlab/embedded/service/gitlab-shell/bin/check
Check GitLab API access: OK
Access to /var/opt/gitlab/.ssh/authorized_keys: OK
Send ping to redis server: OK
gitlab-shell self-check successful
Checking GitLab Shell ... Finished
Checking Sidekiq ...
Running? ... yes
Number of Sidekiq processes ... 1
Checking Sidekiq ... Finished
Checking Reply by email ...
Reply by email is disabled in config/gitlab.yml
Checking Reply by email ... Finished
Checking LDAP ...
Server: ldapmain
LDAP authentication... Success
LDAP users with access to your GitLab server (only showing the first 100 results)
DN: REDACTED
Checking LDAP ... Finished
Checking GitLab ...
Git configured with autocrlf=input? ... yes
Database config exists? ... yes
All migrations up? ... yes
Database contains orphaned GroupMembers? ... no
GitLab config exists? ... yes
GitLab config outdated? ... no
Log directory writable? ... yes
Tmp directory writable? ... yes
Uploads directory setup correctly? ... no
Try fixing it:
sudo chown -R git /var/opt/gitlab/gitlab-rails/uploads
sudo find /var/opt/gitlab/gitlab-rails/uploads -type f -exec chmod 0644 {} \;
sudo find /var/opt/gitlab/gitlab-rails/uploads -type d -not -path /var/opt/gitlab/gitlab-rails/uploads -exec chmod 0700 {} \;
For more information see:
doc/install/installation.md in section "GitLab"
Please fix the error above and rerun the checks.
Init script exists? ... skipped (omnibus-gitlab has no init script)
Init script up-to-date? ... skipped (omnibus-gitlab has no init script)
projects have namespace: ...
4/4 ... yes
4/5 ... yes
4/7 ... yes
Redis version >= 2.8.0? ... yes
Ruby version >= 2.1.0 ? ... yes (2.3.1)
Your git bin path is "/opt/gitlab/embedded/bin/git"
Git version >= 2.7.3 ? ... yes (2.7.4)
Active users: 3
Results of GitLab environment info
(For installations with omnibus-gitlab package run and paste the output of:
sudo gitlab-rake gitlab:env:info
)
System information
System:
Current User: git
Using RVM: no
Ruby Version: 2.3.1p112
Gem Version: 2.6.6
Bundler Version:1.13.6
Rake Version: 10.5.0
Sidekiq Version:4.2.1
GitLab information
Version: 8.14.1
Revision: e45bf3d
Directory: /opt/gitlab/embedded/service/gitlab-rails
DB Adapter: postgresql
URL: http://gitlab01a.inf.utshare.local
HTTP Clone URL: http://gitlab01a.inf.utshare.local/some-group/some-project.git
SSH Clone URL: git@gitlab01a.inf.utshare.local:some-group/some-project.git
Using LDAP: yes
Using Omniauth: no
GitLab Shell
Version: 4.0.0
Repository storage paths:
- default: /var/opt/gitlab/git-data/repositories
Hooks: /opt/gitlab/embedded/service/gitlab-shell/hooks/
Git: /opt/gitlab/embedded/bin/git
Possible fixes
Unknown.