Troubleshooting
Run the failing command again with --debug to see each request it sends
and the status the server answers; tokens and passwords are never printed.
unauthorized: Invalid, expired or revoked token¶
The token in the profile no longer works: it expired, was revoked or disabled, or its user was deactivated. Log in again:
clarive login # the profile keeps its server and username
The same message appears when the token is a git token made in
Preferences, or one limited to some repositories: those open git only,
not the API. Log in with clarive login or make one with
auth.create_token.
no token for <url>: use --profile or --token¶
--url or CLARIVE_URL points to a server other than the profile's, and
the CLI does not send a profile's token anywhere but its own server. Use
the profile of that server (--profile), or give its token with
--token or CLARIVE_TOKEN. Check that CLARIVE_URL is not left over in
your environment.
no terminal to ask for the password: use --password-stdin¶
clarive login was run from a script or a pipe. Pass the password on
stdin, or better, log in once by hand and give scripts a token:
clarive login --url https://clarive.example.com -u jdoe --password-stdin < pw.txt
forbidden: ...¶
Your user lacks the permission the operation needs; the message names it.
clarive api describe <op> shows the permission of each operation, and
clarive whoami --actions the actions you hold. Ask an administrator for
the role.
forbidden: API op <op> changes data and this token is read-only means
the token is a read token. Log in again without --read-only, or use a
profile with a write token.
unavailable: Clarive is in maintenance mode¶
Only administrators can use the API while maintenance mode is on. Wait,
or ask an administrator (clarive system get-maintenance shows the
message).
network: cannot reach <url>¶
The server cannot be reached: check the URL (it must include https://),
your VPN or proxy, and that the server is up (clarive version --server).
With a self-signed certificate on a test server, --insecure skips the
certificate check.
A command or a flag is missing¶
The CLI's catalog may be older than the server. Refresh it:
clarive api refresh
If the operation is still missing, the server does not have it (clarive
version --server shows its version).
<file> exists: use -O <path> (or -O - for stdout)¶
A download would overwrite an existing file with a name the server chose.
Give the destination explicitly with -O, which may overwrite, or -O -
to print it.
aborted¶
A destructive operation was not confirmed. Answer y at the prompt, or
pass --yes (scripts need it: without a terminal there is nobody to ask).
job ... ended with status ERROR (exit code 9)¶
--wait or job wait saw the job end without finishing OK. Look at why
with clarive job get-root-cause <job> and clarive job logs <job>
--levels error. gave up waiting for job ... after ... (exit code 1)
means --wait-timeout passed first; the job goes on running.
internal: Internal error, see the server log (ref 1a2b3c4d)¶
The server failed. An administrator finds the details by the reference in
the web server log (clarive system read-log <log> --query 1a2b3c4d).