# MISCONF: Persistence is failing, writes stopped

> Redis can't write its snapshot or AOF to disk. With RDB on, stop-writes-on-bgsave-error refuses writes to avoid silent data loss; a broken AOF refuses writes regardless.

Source: https://sqlly.app/errors/redis/misconf
Last updated: 2026-11-30
License: Text and data [CC BY 4.0](https://creativecommons.org/licenses/by/4.0/) (credit SQLly, sqlly.app); code and SQL snippets [MIT](https://opensource.org/license/mit). [Details](https://sqlly.app/license).
Note: Quoted error message text belongs to its database vendor.

- Error prefix: `MISCONF`
- Category: Memory and persistence

Error message:

```text
MISCONF Redis is configured to save RDB snapshots, but it's currently unable to persist to disk. Commands that may modify the data set are disabled, because this instance is configured to report errors during writes if RDB snapshotting fails (stop-writes-on-bgsave-error option). Please check the Redis logs for details about the RDB error.
```

## What it means

MISCONF is Redis protecting durability. A background save failed (full disk, missing permissions, a dying volume) or the AOF is unwritable, and because stop-writes-on-bgsave-error defaults to yes, every command that could modify data is refused until persistence works again. Reads continue, which is what makes this error confusing: the server looks healthy and only writes fail.

The AOF variant reads MISCONF Errors writing to the AOF file: ... and names the reason. Both variants mean the same thing: Redis is telling you its durability promise is broken, not that your command is wrong. The fix is almost always on the disk: space, permissions, or the dir and dbfilename configuration.

## Common causes

- The disk holding the snapshot or AOF is full or has gone read-only.
- The user Redis runs as lacks write permission on dir, which is common after moving the data directory.
- The background-save child keeps failing, for instance on a host too loaded to fork, and the last save stays in error state.

## Persistence status fields to check

| | |
| --- | --- |
| rdb_last_bgsave_status | ok or err; err is what activates the write stop. |
| aof_last_write_status | ok or err for the append-only side; the AOF variant of MISCONF names it. |
| rdb_changes_since_last_save | How much data exists only in memory right now. |
| stop-writes-on-bgsave-error | The switch that turns a failed RDB save into refused writes, only while save points are set; yes by default. It does not affect AOF write errors. |

## How to fix it

1. Read the exact persistence state; the status fields say which side failed:

   ```sql
   INFO persistence
   # rdb_last_bgsave_status, aof_last_write_status
   ```
2. Check the disk and the directory Redis saves into:

   ```sql
   CONFIG GET dir
   CONFIG GET dbfilename
   CONFIG GET appendonly
   df -h
   ```
3. Clear the cause, then force a save; writes resume once the status is ok:

   ```sql
   BGSAVE
   INFO persistence | grep rdb_last_bgsave_status
   ```

## Reproduce it safely

Run against a scratch instance: the directory is made unwritable on purpose so the background save fails the way it does on a full disk.

```sql
mkdir -p /private/tmp/redis-nowrite && chmod 000 /private/tmp/redis-nowrite
redis-server --port 7307 --save '' &
redis-cli -p 7307 CONFIG SET dir /private/tmp/redis-nowrite
redis-cli -p 7307 CONFIG SET save '1 1'
redis-cli -p 7307 SET x 1
# after about a second, once the failing save is recorded:
redis-cli -p 7307 SET y 2
# (error) MISCONF Redis is configured to save RDB snapshots, ...
chmod 755 /private/tmp/redis-nowrite && redis-cli -p 7307 BGSAVE   # heals the status
```

## How SQLly helps

SQLly shows the full MISCONF text and its editor runs INFO persistence and CONFIG GET dir next to the failed write, so the failing side, RDB or AOF, and the save path are on screen before you touch the disk.

## Questions

### Why are reads fine while writes fail?

The write stop is deliberate: Redis refuses to take writes it may not be able to save, while continuing to serve the data it already has.

### I do not need persistence. Can I ignore MISCONF?

Turn persistence off properly (an empty save directive and appendonly no) instead of leaving a broken saver plus stop-writes-on-bgsave-error no. Then the state cannot surprise you later.

## Related errors

- [`SQLITE_IOERR`](https://sqlly.app/errors/sqlite/sqlite-ioerr): SQLite: disk I/O error
- [`58P01`](https://sqlly.app/errors/postgresql/58P01): PostgreSQL: undefined file
- [`SQLITE_READONLY`](https://sqlly.app/errors/sqlite/sqlite-readonly): SQLite: attempt to write a readonly database

The code and message text are from the [Redis documentation and source code](https://redis.io/docs/latest/).
