Troubleshooting

Find the reason

Runs, evaluations, distillations, pipelines, curations, comparisons and dataset analyses report failureReason, a sentence for the person who started the work. The training runs get command prints its first line on the Failure row.

akka optimize training runs get RUN_ID -o json

For job failure reasons, see Investigate a failure. For work waiting for devices, see Capacity and quotas.

Check service startup

To read startup reports, run the following command:

akka optimize training info

Check Startup for incomplete startup and read any reported error. The command exits with a non-zero status if the service does not answer, startup is incomplete, or reports cannot be read. Retry after the service has had time to start.

If work fails during a cluster outage, read it again after the cluster responds. Its job may still be running and holding devices.

Check exhausted retries

Read failureReason and correct any named input. For a transient cluster or registry failure, retry when that service responds. If cleanup fails, the run can retain its devices until cleanup completes.

Correct refused requests

Read the refusal and its hint. Correct the named field, reference or quota before retrying. Common next steps are:

Check a missing response

A 503 response with no healthy upstream makes the CLI print:

no healthy upstream: the <service> service is not running (paused or not started), or is not passing its health checks

The service can be restarting. Commands that cancel, pause, resume, delete, detach, disable, enable, archive or unarchive send the request again for up to three minutes. Retry other commands after a minute.

An access check can return 503 with could not check access to this deployment’s Optimize control project with the platform, so nothing was done. Retry after N seconds. The CLI waits the stated time and retries once.

If a request with a token returns 500 and Unexpected error [<id>], Optimize could not complete the request.

For an empty response body, the CLI prints request failed with status N (at URL).

Reconnect after a lost wait

The --wait flag and wait commands retry transient failures for up to three minutes. If the wait stops, the work continues. Run wait again to reconnect.

Check the connection

To check service availability and training startup, run the following commands:

akka optimize status
akka optimize training info

The status command shows SERVICE, ADDRESS, STATE, DETAIL and SERVES. STATE is up, unexpected or unreachable. The command always exits with status 0, so read the table.

Plain output

Use --no-color, set NO_COLOR, or set TERM=dumb for output without color or a redrawn progress line. Output that is not a terminal is already plain, such as in CI logs.