# LOADING error

```json metadata
{
  "schema_version": 2,
  "title": "LOADING error",
  "description": "Redis is still loading its data into memory and can't serve the command yet.",
  "categories": ["docs","develop","stack","oss","rs","rc","oss","kubernetes","clients"],
  "tableOfContents": {"sections":[{"id":"example","title":"Example"},{"id":"how-to-fix-it","title":"How to fix it"}]}

,
  "codeExamples": []
}
```


Redis returns this error while it's loading your data into memory. This happens when the server starts and reads its data files from disk. It can also happen on a replica while it loads a full copy of the data from its primary. Most commands fail until loading finishes.

```
LOADING Redis is loading the dataset in memory
```

In redis-py, this error is `BusyLoadingError: Redis is loading the dataset in memory`.

## Example

Most commands, including `PING`, return this error while Redis is loading. A few commands, such as `INFO`, still work:

```
> GET mykey
(error) LOADING Redis is loading the dataset in memory
> PING
(error) LOADING Redis is loading the dataset in memory
> INFO persistence
# Persistence
loading:1
...
```

## How to fix it

Wait for loading to finish, and then send the command again. The bigger your dataset is, the longer loading takes. To follow the progress, run [`INFO persistence`](https://redis.io/docs/latest/commands/info). `loading:1` means that Redis is still loading, and `loading_eta_seconds` estimates the time left.

In your app, treat this error as temporary, and retry the command after a delay. See [Retry with backoff](https://redis.io/docs/latest/develop/clients/error-handling#pattern-3-retry-with-backoff).

