Quader Docs 0.176.0

Errors and troubleshooting

Read what Quader answers when a request fails, pass the request ID on, and fix the refusals clients meet most.

On this page

How Quader reports an error

Every error answer has a status, a stable code in snake_case and a sentence. Quote the code: its meaning does not change. The management API and /files/… answer with problem details (RFC 9457); GET /api/v1/problems/<code> describes any code without sign-in, and Error codes lists them all.

json
{
  "type": "/api/v1/problems/not_found",
  "title": "Not found",
  "status": 404,
  "detail": "The resource does not exist.",
  "code": "not_found",
  "requestId": "4bf92f3577b34da6a3ce929d0e0e4736"
}

npm repositories answer {"error": …, "message": …, "code": …}; npm prints E404 and the message. NuGet and APT clients print only the status: ask for the body with curl (without -f). Registry clients get UNAVAILABLE or DENIED with Quader's sentence.

Give the request ID to an administrator

Every answer carries X-Request-Id, 32 hexadecimal digits, which leads an administrator to the request's log records (Follow one request). The UI shows it as Request ID with a Copy button; curl --include prints it. A package client hides it: give the time, the address, the command and your user name instead.

Status codes

Status Means in Quader Do
401 No credential where one is needed, a token that is malformed, unknown, expired or revoked (invalid_token does not say which), a disabled owner, or an ended session Set the token, create a new one, or sign in again (When your session ends)
403 The credential lacks the permission, or a rule refuses: package owners, the shadowing check, a read-only endpoint, a download gate Read the code; ask for the permission
404 The resource does not exist or is hidden from you: a refused read answers like a missing one Check the address with project key, repository key and name; ask the project's Owner
405 A write to a remote repository, or to a virtual one without a deployment target Publish to a local repository
409 A conflict: a version that exists or was deleted, a stale revision, a path that is a folder Publish a new version, or retry
412 The resource changed since you loaded it Read again and decide
421 The host is not one the endpoint answers for Use the address of Set up client
429 Too many requests, or too many rejected credentials from your address Wait Retry-After; fix a wrong token first
502, 504 A remote repository's upstream failed for content that is not cached Retry later; tell an administrator if it stays
503 Temporarily unavailable, always with Retry-After Retry; below by code

Requests answered 503

Code Means Do
database_unavailable, database_timeout, authz_stale PostgreSQL did not answer, a statement ran out of time, or the permission index could not be confirmed current Retry; an administrator: Runbook
object_store_unavailable The object store cannot be reached Runbook
content_unavailable The file's stored object is missing; a remote fetches it again and answers this only while it cannot Lost objects
server_busy, shutting_down The replica is at its limit, or draining Retry; scale if it stays
unavailable Read-only maintenance mode (the sentence is its message), a full spool, a write colliding with another, or the wrong role for the path Wait for the maintenance to end, or retry
upstream_assumed_offline, upstream_rate_limited, fetch_queue_timeout The upstream is down, limits Quader, or every fetch slot stayed busy Wait Retry-After; raise the remote's limits.maxConcurrentFetches if the upstream allows
shadow_check_unavailable Whether a remote serves the name could not be learned; nothing was stored Retry later
vulnerability_data_unavailable The advisory data of the ecosystem is not imported yet Wait for the first import
malware_check_pending, signature_check_pending Only checked artifacts are served, and the check runs Below
provider_unavailable, too_many_pending_logins, break_glass_rotating Browser sign-in cannot start now; tokens keep working Retry; check the identity provider
temporarily_unavailable The CI token exchange could not finish; reason says why Refused exchanges
busy A Bastion's budget of requests to the main installation is used up Run a Bastion

A download is refused

When Quader will not hand out a version or file, every client gets the same sentence. npm prints it after E403, Docker after error from registry:, Kubernetes after denied:, dotnet restore as a warning : line, and ansible-galaxy after Message:; APT shows the status only. The sentence names the artifact, the repository, the reason and the page that explains it. An answer of a gate is never cached, and through a virtual repository the member that stores the artifact decides.

Code Status Why Do
vulnerability_blocked 403 A finding blocks this version: a known malicious package, or a triager's block Use another version; only a triager lifts it (Vulnerabilities)
vulnerability_data_missing 403 The repository refuses what it cannot check yet: no advisory data, or an image not scanned yet Follow the sentence: an image scan finishes within minutes; otherwise ask an administrator
malware_found 403 The malware scan found a signature Use another version; an auditor can release a false find (Malware scanning)
malware_not_checked 403 Only checked artifacts are served, and the scan could not read the file Ask an auditor (Could not be checked)
malware_check_pending 503 The file is scanned for the first time Repeat in a minute; npm, NuGet and APT retry, Docker and ansible-galaxy do not
signature_not_verified 403 Only verified artifacts are served; reason says missing, untrusted, not_chosen, invalid, blocked or not_checked Sign it with a key the repository's anchors know, or ask an administrator, security administrator or auditor to release it (Signatures)
signature_check_pending 503 Its signatures are checked or fetched Repeat in a minute; Docker and Podman show only 503 Service Unavailable
not_allowed_in_repository 403 The remote's delivery rules do not deliver it Ask for it on the tab Upstream (Curating a remote repository)

npm, pnpm and Yarn

You see Cause Do
E401 with a token configured QUADER_TOKEN is unset where the client runs; the credential line misses the exact address with its trailing slash; Yarn lacks always-auth=true or npmAlwaysAuth: true; the token is invalid; a further endpoint accepts only service-account tokens bound to it Fix the line or the token
E404 for a package that exists Unpublished or withdrawn upstream; a namespace claim keeps the name to a local repository; a member you cannot read; an exposure rule or a name pattern; an offline remote without a copy (not_cached_offline); a public registry of the project upstream not switched on (the sentence says so); the address lacks the project key Check each; Quader does not say which, by design
E403 forbidden on publish Publishing needs deploy, unpublishing delete Ask for it, or use a token whose scope has it
E403 package_owned_by_other_owner, shadows_remote_package You are no owner, or a first publish would hide a package a remote member serves An owner adds you; a holder of manage publishes first or claims the name
E403 endpoint_read_only, populate_not_permitted A write on an endpoint with exposure rules; no right to fill the remote's cache Publish through the default endpoint; ask for the permission
E409 npm_version_exists, npm_version_unpublished The number is taken for good Publish a new version
E409 npm_stale_rev Another change came between read and write Run the command again
EINTEGRITY The lockfile was written against a registry that served other bytes Check where the lockfile came from
Audit 501 npm_audit_unavailable Audit mode disabled, the cache view, or an endpoint with exposure rules Audit through the repository itself

Quader never asks a client for a one-time password; npm's token and profile commands are not built (Known limitations).

NuGet

Answer Code Do
400 nuget_invalid_package, nuget_invalid_id, nuget_invalid_version Build the package again; push .snupkg after its package
403 forbidden, package_owned_by_other_owner, shadows_remote_package Ask for deploy or ownership; push to a local repository or a virtual one with a target
404 on a symbol push not_found Push the .nupkg first
409 nuget_version_exists, nuget_symbol_package_exists, nuget_version_deleted, nuget_version_reserved A version never changes and a deleted number never returns: push a new version (--skip-duplicate accepts an equal one)
502 upstream_error naming PackageBaseAddress/3.0.0 remote.url must be the index.json of a v3 feed
502 foreign_host_denied Add the host to the remote's extra hosts; for nuget.org *.nuget.org
502 upstream_package_mismatch, nuget_invalid_upstream_document The upstream serves something wrong; tell its owner

dotnet nuget delete unlists unless the repository's delete mode is delete. Debian's answers are in the guide of Set up client and Debian (APT).