Skip to content

gitlab-ctl registry-garbage-collect fails with radosgw backend

Summary

gitlab-ctl registry-garbage-collect fails with radosgw backend`

# gitlab-ctl registry-garbage-collect -m
...
INFO[0036] marking manifest                              digest=sha256:7baa8dd8f91ef66989eacd799444357f94a6a0446819188cb2fef8b3ec5a8cc5 digest_type=layer environment=production go.version=go1.12.13 instance.id=66165c78-e6b7-4a7a-b80a-1f7bc5349186 repository="llbeat/tax/taxweb" service=registry
failed to garbage collect: failed to mark: : Path not found: /docker/registry/v2/repositories
Failed to run garbage-collect command, starting registry service.
ok: run: registry: (pid 23850) 0s

Steps to reproduce

  1. Set registry['storage'] in gitlab.rb.
  2. Execute gitlab-ctl reconfigure.
  3. Execute gitlab-ctl registry-garbage-collect -m.

What is the current bug behavior?

Command terminate unexpected.

What is the expected correct behavior?

Command terminate successfully.

Details of package version

Provide the package version installation details
Desired=Unknown/Install/Remove/Purge/Hold
| Status=Not/Inst/Conf-files/Unpacked/halF-conf/Half-inst/trig-aWait/Trig-pend
|/ Err?=(none)/Reinst-required (Status,Err: uppercase=bad)
||/ Name                                               Version                        Architecture                   Description
+++-==================================================-==============================-==============================-==========================================================================================================
ic  gitlab-ce                                          12.6.2-ce.0                    amd64                          GitLab Community Edition (including NGINX, Postgres, Redis)
ii  gitlab-ee                                          12.8.1-ee.0                    amd64                          GitLab Enterprise Edition (including NGINX, Postgres, Redis)

Environment details

  • Operating System: debian stretch
  • Installation Target, remove incorrect values:
    • Bare Metal Machine
  • Installation Type, remove incorrect values:
    • Upgrade from version 12.8.0
  • Is there any other software running on the machine: Nexus Repository Manager
  • Is this a single or multiple node installation? Yes
  • Resources
    • CPU: Intel(R) Xeon(R) CPU E5-2670 0 @ 2.60GHz * 12
    • Memory total: 24 GB

Configuration details

Provide the relevant sections of `/etc/gitlab/gitlab.rb`
registry['storage'] = {
  's3' => {
    'accesskey' => 'D...',
    'secretkey' => 'C...',
    'bucket' => 'gitlab-registry',
    'region' => 'us',
    'regionendpoint' => 'https://RadosgwIP:RadosgwPort'
  }
}
Edited by paxnil