Skip to content

The nightly registry collection fails until a first image is pushed #573

Backlog

Description

@samuelmbabhazi

What happens

The nightly collection of the registry (registry-gc.sh, run by shipkeep-registry-gc.timer, #553) fails on every installation where no build has pushed an image yet. Distribution's garbage-collect refuses a registry that has no repositories:

Path not found: /docker/registry/v2/repositories

The service ends in failure every night until a first image is pushed. Nothing is lost, since there is nothing to collect, but systemctl --failed reports it and so does any monitoring that watches failed units.

Found while upgrading a lab installation from v0.1.0-alpha.7 to v0.1.0-alpha.8 by following docs/INSTALL.md: the timer installed, and its first run failed.

Expected

On a registry with no pushed image, the collection says there is nothing to collect and ends in success. It does so without making the registry read-only.

A fix is ready on the fix/registry-gc-empty branch, with a test that fails without it. In the lab, the same machine then ended in success with "nothing was pushed to the registry yet, so there is nothing to collect."

Activity

  1. added
    bug
    on Nov 29, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    bug

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions