Repository is undeletable
Summary
I created a test project a while ago in my org (running gitlab free on my docker host using omnibus envVar)
Steps to reproduce
I myself am not able to reproduce this on new projects, only this weird one that was the first created in my instance I think has the issue of beeing un-deletable
What is the current bug behavior?
Gitlab says the project has been marked for deletion and will be deleted soon but it keeps showing up, the project has no repository it seems, and I'm unable to initialize one or delete it altogether
What is the expected correct behavior?
project should get deleted and not appear in the org anymore
Relevant logs and/or screenshots
==> /var/log/gitlab/gitlab-rails/production.log <==
Started DELETE "/admin/projects/andromeda/test" for 10.0.30.132 at 2022-01-09 18:53:01 +0100
Processing by Admin::ProjectsController#destroy as HTML
Parameters: {"authenticity_token"=>"[FILTERED]", "projectName"=>"Test", "namespace_id"=>"andromeda", "id"=>"test"}
==> /var/log/gitlab/gitlab-rails/application.log <==
2022-01-09T17:53:01.363Z: User 34 scheduled destruction of project andromeda/test with job ID 1744f873f97920b0adb087fd
==> /var/log/gitlab/gitlab-rails/application_json.log <==
{"severity":"INFO","time":"2022-01-09T17:53:01.363Z","correlation_id":"01FRZZHQBHMG5T5VSJG2F1AT8G","message":"User 34 scheduled destruction of project andromeda/test with job ID 1744f873f97920b0adb087fd"}
==> /var/log/gitlab/gitlab-rails/production.log <==
Redirected to https://gitlab.molinier.io/admin/projects
Completed 302 Found in 53ms (ActiveRecord: 11.5ms | Elasticsearch: 0.0ms | Allocations: 15681)
==> /var/log/gitlab/gitlab-rails/production_json.log <==
{"method":"DELETE","path":"/admin/projects/andromeda/test","format":"html","controller":"Admin::ProjectsController","action":"destroy","status":302,"location":"https://gitlab.molinier.io/admin/projects","time":"2022-01-09T17:53:01.365Z","params":[{"key":"_method","value":"delete"},{"key":"authenticity_token","value":"[FILTERED]"},{"key":"projectName","value":"Test"},{"key":"namespace_id","value":"andromeda"},{"key":"id","value":"test"}],"correlation_id":"01FRZZHQBHMG5T5VSJG2F1AT8G","meta.user":"toxic","meta.project":"andromeda/test","meta.root_namespace":"andromeda","meta.caller_id":"Admin::ProjectsController#destroy","meta.remote_ip":"10.0.30.132","meta.feature_category":"projects","meta.client_id":"user/34","remote_ip":"10.0.30.132","user_id":34,"username":"toxic","ua":"Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:95.0) Gecko/20100101 Firefox/95.0","queue_duration_s":0.011576,"request_urgency":"default","target_duration_s":1,"redis_calls":5,"redis_duration_s":0.001227,"redis_read_bytes":233,"redis_write_bytes":3970,"redis_queues_calls":3,"redis_queues_duration_s":0.000774,"redis_queues_read_bytes":50,"redis_queues_write_bytes":2740,"redis_shared_state_calls":1,"redis_shared_state_duration_s":0.000185,"redis_shared_state_write_bytes":54,"redis_sessions_calls":1,"redis_sessions_duration_s":0.000268,"redis_sessions_read_bytes":183,"redis_sessions_write_bytes":1176,"db_count":13,"db_write_count":3,"db_cached_count":0,"db_replica_count":0,"db_primary_count":13,"db_replica_cached_count":0,"db_primary_cached_count":0,"db_replica_wal_count":0,"db_primary_wal_count":0,"db_replica_wal_cached_count":0,"db_primary_wal_cached_count":0,"db_replica_duration_s":0.0,"db_primary_duration_s":0.013,"cpu_s":0.056201,"mem_objects":20814,"mem_bytes":2536512,"mem_mallocs":4377,"mem_total_bytes":3369072,"pid":22430,"db_duration_s":0.0115,"view_duration_s":0.0,"duration_s":0.05281}
==> /var/log/gitlab/gitlab-rails/production.log <==
Started GET "/admin/projects" for 10.0.30.132 at 2022-01-09 18:53:01 +0100
Processing by Admin::ProjectsController#index as HTML
==> /var/log/gitlab/gitlab-rails/application.log <==
2022-01-09T17:53:01.432Z: Attempting to destroy andromeda/test (34)
==> /var/log/gitlab/gitlab-rails/application_json.log <==
{"severity":"INFO","time":"2022-01-09T17:53:01.432Z","correlation_id":"01FRZZHQBHMG5T5VSJG2F1AT8G","message":"Attempting to destroy andromeda/test (34)"}
==> /var/log/gitlab/gitlab-rails/application.log <==
2022-01-09T17:53:01.546Z: Deletion failed on andromeda/test with the following message: no repository for such path
==> /var/log/gitlab/gitlab-rails/application_json.log <==
{"severity":"ERROR","time":"2022-01-09T17:53:01.546Z","correlation_id":"01FRZZHQBHMG5T5VSJG2F1AT8G","message":"Deletion failed on andromeda/test with the following message: no repository for such path"}
==> /var/log/gitlab/gitlab-rails/production.log <==
Started GET "/api/v4/geo/proxy" for 127.0.0.1 at 2022-01-09 18:53:01 +0100
Rendered layout layouts/admin.html.haml (Duration: 144.3ms | Allocations: 65136)
Completed 200 OK in 162ms (Views: 137.2ms | ActiveRecord: 8.5ms | Elasticsearch: 0.0ms | Allocations: 70382)
==> /var/log/gitlab/gitlab-rails/production_json.log <==
{"method":"GET","path":"/admin/projects","format":"html","controller":"Admin::ProjectsController","action":"index","status":200,"time":"2022-01-09T17:53:01.575Z","params":[],"correlation_id":"01FRZZHQEM8TJTPXPB8RX6VMNH","meta.user":"toxic","meta.caller_id":"Admin::ProjectsController#index","meta.remote_ip":"10.0.30.132","meta.feature_category":"projects","meta.client_id":"user/34","remote_ip":"10.0.30.132","user_id":34,"username":"toxic","ua":"Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:95.0) Gecko/20100101 Firefox/95.0","queue_duration_s":0.010955,"request_urgency":"default","target_duration_s":1,"redis_calls":19,"redis_duration_s":0.006588,"redis_read_bytes":3117,"redis_write_bytes":2192,"redis_cache_calls":17,"redis_cache_duration_s":0.006017,"redis_cache_read_bytes":2806,"redis_cache_write_bytes":962,"redis_shared_state_calls":1,"redis_shared_state_duration_s":0.000244,"redis_shared_state_write_bytes":54,"redis_sessions_calls":1,"redis_sessions_duration_s":0.000327,"redis_sessions_read_bytes":311,"redis_sessions_write_bytes":1176,"db_count":40,"db_write_count":0,"db_cached_count":20,"db_replica_count":0,"db_primary_count":40,"db_replica_cached_count":0,"db_primary_cached_count":20,"db_replica_wal_count":0,"db_primary_wal_count":0,"db_replica_wal_cached_count":0,"db_primary_wal_cached_count":0,"db_replica_duration_s":0.0,"db_primary_duration_s":0.01,"cpu_s":0.167375,"mem_objects":78228,"mem_bytes":7664872,"mem_mallocs":20673,"mem_total_bytes":10793992,"pid":6484,"db_duration_s":0.00852,"view_duration_s":0.13721,"duration_s":0.16259}
==> /var/log/gitlab/gitlab-rails/api_json.log <==
{"time":"2022-01-09T17:53:01.583Z","severity":"INFO","duration_s":0.0025,"db_duration_s":0.0,"view_duration_s":0.0025,"status":200,"method":"GET","path":"/api/v4/geo/proxy","params":[],"host":"localhost","remote_ip":"127.0.0.1","ua":"Go-http-client/1.1","route":"/api/:version/geo/proxy","redis_calls":3,"redis_duration_s":0.000373,"redis_read_bytes":443,"redis_write_bytes":143,"redis_cache_calls":3,"redis_cache_duration_s":0.000373,"redis_cache_read_bytes":443,"redis_cache_write_bytes":143,"db_count":1,"db_write_count":0,"db_cached_count":0,"db_replica_count":0,"db_primary_count":1,"db_replica_cached_count":0,"db_primary_cached_count":0,"db_replica_wal_count":0,"db_primary_wal_count":0,"db_replica_wal_cached_count":0,"db_primary_wal_cached_count":0,"db_replica_duration_s":0.0,"db_primary_duration_s":0.002,"cpu_s":0.013971,"mem_objects":6325,"mem_bytes":1374534,"mem_mallocs":1897,"mem_total_bytes":1627534,"pid":18531,"correlation_id":"95966b8c-7f8a-438f-aebe-de78c5bf2829","meta.caller_id":"GET /api/:version/geo/proxy","meta.remote_ip":"127.0.0.1","meta.feature_category":"geo_replication","meta.client_id":"ip/127.0.0.1","request_urgency":"default","target_duration_s":1}
==> /var/log/gitlab/gitlab-rails/production.log <==
Started GET "/api/v4/namespaces.json?per_page=20" for 10.0.30.132 at 2022-01-09 18:53:02 +0100
Processing by Gitlab::RequestForgeryProtection::Controller#index as HTML
Completed 200 OK in 0ms (ActiveRecord: 0.0ms | Elasticsearch: 0.0ms | Allocations: 85)
==> /var/log/gitlab/gitlab-rails/api_json.log <==
{"time":"2022-01-09T17:53:02.277Z","severity":"INFO","duration_s":0.17554,"db_duration_s":0.0551,"view_duration_s":0.12044,"status":200,"method":"GET","path":"/api/v4/namespaces.json","params":[{"key":"per_page","value":"20"}],"host":"gitlab.molinier.io","remote_ip":"10.0.30.132, 10.0.30.132, 127.0.0.1","ua":"Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:95.0) Gecko/20100101 Firefox/95.0","route":"/api/:version/namespaces","user_id":34,"username":"toxic","queue_duration_s":0.030116,"redis_calls":9,"redis_duration_s":0.005216999999999999,"redis_read_bytes":1235,"redis_write_bytes":2172,"redis_cache_calls":6,"redis_cache_duration_s":0.002561,"redis_cache_read_bytes":1052,"redis_cache_write_bytes":328,"redis_shared_state_calls":2,"redis_shared_state_duration_s":0.001554,"redis_shared_state_write_bytes":162,"redis_sessions_calls":1,"redis_sessions_duration_s":0.001102,"redis_sessions_read_bytes":183,"redis_sessions_write_bytes":1682,"db_count":32,"db_write_count":0,"db_cached_count":0,"db_replica_count":0,"db_primary_count":32,"db_replica_cached_count":0,"db_primary_cached_count":0,"db_replica_wal_count":0,"db_primary_wal_count":0,"db_replica_wal_cached_count":0,"db_primary_wal_cached_count":0,"db_replica_duration_s":0.0,"db_primary_duration_s":0.06,"cpu_s":0.14551,"mem_objects":46134,"mem_bytes":3783718,"mem_mallocs":9391,"mem_total_bytes":5629078,"pid":19922,"correlation_id":"01FRZZHR3Q2NMM0Z5WD6FB24NZ","meta.user":"toxic","meta.caller_id":"GET /api/:version/namespaces","meta.remote_ip":"10.0.30.132","meta.feature_category":"subgroups","meta.client_id":"user/34","request_urgency":"default","target_duration_s":1}
Output of checks
Results of GitLab environment info
Expand for output related to GitLab environment info
root@gitlab:/# gitlab-rake gitlab:env:info System information System: Proxy: no Current User: git Using RVM: no Ruby Version: 2.7.5p203 Gem Version: 3.1.4 Bundler Version:2.1.4 Rake Version: 13.0.6 Redis Version: 6.0.16 Git Version: 2.33.1. Sidekiq Version:6.3.1 Go Version: unknown GitLab information Version: 14.6.1-ee Revision: 29ff725b072 Directory: /opt/gitlab/embedded/service/gitlab-rails DB Adapter: PostgreSQL DB Version: 12.7 URL: https://gitlab.myrealdomain.com HTTP Clone URL: https://gitlab.myrealdomain.com/some-group/some-project.git SSH Clone URL: ssh://git@gitlab.myrealdomain.com/some-group/some-project.git Elasticsearch: no Geo: no Using LDAP: no Using Omniauth: yes Omniauth Providers: GitLab Shell Version: 13.22.1 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.22.1 ? ... OK (13.22.1) 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 (cluster/worker) ... 1/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: ... LDAP is disabled in config/gitlab.yml
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 Systemd unit files or init script exist? ... skipped (omnibus-gitlab has neither init script nor systemd units) Systemd unit files or init script up-to-date? ... skipped (omnibus-gitlab has neither init script nor systemd units) Projects have namespace: ... 35/34 ... yes 34/35 ... yes 39/37 ... yes 35/39 ... yes 35/40 ... yes 35/41 ... yes 35/42 ... yes 35/43 ... yes 39/44 ... yes 35/46 ... yes 39/47 ... yes 35/51 ... yes 35/52 ... yes 35/53 ... yes 35/54 ... yes 35/55 ... yes 35/57 ... yes Redis version >= 5.0.0? ... yes Ruby version >= 2.7.2 ? ... yes (2.7.5) Git version >= 2.33.0 ? ... yes (2.33.1) Git user has default SSH configuration? ... yes Active users: ... 4 Is authorized keys file accessible? ... yes GitLab configured to store new projects in hashed storage? ... yes All projects are in hashed storage? ... yes Elasticsearch version 7.x (6.4 - 6.x deprecated to be removed in 13.8)? ... skipped (elasticsearch is disabled)
Checking GitLab App ... Finished
Checking GitLab subtasks ... Finished