Skip to content
For the complete documentation index, see llms.txt. This page is also available as Markdown.
SupportTroubleshootingAuthenticationSecurity

Troubleshooting

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 left navigation and includes symptoms, causes, and recommended fixes.


FAQs and known issues

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

If you see this
Go to

A 401 or 403 error, or a rejected token

A Kubernetes pod cannot pull an image from Harness Artifacts

Quickstart step fails or artifacts are missing after migration

A registry will not create, or an upstream proxy will not resolve

A webhook does not fire or deliver

A package client cannot authenticate or push/pull fails for a specific format

An artifact push or pull fails, or a version will not copy or delete

A package is blocked or an exception request will not apply

A cleanup or retention rule did not run, or removed the wrong versions

A scan fails, an SBOM is missing, or a version stays quarantined

An Artifacts step fails in Harness CI/CD, GitHub Actions, Jenkins, or Terraform

An API, CLI, or Terraform provider call returns an error


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, RBAC and permissions, or Environment variables.

Identity token expires and causes unexpected 401 errors

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

Cause: Identity tokens generated from the Set Up Client page expire after 30 days by default. 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.

Wrong username for PAT or service account token

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.

Scheduled or webhook-triggered pipeline returns 403 but manual trigger works

Symptom: A pipeline succeeds when triggered manually but returns 403 Forbidden on scheduled, webhook, or 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.

Kubernetes pods fail with ImagePullBackOff or 401 Unauthorized

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

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.

Create a Kubernetes secret with pkg.harness.io credentials

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:

To determine the username and token that match your credential type, go to Authentication and identity tokens. 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.

Configure imagePullSecrets on a pod or service account

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:

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:

Pods fail with ErrImagePull or ImagePullBackOff

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.

Use a PAT or a service account token in Kubernetes

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:

To understand the difference between PATs and service account tokens, go to Authentication and identity tokens.


Get started and migration

Issues with the quickstart workflow or migrating artifacts from another registry. For full setup instructions, go to Quickstart. For migration guides, go to From JFrog Artifactory or From Amazon ECR.

Authentication errors during migration

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.

Missing artifacts after migration completes

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.

Azure Artifacts is not a supported migration source

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.


Registries

Issues with registry creation, visibility, upstream proxies, and filtering rules. For full details, go to Create a registry, Create an upstream proxy, or Set artifact filtering rules.

Registry name is rejected or already taken

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.

Pipeline cannot access a registry in a sibling project

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.

Public visibility option is missing from registry settings

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 to enable the feature flag.

To configure visibility, go to Set registry visibility.

Locally published artifact shadows upstream proxy versions

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.

Upstream proxy authentication fails

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.

Builds bypass cache and are unexpectedly slow

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.

Cached artifact does not return after deletion from upstream proxy

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.


Webhooks

Issues with webhook creation, event delivery, and trigger behavior. For full details, go to Create a webhook or Webhook payload reference.

Webhook does not fire for a Raw registry

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.

Cosign signature or attestation push does not fire a webhook

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.

Webhook payload URL is rejected

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.

Webhook fires but pipeline does not execute

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.

Webhook created by a trigger is read-only

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.


Client setup

Issues with package client configuration and format-specific push or pull errors. For setup instructions for a specific format, go to Docker, Helm OCI, Helm HTTP, Maven, npm, Python / PyPI, NuGet, Go modules, Cargo, Generic, or Raw. For all supported formats, go to Supported formats.

Docker registry URL format differs from other package types

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 Set Up Client page in the registry to avoid formatting errors.

To configure Docker, go to Docker.

Maven: 401 Unauthorized even though the token is valid

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.

Maven: Could not find artifact

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.

Maven: PKIX path building failed (SSL certificate error)

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 JVM truststore instead of disabling validation.

npm: 404 Not Found when publishing or installing

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.

Python: twine upload succeeds but pip install fails (or vice versa)

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.

NuGet: client cannot find the package source

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.

Go: private modules do not resolve, or hc push command is not found

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.

Helm HTTP: chart push returns 400 Bad Request

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.

Helm HTTP: chart push returns 409 Conflict

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).


Artifacts

Issues with pushing, pulling, browsing, copying, or deleting artifact versions. For full details, go to Browse and search, Artifact version details, Copy a version, or Delete an artifact.

Soft deleted artifact still counts toward storage

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.

Docker pull returns MANIFEST_UNKNOWN for a soft deleted image

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.

Cannot delete a Docker image by tag via the API

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.


Dependency Firewall

Issues with blocked packages, policy violations, and exception management. For full details, go to Overview, View and triage violations, Request an exception, or Manage exceptions.

No violations appear after enabling Dependency Firewall

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.

403 error but the package does not appear on the Dependency Firewall dashboard

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.

Approved exemption does not unblock the dependency

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.

Approvers are not notified when an exemption is submitted

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.

Dependency Firewall does not evaluate Docker or Helm OCI packages

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.


Lifecycle management

Issues with cleanup or retention rules that do not run as expected. For full details, go to Create a cleanup rule, Create a retention rule, Run a dry run, or View rule executions.

Cleanup rule deletes non-Docker artifacts that should be protected

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.

Pattern filter does not match expected artifacts

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.*).

"Keep last N versions" keeps unexpected versions

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.

Retention rules cannot be disabled

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.


Security and compliance

Issues with vulnerability scans, SBOMs, quarantine, and signing keys. For full details, go to Vulnerability scanning, SBOM: view, score, and download, Quarantine, or Set up signing keys.

Snyk scan shows results in pipeline but the Artifact Registry UI is empty

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 SSCA SBOM Orchestration step was disabled or skipped. Snyk populates pipeline-level results through 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.

SBOM or Build and Push step fails with "authentication required"

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 to verify that Artifact Registry is fully enabled for the account. Re-run the pipeline after enabling.

Debian: NO_PUBKEY error when running apt-get update

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.

Debian: BADSIG error when verifying repository signatures

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.

Alpine or Wolfi: UNTRUSTED signature error

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.

Cannot attach a signing key to a registry

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.

Expired signing key silently disables signing

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.


Platform integrations

Issues with Artifact Registry steps failing in CI/CD pipelines and third-party tools. For full details, go to Harness CI, Harness CD, GitHub Actions, Jenkins, or Terraform.

First pull of a vulnerable package succeeds before scanning finishes

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.

Intermittent 502 errors during Docker layer uploads in CI

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.


Agents and automation

Issues with the REST API, CLI, Terraform provider, and AI agent integrations. For full details, go to REST API, CLI, Terraform provider, or Using Artifacts with AI agents.

REST API or HTTP package call returns 401 Unauthorized

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 Set Up Client page expire after 30 days by default.

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.

REST API or CLI call returns 403 Forbidden with a valid token

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.

REST API call returns 404 Not Found for a registry or artifact that exists

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 for the full error reference.


Still stuck?

To check for a recent change, go to Release notes.

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 with this information.

Last updated

Was this helpful?