rancher/rancher · error

the oci artifact %s has size more than %d which is not suppo

Error message

the oci artifact %s has size more than %d which is not supported

What it means

Error "the oci artifact %s has size more than %d which is not supported" thrown in rancher/rancher.

Source

Thrown at pkg/catalogv2/oci/oci.go:65

	// Create an oras repository
	orasRepository, err := ociClient.GetOrasRepository()
	if err != nil {
		return nil, fmt.Errorf("failed to create an OCI repository for url %s: %w", chartURL, err)
	}

	// Download the oci artifact manifest
	memoryStore := memory.New()
	manifest, err := oras.Copy(ctx, orasRepository, ociClient.tag, memoryStore, "", oras.CopyOptions{
		CopyGraphOptions: oras.CopyGraphOptions{
			PreCopy: func(ctx context.Context, desc ocispecv1.Descriptor) error {
				// Download only helm chart related descriptors.
				if desc.MediaType == ocispecv1.MediaTypeImageManifest ||
					desc.MediaType == registry.ChartLayerMediaType {
					// We cannot load huge amounts of data into the memory
					// and so we are defining a limit before fetching.
					if desc.Size > maxHelmChartTarSize {
						return fmt.Errorf("the oci artifact %s has size more than %d which is not supported", chartURL, maxHelmChartTarSize)
					}
					return nil
				}

				return oras.SkipNode
			},
		},
	})

	if err != nil {
		return nil, fmt.Errorf("unable to oras copy the remote OCI artifact %s: %w", chartURL, err)
	}
	// Fetch the manifest blob of the oci artifact
	manifestBlob, err := content.FetchAll(ctx, memoryStore, manifest)
	if err != nil {
		return nil, fmt.Errorf("unable to fetch the manifest blob of %s: %w", chartURL, err)
	}
	var manifestJSON ocispecv1.Manifest

View on GitHub (pinned to 932558d4e6)

When it happens

Trigger: Thrown at pkg/catalogv2/oci/oci.go:65 when the library encounters an invalid state.

Common situations: See trigger scenarios.


AI-assisted analysis of rancher/rancher@932558d4e6 (2026-08-16). Data as JSON: /api/errors/58702dc8a71c419c. Report an issue: GitHub.