Skip to content

Troubleshooting

Anna Sancho Vaquer edited this page Oct 21, 2026 · 5 revisions

Common problems, grouped by the stage of the CI pipeline in which they appear.

Validate stage

Configuration validation errors

The Validate job fails with a message describing the problem in .github/ci.yaml. The most common ones are:

Message Cause/fix
Only version 1 of the CI configuration is supported. version is missing or not 1.
cve-scan can not be true if upload is false Set ghcr.upload: true, or ghcr.cve-scan: false.
Extra inputs are not permitted A key is misspelled or unsupported. The message names the offending key.
Registry '<name>' in image '<dir>' is not defined in registries. The name in images[].registries has no matching entry under registries.
Auth must be provided as a list. / Auth list must contain exactly one entry. auth must be a list with one item (- method: ...).
Invalid auth method '<method>' Use one of basic, bearer, ecr, ecr-public.
Credential name must start with 'secrets.' Write credentials as secrets.<SECRET_NAME>.
Wildcard '*' must be the only character in directory Use directory: "*" alone; patterns like rocks/* are not supported.
Invalid Ubuntu Pro service '<service>' See the allowed services.

Base does not match the expected pattern

This error is displayed in the following way:

Base '<base>' in '<dir>/rockcraft.yaml' does not match the expected pattern.

The CI derives the image tag from the rock's base (or build-base when base: bare), which must end with an Ubuntu release (ubuntu@24.04, ubuntu@26.04, etc.) or devel. Fix the base in your rockcraft.yaml.

Artifact name conflict

This error is displayed in the following way:

Artifact generated from '<dir-a>' and '<dir-b>' have conflicting artifact name '<name>'.

Artifact names come from the directory (/ becomes -), or from the rock's name for a rock at the repository root. Two entries collide, for example my-rock/0.1 and my-rock-0.1, or a root rock and a directory named after it. Rename a directory.

Nothing is built (and no error)

The run is green but Build, Test and Upload were skipped. Look for the warning:

Skipping rock at '<dir>': no rockcraft.yaml found.

No directory listed in images contains a rockcraft.yaml. Check the directory values in .github/ci.yaml: they are relative to the repository root. This is expected for a repository created from the template before adding a rock.

Build stage

Cannot check out the repository (private/internal repositories)

The build job fails while cloning your repository. Check that the REPO_CLONER_TOKEN secret:

  • exists with exactly that name.
  • has Contents: Read and Metadata: Read.
  • has the organization owning the repository as the resource owner, and it has access to this repository.
  • has not expired.

Build fails for an architecture

Only amd64 and arm64 have GitHub-hosted runners outside the canonical organization. Remove other architectures from platforms.

Pro build: token or passphrase missing

This error is displayed in the following way:

Error: 'pro-token' must be provided in order to use 'pro-services'.
Error: 'pro-artifact-passphrase' must be provided in order to use 'pro-services'.

The secret names in pro.config do not match existing secrets, or the secrets are empty. Amend this to solve the issue.

Spread tests fail

Reproduce locally with rockcraft test from the rock's directory (see Testing your rock for guidance on how to run the tests locally). Check the Actions log of the Build job: the spread output includes the failing task.

Test stage

Vulnerability test fails

The Test stage fails the rock when Trivy finds a HIGH or CRITICAL vulnerability with an available fix. The summary of the run lists the vulnerability IDs, targets and packages.

The usual remedy is to update the affected package in the rock. This can be done, for example, by rebuilding to pull the fixed package, or by bumping the version of the part that provides it.

The efficiency check reports problems but the pipeline is green

Expected. The efficiency check is informational and does not fail the pipeline.

Upload stage

Nothing was published

The Upload stage only runs for pushes (or manual runs) on main, after a successful Test stage. It is skipped on pull requests and other branches.

Also check that ghcr.upload is true for GHCR, and that the image lists the registry in registries for additional registries.

Warning: uploading Pro enabled rocks to GHCR is not allowed

This error is displayed in the following way:

Uploading Pro enabled rocks to GHCR is not allowed for public repositories.

Expected for a Pro rock in a public repository.

Registry login fails

  • Check that each secret name in ci.yaml matches a repository secret exactly (names are case-sensitive).
  • For ECR, username is the access key ID, password is the secret access key, and region must match the registry's region.
  • Check that the credentials have push permission to the target repository/namespace in uri.

Threat monitor

No issue is opened, or the workflow is skipped

  • The scan needs ghcr.upload: true and ghcr.cve-scan: true, and pulls images that were already published. Push a rock to main first.
  • Pro-enabled rocks in public repositories are not published to GHCR and so are not scanned.

Still stuck?

Check the logs of the failing job in the Actions tab (enable Re-run jobs → Enable debug logging for more detail), and compare your setup with the CI configuration reference and the CI pipeline page.

Clone this wiki locally