Skip to content

Fleet: "failed to resolve URL … no chart version" – GitRepo still shows 2/2

Kubernetestested on Rancher v2.15.3, RKE2 v1.36.5, Fleet, Longhorn

After the last commit nothing happens and the GitRepo still shows 2/2. Fleet could not build the new bundle at all – the old one stays active.

Symptom

kubectl -n fleet-default get jobs --sort-by=.metadata.creationTimestamp | tail -1
notes-64d0d   Failed   0/1           2m30s      2m30s

fleet.yaml contains version: 9.9.9 – a chart version that does not exist.

Diagnosis

Read the log of the latest Fleet job.

kubectl -n fleet-default logs "$J" --all-containers \
  | grep -o 'failed to resolve URL.*no chart version'
failed to resolve URL of repo=https://gitea.….sslip.io/api/packages/lab/helm chart=notes
version=9.9.9: no chart version

Causes

no chart versionVersion not in the repo

Fleet builds a bundle from each commit in a job. If the job does not find the chart version, it fails.

2/2The green status deceives

If the job fails, the old bundle stays active. The GitRepo shows the state of the running deployments, not of the last commit.

Fix

Revert the commit or enter an existing version.
git revert --no-edit HEAD && git push -q origin HEAD:main
[main 877383a] Revert "Chart 9.9.9"

Don't: Relying on the GitRepo status as proof of a successful deployment – check the commit state and the job result.

▶
Break it yourself and find it – free
Rancher hands-on, Day 15: a competition with ten faults from Fleet, catalog, agent, quotas and storage.
Go to day 15 →

FAQ

Where does Fleet build the bundles?

In jobs in the namespace fleet-default, one job per commit. --sort-by=.metadata.creationTimestamp finds the latest one.

How do I notice this earlier?

Alert on failed jobs in fleet-default and check chart versions against the Helm repo in CI.

Related error patterns

More