Pulse Beta

User guide

How-to guide

Troubleshooting

What the common errors of the CLI and the portal mean, what to do about each, and how to get help from TuxCare.

Common errors #

ErrorCauseWhat to do
CLI exit 3 no portal tokenThe CLI found no token.On your computer, run tuxcarectl auth login. In CI, set TUXCARE_PORTAL_TOKEN and check that the job can read it. GitLab gives a protected variable to protected branches only. GitHub gives no secret to a pull request from a fork.
CLI exit 5 the token and the portal URL are under two families of namesThe job sets the token and the URL under different families of names with no matching pair (CLI 0.1.94 or later). For example, the job sets only SECURECHAIN_PORTAL_TOKEN and gets the URL only as TUXCARE_PORTAL_URL from a CI group variable. The CLI sends nothing.Set the token and the URL under the same family of names, or set either variable under both names with the same value.
401 unknown or revoked tokenThe token is wrong, revoked, expired, or belongs to another workspace. A CI token of one repository also stops when the person who made it loses the member role on that repository, or the admin role for a token with the poll or write permission or the api or mcp channel.Check the CI secret. Make a new token.
The scans of a repository go to the wrong workspaceThe CLI has a sign-in to more than one workspace, and this repository uses another one.Read the line that starts with workspace: in the output of the scan. In the repository, run tuxcarectl auth use workspace, or set the key tenant in .tuxcare.yaml. A CLI before 0.1.46 keeps one sign-in only: upgrade it. See More than one workspace.
CLI exit 3 this machine has a login to more than one workspaceThe command ran without a terminal, and this repository has no workspace yet.Run tuxcarectl auth use workspace in the repository, or set --tenant.
auth login exit 2 or 3 in CI the browser sign-in does not run in CIThe browser sign-in does not run in a CI job: nobody is there to sign in, and the job would wait until its time limit. A job whose standard input is a terminal stops with exit 2. A job with no terminal, which is the usual case, stops with exit 3. The portal gets no request.Set TUXCARE_PORTAL_TOKEN in the job to a token from the Access tokens page (My tokens in the account menu), or pipe the token to tuxcarectl auth login --with-token. See In CI/CD.
auth login with no terminal prints a link and a code, and waitsStandard input is not a terminal and is empty, for example docker run with no -i and no -t. The CLI opens no browser. It prints the sign-in link and the code, and waits for the sign-in. An older CLI stops with exit 3 and the browser sign-in needs a terminal.Open the link in a browser on any device, check that the page shows the same code, and approve. The CLI then continues by itself. With docker run -i and no -t, standard input stays open, and the CLI waits for a token on it. When nothing comes within 2 seconds, the CLI prints tuxcarectl waits for the portal token on standard input, and nothing came yet. Pipe the token to standard input. For the browser sign-in, close standard input (Ctrl-D in a Unix terminal), or run docker with no -i., and goes on waiting. A token that you pipe in later still signs you in. For the browser sign-in, press Ctrl-D in a Unix terminal: standard input ends, and the CLI prints the link and the code. You can also run the command with no -i, or close standard input (< /dev/null). Do not enter the token by hand there: the terminal shows it on the screen. CLI 0.1.79 prints no line and waits with no message: press Ctrl-D, or run it with no -i. In a script, set TUXCARE_PORTAL_TOKEN, or pipe the token to tuxcarectl auth login --with-token. With an older CLI, upgrade it, or run the command in a terminal, for example with docker run -it or ssh -t.
auth login exit 3 the login was denied, or the code expiredSomebody selected Deny, the workspace refused the login, or nobody approved in time.Run tuxcarectl auth login again and approve in the browser. A viewer can sign in, but cannot send scans.
auth login exit 2 this portal does not support browser login. Pipe a token to tuxcarectl auth login --with-tokenThe portal at the URL of the CLI answered 404 to the start of the browser sign-in. A portal version from before the browser sign-in answers so, and so does an address that is not the portal itself.Check that the portal URL names your portal. Make a token in the portal and pipe it to tuxcarectl auth login --with-token.
403 this token cannot submit (or read, write)The token does not have the permission, or the role of its user does not have it. A token of a viewer cannot send scans.Make a token with the CI token (one repository) preset, or ask an admin to change your role.
403 this token cannot use the cli channel (or api, mcp)The token does not have that channel in its rights.Make a token with a preset for that channel, for example CI token (one repository) for the CLI.
403 this token is scoped to one repositoryA repository token asked for another repository.Use the token of that repository, or check the repository URL that the CLI sends.
CLI exit 2 the portal token is scoped to the repository …, and the command sent the repository …A CI token of one repository runs in another repository, for example a fork, or a project that copied the CI secret. The portal matches the URL exactly, so the same repository with another spelling (.git at the end) also stops. Nothing was stored. A CLI before this change exits 4 with repo_url does not name this token's repo.Make a CI token for this repository and put it in its CI secret. If the token's repository is this project, set submit.remote_repo_url in .tuxcare.yaml to the URL that the message names for the token.
CLI exit 2 tuxcarectl found no repository URL for this project, and the portal needs one for a token with scope "user"The project has no git remote origin, and the CI variables name no repository, for example a new local repository. The token is not scoped to one repository, so the portal needs the repository URL to file the scan. Nothing was sent.Add the remote (git remote add origin URL), or set submit.remote_repo_url in .tuxcare.yaml. A token scoped to the repository also works.
403 this action needs the member roleYour role cannot make this change.Ask an admin to change your role.
403 API access is off for this workspace (or MCP)An admin has not turned the channel on.Ask an admin to turn it on.
400 with zero componentsThe CLI found no packages to send.Run the CLI in the project root, or use --dir. Check that the lockfile exists and is committed.
The scan has no branchThe CLI ran on a detached HEAD outside a CI system that it knows.Check out the branch before the scan, for example git checkout -B main.
Warning git is not installed, so tuxcarectl listed the project's files with a directory walkThe image of the job has no git. The scan goes on, with two differences. The directory walk does not apply the .gitignore of the project, so it can read files that git ignores. The scan does not record the path of the project in the repository, so the portal cannot tell two projects of one repository (a monorepo) apart. In CI, the repository URL, the branch, and the commit still come from the CI variables.Install git in the image, for example with apt-get install git, apk add git, or dnf install git.
A finding on pip, setuptools, or wheel whose WHERE is the environment, for example /usr/local (environment tooling) or .venv (environment tooling)The package came with the Python image or with the virtual environment, and no file of the project declares it. In a conda environment, conda can show the same way. A line under the table names the environment and its packages. The finding is a real vulnerability in the image that runs the project, so it still counts for --fail-on.Upgrade the environment, not requirements.txt. Use a newer base image, or run python -m pip install --upgrade pip in the environment, with each package that the line names. For a virtual environment, run python -m venv --upgrade-deps environment. For a conda environment, run conda update -p environment packages.
--fail-on high could not fail this build: the advisory match is incompleteThe CLI cannot show that every package of the scan was checked, so the result is not clean. The CLI could not read all the findings of the portal, or could not place them on the packages of the report, the portal has no advisory source for a package type of the project (the report lists those packages under NOT ANALYSED), or the match did not end. A message this scan is incomplete means that the match is complete, but the CLI could not read, match, or apply a part of the project: each refusal of the report names that part. From CLI 0.1.86, such a scan under sca --fail-on or sca --fail-on-exploited fails the job: see the next two rows.Read the vulnerabilities section of the output: it tells you why. Fix the cause, and run the command again. A complete scan with no finding prints clean: N packages checked, no finding at or above high and exits 0. A CLI of version 0.1.74 or earlier can print could not fail this build: no vulnerability finding in this report has a severity for a clean scan too.
CLI exit 5 or 2 --fail-on level: no finding reached the bar, but tuxcarectl did not read N part(s) of this project, so this build does not passNo finding reached the level of --fail-on, and the scan did not read a part of the project (CLI 0.1.86 or later). Exit 5: you can fix each part, and the message names the fix of each one, for example a lockfile that does not parse. Exit 2: each part is a gap of tuxcarectl, for example a file that tuxcarectl does not support. CLI 0.1.94 or later names itself tuxcarectl in the message.Exit 5: do the fix that the message names, and run the job again. Exit 2: report it to TuxCare support. To keep exit 0 until 2027-12-01, give --accept-unread all, or set accept_unread: all in .tuxcare.yaml. See A part of the project that the run did not read.
CLI exit 5 or 2 --fail-on-exploited: no finding that can fail this build is known exploited, but tuxcarectl did not read N part(s) of this project, so this build does not passThe same, for sca --fail-on-exploited with no --fail-on (CLI 0.1.86 or later). CLI 0.1.82 to 0.1.85 printed a warning and exited 0. Exit 5: the message names the fix of each part. Exit 2: each part is a gap of tuxcarectl.The same as in the row above.
Warning --accept-unread all is deprecated, and is removed on 2027-12-01The run used --accept-unread all, or the key accept_unread: all. The warning goes on: It keeps exit 0 of --fail-on and --fail-on-exploited over a part of the project that tuxcarectl did not read. Each run that uses it prints the warning, whatever it read.Fix each part that a refusal of the report names. Then remove --accept-unread all, and the key accept_unread: all of .tuxcare.yaml, before 2027-12-01.
CLI exit 5 or 2 from image submit --fail-on level: no finding reached the bar, but tuxcarectl did not read N part(s) of this image, so this build does not passA package reader left part of the image unread and no finding failed a gate. Exit 5 covers a malformed SQLite RPM database, an unexpected end of JSON input in package.json, or a dpkg Status value in /var/lib/dpkg/status without exactly three whitespace-separated words. Other reader errors give exit 2. Earlier releases warned and exited with code 0 when no finding failed a gate.For exit 5, follow the repair in the message and rebuild the image. For exit 2, report the reader failure to TuxCare support. To skip the unread-part exit until 2027-12-01, use --accept-unread all. See A part of a container image that the run did not read.
Warning of image submit --accept-unread all is deprecated, and is removed on 2027-12-01The --accept-unread all flag skips the unread-part exit from --fail-on. Findings can still fail a gate. The CLI emits one deprecation warning per run that uses the flag. The override is available only as a command-line flag for image submit.Fix the image or report the reader to TuxCare support. Then remove --accept-unread all before 2027-12-01.
CLI exit 4The portal did not answer in time, the CLI is older than the portal accepts, or the portal blocks this version of the CLI (CLI 0.1.86 or later).Run the job again. If the message tells you to upgrade, see Upgrade the CLI. For a blocked version, the message gives the reason, the version to use, and the command that pins it: do what it says.
202 on findingsThe portal is still matching the scan.Wait some seconds and read again. The CLI does this for you.
429A limit or the rate limit.Read the quota field and the Retry-After header.

Exit codes lists what each exit code of the CLI means.

Errors with TuxCare builds #

These errors come from the CLI or from your package manager, in a project that uses TuxCare builds.

ErrorCauseWhat to do
CLI exit 3 the portal holds no registry credential for this tenantThe workspace has no registry token.Ask an admin to save it under Settings › Registry and CLI › Registry token.
CLI exit 4 the portal … does not support /securechain/v1/registry-credential after auth login or registry loginThe setting Use the TuxCare registry is off for the workspace or the repository, and the CLI does not know the setting yet. After auth login, the sign-in is saved. The CLI wrote no registry and no token into the files of your package managers. A portal that serves no registry credential route gives the same message.If your builds use only your own package repositories, nothing is wrong. Else ask an admin to turn the setting on for the workspace, or a member or an admin of the repository to turn it on for the repository: see Use the TuxCare registry. If the setting is on, the portal needs an update: ask your TuxCare administrator, as the message says.
E401 from the package manager during an installThe package manager has no credential for the TuxCare registry.On your computer, run tuxcarectl registry login. In CI, get the credential before the install step: see TuxCare builds in CI.
After auth login, pip, npm, or another package manager installs from the TuxCare registry, and you did not expect itThe setting Use the TuxCare registry is on, so auth login wrote the registry into the configuration files of the package managers in your home directory, for example pip.conf and ~/.netrc. The output of auth login lists these files. With CLI 0.1.69 or later, the first line of each file names the CLI and the command that removes the lines.Run tuxcarectl auth logout: it removes the registry lines, and it signs the computer out. If your builds use only your own package repositories, ask an admin or a member of the repository to turn the setting off before you sign in again: see Use the TuxCare registry. See The files that auth login and registry login write.
CLI exit 5 tuxcarectl did not run command in directory with the registry credential: file turns the TLS check off for host, or registry env wrote no job directory and printed no variablesA file of the project turns off the TLS check of pip, uv, pdm, pipenv, or Poetry for the host of the TuxCare registry: --trusted-host in a requirements file, allow-insecure-host in pyproject.toml or uv.toml, verify_ssl = false in a source of pdm or of the Pipfile, or in pdm.toml, or cert = false in poetry.toml. The lockfile counts too: a source in _meta.sources of Pipfile.lock whose verify_ssl is not true, because pipenv sync takes the sources of the lockfile. The CLI reads these files in the folder of the command and in each folder above it. It also reads them in each member of a uv workspace (a folder that a glob of [tool.uv.workspace] members names), and in each local path dependency of the project: the path of a source of [tool.uv.sources], a requirement name @ file:…, a chain of them, and the members of a workspace whose root is one. The message then names the file of that folder. The tool would send the registry credential over a connection that it does not verify. So a run with the registry credential stops before it runs the tool, and registry env --job-dir writes no job directory. The message names the file and the setting. The package tools of such a run no longer get the registry key at all: see The package tools of a run get no registry key.Remove the setting from the file. In Pipfile.lock, remove the setting, or remove the lockfile and lock again from project files that pass the check. If your network needs a certificate authority, give it where your tool reads it — cert in your own pip.conf or PIP_CERT (pip), SSL_CERT_FILE or --system-certs (uv), PIP_CERT or REQUESTS_CA_BUNDLE (pipenv), REQUESTS_CA_BUNDLE (PDM, Poetry — their own ca_certs or cert stops the run too) — not in the project. tuxcarectl check reports each such setting as registry-transport-in-project and gives the same per-tool CA advice. On uv, it also reports a setting in a member of a uv workspace or in a local path dependency, and names the file by its path from the project (packages/a/pyproject.toml, ../lib/pyproject.toml). A member glob that check cannot read to its end is a High finding with the key registry-transport-in-project:file:tool.uv.workspace.members, and more than 10,000 path dependency folders is a High finding with the key registry-transport-in-project:file:tool.uv.sources.path.
CLI exit 5 tool: tuxcarectl did not run tool in directory with the registry credential: file turns the TLS check off, or registry env wrote no job directory and printed no variablesA project .npmrc sets strict-ssl to a value other than true, or a pnpm-workspace.yaml sets strictSsl to a value other than true, and the pnpm of the run takes that setting: pnpm 12.0 to 12.15 for .npmrc, and pnpm 10.6 to 10.x for pnpm-workspace.yaml. For an .npmrc, the CLI reads a key under a [section] at the top level and a key with a variable such as ${X?} with the variable empty. On a pnpm in the range of the file it also refuses a key in quotes or with a JSON escape, a key after a bare carriage return, and a key cut at #: pnpm 11 or a later pnpm 12 reads such a spelling, and the refusal is wider than each pnpm on purpose. An .npmrc that sets strict-ssl=false and then true on a later line with the key in another spelling (in quotes, in upper case, or with _, --, or []) is refused too: pnpm 12.0 to 12.15 take only the key strict-ssl, so for them the false stays. A .yarnrc keeps the reading of Yarn 1. The commands that run pnpm with the registry credential stop at these settings before pnpm starts, and registry env --job-dir writes no job directory. tuxcarectl check reports a strict-ssl value other than true in each of these readings as a High finding of registry-transport-in-project; this finding does not depend on the pnpm version.Remove the setting from the project file. If your network needs a certificate authority, put it in the cafile of your own ~/.npmrc, or use pnpm 12.16 or later for .npmrc (11.0 or later for pnpm-workspace.yaml). Then run the command again.
CLI exit 5 tuxcarectl did not run command in directory with the registry credential: file names an index on plain http of host, or file turns the TLS check off for host with variable for a .envThe TuxCare registry is on https, and a Python project names its host on plain http: an index-url, extra-index-url, or find-links in a requirements file, an index of uv, or a source of pdm, of the Pipfile, or of Poetry. The lockfiles count too: a source url of _meta.sources or the file of a package in Pipfile.lock, and an http URL of the registry host in uv.lock or pdm.lock, because pipenv sync, uv sync, and pdm sync fetch from them. The tool would send the registry credential in plain text. Or the .env that pipenv loads sets REQUESTS_CA_BUNDLE, PIP_CERT, SSL_CERT_FILE, CURL_CA_BUNDLE, PIP_CONFIG_FILE, or PIP_TRUSTED_HOST: then the project chooses the certificate that pipenv trusts for the registry. The CLI reads these files in the folder of the command and in each folder above it, in each member of a uv workspace, and in each local path dependency of the project, as for a setting that turns the TLS check off. A uv command also makes the CLI read the requirements files that it names (-r, -c, --overrides, -b, --excludes, --with-requirements, the files of UV_CONSTRAINT, UV_OVERRIDE, UV_BUILD_CONSTRAINT, and UV_EXCLUDE, and each file of uv pip compile and uv pip sync), and each file that they name with -r or -c. An index on plain http of the registry host in such a file counts. A --trusted-host there does not count, because uv ignores it. Each local folder that the command or a line of these files names (-e ../lib, ../lib, name @ file:…) counts as a local path dependency. A pip command reads the local folders of its requirements files too. When the CLI cannot read each member of a uv workspace, the message says it did not read each of the members of the uv workspace. When the project has more than 10,000 local path dependency folders, the message says it did not read each of the local path dependencies of the project. So a run with the registry credential stops before it runs the tool, and registry env --job-dir writes no job directory. The package tools of such a run no longer get the registry key at all: see The package tools of a run get no registry key.Use https for the registry. In a lockfile, use https, or remove the lockfile and lock again from project files that pass the check. If your network needs a certificate authority, give it where your tool reads it, as the row above says, not in the .env of the project. tuxcarectl check reports each one as registry-transport-in-project.
CLI exit 5 tool: tuxcarectl did not run tool in directory with the registry credential, because file:line names an http URL on host, the host of the TuxCare registryharden, update, or fix on npm, pnpm, or Yarn 1: a file of the project names an http URL on the host of the TuxCare registry. The files are a scope registry of .npmrc or .yarnrc, package.json, package-lock.json, npm-shrinkwrap.json, pnpm-lock.yaml, pnpm-workspace.yaml, and yarn.lock. The command reads these files in its directory and in each directory above it, in each folder below the root of the workspace, so also in each workspace member, and in each local dependency that a package.json names with file:, link:, or a path: a folder or a tarball. For a file in a tarball, the message names tarball:package/name as the file. On Bun, the command reads .npmrc, package.json, bunfig.toml, and bun.lock in its directory and in each directory above it. Bun fills in a variable of bunfig.toml or .npmrc from a .env file of the project. So the CLI reads each $NAME and ${NAME} of these files with the values of the .env files too. It reads each .env file that Bun can load: .env, .env.local, .env.development, .env.production, and .env.test, each also with .local at the end. When such a .env file sets the variable to an http URL on the host, the message says that file:line names a variable that the .env file sets to an http URL on the host, and names the .env file. The tool sends the registry key of that host to each address on the host, also over plain http, where anyone on the network path can read it. So the command does not run the tool. The package tools of such a run no longer get the registry key at all: see The package tools of a run get no registry key.Use https in the line that the message names. For a .env file, use https in the value of the variable. In a lockfile, change the URL, or remove the entry and install again. Then run the command again. In CI, registry env --job-dir refuses the same files: see TuxCare builds in CI. tuxcarectl check reports each place that the run reads as registry-transport-in-project: package.json, the lockfiles, the workspace members, the file: and link: dependencies, pnpm-workspace.yaml, bunfig.toml, bun.lock, and the files in the directories above the project. It gives one finding for each file, with the key registry-transport-in-project:file:http-url.
CLI exit 5 tool: tuxcarectl did not run tool in directory with the registry credential, because file:line sets setting, a certificate authority of the project, or a warning of registry env --job-dir tools: file:line sets setting, a certificate authority of the projectA command with the registry credential found a project file that names a certificate authority: ca or cafile of .npmrc (npm, pnpm, Yarn 1), of .yarnrc (Yarn 1), or of pnpm-workspace.yaml (pnpm); a cert path of [certificates.name] in poetry.toml; or ca_certs of a PDM source or of pdm.toml. For pnpm, it also names the certificate authority of one registry in .npmrc: URL:cafile or URL:ca in lower case (for example //registry host/:cafile), the key also in double or single quotes ("//registry host/:cafile"=./ca.pem), when its host is the host of the TuxCare registry (any port and path) or a host that the CLI cannot read. A value null in any case counts too (null, NULL, Null): pnpm 11.21.0 opened NULL as a file, and pnpm 12.21.0 also null, so only an empty value names no authority. The CLI also reads the key as the ini reader of pnpm 11 reads it: a JSON escape in a key in double quotes ("//registry host/:\u0063afile" is //registry host/:cafile), also inside single quotes; a key with no quotes that ends at an unescaped # or ; (//registry host/:cafile#x); and a key after a carriage return with no line feed, which ends a line. The CLI also reads a key with a variable ${X} or ${X?} with the variable empty, so ${X?}cafile=./ca.pem counts as cafile. A .yarnrc keeps the reading of Yarn 1. Such a variable key, a quoted key, and a value null stop a command with the registry credential at exit 5, with no warning release first, and tuxcarectl check reports them: pnpm 11.21.0 or 12.21.0 used the authority of each such line, so a server that this authority signs could get the key. The authority of another host does not count, and neither do the same key in pnpm-workspace.yaml and the spellings that pnpm ignores (:cafile[], :ca[], :CAFILE, :ca_file, a leading --). npm and Yarn 1 do not use the key. The message names the key with no user info of its URL, and the warning of registry env --job-dir names the same settings. A command that reaches an https registry through the guard still stops at such a key of any host — the keys are ca, ca[], and cafile of .npmrc (and of .yarnrc for Yarn 1) — also in upper case or as URL:ca[], in double or single quotes as at the same key with no quotes, read as the ini reader of pnpm reads the key, or with the value null in any case; only an empty value names no authority. The message of the next row names the file. The CLI reads these files in the directory of the command and in each directory above it, up to the root of the checkout. The tool would trust each certificate that this authority signs, also for the host of the TuxCare registry, so a host that the repository chooses would get the registry key. On the other CA settings of this row, CLI 0.1.97 or later exits 5 before it starts the tool; CLI 0.1.95 and 0.1.96 ran the tool and warned. For Poetry and PDM the message reads tool: tuxcarectl did not run command in directory with the registry credential: file names a certificate authority of the project for host with setting. CLI 0.1.97 or later warns on such a setting of the checkout in registry env --job-dir and still writes the job directory; a later CLI release refuses the checkout with exit 5 and writes none. A CA setting of your own stops the command too: see the next row.Remove the setting from the project. Put a certificate authority that your network needs in NODE_EXTRA_CA_CERTS, in the cafile of your own ~/.npmrc (npm, pnpm, Yarn, Bun), or in REQUESTS_CA_BUNDLE (PDM, Poetry). tuxcarectl check reports the setting as registry-transport-in-project. For the certificate authority of one registry, tuxcarectl check reports a High finding with the key registry-transport-in-project:file:URL:cafile (or :ca). CLI 0.1.97, the first release with that check, gave only a note; the High finding is the default since CLI 0.1.99. For ca and cafile of each host, the finding key stays registry-transport-in-project:file:cafile (or :ca), and the finding reads the quoted, escaped, comment-cut, and carriage-return forms with a value other than an empty one. Then run the command again.

CLI exit 5 tool: tuxcarectl did not run tool in directory with the registry key, because file or variable names a certificate authority for tool

Warning tuxcarectl could not prepare the certificate authority of this command or a warning that a Python tool's host has no file of system certificate authorities.

Warning tool: tool in directory did not trust the certificate authority that tuxcarectl made for host

When a CA setting replaces the tool's list, the CLI exits 5 before the tool runs. The message names the file or variable and omits its value. CLI 0.1.93 to 0.1.96 ran the tool with the registry key in its setting for the host alone and warned.

  • For npm, pnpm, Yarn 1, and Bun, the CLI refuses inline ca or ca[] in the npm user configuration, npm_config_ca, and a cafile in the npm user configuration that the run cannot read. A readable cafile in that configuration works because the run joins it with its own certificate authority. The variable npm_config_cafile stops npm and Yarn 1. pnpm and Bun add its file to their CA list and run.
  • For PDM, the CLI refuses [pypi] ca_certs in the user configuration. For Poetry, it refuses a cert path under [certificates.source] in the user configuration or a POETRY_CERTIFICATES_SOURCE_CERT variable.
  • The CLI also checks files above the checkout root, stopping before the home directory. It checks ca, ca[], and cafile in .npmrc for npm, pnpm, Yarn 1, and Bun and in .yarnrc for Yarn 1; in pnpm-workspace.yaml for pnpm it checks ca and cafile. It checks ca_certs in pdm.toml for PDM and a cert path in poetry.toml for Poetry.
  • A project .npmrc with ca or cafile also stops Bun at exit 5. Bun 1.4.4 replaces its CA list when the file sets cafile. See the project CA refusal for the other tools.

The preparation warning and the warning about a missing system CA file describe the two cases where the tool receives the key. The warning that the tool did not trust the run's CA means that the tool got no package from the registry host.

For the exit 5 refusal, remove the setting or move the CA to NODE_EXTRA_CA_CERTS or a readable cafile in your own ~/.npmrc for npm, pnpm, Yarn 1, or Bun. For PDM or Poetry, use REQUESTS_CA_BUNDLE.

If the tool did not trust the run's CA, move the CA to NODE_EXTRA_CA_CERTS for npm, pnpm, Yarn 1, or Bun. For pip, uv, Pipenv, PDM, or Poetry, follow the per-tool Python CA advice. Then run the command again.

ETARGET No matching version found for a version that ends in -tuxcare.NA tool looked for a TuxCare build among the public packages. npm update does this, and so does an install with no lockfile.Commit the lockfile and install from it. Move the builds with tuxcarectl update. See the rules.
Bun name@range failed to resolve, after No version matching for a version that ends in -tuxcare.NThe overrides or resolutions block of package.json is not the block that bun.lock recorded: someone added or changed a key. Bun then resolves every override again, and the registry of the project, /npm-upstream/, has no TuxCare builds. tuxcarectl check reports this as bun-lockfile-overrides, for most forms of key.Run BUN_CONFIG_REGISTRY=https://registry host/npm/ bun install once, then commit bun.lock. The registry host is in the registry: line of .tuxcare.yaml. See the rule for Bun in the rules.
EINTEGRITY from npmThe lockfile has the hash of the public package for an address that now serves a TuxCare build. A project that a CLI before 0.1.16 set up can have this.Run tuxcarectl init, then tuxcarectl harden, and commit the lockfile. See the two paths of the registry.
harden exit 2, with a message that names another registryThe package manager of the project does not use the TuxCare registry.Run tuxcarectl init, commit the files, and run harden again.
harden exit 4 on a Java projectOnly CLI v0.1.97 or earlier stops here: it needed a BOM file from TuxCare. CLI 0.1.99 or later takes the versions from the portal answers, as on JavaScript and Python, and needs no BOM file.Run tuxcarectl upgrade, then run harden again.
CLI exit 6harden, update, unharden, or fix changed the project, but the installed packages are not the planned ones. The CLI put your files back.Read the message: it names the package. Contact TuxCare if it stays.

The package tools of a run get no registry key #

In a run of harden, update, fix, or registry check with an https registry, the package tools npm, pnpm, Yarn 1, Bun, pip, uv, PDM, Pipenv, and Poetry get no registry key. tuxcarectl adds the key itself to each request to the host of the registry. It sends the request over a connection that it checks with your system certificate authorities and with your own settings: SSL_CERT_FILE, NODE_EXTRA_CA_CERTS, REQUESTS_CA_BUNDLE, PIP_CERT, the cafile of your own npm configuration, CARGO_HTTP_CAINFO, and http.cainfo of your own cargo configuration. tuxcarectl reads that configuration from the folder CARGO_HOME, else ~/.cargo: the file config when it exists, else config.toml. When TUXCARE_CA_BUNDLE is set, tuxcarectl checks the connection with that bundle alone, so put each certificate authority that your network needs into that bundle. A certificate authority of a project file is never trusted for this connection.

A CA setting that replaces the tool's certificate authorities stops the command at exit 5. This includes ca or cafile in a project .npmrc for Bun. See the CA refusals and warnings for the settings each tool checks and where to move your CA.

A project file that sends a tool past tuxcarectl, for example through another proxy, sends no key: the registry answers 401, and the command exits 5. A corporate TLS proxy keeps working when its certificate authority is in your own settings above. Yarn 2 or later, Maven, and Gradle are not in this rule: they get TUXCARE_TOKEN alone. Each other program that the CLI starts in such a run — Deno, cargo, go, gem, a node that runs no package tool, and the rest — gets no key: TUXCARE_TOKEN is empty for it.

Errors by exit code #

Each exit code of the CLI and the errors of the tables above that end with it. Exit codes says what each code means.

Exit 0 #

The run finished, and no finding reached the level that fails the job. If you expected the job to fail, check the --fail-on level of the command. See Gates and pull requests.

Exit 1 #

A finding failed the gate. This is a result, not an error: read the findings in the job log or in the portal. See Gates and pull requests.

Exit 2 #

The command cannot run as you wrote it. Read the message, and check the options and the directory.

Exit 3 #

The token or the workspace stopped the run.

Exit 4 #

The portal did not answer in time, or its answer failed a check.

Exit 5 #

A tool on your side failed, or a setting on your side stopped the run before it sent anything.

Exit 6 #

The installed packages are not the planned ones. See CLI exit 6.

Exit 7 #

An error in the CLI. Run tuxcarectl doctor --bundle file, and send the archive to TuxCare.

Diagnose your setup: doctor #

tuxcarectl doctor
tuxcarectl doctor --bundle support.tar.gz

doctor checks the environment of the CLI: the package managers and their versions, the configuration files, the connection to the portal, and the proxy and CA settings. It prints what it finds and changes nothing.

The line flags names each rollout flag of the build, on or off, and what set it: portal (your portal sent the value) or default (the default of the build). When the portal sent no flags, the line says so. A flag is not a check: it does not change the result of doctor (CLI 0.1.86 or later).

--bundle also writes a support archive. The archive has the same facts and the trace of the last command. The CLI removes each token from it. Attach the archive when you contact TuxCare.

Get help #

The hosted service of TuxCare Pulse has a status page: status.tuxcare.cloud. TuxCare posts the major incidents of the hosted service there, with the state of the website and sign-up, the sign-in, the customer workspaces, and the vulnerability data updates. The page runs outside the hosted service, so it answers when the portal does not. Look at it first when the portal does not answer or a sign-in fails. A page with no incident does not prove that the cause is on your side: when the problem stays, contact TuxCare. A portal that you install yourself (on-prem) is not on the page.

If this guide does not answer your question, contact TuxCare. Give these facts:

To report a vulnerability in TuxCare Pulse itself, use vulnerability reporting.

Next: Package managers