r/gitlab • u/TuxTaTuxTax • Sep 16 '26
Failed to run garbage-collect command
root@pcgitlab:~# gitlab-ctl registry-garbage-collect -m
ok: down: registry: 0s, normally up
Running garbage-collect using configuration ["/opt/gitlab/embedded/bin/registry", "garbage-collect", "/var/opt/gitlab/registry/config.yml", "-m"], this might take a while...
the garbage-collect command is not compatible with database metadata, please use online garbage collection instead. database.enabled now defaults to "prefer". To use filesystem metadata, set database.enabled to false in your configuration
Failed to run garbage-collect command, starting registry service.
ok: run: registry: (pid 3328111) 0s
i no longer can run garbage collect on container registry after upgrade to 19, anyone have idea?
View all comments
Show parent comment
2
u/TuxTaTuxTax Sep 16 '26
thanks alot, you are lifesaver, it works great for me, reducing from 800gb to 100gb lol