Troubleshooting

Find the message or behaviour you see, then read the cause and the fix. Most messages from Pratique start with "pratique:" and link to the package page that explains the decision.

Package clients

npm fails with E401 "Incorrect or missing password"

npm shows its own text for HTTP 401 and never the response body. Look for the notice line that Pratique sends just before it:

textnpm output
npm notice pratique: a valid client token is required. Create one at https://pratique.example.com/tokens, and set up your package manager as https://pratique.example.com/connect shows
npm error code E401
npm error Incorrect or missing password.

Cause. The request has no token, or the token is wrong, expired or revoked. A wrong token is refused even on a server that allows anonymous access.

Fix. Create a token under Access tokens and add it as the Connect clients page shows. Check that the registry URL in .npmrc matches the host the token is set for. See npm and tokens.

Other clients say "a valid client token is required"

Cause. The same as above. pip and uv receive HTTP 401 with a Basic realm and ask for a user name and password. Composer and Go show the status or the message.

Fix. Run pratique-connect, or give the client a token as the Connect clients page shows: in the index URL for pip, in UV_INDEX_PRATIQUE_USERNAME and UV_INDEX_PRATIQUE_PASSWORD for uv, in auth.json for Composer, and in ~/.netrc for Go. The user name is token and the password is the token.

pratique-connect doctor shows FIX

Cause. A tool uses another registry, often because of an environment variable or a project file that overrides your user settings, or the token is expired, revoked or about to expire.

Fix. Read the line: it names the setting the tool really uses. Remove the overriding variable or project setting, or run pratique-connect login to get a new token. See check the setup.

pratique-connect says "the entry for … in .netrc spans several lines"

Cause. ~/.netrc already has an entry for the server, written over several lines. The tool doesn't rewrite it, so it can't remove something you wrote.

Fix. Delete that entry from ~/.netrc and run pratique-connect login again.

"That code isn't valid" when you approve a sign-in

Cause. The code expired after 10 minutes, was already used, or was mistyped.

Fix. Run pratique-connect login again for a new code.

npm fails with E403 and a reason

textnpm output
npm error 403 403 Forbidden - GET https://pratique.example.com/npm/left-pad/-/left-pad-1.4.0.tgz - pratique: held left-pad@1.4.0: in quarantine until 2026-12-08 10:15 UTC. To see why, or request an exception, open https://pratique.example.com/packages/npm/left-pad?version=1.4.0#why

Cause. The client asked for a file that is Held or Refused. This happens with a lockfile, an exact pin or a direct URL. The text after pratique: gives the reason.

Fix. Open the link in the message. A held version clears by itself at the time shown. To use it earlier, request an exception from the package page. A version refused as malware also says "If this version is already installed anywhere, treat that machine as compromised and tell your security team". Do that first. See blocked and allowed.

An install picks an older version than the newest release

Cause. The newest release is in quarantine. npm sees held versions as deprecated and pip and uv see them as yanked, so they pick the newest cleared version. Composer and Go listings leave held versions out.

Fix. Nothing, if the older version works for you. The newer one becomes available when its quarantine ends. If you need it now, for example for a security fix, request an exception, or see fast-track security fixes.

pip says "No matching distribution found", or warns about a yanked version

Cause. Every version that matches your requirement is held or refused. pip and uv skip yanked files unless the requirement pins one exact version. With an exact pin, pip picks the yanked file, prints its reason as a warning, and then gets HTTP 403 for the download. When no file of the package is cleared at all, the listing itself answers HTTP 403 with "no file of NAME is cleared".

Fix. Loosen the requirement so it allows a cleared version, or wait for the quarantine to end, or request an exception from the package page.

A newly published release does not appear

Cause. Pratique reuses a package's list of releases for 5 minutes by default before it asks the registry again. The new release is also held until its quarantine ends.

Fix. Wait for the metadata cache to expire. An admin can change its length under Settings, from 1 minute to 24 hours.

Go refuses the GOPROXY URL

Cause. The go command accepts a GOPROXY served over plain HTTP only for a local address listed in GOINSECURE.

Fix. Serve Pratique over HTTPS, directly or from a proxy, and use the https:// URL. For a local test server, set GOINSECURE to its host. Leave direct out of GOPROXY, so nothing goes around Pratique. See Go.

Composer refuses an http:// repository

Cause. Composer's secure-http setting is on by default and refuses plain HTTP.

Fix. Use the HTTPS URL. For a local test server only, add "config": {"secure-http": false} to composer.json. The Connect clients page adds it for you when the server uses plain HTTP. See Composer.

"is a reserved internal name and is never fetched upstream"

Cause. The name matches PRATIQUE_RESERVED, and nothing is published under it on Pratique. Pratique never looks up a reserved name upstream, to stop dependency confusion.

Fix. Publish the package to Pratique, or fetch it from your own registry. For Go, set GOPRIVATE for your internal modules. See private packages.

"cannot evaluate this package right now, so it is not being served"

Cause. An error stopped Pratique from making a decision, for example a database error or a failed request for data it needs. It fails closed: HTTP 503, and nothing is served. The text after the colon names the error.

Fix. Try again. If it continues, read the server log for "request failed closed", check /readyz, and check that the server can reach the registry and OSV.

"could not fetch the file from upstream, try again"

Cause. The registry did not answer, or the download failed. Pratique answers HTTP 502.

Fix. Try again. Check the server's outbound access to the registry host. In firewall mode, a registry outage stops installs, because no copy is stored.

"an AI triage token can only be used at /mcp"

Cause. A package client uses a token made for an AI triage agent.

Fix. Create a separate token for the person or bot. See AI triage.

Access and sign-in

Downloads show as anonymous

Cause. The server is entirely local, so clients without a token are allowed and recorded as anonymous. This happens only with a loopback listen address, a local public URL, no trusted proxy and no client tokens in the environment or config file.

Fix. Give each person and bot a token. To refuse clients without a token on a local server too, set PRATIQUE_REQUIRE_TOKENS=true.

No generated admin token in the logs

Cause. Pratique generates and prints an admin token only when PRATIQUE_ADMIN_TOKEN is not set and no OIDC, SAML or LDAP sign-in is configured. With single sign-on, no admin token exists.

Fix. Sign in with single sign-on. For a break-glass login, set PRATIQUE_ADMIN_TOKEN to at least 32 random characters, such as the output of openssl rand -hex 24, and restart. A generated token changes on each restart. In Docker, read it with docker logs.

"Your identity provider didn't confirm your email address"

Cause. Pratique requires the email_verified claim from OIDC. Some providers, such as Microsoft Entra ID, leave it out.

Fix. Once you have confirmed that the provider controls the email field, set PRATIQUE_OIDC_TRUST_EMAIL=true (sso.trust_email: true). See sign-in.

The server does not start: "PRATIQUE_PUBLIC_URL is required on a non-loopback address"

Cause. The listen address is not a loopback address, for example 0.0.0.0:8484 in the Docker image, and no public URL is set.

Fix. Set PRATIQUE_PUBLIC_URL to the URL clients use, such as https://pratique.example.com. For a local Docker test, http://127.0.0.1:8484 works. See settings reference for other startup errors.

Policy and timing

A release clears at a different time than expected

Cause. Quarantine counts from the publish time that the registry gives, and times in messages are in UTC. The most specific window applies: the package, then the registry, then the default. A team's token can have its own window. For Go, the date comes from the commit. A release that claims to be older than the last listing has its clock started when Pratique first sees it.

Fix. Open the package page to see the window that applies and the time it clears. Keep the server's clock synchronized, because quarantine uses it. A release with no publish time is refused with "the registry gives no publish time, so its age cannot be verified". See quarantine.

Blocked and allowed shows an old state

Cause. Working out what is still blocked means looking at every package, so the list is reused for 30 seconds and then refreshed in the background. The page says when it was last checked.

Fix. Reload after a short wait. A change you make shows at once on the instance you made it on. What clients receive is always decided fresh, so the delay affects only the page.

A threat feed shows as failing

Cause. A refresh failed, or the file is malformed. Pratique keeps the last good copy of a custom feed and shows the feed as failing. Custom feeds refresh every 15 minutes, and OSV changes are read every 5 minutes.

Fix. Open Threat feeds and read the error. Check that the server can reach the URL, that a ${VAR} in the URL has the right value, and that a blocklist has lines of registry name version reason. See threat feeds.

Operations

/readyz fails

Cause. /readyz answers HTTP 503 with database unavailable or storage unavailable. It ignores registry outages.

Fix. For the database, check the disk and the permissions on PRATIQUE_DATA (the Docker image runs as user 65532), or that Postgres is reachable. For storage, check the data directory or the S3 bucket and its credentials. The server log names the error.

A hash incident opened

Cause. A file did not match what Pratique expected. The incident is one of:

  • A download didn't match its declared hash: the bytes differ from the hash the registry lists.
  • A published file changed upstream: the registry now lists a different hash for a file Pratique already pinned, or a file removed by storage cleanup came back different.

Fix. The file is refused, so nothing more is delivered. Treat the incident as a possible attack on the package or the registry: check who downloaded the version before, and compare the releases. Do not allow the version until you know why it changed. See incidents.

lockcheck fails with "no lockfiles found, so nothing was checked"

Cause. The paths you gave have no lockfile that lockcheck reads, or they are only in directories it skips, such as node_modules, vendor, dist or build.

Fix. Run it from the repository root, or pass the directories that hold the lockfiles. It does not read go.sum. See lockcheck.

lockcheck reports sources that bypass Pratique

Cause. A lockfile still points at a public registry, a Git repository or a direct URL.

Fix. Regenerate the lockfile with Pratique as the registry. Make sure --registry is the same host as in the lockfile. See CI.