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_TOKENhint: 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.Why it happens
Section titled “Why it happens”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.
How to fix it
Section titled “How to fix it”- Check the address in
urlunder[cache.remote]inaxle.toml, or inAXLE_REMOTE_CACHE_URL, and that the server or the folder can be reached from this machine. - For an
axle-server, log in again withaxle login, or checkAXLE_REMOTE_CACHE_TOKENand the team it’s used with. - For a bucket, check
AWS_ACCESS_KEY_ID,AWS_SECRET_ACCESS_KEY,AWS_REGIONand, for a service other than AWS,AWS_ENDPOINT_URL. On AWS the credentials needs3:ListBucketas well ass3:GetObjectands3:PutObject: without it, AWS answers a missing entry with403instead of404. - If the network is slow rather than down, give it longer with
timeoutunder[cache.remote], such as"2m", or withAXLE_REMOTE_CACHE_TIMEOUT. It’s 30 seconds by default.