# Couldn't log in to the remote cache

What "couldn't log in" means and how to fix it.

```text
error: couldn't log in to https://cache.example.com: the server refused the token; log in with axle login or set AXLE_REMOTE_CACHE_TOKEN
hint: Check the address and the token, and that the server is running.
```

## Why it happens

[`axle login`](https://axlers.dev/docs/reference/remote-cache.md#logging-in) checks the token with the server before saving it, and the check failed: the server couldn't be reached, didn't speak the [HTTP API](https://axlers.dev/docs/reference/remote-cache.md#the-http-api), or doesn't know the token. Nothing is saved.

## How to fix it

Check the address, including `http://` or `https://`, that the server is running, and that the token is one it lists in `AXLE_SERVER_TOKENS`. Ask whoever runs the server for a token if you don't have one.
