Skip to content

Axle couldn't use the remote cache

warning: Axle couldn't use the remote cache, so this run goes on without it: the server refused the token; log in with axle login or set AXLE_REMOTE_CACHE_TOKEN
hint: Check the url under [cache.remote] in axle.toml, the network and the token, or give a slow network a longer timeout there. The local cache still works.

The remote cache didn’t answer, didn’t answer in time, or answered with a refusal, the first time Axle asked it for an entry or sent it one. The text after the colon says what went wrong, such as a server that can’t be reached, a server or folder that gave no answer for as long as timeout allows, a folder that doesn’t exist, a token the server doesn’t know or that may not use the team, or a bucket that refused the AWS_* credentials. A token that may only read gives its own warning instead, and keeps reading.

A network failure never fails a build. Axle warns once, leaves the remote cache out for the rest of the run, and carries on with the local cache, so the tasks that would have come from the remote cache run instead.

  • Check the address in url under [cache.remote] in axle.toml, or in AXLE_REMOTE_CACHE_URL, and that the server or the folder can be reached from this machine.
  • For an axle-server, log in again with axle login, or check AXLE_REMOTE_CACHE_TOKEN and the team it’s used with.
  • For a bucket, check AWS_ACCESS_KEY_ID, AWS_SECRET_ACCESS_KEY, AWS_REGION and, for a service other than AWS, AWS_ENDPOINT_URL. On AWS the credentials need s3:ListBucket as well as s3:GetObject and s3:PutObject: without it, AWS answers a missing entry with 403 instead of 404.
  • If the network is slow rather than down, give it longer with timeout under [cache.remote], such as "2m", or with AXLE_REMOTE_CACHE_TIMEOUT. It’s 30 seconds by default.