gitlab-ctl registry-garbage-collect panic: runtime error: invalid memory address or nil pointer dereference
gitlab-ctl registry-garbage-collect
get
When run Output
ok: down: registry: 0s, normally up Running garbage-collect using configuration ["/opt/gitlab/embedded/bin/registry", "garbage-collect", "/var/opt/gitlab/registry/config.yml"], this might take a while... panic: runtime error: invalid memory address or nil pointer dereference [signal SIGSEGV: segmentation violation code=0x1 addr=0x0 pc=0xce3d6d]goroutine 1 [running]: github.com/docker/distribution/registry/storage/driver/s3-aws.(*driver).doWalk.func1(0xc000405280, 0xc00054c901, 0xc0004e16a0) /var/cache/omnibus/src/registry/src/github.com/docker/distribution/registry/storage/driver/s3-aws/s3.go:973 +0x9d github.com/docker/distribution/vendor/github.com/aws/aws-sdk-go/service/s3.(*S3).ListObjectsV2PagesWithContext(0xc00013e158, 0x7f5871b90128, 0xc0001b9dc0, 0xc0003a8280, 0xc0004e1790, 0x0, 0x0, 0x0, 0x64, 0x0) /var/cache/omnibus/src/registry/src/github.com/docker/distribution/vendor/github.com/aws/aws-sdk-go/service/s3/api.go:4198 +0x111 github.com/docker/distribution/registry/storage/driver/s3-aws.(*driver).doWalk(0xc000405200, 0x111f9c0, 0xc0001b9d50, 0xc0004e1850, 0xc0003c8151, 0x20, 0xf46255, 0x1, 0xc00029f8a0, 0x0, ...) /var/cache/omnibus/src/registry/src/github.com/docker/distribution/registry/storage/driver/s3-aws/s3.go:971 +0x385 github.com/docker/distribution/registry/storage/driver/s3-aws.(*driver).Walk(0xc000405200, 0x111f9c0, 0xc0001b9d50, 0xc00025a0a0, 0x20, 0xc00029f8a0, 0xc00025a0a0, 0x20) /var/cache/omnibus/src/registry/src/github.com/docker/distribution/registry/storage/driver/s3-aws/s3.go:919 +0x161 github.com/docker/distribution/registry/storage/driver/base.(*Base).Walk(0xc0001e8c00, 0x111f9c0, 0xc0001b9d50, 0xc00025a0a0, 0x20, 0xc00029f8a0, 0x0, 0x0) /var/cache/omnibus/src/registry/src/github.com/docker/distribution/registry/storage/driver/base/base.go:239 +0x245 github.com/docker/distribution/registry/storage.(*registry).Enumerate(0xc0001b9ce0, 0x111f780, 0xc000033a10, 0xc00054c8c0, 0xc0001b9ce0, 0x1) /var/cache/omnibus/src/registry/src/github.com/docker/distribution/registry/storage/catalog.go:67 +0xe3 github.com/docker/distribution/registry/storage.MarkAndSweep(0x111f780, 0xc000033a10, 0x11318e0, 0xc0001e8c00, 0x1122580, 0xc0001b9ce0, 0x0, 0x1122580, 0xc0001b9ce0) /var/cache/omnibus/src/registry/src/github.com/docker/distribution/registry/storage/garbagecollect.go:40 +0x1bc github.com/docker/distribution/registry.glob..func3(0x18c8c60, 0xc0004b41c0, 0x1, 0x1) /var/cache/omnibus/src/registry/src/github.com/docker/distribution/registry/root.go:80 +0x4c8 github.com/docker/distribution/vendor/github.com/spf13/cobra.(*Command).execute(0x18c8c60, 0xc0004b4170, 0x1, 0x1, 0x18c8c60, 0xc0004b4170) /var/cache/omnibus/src/registry/src/github.com/docker/distribution/vendor/github.com/spf13/cobra/command.go:495 +0x191 github.com/docker/distribution/vendor/github.com/spf13/cobra.(*Command).Execute(0x18c8fa0, 0xc0004e1f88, 0xc0000a2058) /var/cache/omnibus/src/registry/src/github.com/docker/distribution/vendor/github.com/spf13/cobra/command.go:560 +0x2b2 main.main() /var/cache/omnibus/src/registry/src/github.com/docker/distribution/cmd/registry/main.go:23 +0x2d
Failed to run garbage-collect command, starting registry service. ok: run: registry: (pid 2168) 0s
Details of package version
Provide the package version installation details
gitlab-ce 12.2.0-ce.0
Configuration details
Provide the /var/opt/gitlab/registry/config.yml
version: 0.1 log: level: info formatter: text fields: service: registry environment: production storage: {"s3":{"accesskey":"XXXXXXXXXXXXX","secretkey":"XXXXXXXXXXXXXXXXX","bucket":"registry2","region":"us-east-1","secure":"false","v4auth":"false","regionendpoint":"http://s3.ceph:7480"},"cache":{"blobdescriptor":"inmemory"},"delete":{"enabled":true},"redirect":{"disable":true}} http: addr: localhost:5000 secret: "somesecretokenorhash" headers: X-Content-Type-Options: [nosniff] debug: addr: localhost:5001 prometheus: enabled: true path: /metrics health: storagedriver: enabled: true interval: 10s threshold: 3 auth: token: realm: https://gitlab.domain/jwt/auth service: container_registry issuer: omnibus-gitlab-issuer rootcertbundle: /var/opt/gitlab/registry/gitlab-registry.crt autoredirect: false validation: disabled: true