Strange behavior on empty repository
Hello,
I just installed Gitlab Docker Repository successfully (I am able to login via docker login
).
Repository is current empty and I was trying to setup this project in advance in order to prevent that disk will be exhausted quickly.
After launching docker-distribution-pruner -config=/var/opt/gitlab/registry/config.yml
, I obtained this log:
INFO[0000] Walking REPOSITORIES...
INFO[0000] REPOSITORIES DIR: repositories
panic: runtime error: invalid memory address or nil pointer dereference
[signal SIGSEGV: segmentation violation code=0x1 addr=0x20 pc=0x741c08]
goroutine 35 [running]:
main.(*fsStorage).Walk.func1(0xc42001c730, 0x4d, 0x0, 0x0, 0x9e17a0, 0xc4202dff80, 0x20, 0x7bcf20)
/root/.go/src/gitlab.com/gitlab-org/docker-distribution-pruner/fs_storage.go:36 +0x58
path/filepath.Walk(0xc42001c730, 0x4d, 0xc4201efae0, 0x805db5, 0x1)
/usr/lib/golang/src/path/filepath/path.go:401 +0x76
main.(*fsStorage).Walk(0xc42000e428, 0xc42001c730, 0x4d, 0xc42001c820, 0x4d, 0xc4201efac0, 0x0, 0x0)
/root/.go/src/gitlab.com/gitlab-org/docker-distribution-pruner/fs_storage.go:35 +0x1b1
main.repositoriesData.walkPath(0xc4202dfe30, 0x809076, 0xc, 0xc4202dff20, 0x429c79, 0xc400000008)
/root/.go/src/gitlab.com/gitlab-org/docker-distribution-pruner/repositories.go:54 +0x167
main.repositoriesData.walk(0xc4202dfe30, 0x820300, 0xc42035a000, 0x0)
/root/.go/src/gitlab.com/gitlab-org/docker-distribution-pruner/repositories.go:87 +0x1dd
main.main.func2(0xc42035a000, 0xc420283b60, 0xc4202dfe30)
/root/.go/src/gitlab.com/gitlab-org/docker-distribution-pruner/main.go:93 +0x67
created by main.main
/root/.go/src/gitlab.com/gitlab-org/docker-distribution-pruner/main.go:90 +0x36f
Am I missing something?
I am using GO Lang v1.9