helm/helm · error
no cached repo found. (try 'helm repo update'): %w
Error message
no cached repo found. (try 'helm repo update'): %w
What it means
Error "no cached repo found. (try 'helm repo update'): %w" thrown in helm/helm.
Source
Thrown at pkg/downloader/chart_downloader.go:461
}
if r != nil && r.Config != nil {
if r.Config.CertFile != "" || r.Config.KeyFile != "" || r.Config.CAFile != "" {
c.Options = append(c.Options, getter.WithTLSClientConfig(r.Config.CertFile, r.Config.KeyFile, r.Config.CAFile))
}
if r.Config.Username != "" && r.Config.Password != "" {
c.Options = append(c.Options,
getter.WithBasicAuth(r.Config.Username, r.Config.Password),
getter.WithPassCredentialsAll(r.Config.PassCredentialsAll),
)
}
}
// Next, we need to load the index, and actually look up the chart.
idxFile := filepath.Join(c.RepositoryCache, helmpath.CacheIndexFile(r.Config.Name))
i, err := repo.LoadIndexFile(idxFile)
if err != nil {
return "", u, fmt.Errorf("no cached repo found. (try 'helm repo update'): %w", err)
}
cv, err := i.Get(chartName, version)
if err != nil {
return "", u, fmt.Errorf("chart %q matching %s not found in %s index. (try 'helm repo update'): %w", chartName, version, r.Config.Name, err)
}
if len(cv.URLs) == 0 {
return "", u, fmt.Errorf("chart %q has no downloadable URLs", ref)
}
// TODO: Seems that picking first URL is not fully correct
resolvedURL, err := repo.ResolveReferenceURL(rc.URL, cv.URLs[0])
if err != nil {
return cv.Digest, u, fmt.Errorf("invalid chart URL format: %s", ref)
}
loc, err := url.Parse(resolvedURL)View on GitHub (pinned to 2a29f1770b)
When it happens
Trigger: Thrown at pkg/downloader/chart_downloader.go:461 when the library encounters an invalid state.
Common situations: See trigger scenarios.
AI-assisted analysis of helm/helm@2a29f1770b (2026-08-15).
Data as JSON: /api/errors/02da5cb5d8eee902.
Report an issue: GitHub.