spinnaker/spinnaker · error · NotFoundException

Failed to download chart versions for

Error message

Failed to download chart versions for '<name>' account

What it means

HelmArtifactCredentials.getArtifactVersions downloads the Helm repository's index.yaml and parses it to list chart versions for a given chart name. Any IOException raised while fetching or reading the index (network failure, bad repository URL, invalid/malformed index.yaml, since downloadIndex and index parsing both throw IOException) is wrapped in a kork NotFoundException named for the configured account. The cause chain holds the real reason, so it usually signals a configuration or connectivity problem with the Helm repository rather than the chart genuinely not existing.

Solutions

  1. Verify the helm account's repository URL is correct and reachable from clouddriver (curl <repository>/index.yaml from the clouddriver host/pod).
  2. Inspect the cause of the NotFoundException in the clouddriver log — it distinguishes network errors from 'Invalid index.yaml file in repository ...' parse failures.
  3. Fix the repository index: regenerate index.yaml (e.g. `helm repo index`) or point the account at a healthy mirror if the file is corrupt.
  4. Add missing credentials/proxy settings for private repositories, then retry the version lookup.

Example fix

// before: repository URL missing scheme
google:
  artifacts:
    helm:
      - name: my-helm
        repository: charts.example.com/myrepo
// after
google:
  artifacts:
    helm:
      - name: my-helm
        repository: https://charts.example.com/myrepo
Defensive patterns

Strategy: try-catch

Try / catch

try {
  List<String> versions = helmCredentials.getArtifactVersions(chartName);
} catch (NotFoundException e) {
  log.error("Chart version lookup failed for account; cause: {}", e.getCause(), e);
  // fall back to cached versions or fail the stage with the cause surfaced
}

Prevention

When it happens

Trigger: Calling getArtifactVersions (e.g. via the clouddriver artifact versions endpoint) when: the repository URL is wrong or unreachable, DNS/TLS fails, the repository returns a non-2xx response that surfaces as IOException, index.yaml is malformed YAML (buildIndexConfig rethrows 'Invalid index.yaml file in repository ...' as IOException), or the index stream cannot be read.

Common situations: Misconfigured repository in the helm artifact account (typo in URL, missing scheme), private ChartMuseum/OCI-repo requiring credentials not configured, firewall/proxy blocking clouddriver egress, repository redeployed with a corrupt index.yaml, or transient network outage during a deck/kayenta chart version lookup.

Understand the failure class

Background: 'Could not be found', 'does not exist', 'not found in database': the resource-not-found family when an ID, slug, key, or URI lookup comes back empty — this error's family across 20 libraries.

Related errors


AI-assisted analysis of spinnaker/spinnaker@1d4a5d0f6d (2026-09-10). Data as JSON: /api/errors/e66a244cf0aa047e. Report an issue: GitHub.

Appendix: source

Thrown at clouddriver/clouddriver-artifacts/clouddriver-artifacts-helm/src/main/java/com/netflix/spinnaker/clouddriver/artifacts/helm/HelmArtifactCredentials.java:97

    InputStream index;
    List<String> names;
    try {
      index = downloadIndex();
      names = indexParser.findNames(index);
    } catch (IOException e) {
      throw new NotFoundException("Failed to download chart names for '" + name + "' account", e);
    }
    return names;
  }

  public List<String> getArtifactVersions(String artifactName) {
    InputStream index;
    List<String> versions;
    try {
      index = downloadIndex();
      versions = indexParser.findVersions(index, artifactName);
    } catch (IOException e) {
      throw new NotFoundException(
          "Failed to download chart versions for '" + name + "' account", e);
    }
    return versions;
  }

  private InputStream downloadIndex() throws IOException {
    try {
      ResponseBody indexDownloadResponse = fetchUrl(indexParser.indexPath());
      return indexDownloadResponse.byteStream();
    } catch (IOException e) {
      throw new FailedDownloadException(
          "Failed to download index.yaml file in '" + indexParser.getRepository() + "' repository",
          e);
    }
  }

  @Override
  public String getType() {

View on GitHub (pinned to 1d4a5d0f6d)