goharbor/harbor · error

the artifact is not ready yet, failed to tag it to

Error message

the artifact is not ready yet, failed to tag it to %v

What it means

Error from proxy controller EnsureTag: local.GetManifest found no artifact for the digest in the local (proxy-cache) registry, so the requested tag cannot be attached yet. In a pull-through cache this means the manifest has not been pulled/cached from upstream at this point.

Solutions

  1. Pull the manifest by digest first so it is cached locally, then tag it.
  2. Retry EnsureTag after the artifact has been cached.
  3. Check upstream registry availability if the artifact never materializes.
Defensive patterns

Strategy: retry

When it happens

Trigger: Thrown at src/controller/proxy/controller.go:119 when the library encounters an invalid state.

Common situations: See trigger scenarios.


AI-assisted analysis of goharbor/harbor@7b2fd08cc5 (2026-08-16). Data as JSON: /api/errors/f817709f342483c9. Report an issue: GitHub.

Appendix: source

Thrown at src/controller/proxy/controller.go:119

	// search the digest in cache and query with trimmed digest
	var trimmedDigest string
	err := c.cache.Fetch(ctx, TrimmedManifestlist+art.Digest, &trimmedDigest)
	if errors.Is(err, cache.ErrNotFound) { // nolint:revive
		// skip to update digest, continue
	} else if err != nil {
		// for other error, return
		return err
	} else {
		// found in redis, update the digest
		art.Digest = trimmedDigest
		log.Debugf("Found trimmed digest: %v", trimmedDigest)
	}
	a, err := c.local.GetManifest(ctx, art)
	if err != nil {
		return err
	}
	if a == nil {
		return fmt.Errorf("the artifact is not ready yet, failed to tag it to %v", tagName)
	}
	tagID, err := tag.Ctl.Ensure(ctx, a.RepositoryID, a.Artifact.ID, tagName)
	if err != nil {
		return err
	}
	// update the pull time of tag for the first time cache
	return tag.Ctl.Update(ctx, &tag.Tag{
		Tag: model_tag.Tag{
			ID:       tagID,
			PullTime: time.Now(),
		},
	}, "PullTime")
}

func (c *controller) UseLocalBlob(ctx context.Context, art lib.ArtifactInfo) bool {
	if len(art.Digest) == 0 {
		return false
	}

View on GitHub (pinned to 7b2fd08cc5)