# Axle refused an entry of the remote cache

What "Axle refused an entry of the remote cache" means and how to fix it.

```text
warning: web#build: Axle refused an entry of the remote cache: its signature doesn't match
hint: Check that every machine uses the same keys under [cache.remote]. If they do, someone may have changed the entry.
```

## Why it happens

An entry downloaded from the [remote cache](https://axlers.dev/docs/reference/remote-cache.md#signed-and-encrypted-entries) couldn't be used, so the task runs instead. The reason after the colon is one of these:

- "its signature doesn't match": `signature = true`, and the entry was signed with another key than `AXLE_REMOTE_CACHE_SIGNATURE_KEY`, or changed after it was signed.
- "it isn't signed": `signature = true`, and the entry was uploaded by a machine that doesn't sign.
- "it can't be decrypted with this key", "it isn't encrypted" or "it's encrypted, and no encryption key is set": the machines don't agree on `encryption` and `AXLE_REMOTE_CACHE_ENCRYPTION_KEY`.
- "it isn't an Axle cache entry", "it's cut short" or "it was written in format …": the file was damaged, or written by a newer version of Axle.

Only that entry is skipped; the rest of the run still uses the remote cache.

## How to fix it

Give every machine that shares the cache, CI included, the same `signature` and `encryption` settings and the same keys. When the keys change, entries signed or encrypted with the old ones are refused until each task runs once and uploads them again. If the keys do match, treat a signature that doesn't match as a sign that someone changed the cache, and check who can write to it.
