> For the complete documentation index, see [llms.txt](https://developer.harness.io/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://developer.harness.io/artifact-registry/3.0/support/troubleshooting.md). Agents can also search and read this documentation through its [MCP server](https://developer.harness.io/~gitbook/mcp).

# Troubleshoot Artifacts

Find and fix Harness Artifacts issues across authentication, registries, webhooks, client setup, and security, by product area.

Use this page to identify and resolve common Artifacts issues. Each section maps to a product area in the navigation menu and includes symptoms, causes, and recommended fixes.

***

## FAQs and known issues

If you are unsure which section applies, use the following table to match your symptom to the correct area.

| If you see this                                                                 | Go to                                                   |
| ------------------------------------------------------------------------------- | ------------------------------------------------------- |
| A 401 or 403 error, or a rejected token                                         | [Common issues](#common-issues)                         |
| A Kubernetes pod cannot pull an image from Harness Artifacts                    | [Kubernetes authentication](#kubernetes-authentication) |
| Quickstart step fails or artifacts are missing after migration                  | [Get started and migration](#get-started-and-migration) |
| A registry will not create, or an upstream proxy will not resolve               | [Registries](#registries)                               |
| A webhook does not fire or deliver                                              | [Webhooks](#webhooks)                                   |
| A package client cannot authenticate or push/pull fails for a specific format   | [Client setup](#client-setup)                           |
| An artifact push or pull fails, or a version will not copy or delete            | [Artifacts](#artifacts)                                 |
| A package is blocked or an exception request will not apply                     | [Dependency Firewall](#dependency-firewall)             |
| A cleanup or retention rule did not run, or removed the wrong versions          | [Lifecycle management](#lifecycle-management)           |
| A scan fails, an SBOM is missing, or a version stays quarantined                | [Security and compliance](#security-and-compliance)     |
| An Artifacts step fails in Harness CI/CD, GitHub Actions, Jenkins, or Terraform | [Platform integrations](#platform-integrations)         |
| An API, CLI, or Terraform provider call returns an error                        | [Agents and automation](#agents-and-automation)         |

***

## Common issues

Authentication and permissions issues cut across every area. Start here if you are unsure where the problem originates. For full details, go to [Authentication and identity tokens](https://developer.harness.io/artifact-registry/3.0/concepts/authentication-and-identity-tokens.md), [RBAC and permissions](https://developer.harness.io/artifact-registry/3.0/reference/rbac-and-permissions.md), or [Environment variables](https://developer.harness.io/artifact-registry/3.0/reference/environment-variables.md).

<details>

<summary>Identity token expires and causes unexpected 401 errors</summary>

**Symptom**: Push or pull operations return `401 Unauthorized` after working for days or weeks.

**Cause**: Identity tokens generated from the **Setup Client** page expire after the duration selected at creation (30, 90, or 180 days, or a custom value). The token value is shown only once at creation time.

**Fix**: Generate a new token and update your client configuration. To avoid frequent rotation, generate tokens at the project or account level from **Account Settings > API Keys** with a longer expiry.

To understand token types and expiry, go to [Authentication and identity tokens](https://developer.harness.io/artifact-registry/3.0/concepts/authentication-and-identity-tokens.md).

</details>

<details>

<summary>Wrong username for PAT or service account token</summary>

**Symptom**: Client login returns `401 Unauthorized` even though the token is valid.

**Cause**: Different token types require different usernames. Using the wrong combination causes authentication to fail silently.

**Fix**:

* For a personal access token (PAT): use your Harness account email as the username and the PAT as the password.
* For a service account token: use the literal string `_token` as the username and the service account token as the password.

</details>

<details>

<summary>Scheduled or webhook-triggered pipeline returns 403 but manual trigger works</summary>

**Symptom**: A pipeline succeeds when triggered manually but returns `403 Forbidden` on scheduled, webhook, or identity provider (IDP) triggers.

**Cause**: Manual triggers use the triggering user's RBAC permissions. Automated triggers use the service or bot principal's permissions, which may lack the required Artifact Management role.

**Fix**: Grant the service account or bot principal the required permissions (View for pull, Create/Edit for push) at the scope where the target registry exists. To review permission requirements, go to [RBAC and permissions](https://developer.harness.io/artifact-registry/3.0/reference/rbac-and-permissions.md).

</details>

<details>

<summary>Kubernetes pods fail with ImagePullBackOff or 401 Unauthorized</summary>

**Symptom**: Pods fail to start with `ImagePullBackOff` or `ErrImagePull`, and the event log shows `401 Unauthorized`.

**Cause**: The cluster is missing `imagePullSecrets`, or the Kubernetes secret contains expired or incorrect credentials, or the secret is in a different namespace than the pod.

**Fix**: Create a Docker config secret with the correct server (`pkg.harness.io`), username, and password. Apply the secret to the same namespace as the pod, and reference it in `imagePullSecrets` in the pod spec. For the full set of Kubernetes-specific authentication steps, go to [Kubernetes authentication](#kubernetes-authentication).

</details>

***

## Kubernetes authentication

A Kubernetes cluster needs its own credentials to pull images from Harness Artifacts because the cluster does not inherit the authentication of whichever user or pipeline deployed the manifest. This section covers creating the credential, wiring it into a pod or service account, and choosing the right token type.

<details>

<summary>Create a Kubernetes secret with pkg.harness.io credentials</summary>

**Symptom**: You need to configure a new cluster or namespace to pull images from Harness Artifacts for the first time.

**Fix**: Create a `docker-registry` secret with your Harness credentials:

```bash
kubectl create secret docker-registry harness-ar \
  --docker-server=pkg.harness.io \
  --docker-username=<username> \
  --docker-password=<token> \
  --namespace=<your_namespace>
```

To determine the username and token that match your credential type, go to [Authentication and identity tokens](https://developer.harness.io/artifact-registry/3.0/concepts/authentication-and-identity-tokens.md). The secret must be created in the same namespace as the pods that pull the image.

Alternatively, build the Docker config JSON and a `kubernetes.io/dockerconfigjson` secret manifest by hand (data key `.dockerconfigjson`) if you need to template the secret through Helm or another manifest pipeline, rather than running `kubectl create secret` directly. The legacy `kubernetes.io/dockercfg` type uses an incompatible data format and causes image pulls to fail.

</details>

<details>

<summary>Configure imagePullSecrets on a pod or service account</summary>

**Symptom**: The secret exists, but pods in the namespace still fail to pull the image.

**Cause**: Kubernetes does not use every secret in a namespace for image pulls automatically; the pod spec, or the service account the pod runs as, must reference the secret explicitly.

**Fix**: Reference the secret directly in the pod spec:

```yaml
imagePullSecrets:
  - name: harness-ar
```

To apply the secret to every pod that runs under a given service account instead of repeating `imagePullSecrets` in each pod spec, patch the service account:

```bash
kubectl patch serviceaccount default \
  --namespace=<your_namespace> \
  -p '{"imagePullSecrets": [{"name": "harness-ar"}]}'
```

</details>

<details>

<summary>Pods fail with ErrImagePull or ImagePullBackOff</summary>

**Symptom**: Pods fail to start with `ImagePullBackOff` or `ErrImagePull`, and `kubectl describe pod` shows `401 Unauthorized` in the pull event.

**Cause**: The cluster is missing `imagePullSecrets`, the referenced secret contains an expired or incorrect token, or the secret exists in a different namespace than the pod.

**Fix**: Confirm the secret is in the same namespace as the pod, and that the token stored in it has not expired. Regenerate the token if needed, delete and recreate the secret with the new token, and restart the pod.

</details>

<details>

<summary>Use a PAT or a service account token in Kubernetes</summary>

**Symptom**: The secret is configured, but authentication still fails, or the credential stops working after a human leaves the team.

**Cause**: A personal access token (PAT) is tied to a human user and uses that user's email as the Docker username. A service account token is tied to a machine identity and uses the literal string `_token` as the username. Using the wrong username for the token type causes authentication to fail.

**Fix**: For a long-running cluster workload, use a service account token rather than a PAT, so image pulls keep working after a team member leaves:

```bash
kubectl create secret docker-registry harness-ar \
  --docker-server=pkg.harness.io \
  --docker-username=_token \
  --docker-password=<service-account-token>
```

To understand the difference between PATs and service account tokens, go to [Authentication and identity tokens](https://developer.harness.io/artifact-registry/3.0/concepts/authentication-and-identity-tokens.md).

</details>

***

## Get started and migration

Issues with the quickstart workflow or migrating artifacts from another registry. For full setup instructions, go to [Quickstart](https://developer.harness.io/artifact-registry/3.0/get-started/quickstart.md). For migration guides, go to [From JFrog Artifactory](https://developer.harness.io/artifact-registry/3.0/get-started/migrate-to-harness-artifacts/from-jfrog-artifactory.md) or [From Amazon ECR](https://developer.harness.io/artifact-registry/3.0/get-started/migrate-to-harness-artifacts/from-amazon-ecr.md).

<details>

<summary>Authentication errors during migration</summary>

**Symptom**: The migration CLI returns authentication errors when connecting to the source or destination registry.

**Cause**: Using a user password instead of an API token, or the credentials lack the required permissions on one or both registries.

**Fix**: Use API tokens (not passwords) for both source and destination. Verify the tokens have read permissions on the source registry and write permissions on the Harness destination registry.

</details>

<details>

<summary>Missing artifacts after migration completes</summary>

**Symptom**: Migration reports success, but some artifacts do not appear in Harness Artifacts.

**Cause**: Destination registries may not have been created before migration started, or the artifact type mappings in the migration configuration are incorrect.

**Fix**: Run the migration with `--verbose` to review the logs. Verify all destination registries exist and that the artifact type mappings match the source.

</details>

<details>

<summary>Azure Artifacts is not a supported migration source</summary>

**Symptom**: Azure Artifacts does not appear as a source type in the migration configuration.

**Cause**: The migration tool supports `NEXUS` and `JFROG` as source types only.

**Fix**: No direct migration from Azure Artifacts is available. Export artifacts manually from Azure and push them to Harness using the CLI.

</details>

***

## Registries

Issues with registry creation, visibility, upstream proxies, and filtering rules. For full details, go to [Create a registry](https://developer.harness.io/artifact-registry/3.0/registries/create-a-registry.md), [Create an upstream proxy](https://developer.harness.io/artifact-registry/3.0/registries/create-an-upstream-proxy.md), or [Set artifact filtering rules](https://developer.harness.io/artifact-registry/3.0/registries/set-artifact-filtering-rules.md).

<details>

<summary>Registry name is rejected or already taken</summary>

**Symptom**: Registry creation fails with a name conflict error, even though no registry with that name exists in the current project.

**Cause**: Registry names must be globally unique across the entire Harness account, regardless of scope (account, organization, or project). A name like `docker-dev` used at the account level blocks the same name at the project level.

**Fix**: Use a naming convention that includes scope and team identifiers, such as `acct-platform-docker-dev`. Registry names must start with a letter and can contain only lowercase alphanumerics, underscores, periods, and hyphens.

To create a registry, go to [Create a registry](https://developer.harness.io/artifact-registry/3.0/registries/create-a-registry.md).

</details>

<details>

<summary>Pipeline cannot access a registry in a sibling project</summary>

**Symptom**: A pipeline returns `403 Forbidden` or "registry not found" when it targets a registry created in a different project.

**Cause**: A pipeline can access registries in its own project and in parent scopes (organization, account) only. It cannot access registries in sibling projects, even when the executing principal has permissions on both projects.

**Fix**: Move the shared registry to the organization or account level so that pipelines in multiple projects can access it.

</details>

<details>

<summary>Public visibility option is missing from registry settings</summary>

**Symptom**: The **Public** option does not appear on the Visibility setting when you create or configure a registry.

**Cause**: The `PL_ALLOW_TO_SET_PUBLIC_ACCESS` feature flag is not enabled for the account.

**Fix**: Contact [Harness Support](mailto:support@harness.io) to enable the feature flag.

To configure visibility, go to [Set registry visibility](https://developer.harness.io/artifact-registry/3.0/registries/set-registry-visibility.md).

</details>

<details>

<summary>Locally published artifact shadows upstream proxy versions</summary>

**Symptom**: A pull request returns a stale or unexpected version instead of the latest from the upstream source.

**Cause**: When a registry receives a pull request, it checks the local (base) registry first. If a version with the same name exists locally, it is returned and the upstream proxy is never queried.

**Fix**: Do not publish the same package name and version to both a local registry and an upstream proxy that caches the same scope. If a local version is shadowing an upstream version, delete the local copy to allow the proxy to fetch the upstream version.

To understand proxy resolution order, go to [Registries and upstream proxies](https://developer.harness.io/artifact-registry/3.0/concepts/registries-and-upstream-proxies.md).

</details>

<details>

<summary>Upstream proxy authentication fails</summary>

**Symptom**: Upstream proxy creation or configuration rejects the authentication credentials.

**Cause**: Harness Artifacts does not support external secret managers for upstream proxy authentication. The credentials must be stored in Harness Secret Manager.

**Fix**: Create the upstream proxy credentials in Harness Secret Manager before configuring the proxy. For npm bearer tokens, do not include the `Bearer` prefix in the secret value.

To configure an upstream proxy, go to [Create an upstream proxy](https://developer.harness.io/artifact-registry/3.0/registries/create-an-upstream-proxy.md).

</details>

<details>

<summary>Builds bypass cache and are unexpectedly slow</summary>

**Symptom**: Build times are longer than expected, and dependencies are fetched from the public internet on every build instead of from the upstream proxy cache.

**Cause**: An incorrect cache path in the upstream proxy configuration causes the proxy to miss cached artifacts.

**Fix**: Verify the cache path in your upstream proxy settings matches the path your dependency manager is configured to use.

</details>

<details>

<summary>Cached artifact does not return after deletion from upstream proxy</summary>

**Symptom**: After deleting a cached artifact from an upstream proxy, the artifact does not appear anywhere and cannot be recovered from the Deleted section.

**Cause**: Deleting a cached artifact removes it permanently from the upstream proxy cache. It does not appear in the Deleted section.

**Fix**: Pull the artifact again from the remote source. The upstream proxy fetches a fresh copy and caches it.

</details>

***

## Webhooks

Issues with webhook creation, event delivery, and trigger behavior. For full details, go to [Create a webhook](https://developer.harness.io/artifact-registry/3.0/registries/webhooks/create-a-webhook.md) or [Webhook payload reference](https://developer.harness.io/artifact-registry/3.0/registries/webhooks/webhook-payload-reference.md).

<details>

<summary>Webhook does not fire for a Raw registry</summary>

**Symptom**: Webhook configuration is not available or does not trigger events for a Raw registry.

**Cause**: Webhooks are supported for all Artifact Registry package types except Raw.

**Fix**: Use a supported package type if you need webhook-driven automation.

To review webhook support, go to [Create a webhook](https://developer.harness.io/artifact-registry/3.0/registries/webhooks/create-a-webhook.md).

</details>

<details>

<summary>Cosign signature or attestation push does not fire a webhook</summary>

**Symptom**: Pushing a `.sig` or `.att` OCI artifact does not trigger a webhook event.

**Cause**: Webhook triggers automatically filter out Cosign signature and attestation artifacts to prevent duplicate pipeline executions.

**Fix**: This is expected behavior. Only the original image push fires the webhook event. Push the image itself to trigger the webhook.

</details>

<details>

<summary>Webhook payload URL is rejected</summary>

**Symptom**: Creating a webhook fails when the payload URL points to a link-local, loopback, or cloud metadata endpoint (such as `169.254.169.254`).

**Cause**: Artifact Registry rejects link-local, loopback, private, and cloud metadata endpoints at the API level. It also blocks hostnames that resolve to such addresses at event-send time. Artifact Registry sends webhook requests directly and does not use a Harness Delegate.

**Fix**: Use a publicly reachable endpoint or an internal endpoint that does not resolve to a blocked address range.

</details>

<details>

<summary>Webhook fires but pipeline does not execute</summary>

**Symptom**: The webhook event fires successfully, but the target pipeline does not start.

**Cause**: The pipeline trigger may not be enforced, or the trigger principal does not have execution permissions on the pipeline.

**Fix**: Verify the trigger is set to **Enforced** and that the trigger principal has permission to execute the pipeline. Check the trigger execution history for errors.

</details>

<details>

<summary>Webhook created by a trigger is read-only</summary>

**Symptom**: A webhook appears in the Artifact Registry UI but cannot be edited.

**Cause**: Webhooks auto-created from a pipeline trigger are managed by that trigger and are read-only in the Artifact Registry UI.

**Fix**: Edit the trigger in the pipeline that owns the webhook. Webhooks created directly in the Artifact Registry UI remain fully editable.

</details>

***

## Client setup

Issues with package client configuration and format-specific push or pull errors. For setup instructions for a specific format, go to [Docker](https://developer.harness.io/artifact-registry/3.0/setup/docker.md), [Helm OCI](https://developer.harness.io/artifact-registry/3.0/setup/helm-oci.md), [Helm HTTP](https://developer.harness.io/artifact-registry/3.0/setup/helm-http.md), [Maven](https://developer.harness.io/artifact-registry/3.0/setup/maven.md), [npm](https://developer.harness.io/artifact-registry/3.0/setup/npm.md), [Python / PyPI](https://developer.harness.io/artifact-registry/3.0/setup/python-pypi.md), [NuGet](https://developer.harness.io/artifact-registry/3.0/setup/nuget.md), [Go modules](https://developer.harness.io/artifact-registry/3.0/setup/go-modules.md), [Cargo](https://developer.harness.io/artifact-registry/3.0/setup/cargo.md), [Generic](https://developer.harness.io/artifact-registry/3.0/setup/generic.md), or [Raw](https://developer.harness.io/artifact-registry/3.0/setup/raw.md). For all supported formats, go to [Supported formats](https://developer.harness.io/artifact-registry/3.0/get-started/supported-formats.md).

<details>

<summary>Docker registry URL format differs from other package types</summary>

**Symptom**: Docker push or pull fails because the registry URL is wrong.

**Cause**: Docker uses `pkg.harness.io/<account-id>/<registry-name>/<image>:<tag>` (no `/pkg/` prefix). Other package types use `pkg.harness.io/pkg/<account-id>/<registry-name>/<package-type>/`.

**Fix**: Use the URL without the `/pkg/` prefix for Docker. Copy the exact URL from the **Setup Client** page in the registry to avoid formatting errors.

To configure Docker, go to [Docker](https://developer.harness.io/artifact-registry/3.0/setup/docker.md).

</details>

<details>

<summary>Maven: 401 Unauthorized even though the token is valid</summary>

**Symptom**: `mvn deploy` or `mvn install` fails with `401 Unauthorized`.

**Cause**: Maven matches credentials by the `<id>` element. If the `<id>` in `settings.xml` under `<server>` does not match the `<id>` in `pom.xml` under `<repository>` or `<distributionManagement>`, Maven does not apply the credentials.

**Fix**: Ensure the `<id>` value is identical in both `settings.xml` and `pom.xml`. For example, if your `pom.xml` uses `<id>maven-dev</id>`, the `<server>` block in `settings.xml` must also use `<id>maven-dev</id>`.

To configure Maven, go to [Maven](https://developer.harness.io/artifact-registry/3.0/setup/maven.md).

</details>

<details>

<summary>Maven: Could not find artifact</summary>

**Symptom**: `Could not find artifact org.example:my-lib:jar:1.0-SNAPSHOT` during a build.

**Cause**: The Harness Artifacts profile is not active in Maven, or the artifact does not exist in the registry.

**Fix**: Run `mvn help:active-profiles` to verify the Harness profile is active. Confirm the artifact exists in the registry. Force a dependency update with `mvn clean install -U`.

</details>

<details>

<summary>Maven: PKIX path building failed (SSL certificate error)</summary>

**Symptom**: `PKIX path building failed` error during Maven dependency resolution or deploy.

**Cause**: SSL certificate validation failure when connecting to the Harness registry endpoint.

**Fix**: Add `-Dmaven.wagon.http.ssl.insecure=true -Dmaven.wagon.http.ssl.allowall=true` to the Maven command for testing. For production, add the Harness certificate to the Java Virtual Machine (JVM) truststore instead of disabling validation.

</details>

<details>

<summary>npm: 404 Not Found when publishing or installing</summary>

**Symptom**: `npm publish` or `npm install` fails with `404 Not Found` or authentication errors.

**Cause**: The npm registry URL in `.npmrc` is missing the trailing `/npm/` path segment. The correct format is `https://pkg.harness.io/pkg/<account-id>/<registry>/npm/`.

**Fix**: Update `.npmrc` to include the full URL with the `/npm/` suffix. Ensure the `_authToken` line uses the same URL prefix as the registry line.

To configure npm, go to [npm](https://developer.harness.io/artifact-registry/3.0/setup/npm.md).

</details>

<details>

<summary>Python: twine upload succeeds but pip install fails (or vice versa)</summary>

**Symptom**: `twine upload` works but `pip install` returns `404 Not Found`, or `pip install` works but `twine upload` fails.

**Cause**: Publishing and installing use different URL paths. Publishing uses the base URL (`/python/`), while `pip install` requires the `/simple/` suffix (`/python/simple/`).

**Fix**: Use `https://pkg.harness.io/pkg/<account-id>/<registry>/python/` for `twine upload` in `~/.pypirc` and `https://pkg.harness.io/pkg/<account-id>/<registry>/python/simple/` for `pip install --index-url`.

To configure Python, go to [Python / PyPI](https://developer.harness.io/artifact-registry/3.0/setup/python-pypi.md).

</details>

<details>

<summary>NuGet: client cannot find the package source</summary>

**Symptom**: NuGet client returns format errors or cannot discover the package source.

**Cause**: NuGet V3 requires the `/nuget/index.json` suffix in the source URL. NuGet V2 requires `/nuget/` only. Using the wrong format for your NuGet client version causes discovery to fail.

**Fix**: Use `https://pkg.harness.io/pkg/<account-id>/<registry>/nuget/index.json` for NuGet V3, or `https://pkg.harness.io/pkg/<account-id>/<registry>/nuget/` for NuGet V2.

To configure NuGet, go to [NuGet](https://developer.harness.io/artifact-registry/3.0/setup/nuget.md).

</details>

<details>

<summary>Go: private modules do not resolve, or hc push command is not found</summary>

**Symptom**: `go get` does not resolve private modules hosted in Harness, or the `hc ar push go` command is not found.

**Cause**: Go modules require the `GOPROXY` environment variable to be set with the full authenticated URL. Publishing Go modules requires the Harness CLI (`hc`), not the standard Go CLI.

**Fix**: Export `GOPROXY` with the full Harness registry URL. Install the Harness CLI separately for push operations.

To configure Go, go to [Go modules](https://developer.harness.io/artifact-registry/3.0/setup/go-modules.md).

</details>

<details>

<summary>Helm HTTP: chart push returns 400 Bad Request</summary>

**Symptom**: Pushing a Helm chart returns `400 Bad Request`.

**Cause**: The artifact name and version in the `.tgz` filename must exactly match the `name` and `version` fields in `Chart.yaml`. A mismatch causes the push to be rejected.

**Fix**: Repackage the chart so the filename matches `Chart.yaml`, or update `Chart.yaml` to match the filename before packaging.

To configure Helm HTTP, go to [Helm HTTP](https://developer.harness.io/artifact-registry/3.0/setup/helm-http.md).

</details>

<details>

<summary>Helm HTTP: chart push returns 409 Conflict</summary>

**Symptom**: Pushing a chart version that already exists returns `409 Conflict`.

**Cause**: Helm chart versions are immutable after publish.

**Fix**: Increment the version in `Chart.yaml` and push the new version. If the existing version must be replaced, delete it first (if lifecycle policies allow deletion).

</details>

***

## Artifacts

Issues with pushing, pulling, browsing, copying, or deleting artifact versions. For full details, go to [Browse and search](https://developer.harness.io/artifact-registry/3.0/artifacts/browse-and-search.md), [Artifact version details](https://developer.harness.io/artifact-registry/3.0/artifacts/artifact-version-details.md), [Copy a version](https://developer.harness.io/artifact-registry/3.0/artifacts/copy-a-version.md), or [Delete an artifact](https://developer.harness.io/artifact-registry/3.0/artifacts/delete-an-artifact.md).

<details>

<summary>Soft deleted artifact still counts toward storage</summary>

**Symptom**: Storage usage does not decrease after deleting artifacts.

**Cause**: Soft deleted items remain in storage until the retention period ends and a scheduled purge runs.

**Fix**: Wait for the retention period to expire, or permanently delete the item from the **Deleted** tab to reclaim storage immediately.

</details>

<details>

<summary>Docker pull returns MANIFEST_UNKNOWN for a soft deleted image</summary>

**Symptom**: `docker pull` returns HTTP 404 with error code `MANIFEST_UNKNOWN`.

**Cause**: The image was soft deleted and is not downloadable during the retention window.

**Fix**: Restore the artifact from the **Deleted** tab. If an upstream proxy is configured on the registry, the pull may succeed from the upstream source instead.

</details>

<details>

<summary>Cannot delete a Docker image by tag using the API</summary>

**Symptom**: The delete API call fails or does not accept a tag name.

**Cause**: The delete API requires the image digest (SHA), not the tag name.

**Fix**: Retrieve the digest from the artifact version details page or from the API, then pass the digest to the delete endpoint.

</details>

***

## Dependency Firewall

Issues with blocked packages, policy violations, and exception management. For full details, go to [Overview](https://developer.harness.io/artifact-registry/3.0/dependency-firewall/overview.md), [View and triage violations](https://developer.harness.io/artifact-registry/3.0/dependency-firewall/view-and-triage-violations.md), [Request an exception](https://developer.harness.io/artifact-registry/3.0/dependency-firewall/request-an-exception.md), or [Manage exceptions](https://developer.harness.io/artifact-registry/3.0/dependency-firewall/manage-exceptions.md).

<details>

<summary>No violations appear after enabling Dependency Firewall</summary>

**Symptom**: The Dependency Firewall is enabled but the dashboard shows zero violations.

**Cause**: The Dependency Firewall evaluates packages only when they are fetched through an upstream proxy for the first time. Packages that are already cached are not re-evaluated.

**Fix**: Pull a new package version that is not in the cache. Verify that at least one policy set with the Upstream Proxy entity type is enforced.

To understand how the firewall evaluates packages, go to [Overview](https://developer.harness.io/artifact-registry/3.0/dependency-firewall/overview.md).

</details>

<details>

<summary>403 error but the package does not appear on the Dependency Firewall dashboard</summary>

**Symptom**: A pipeline returns `403 Forbidden` for a package, but the package does not appear in the Dependency Firewall violations list.

**Cause**: The 403 is likely an authentication or RBAC issue, not a firewall block. The Dependency Firewall displays only packages it has explicitly evaluated and blocked.

**Fix**: Verify the token has read access to the upstream proxy registry. If authentication is correct, check that the Dependency Firewall is enabled on the specific upstream proxy where the package is fetched.

</details>

<details>

<summary>Approved exemption does not unblock the dependency</summary>

**Symptom**: An exemption is approved, but the dependency still returns a blocked response when pulled.

**Cause**: Exemptions match by exact version. The upstream proxy specified in the exemption must match the proxy used for the pull. The exemption status must be APPROVED and not EXPIRED.

**Fix**: Confirm the exemption covers the exact version, references the correct upstream proxy, and has an APPROVED status. To manage exemptions, go to [Manage exceptions](https://developer.harness.io/artifact-registry/3.0/dependency-firewall/manage-exceptions.md).

</details>

<details>

<summary>Approvers are not notified when an exemption is submitted</summary>

**Symptom**: Exemption requests remain in PENDING status because approvers do not receive notifications.

**Cause**: Approver notifications are not sent by default and must be configured separately.

**Fix**: Configure a centralized notification rule for the **Dependency Firewall Exemption Requested** event.

</details>

<details>

<summary>Dependency Firewall does not evaluate Docker or Helm OCI packages</summary>

**Symptom**: OCI registry types (Docker, Helm OCI) appear in the dashboard filter but do not generate violations.

**Cause**: The Dependency Firewall evaluates non-OCI upstream proxy registry types only (Maven, npm, PyPI, NuGet, Cargo, Go, RPM, Composer). OCI support is planned for a future release.

**Fix**: This is a known limitation. Use the supported package types for Dependency Firewall evaluations.

</details>

***

## Lifecycle management

Issues with cleanup or retention rules that do not run as expected. For full details, go to [Create a cleanup rule](https://developer.harness.io/artifact-registry/3.0/lifecycle-management/create-a-cleanup-rule.md), [Create a retention rule](https://developer.harness.io/artifact-registry/3.0/lifecycle-management/create-a-retention-rule.md), [Run a dry run](https://developer.harness.io/artifact-registry/3.0/lifecycle-management/run-a-dry-run.md), or [View rule executions](https://developer.harness.io/artifact-registry/3.0/lifecycle-management/view-rule-executions.md).

<details>

<summary>Cleanup rule deletes non-Docker artifacts that should be protected</summary>

**Symptom**: A cleanup rule deletes non-Docker artifact versions that were expected to be protected.

**Cause**: Deployment-aware protection (automatic marking of actively deployed versions as PROTECTED) applies only to Docker registries. Non-Docker artifact types do not receive automatic protection.

**Fix**: Create a retention rule that explicitly matches the non-Docker artifacts you want to protect. To create a retention rule, go to [Create a retention rule](https://developer.harness.io/artifact-registry/3.0/lifecycle-management/create-a-retention-rule.md).

</details>

<details>

<summary>Pattern filter does not match expected artifacts</summary>

**Symptom**: A lifecycle rule pattern filter matches nothing, or matches fewer artifacts than expected.

**Cause**: Pattern filters use regular expressions, not glob patterns. `prod-*` is invalid regex. The correct regex to match names starting with `prod-` is `prod-.*`.

**Fix**: Replace glob wildcards with regex equivalents: use `.*` instead of `*`. Escape a literal period as `\.` (for example, `1\.0\..*` instead of `1.0.*`).

</details>

<details>

<summary>"Keep last N versions" keeps unexpected versions</summary>

**Symptom**: The cleanup rule keeps versions that do not have the highest semantic version numbers.

**Cause**: "Keep last N versions" keeps the N most recently uploaded versions in upload order, not in semantic version order.

**Fix**: Check the **Uploaded at** column in the rule execution detail. If you need to protect specific semantic version ranges, create a retention rule with a version pattern instead of relying on upload-order counts.

</details>

<details>

<summary>Retention rules cannot be disabled</summary>

**Symptom**: No toggle switch appears for a retention rule on the Lifecycle Rules list.

**Cause**: Retention rules are always active by design and do not have an enable/disable toggle.

**Fix**: To stop a retention rule from protecting artifacts, delete the rule.

</details>

***

## Security and compliance

Issues with vulnerability scans, SBOMs, quarantine, and signing keys. For full details, go to [Vulnerability scanning](https://developer.harness.io/artifact-registry/3.0/security-and-compliance/vulnerability-scanning.md), [SBOM: view, score, and download](https://developer.harness.io/artifact-registry/3.0/security-and-compliance/sbom-view-score-and-download.md), [Quarantine](https://developer.harness.io/artifact-registry/3.0/security-and-compliance/quarantine.md), or [Set up signing keys](https://developer.harness.io/artifact-registry/3.0/security-and-compliance/signing-keys/setup-signing.md).

<details>

<summary>Snyk scan shows results in pipeline but the Artifact Registry UI is empty</summary>

**Symptom**: After replacing Trivy with Snyk in the `HARNESS_ARTIFACT_SCAN_PIPELINE`, the pipeline shows Snyk vulnerabilities, but the Artifact Registry UI shows no SBOM or vulnerabilities for the image.

**Cause**: The Software Supply Chain Assurance (SSCA) SBOM Orchestration step was disabled or skipped. Snyk populates pipeline-level results through Security Testing Orchestration (STO), but the Artifact Registry UI relies on SSCA ingestion via the SBOM Orchestration step.

**Fix**: Ensure the SSCA SBOM Orchestration step is enabled and healthy. When replacing Trivy with Snyk, swap only the scanner step, not the SBOM Orchestration step. Re-run the pipeline.

</details>

<details>

<summary>SBOM or Build and Push step fails with "authentication required"</summary>

**Symptom**: The SBOM Orchestration step or Docker Build and Push to HAR step fails with `authentication required` or `unauthorized: authentication required`.

**Cause**: Harness Artifacts is not fully enabled at the account level. Without the feature enabled, these steps attempt to access the registry in guest or unauthenticated mode.

**Fix**: Contact [Harness Support](mailto:support@harness.io) to verify that Artifact Registry is fully enabled for the account. Re-run the pipeline after enabling.

</details>

<details>

<summary>Debian: NO_PUBKEY error when running apt-get update</summary>

**Symptom**: `apt-get update` returns `The following signatures couldn't be verified because the public key is not available: NO_PUBKEY`.

**Cause**: The client does not trust the registry signing key.

**Fix**: Verify the public key URL is correct, re-fetch the key, and run `apt-get update`. To set up signing keys, go to [Set up signing keys](https://developer.harness.io/artifact-registry/3.0/security-and-compliance/signing-keys/setup-signing.md).

</details>

<details>

<summary>Debian: BADSIG error when verifying repository signatures</summary>

**Symptom**: `apt-get update` returns `The following signatures were invalid: BADSIG`.

**Cause**: The signing key was replaced, or the key status is set to Inactive or Revoked.

**Fix**: Check the key status in **Registry Settings > Signing Keys**. If the key was replaced, remove the old keyring from the client and fetch the new public key.

</details>

<details>

<summary>Alpine or Wolfi: UNTRUSTED signature error</summary>

**Symptom**: `apk update` or `apk add` returns `UNTRUSTED signature`.

**Cause**: The client does not trust the registry signing key, or the public key file is missing or incorrect at `/etc/apk/keys/`.

**Fix**: Verify that `/etc/apk/keys/<KEY_ID>.rsa.pub` exists and contains the correct key. Re-download the public key from the registry and retry.

</details>

<details>

<summary>Cannot attach a signing key to a registry</summary>

**Symptom**: The signing key option does not appear, or attaching a key fails.

**Cause**: Signing keys can be attached only to virtual registries (not upstream proxy registries). The key type must also match the registry type: GPG for Debian, RSA for Alpine and Wolfi.

**Fix**: Verify the target registry is a virtual registry. Use the correct key type for the package format.

</details>

<details>

<summary>Expired signing key silently disables signing</summary>

**Symptom**: After a key expires, newly pushed packages have unsigned metadata without an obvious error during the push.

**Cause**: When a signing key expires, Harness automatically sets it to Inactive and disables signing. Packages continue to upload, but new metadata is unsigned.

**Fix**: Configure expiration notifications so you are alerted before a key expires. Replace the expired key with a new one.

</details>

***

## Platform integrations

Issues with Artifact Registry steps failing in CI/CD pipelines and third-party tools. For full details, go to [Harness CI](https://developer.harness.io/artifact-registry/3.0/platform-integrations/harness-ci.md), [Harness CD](https://developer.harness.io/artifact-registry/3.0/platform-integrations/harness-cd.md), [GitHub Actions](https://developer.harness.io/artifact-registry/3.0/platform-integrations/github-actions.md), [Jenkins](https://developer.harness.io/artifact-registry/3.0/platform-integrations/jenkins.md), or [Terraform](https://developer.harness.io/artifact-registry/3.0/platform-integrations/terraform.md).

<details>

<summary>First pull of a vulnerable package succeeds before scanning finishes</summary>

**Symptom**: A new artifact passes through the upstream proxy on the first pull, even though it is later flagged as vulnerable or blocked.

**Cause**: Scanning and policy evaluation happen asynchronously. The first pull completes before the scan results are available.

**Fix**: Use a staging-registry pattern: pull new artifacts into a staging upstream proxy first, wait for scan results, then promote to production using the Copy Version feature.

</details>

<details>

<summary>Intermittent 502 errors during Docker layer uploads in CI</summary>

**Symptom**: CI pipelines intermittently fail with `502 Bad Gateway` during Docker push operations, specifically during layer uploads.

**Cause**: Backend storage layer overload or concurrency issues, especially when migration and CI pushes run concurrently.

**Fix**: Retry the push. If the error is persistent, reduce concurrency in the pipeline or contact [Harness Support](mailto:support@harness.io).

</details>

***

## Agents and automation

Issues with the REST API, CLI, Terraform provider, and AI agent integrations. For full details, go to [REST API](https://developer.harness.io/artifact-registry/3.0/reference/rest-api.md), [CLI](https://developer.harness.io/artifact-registry/3.0/reference/cli.md), [Terraform provider](https://developer.harness.io/artifact-registry/3.0/reference/terraform-provider.md), or [Using Artifacts with AI agents](https://developer.harness.io/artifact-registry/3.0/agents/using-ar-with-ai-agents.md).

<details>

<summary>REST API or HTTP package call returns 401 Unauthorized</summary>

**Symptom**: A request with an `x-api-key` header, or a CLI login using the token as password, returns `401 Unauthorized`.

**Cause**: The token is missing from the request, was revoked, or expired. Identity tokens generated from the **Setup Client** page expire after the duration selected at creation.

**Fix**: Regenerate the token and update the `HARNESS_API_KEY` environment variable used by the script or agent. For long-running automation, use a project- or account-level service account token instead of a PAT, so the token does not break when a user leaves. To generate and rotate tokens, go to [Authentication for agents](https://developer.harness.io/artifact-registry/3.0/agents/authentication-for-agents.md).

</details>

<details>

<summary>REST API or CLI call returns 403 Forbidden with a valid token</summary>

**Symptom**: The `x-api-key` header authenticates successfully, but the call still returns `403 Forbidden`.

**Cause**: The service account or PAT lacks the required Artifact Registries permission (Pull or Push) at the scope where the target registry exists.

**Fix**: Grant the token's identity the required permission at the registry's scope (project, organization, or account). To review requirements, go to [RBAC and permissions](https://developer.harness.io/artifact-registry/3.0/reference/rbac-and-permissions.md).

</details>

<details>

<summary>REST API call returns 404 Not Found for a registry or artifact that exists</summary>

**Symptom**: A request to `pkg.harness.io` or the management API returns `404 Not Found`, even though the registry or artifact is visible in the Harness UI.

**Cause**: The request uses the wrong account ID, a misspelled registry identifier, or the wrong manager host (for example `app.harness.io` instead of your cluster's vanity domain).

**Fix**: Verify `HARNESS_ACCOUNT_ID`, `HAR_REGISTRY`, and `HARNESS_MANAGER_HOST` against the values shown in your Harness URL. Go to [API quickstart for agents](https://developer.harness.io/artifact-registry/3.0/agents/api-quickstart-for-agents.md) for the full error reference.

</details>

***

## Still stuck?

To check for a recent change, go to [Release notes](https://developer.harness.io/artifact-registry/3.0/support/release-notes.md).

Before contacting support, collect:

* The exact error message or HTTP status code.
* The registry name, package format, and artifact or version identifier.
* The time the issue occurred, and whether it is reproducible.
* The client, CLI, or pipeline step used, with its version.

Contact [Harness Support](mailto:support@harness.io) with this information.

{% @harness-feedback/feedback %}
