deleting a user in GitLab CE Omnibus v10.5.2 does not work
Summary
Hi,
I am currently running GitLab Omnibus CE 10.5.2 on Debian Jessie.
When I try to delete a user Delete user and Contributions
it just reloads the users overview of the administration section and shows the list of "active" users. While in this example the user is already "blocked" I have also tried to delete a user that is not blocked.
Also what is the difference between Delete user
and Delete user and contributions
as shown on the first screenshot? The second screenshot only gives the option to block or Delete user and contributions
.
Please tell me if I can provide other logs I have not considered, yet.
Best regards, Andreas
Steps to reproduce
- open the "admin area"
- click "overview -> users"
- click gear-wheel beside user you want to delete
- click
Delete user and Contributions
- enter username
- click
Delete user and Contributions
The list of users will reload and in the upper part of the website the text The user is being deleted
(on blue ground) appears.
The user is still there even after waiting for more than a week.
What is the current bug behavior?
Users cannot be deleted.
What is the expected correct behavior?
All the users issues, ... should be moved to a system-wide ghost user and the user itself should be deleted.
Relevant logs and/or screenshots
gitlab-ctl tail gitlab-rails
gives me the following output when I try to delete a user:
==> /var/log/gitlab/gitlab-rails/production.log <==
Started DELETE "/admin/users/redacted-username-to-delete?hard_delete=true" for redacted-ipv6-address at 2018-03-05 14:02:47 +0100
Processing by Admin::UsersController#destroy as HTML
Parameters: {"authenticity_token"=>"[FILTERED]", "username"=>"redacted username", "hard_delete"=>"true", "id"=>"redacted-username-to-delete"}
Redirected to https://git.selfnet.de/admin/users
Completed 302 Found in 19ms (ActiveRecord: 4.0ms)
==> /var/log/gitlab/gitlab-rails/production_json.log <==
{"method":"DELETE","path":"/admin/users/redacted-username-to-delete","format":"html","controller":"Admin::UsersController","action":"destroy","status":302,"duration":20.54,"view":0.0,"db":3.97,"location":"https://git.selfnet.de/admin/users","time":"2018-03-05T13:02:47.384Z","params":{"_method":"delete","authenticity_token":"[FILTERED]","username":"redacted username","hard_delete":"true","id":"redacted-username-to-delete"},"remote_ip":"redacted-ipv6-address","user_id":3,"username":"my-username"}
==> /var/log/gitlab/gitlab-rails/production.log <==
Started GET "/admin/users" for redacted-ipv6-address at 2018-03-05 14:02:47 +0100
Processing by Admin::UsersController#index as HTML
Completed 200 OK in 198ms (Views: 141.9ms | ActiveRecord: 41.2ms)
==> /var/log/gitlab/gitlab-rails/production_json.log <==
{"method":"GET","path":"/admin/users","format":"html","controller":"Admin::UsersController","action":"index","status":200,"duration":199.35,"view":141.9,"db":41.17,"time":"2018-03-05T13:02:47.467Z","params":{},"remote_ip":"redacted-ipv6-address","user_id":3,"username":"my-username"}
Results of GitLab environment info
Expand for output related to GitLab environment info
System: Debian 8.10 Current User: git Using RVM: no Ruby Version: 2.3.6p384 Gem Version: 2.6.13 Bundler Version:1.13.7 Rake Version: 12.3.0 Redis Version: 3.2.11 Git Version: 2.14.3 Sidekiq Version:5.0.5 Go Version: unknownGitLab information Version: 10.5.2 Revision: b951e0d Directory: /opt/gitlab/embedded/service/gitlab-rails DB Adapter: postgresql URL: https://git.selfnet.de HTTP Clone URL: https://git.selfnet.de/some-group/some-project.git SSH Clone URL: git@git.selfnet.de:some-group/some-project.git Using LDAP: yes Using Omniauth: no
GitLab Shell Version: 6.0.3 Repository storage paths:
- default: /var/opt/gitlab/git-data/repositories Hooks: /opt/gitlab/embedded/service/gitlab-shell/hooks Git: /opt/gitlab/embedded/bin/git
Results of GitLab application Check
Expand for output related to the GitLab application check
Checking GitLab Shell ...
GitLab Shell version >= 6.0.3 ? ... OK (6.0.3) Repo base directory exists? default... yes Repo storage directories are symlinks? default... no Repo paths owned by git:root, or git:git? default... yes Repo paths access is drwxrws---? default... yes hooks directories in repos are links: ... 24/1 ... ok 24/2 ... ok 24/8 ... ok 47/9 ... ok 47/10 ... ok 47/11 ... ok 47/12 ... ok 24/13 ... ok 91/15 ... ok 12/17 ... ok 15/19 ... ok 3/20 ... ok 3/21 ... ok 14/24 ... ok 14/28 ... ok 12/33 ... ok 24/34 ... ok 3/36 ... ok 24/37 ... ok 24/40 ... ok 2/41 ... ok 7/44 ... ok 22/47 ... ok 22/50 ... ok 24/53 ... ok 47/55 ... ok 48/60 ... ok 28/67 ... ok 56/68 ... ok 24/69 ... ok 84/71 ... ok 4/73 ... ok 15/74 ... ok 47/75 ... ok 47/76 ... ok 47/77 ... ok 15/78 ... ok 24/79 ... ok 38/80 ... ok 18/81 ... ok 53/82 ... ok 4/83 ... repository is empty 30/84 ... ok 7/85 ... ok 41/89 ... ok 29/90 ... ok 30/91 ... ok 84/92 ... ok 38/94 ... ok 47/95 ... ok 7/96 ... ok 11/97 ... ok 72/100 ... ok 29/101 ... ok 47/102 ... ok 91/103 ... ok 47/107 ... ok 84/108 ... ok 25/110 ... ok 4/115 ... ok 4/116 ... ok 15/118 ... ok 77/119 ... ok 77/120 ... ok 47/121 ... ok 42/122 ... ok 47/125 ... ok 7/126 ... ok 15/128 ... ok 25/129 ... ok 25/130 ... ok 8/131 ... ok 35/133 ... ok 47/134 ... ok 15/135 ... ok 22/136 ... ok 82/137 ... ok 82/138 ... ok 82/139 ... ok 84/140 ... ok 3/141 ... ok 91/142 ... ok 84/143 ... ok 25/144 ... ok 8/145 ... ok 67/146 ... repository is empty 90/147 ... ok 47/149 ... ok 92/151 ... ok 25/152 ... repository is empty 90/154 ... ok 73/155 ... ok 47/156 ... ok 47/157 ... repository is empty 87/158 ... ok 9/159 ... ok 94/160 ... ok 95/162 ... ok 15/164 ... ok 35/166 ... ok 38/167 ... repository is empty 47/169 ... ok 90/170 ... ok 77/171 ... ok 87/172 ... ok 84/174 ... ok 99/175 ... repository is empty 30/177 ... ok 3/178 ... ok 86/179 ... ok 3/180 ... ok 3/181 ... ok 9/182 ... ok 42/183 ... ok 104/185 ... ok 104/186 ... ok 7/187 ... ok 9/188 ... ok 77/189 ... ok 25/190 ... ok 106/191 ... ok 102/192 ... ok 67/193 ... repository is empty 25/194 ... ok 3/195 ... ok 3/196 ... ok 125/197 ... ok 38/199 ... ok 107/200 ... ok 107/201 ... ok 106/202 ... repository is empty 3/204 ... ok 3/206 ... ok 3/207 ... ok 77/210 ... ok 31/211 ... ok 26/212 ... ok 31/213 ... ok 47/214 ... repository is empty 30/216 ... repository is empty 77/218 ... ok 77/219 ... repository is empty 84/222 ... ok 47/223 ... ok 41/224 ... ok 47/225 ... ok 9/226 ... ok 113/227 ... ok 110/228 ... ok 110/229 ... ok 28/231 ... repository is empty 9/234 ... ok 22/235 ... ok 120/236 ... ok 102/237 ... ok 38/239 ... ok 84/240 ... ok 84/241 ... ok 122/242 ... ok 123/243 ... ok 123/244 ... ok 9/246 ... ok 15/247 ... ok 114/248 ... ok 47/250 ... ok 3/251 ... ok 38/252 ... ok 72/253 ... ok 125/254 ... ok 125/255 ... ok 113/256 ... ok 117/257 ... ok 47/258 ... ok 15/259 ... ok 15/260 ... ok 15/261 ... ok 110/262 ... ok Running /opt/gitlab/embedded/service/gitlab-shell/bin/check Check GitLab API access: OK Redis available via internal API: OK
Access to /var/opt/gitlab/.ssh/authorized_keys: OK gitlab-shell self-check successful
Checking GitLab Shell ... Finished
Checking Sidekiq ...
Running? ... yes Number of Sidekiq processes ... 1
Checking Sidekiq ... Finished
Reply by email is disabled in config/gitlab.yml Checking LDAP ...
Server: ldapmain LDAP authentication... Anonymous. No
bind_dn
orpassword
configured LDAP users with access to your GitLab server (only showing the first 100 results) REDACTED! (big list of all users in our LDAP)Checking LDAP ... Finished
Checking GitLab ...
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/2 ... yes 24/8 ... yes 47/9 ... yes 47/10 ... yes 47/11 ... yes 47/12 ... yes 24/13 ... yes 91/15 ... yes 12/17 ... yes 15/19 ... yes 3/20 ... yes 3/21 ... yes 14/24 ... yes 14/28 ... yes 12/33 ... yes 24/34 ... yes 3/36 ... yes 24/37 ... yes 24/40 ... yes 2/41 ... yes 7/44 ... yes 22/47 ... yes 22/50 ... yes 24/53 ... yes 47/55 ... yes 48/60 ... yes 28/67 ... yes 56/68 ... yes 24/69 ... yes 84/71 ... yes 4/73 ... yes 15/74 ... yes 47/75 ... yes 47/76 ... yes 47/77 ... yes 15/78 ... yes 24/79 ... yes 38/80 ... yes 18/81 ... yes 53/82 ... yes 4/83 ... yes 30/84 ... yes 7/85 ... yes 41/89 ... yes 29/90 ... yes 30/91 ... yes 84/92 ... yes 38/94 ... yes 47/95 ... yes 7/96 ... yes 11/97 ... yes 72/100 ... yes 29/101 ... yes 47/102 ... yes 91/103 ... yes 47/107 ... yes 84/108 ... yes 25/110 ... yes 4/115 ... yes 4/116 ... yes 15/118 ... yes 77/119 ... yes 77/120 ... yes 47/121 ... yes 42/122 ... yes 47/125 ... yes 7/126 ... yes 15/128 ... yes 25/129 ... yes 25/130 ... yes 8/131 ... yes 35/133 ... yes 47/134 ... yes 15/135 ... yes 22/136 ... yes 82/137 ... yes 82/138 ... yes 82/139 ... yes 84/140 ... yes 3/141 ... yes 91/142 ... yes 84/143 ... yes 25/144 ... yes 8/145 ... yes 67/146 ... yes 90/147 ... yes 47/149 ... yes 92/151 ... yes 25/152 ... yes 90/154 ... yes 73/155 ... yes 47/156 ... yes 47/157 ... yes 87/158 ... yes 9/159 ... yes 94/160 ... yes 95/162 ... yes 15/164 ... yes 35/166 ... yes 38/167 ... yes 47/169 ... yes 90/170 ... yes 77/171 ... yes 87/172 ... yes 84/174 ... yes 99/175 ... yes 30/177 ... yes 3/178 ... yes 86/179 ... yes 3/180 ... yes 3/181 ... yes 9/182 ... yes 42/183 ... yes 104/185 ... yes 104/186 ... yes 7/187 ... yes 9/188 ... yes 77/189 ... yes 25/190 ... yes 106/191 ... yes 102/192 ... yes 67/193 ... yes 25/194 ... yes 3/195 ... yes 3/196 ... yes 125/197 ... yes 38/199 ... yes 107/200 ... yes 107/201 ... yes 106/202 ... yes 3/204 ... yes 3/206 ... yes 3/207 ... yes 77/210 ... yes 31/211 ... yes 26/212 ... yes 31/213 ... yes 47/214 ... yes 30/216 ... yes 77/218 ... yes 77/219 ... yes 84/222 ... yes 47/223 ... yes 41/224 ... yes 47/225 ... yes 9/226 ... yes 113/227 ... yes 110/228 ... yes 110/229 ... yes 28/231 ... yes 9/234 ... yes 22/235 ... yes 120/236 ... yes 102/237 ... yes 38/239 ... yes 84/240 ... yes 84/241 ... yes 122/242 ... yes 123/243 ... yes 123/244 ... yes 9/246 ... yes 15/247 ... yes 114/248 ... yes 47/250 ... yes 3/251 ... yes 38/252 ... yes 72/253 ... yes 125/254 ... yes 125/255 ... yes 113/256 ... yes 117/257 ... yes 47/258 ... yes 15/259 ... yes 15/260 ... yes 15/261 ... yes 110/262 ... yes Redis version >= 2.8.0? ... yes Ruby version >= 2.3.5 ? ... yes (2.3.6) Git version >= 2.9.5 ? ... yes (2.14.3) Git user has default SSH configuration? ... yes Active users: ... 73
Checking GitLab ... Finished