Project Creation: Namespace is not valid
Summary
After upgrading from 13.0.4 to 13.1.3, I'm not able anymore to create a project.
Steps to reproduce
n\a
What is the current bug behavior?
- Selecting any groups the "New Project" button is disappeared; only "New subgroup" button is visible
- Only from Admin Area, "New Project" button is available, but selecting any group (also a new group) as namespace, the New Project Creation fails with the error "The form contains the following error: Namespace is not valid"
What is the expected correct behavior?
- Selecting any groups the "New Project" button is visible
- Selecting any group as namespace, the New Project creation successed without error
Relevant logs and/or screenshots
# grep -r test-project-creation *
gitaly/current:{"correlation_id":"8C3JjDbT6I6","error":"rpc error: code = NotFound desc = GetRepoPath: not a git repository '/var/opt/gitlab/git-data/repositories/test-project-creation.git'","grpc.code":"NotFound","grpc.meta.auth_version":"v2","grpc.meta.client_name":"gitlab-web","grpc.meta.deadline_type":"regular","grpc.method":"FindDefaultBranchName","grpc.request.deadline":"2020-07-08T10:29:59Z","grpc.request.fullMethod":"/gitaly.RefService/FindDefaultBranchName","grpc.request.glProjectPath":"test-project-creation","grpc.request.glRepository":"project-","grpc.request.repoPath":"test-project-creation.git","grpc.request.repoStorage":"default","grpc.request.topLevelGroup":"","grpc.service":"gitaly.RefService","grpc.start_time":"2020-07-08T10:29:49Z","grpc.time_ms":0.17,"level":"info","msg":"finished unary call with code NotFound","peer.address":"@","pid":28259,"span.kind":"server","system":"grpc","time":"2020-07-08T10:29:49.036Z"}
gitaly/current:{"correlation_id":"8C3JjDbT6I6","grpc.code":"OK","grpc.meta.auth_version":"v2","grpc.meta.client_name":"gitlab-web","grpc.meta.deadline_type":"regular","grpc.method":"RepositoryExists","grpc.request.deadline":"2020-07-08T10:29:59Z","grpc.request.fullMethod":"/gitaly.RepositoryService/RepositoryExists","grpc.request.glProjectPath":"test-project-creation","grpc.request.glRepository":"project-","grpc.request.repoPath":"test-project-creation.git","grpc.request.repoStorage":"default","grpc.request.topLevelGroup":"","grpc.service":"gitaly.RepositoryService","grpc.start_time":"2020-07-08T10:29:49Z","grpc.time_ms":0.036,"level":"info","msg":"finished unary call with code OK","peer.address":"@","pid":28259,"span.kind":"server","system":"grpc","time":"2020-07-08T10:29:49.037Z"}
gitlab-rails/production.log: Parameters: {"utf8"=>"✓", "authenticity_token"=>"[FILTERED]", "project"=>{"ci_cd_only"=>"false", "name"=>"test-project-creation", "namespace_id"=>"347", "path"=>"test-project-creation", "description"=>"[FILTERED]", "visibility_level"=>"0", "initialize_with_readme"=>"1"}}
gitlab-rails/production_json.log:{"method":"POST","path":"/projects","format":"html","controller":"ProjectsController","action":"create","status":200,"time":"2020-07-08T10:29:49.057Z","params":[{"key":"utf8","value":"✓"},{"key":"authenticity_token","value":"[FILTERED]"},{"key":"project","value":{"ci_cd_only":"false","name":"test-project-creation","namespace_id":"347","path":"test-project-creation","description":"[FILTERED]","visibility_level":"0","initialize_with_readme":"1"}}],"remote_ip":"10.2.251.63","user_id":2,"username":"Beninia","ua":"Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/83.0.4103.116 Safari/537.36","correlation_id":"8C3JjDbT6I6","meta.user":"Beninia","meta.caller_id":"ProjectsController#create","gitaly_calls":2,"gitaly_duration_s":0.002412,"redis_calls":17,"redis_duration_s":0.002512,"redis_read_bytes":1573,"redis_write_bytes":2765,"redis_cache_calls":16,"redis_cache_duration_s":0.002324,"redis_cache_read_bytes":1392,"redis_cache_write_bytes":2181,"redis_shared_state_calls":1,"redis_shared_state_duration_s":0.000188,"redis_shared_state_read_bytes":181,"redis_shared_state_write_bytes":584,"cpu_s":0.14,"db_duration_s":0.01422,"view_duration_s":0.10332,"duration_s":0.14249}
Results of GitLab environment info
Expand for output related to the GitLab environment info
System information System: Current User: git Using RVM: no Ruby Version: 2.6.6p146 Gem Version: 2.7.10 Bundler Version:1.17.3 Rake Version: 12.3.3 Redis Version: 5.0.9 Git Version: 2.27.0 Sidekiq Version:5.2.7 Go Version: unknown
GitLab information Version: 13.1.3 Revision: 8411f47246f Directory: /opt/gitlab/embedded/service/gitlab-rails DB Adapter: PostgreSQL DB Version: 11.7 URL: https://gitlab.int.master.lan HTTP Clone URL: https://gitlab.int.master.lan/some-group/some-project.git SSH Clone URL: git@gitlab.int.master.lan:some-group/some-project.git Using LDAP: yes Using Omniauth: yes Omniauth Providers:
GitLab Shell Version: 13.3.0 Repository storage paths:
- default: /var/opt/gitlab/git-data/repositories GitLab Shell path: /opt/gitlab/embedded/service/gitlab-shell Git: /opt/gitlab/embedded/bin/git
Results of GitLab application Check
Expand for output related to the GitLab application check
Checking GitLab subtasks ...
Checking GitLab Shell ...
GitLab Shell: ... GitLab Shell version >= 13.3.0 ? ... OK (13.3.0) Running /opt/gitlab/embedded/service/gitlab-shell/bin/check Internal API available: OK Redis available via internal API: OK gitlab-shell self-check successful
Checking GitLab Shell ... Finished
Checking Gitaly ...
Gitaly: ... default ... OK
Checking Gitaly ... Finished
Checking Sidekiq ...
Sidekiq: ... Running? ... yes Number of Sidekiq processes ... 1
Checking Sidekiq ... Finished
Checking Incoming Email ...
Incoming Email: ... Reply by email is disabled in config/gitlab.yml
Checking Incoming Email ... Finished
Checking LDAP ...
LDAP: ... Server: ldapmain LDAP authentication... Success LDAP users with access to your GitLab server (only showing the first 100 results) User output sanitized. Found 100 users of 100 limit.
Checking LDAP ... Finished
Checking GitLab App ...
Git configured correctly? ... yes Database config exists? ... yes All migrations up? ... yes Database contains orphaned GroupMembers? ... no GitLab config exists? ... yes GitLab config up to date? ... yes Log directory writable? ... yes Tmp directory writable? ... yes Uploads directory exists? ... yes Uploads directory has correct permissions? ... yes Uploads directory tmp has correct permissions? ... yes 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: ... 24/1 ... yes 24/3 ... yes 24/5 ... yes 24/6 ... yes 25/8 ... yes 25/13 ... yes 24/14 ... yes 24/15 ... yes 25/16 ... yes 24/17 ... yes 24/18 ... yes 24/19 ... yes 26/20 ... yes 26/21 ... yes 26/22 ... yes 26/23 ... yes 26/24 ... yes 24/25 ... yes 24/26 ... yes 24/27 ... yes 24/28 ... yes 45/29 ... yes 24/30 ... yes 24/31 ... yes 24/32 ... yes 24/33 ... yes 24/34 ... yes 24/36 ... yes 24/37 ... yes 24/38 ... yes 24/39 ... yes 24/40 ... yes 89/49 ... yes 89/50 ... yes 89/52 ... yes 89/53 ... yes 89/54 ... yes 89/58 ... yes 89/59 ... yes 89/60 ... yes 89/62 ... yes 89/64 ... yes 89/65 ... yes 114/66 ... yes 89/67 ... yes 114/68 ... yes 114/69 ... yes 89/70 ... yes 24/71 ... yes 24/72 ... yes 24/73 ... yes 26/74 ... yes 24/75 ... yes 24/76 ... yes 89/77 ... yes 45/78 ... yes 45/79 ... yes 45/80 ... yes 45/81 ... yes 45/82 ... yes 45/83 ... yes 45/84 ... yes 45/85 ... yes 45/86 ... yes 45/87 ... yes 45/88 ... yes 45/89 ... yes 45/90 ... yes 45/91 ... yes 45/92 ... yes 268/93 ... yes 179/94 ... yes 184/95 ... yes 45/96 ... yes 24/97 ... yes 24/98 ... yes 90/99 ... yes 209/100 ... yes 209/101 ... yes 209/102 ... yes 24/103 ... yes 25/104 ... yes 25/105 ... yes 24/106 ... yes 24/107 ... yes 24/108 ... yes 89/109 ... yes 89/110 ... yes 89/111 ... yes 89/112 ... yes 45/113 ... yes 45/114 ... yes 24/115 ... yes 24/116 ... yes 45/117 ... yes 45/118 ... yes 268/120 ... yes 247/121 ... yes 289/122 ... yes 247/123 ... yes 247/124 ... yes 89/125 ... yes 45/126 ... yes 24/127 ... yes 268/128 ... yes 89/129 ... yes 89/130 ... yes 268/131 ... yes 89/132 ... yes 89/133 ... yes 45/134 ... yes 45/135 ... yes 256/136 ... yes 289/137 ... yes 289/138 ... yes 45/139 ... yes 45/140 ... yes 268/141 ... yes 268/142 ... yes 24/143 ... yes 268/144 ... yes 45/145 ... yes 45/146 ... yes 45/147 ... yes 26/148 ... yes 319/149 ... yes 328/150 ... yes 328/151 ... yes 322/152 ... yes 322/153 ... yes 322/154 ... yes 322/155 ... yes 321/156 ... yes 321/157 ... yes 321/158 ... yes 323/159 ... yes 323/160 ... yes 324/161 ... yes 324/162 ... yes 325/163 ... yes 325/164 ... yes 327/165 ... yes 327/166 ... yes 327/167 ... yes 25/168 ... yes 45/169 ... yes 24/170 ... yes 342/171 ... yes 342/172 ... yes 342/173 ... yes Redis version >= 4.0.0? ... yes Ruby version >= 2.5.3 ? ... yes (2.6.6) Git version >= 2.22.0 ? ... yes (2.27.0) Git user has default SSH configuration? ... yes Active users: ... 298 Is authorized keys file accessible? ... yes GitLab configured to store new projects in hashed storage? ... yes All projects are in hashed storage? ... yes
Checking GitLab App ... Finished
Checking GitLab subtasks ... Finished
Possible fixes
No idea