How to delete failed images from registry
Summary
I'm clicked on delete button in registry and it's resulted with Failed to remove registry tag!
. And now these images are showing without tag id, size and creation type. Another click to delete button shows just another Failed to remove registry tag!
.
Steps to reproduce
Delete image from registry and some times they failed to remove.
What is the current bug behavior?
Failed to remove registry tag!
What is the expected correct behavior?
Image is correctly deleted.
Relevant logs and/or screenshots
Started DELETE "/foo/bar/registry/repository/4/tags/2200f74e637b35cd30ed9d763804c03ebb8deac9" for 213.210.173.162 at 2017-09-18 12:10:57 +0000
Processing by Projects::Registry::TagsController#destroy as HTML
Parameters: {"authenticity_token"=>"[FILTERED]", "namespace_id"=>"foo", "project_id"=>"bar", "repository_id"=>"4", "id"=>"2200f74e637b35cd30ed9d763804c03ebb8deac9"}
Redirected to https://gitlab.gbtechhub.com/foo/bar/container_registry
Completed 302 Found in 43ms (ActiveRecord: 1.0ms)
Output of checks
Results of GitLab environment info
Expand for output related to GitLab environment info
gitlab1:~:% sudo gitlab-rake gitlab:env:infoSystem information System: Ubuntu 16.04 Current User: git Using RVM: no Ruby Version: 2.3.3p222 Gem Version: 2.6.6 Bundler Version:1.13.7 Rake Version: 12.0.0 Redis Version: 3.2.5 Git Version: 2.13.5 Sidekiq Version:5.0.4 Go Version: unknown
GitLab information Version: 9.5.4 Revision: fbffc27 Directory: /opt/gitlab/embedded/service/gitlab-rails DB Adapter: postgresql URL: https://gitlab.gbtechhub.com HTTP Clone URL: https://gitlab.gbtechhub.com/some-group/some-project.git SSH Clone URL: git@gitlab.gbtechhub.com:some-group/some-project.git Using LDAP: no Using Omniauth: no
GitLab Shell Version: 5.8.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
Results of GitLab application Check
Expand for output related to the GitLab application check
gitlab1:~:% sudo gitlab-rake gitlab:check SANITIZE=true Checking GitLab Shell ...GitLab Shell version >= 5.8.0 ? ... OK (5.8.0) 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: ... 4/1 ... ok 5/2 ... repository is empty 10/3 ... ok 14/4 ... ok 4/5 ... ok 4/6 ... ok 14/7 ... ok 14/8 ... ok 22/9 ... ok 22/10 ... ok 22/11 ... ok 15/12 ... ok 22/13 ... ok 15/14 ... ok 22/15 ... ok 14/16 ... ok 10/17 ... ok 22/20 ... ok 14/21 ... ok 14/22 ... ok 22/23 ... ok 18/24 ... ok 18/25 ... ok 11/26 ... ok 21/27 ... ok 11/29 ... ok 38/30 ... ok 14/31 ... ok 14/32 ... ok 11/33 ... ok 21/35 ... ok 14/36 ... ok 8/37 ... ok 24/38 ... ok 27/39 ... ok 22/40 ... ok 28/41 ... repository is empty 31/42 ... ok 33/43 ... ok 33/45 ... ok 31/46 ... ok 33/47 ... ok 37/49 ... ok 37/50 ... repository is empty 38/51 ... ok 11/52 ... ok 24/53 ... ok 33/54 ... ok 21/55 ... ok 39/56 ... ok 8/57 ... ok 22/58 ... ok 22/59 ... ok 15/60 ... ok 11/61 ... ok 11/62 ... ok 15/63 ... ok 11/64 ... ok 40/65 ... ok 40/66 ... repository is empty 24/67 ... ok 20/68 ... ok 41/69 ... ok 14/70 ... ok 11/71 ... ok 40/72 ... repository is empty 15/73 ... ok 13/74 ... ok 14/75 ... ok 43/76 ... ok 43/77 ... ok 43/78 ... ok 43/79 ... ok 14/80 ... ok 14/81 ... ok 43/82 ... ok 43/83 ... ok 8/84 ... repository is empty 14/85 ... ok 24/86 ... ok 24/87 ... ok 24/88 ... 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 ...
LDAP is disabled in config/gitlab.yml
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: ... 4/1 ... yes 5/2 ... no Try fixing it: Migrate global projects For more information see: doc/update/5.4-to-6.0.md in section "#global-projects" Please fix the error above and rerun the checks. 10/3 ... yes 14/4 ... yes 4/5 ... yes 4/6 ... yes 14/7 ... yes 14/8 ... yes 22/9 ... yes 22/10 ... yes 22/11 ... yes 15/12 ... yes 22/13 ... yes 15/14 ... yes 22/15 ... yes 14/16 ... yes 10/17 ... yes 22/20 ... yes 14/21 ... yes 14/22 ... yes 22/23 ... yes 18/24 ... yes 18/25 ... yes 11/26 ... yes 21/27 ... yes 11/29 ... yes 38/30 ... yes 14/31 ... yes 14/32 ... yes 11/33 ... yes 21/35 ... yes 14/36 ... yes 8/37 ... yes 24/38 ... yes 27/39 ... yes 22/40 ... yes 28/41 ... yes 31/42 ... yes 33/43 ... yes 33/45 ... yes 31/46 ... yes 33/47 ... yes 37/49 ... yes 37/50 ... yes 38/51 ... yes 11/52 ... yes 24/53 ... yes 33/54 ... yes 21/55 ... yes 39/56 ... yes 8/57 ... yes 22/58 ... yes 22/59 ... yes 15/60 ... yes 11/61 ... yes 11/62 ... yes 15/63 ... yes 11/64 ... yes 40/65 ... yes 40/66 ... yes 24/67 ... yes 20/68 ... yes 41/69 ... yes 14/70 ... yes 11/71 ... yes 40/72 ... yes 15/73 ... yes 13/74 ... yes 14/75 ... yes 43/76 ... yes 43/77 ... yes 43/78 ... yes 43/79 ... yes 14/80 ... yes 14/81 ... yes 43/82 ... yes 43/83 ... yes 8/84 ... yes 14/85 ... yes 24/86 ... yes 24/87 ... yes 24/88 ... yes Redis version >= 2.8.0? ... yes Ruby version >= 2.3.3 ? ... yes (2.3.3) Git version >= 2.7.3 ? ... yes (2.13.5) Active users: ... 29
Checking GitLab ... Finished