# Troubleshoot a failed job

> Find the cause of client, upload, execution and output failures.

Source: https://www.sorus.run/docs/guides/troubleshooting
Reviewed: 2026-10-21

Keep the command, client version, exit code and any printed job identifier or submission key.

## Client version refused

If the response names `client_too_old`, run `sorus --version` and update through the [public installation route](https://www.sorus.run/docs/sorus-ci#install). The service can refuse an older client before sign-in, so replacing credentials does not resolve this error.

Client 0.3.0 does not provide command help through `--help`. Use the [CLI reference](https://www.sorus.run/docs/reference/cli) to look up arguments; a Cargo command may otherwise treat `--help` as a workload argument.

## Authentication failure

Run `sorus whoami` and check the endpoint and credential source. `SORUS_TOKEN` takes precedence over `SORUS_CREDENTIAL_FILE`. Your identity also needs access to the repository. Follow [authentication](https://www.sorus.run/docs/guides/authentication) for expiry, rotation and scope problems.

## Request refused

Read the refusal code and detail. Check the toolchain, source limits, repository authorisation, command options and [workload support](https://www.sorus.run/docs/supported-workloads). A request refused before execution has no compilation result.

Conflicting old and new settings are refused. Use the `SORUS_*` names and one root configuration file. If an older installation is involved, check the [compatibility aliases and conflict rules](https://www.sorus.run/docs/release-status#existing-installations).

## Interrupted upload

Keep the submission key and recovery record. Repeat the original command with `--submission-key <key>`. Changed arguments or source need a new submission. See [source recovery](https://www.sorus.run/docs/guides/source#resume-a-submission).

## Closed terminal or lost connection

The job may still be running. Follow it with `cargo sorus status <job>`, replacing `<job>` with its identifier. Inspect the state before resubmitting. Use `cargo sorus cancel <job>` to request cancellation explicitly.

## Failed build or tests

Read `cargo sorus logs <job>` after the job finishes. Compare source, compiler and arguments with your local or CI baseline. Check the [environment](https://www.sorus.run/docs/guides/environment) for required tools, system libraries and network restrictions.

If Cargo cannot fetch a dependency, check that it is supported and recorded in the captured lockfile. Remove `--offline` when the build needs the dependency gateway. A guest cannot download an unavailable toolchain or contact arbitrary external services.

For nextest, inspect `cargo sorus jobs test-results <job> --json` for failures, retries, flaky tests and the doctest step. Declared database services are [not yet offered to customer jobs](https://www.sorus.run/docs/reference/services#availability); a declaration using them is refused before a job is created.

## Platform failure

Exit `5` means a terminal platform failure, with no verdict on the workload. Keep the failure code and job identifier. `cargo sorus jobs retry <job>` creates a linked retry.

Exit `4` means no outcome was observed. Check whether the original job exists and is still running before retrying. The [results guide](https://www.sorus.run/docs/guides/results#exit-codes) gives the full decision table.

## Failed artifact download

Check the artifact identifier, expiry and destination. Artifacts expire 24 hours after original admission. Choose a new filename if the destination already exists.

A failed download does not change the workload result. Restore access or connectivity and retrieve the output again instead of rebuilding it.

## Contact support

Use your agreed support channel and include the client version, command, expected result, failure message and job identifier with sensitive details removed. Keep credentials and private source out of the initial message.
