Errors & troubleshooting
Most errors use the standard error body, with an error code and a message. A few endpoints add fields or return plain text, so check the Content-Type header.
Status codes
| Status | Meaning | What to do |
|---|---|---|
400 Bad Request |
The request is malformed, or the operation doesn't apply to this resource (for example, Kubernetes endpoints on a fleet without Kubernetes). | Read error and details, then fix the request. |
401 Unauthorized |
The token is missing, malformed, or expired. | Get a new token with harbor auth token and check the header is Authorization: Bearer <token>. |
403 Forbidden |
Your role doesn't allow this action. For example, a User tried a power action. | See Roles & permissions, or ask an Administrator. |
404 Not Found |
The resource doesn't exist or belongs to another organization. | Check the ID, and check that you're calling the right region. |
409 Conflict |
The resource's state doesn't allow this, or a request with the same idempotency key is still in progress. | Check the resource state, or retry with the same key after about 5 seconds. |
412 Precondition Failed |
A prerequisite isn't met. For example, GPU validation hasn't finished before a cluster validation run. | Wait for the prerequisite to finish. |
422 Unprocessable Entity |
The idempotency key was reused with a different request, or the resource isn't in a valid state (for example, health on a fleet that isn't ACTIVE). |
Use a new key, or wait for the resource to be ready. |
423 Locked |
Another operation is running on the node (power). | Wait for it to finish. |
500 Internal Server Error |
An unexpected error occurred. From POST /v1/audit-logs/export, it can also mean export isn't available in your region yet. |
Retry with backoff, except for the audit export case. For a POST sent with an Idempotency-Key, check the resource's state and use a new key. If it continues, contact support. |
502 Bad Gateway |
A service the request depends on (for example a node's management controller, storage, or Kubernetes) returned an error or couldn't be reached. | Retry with backoff, as for 500. |
503 Service Unavailable |
Temporarily unavailable. For power actions, the operation was rejected immediately. | Retry. For power actions, use a new idempotency key. |
Common problems
My token works in one region but not another
Tokens are region-specific. Log in to each region and use harbor auth token --region <region>. See Regions & endpoints.
I get 404 for a fleet I can see in the console
You're probably calling a different region's API. Check the region shown for the fleet in the console.
My SSH key doesn't work on existing nodes
Registering a key only affects new nodes. Apply the key to the running fleet.
A deleted SSH key still works
Deleting an SSH key only takes it off fleets it was applied to after creation. Keys installed when a fleet was created stay on its nodes. Revoke the key from that fleet.
Fleet health returns 422
Health is only available for ACTIVE fleets with nodes. Check the fleet's status.
The node power state hasn't changed after an action
The power state is eventually consistent. Poll GET .../power every 10–15 seconds while lastOperation.status is ACCEPTED or IN_PROGRESS. See Node power.
The storage view is stuck in provisioning or modifying
Large changes can take several minutes. If state becomes unhealthy, contact support with the fleet ID and mount point.
Contacting support
Include the following so we can help quickly:
- Region and
fleetId, plusnodeNameor mount point if relevant - The request method and path
- The response status and full body, and the time of the request
- The
Idempotency-Key, if you sent one
See Support.
Was this page helpful?
Thanks for the feedback.