Fix Redis write failures on Windows Docker bind mounts#12418
Conversation
Disable Redis disk persistence to avoid bind-mount permission errors that caused login 500s, and configure localhost as the default site URL.
Disable RDB persistence for the cache container so login and other cache writes do not fail when the Redis data volume cannot be written on Windows hosts.
✅ Deploy Preview for inventree-web-pui-preview ready!
To edit notification comments on pull requests, go to your Netlify project configuration. |
|
Hi @matmair — this fixes Redis The change makes the cache service ephemeral ( Happy to adjust if you would prefer a platform-specific compose override instead. |
|
This would prevent any persistent storage of redis data, correct? And thus revert the changes made in ff9f465 |
Addresses review feedback on inventree#12418: retain the external /data volume from inventree#11100 but disable RDB/AOF writes so Windows bind mounts no longer trigger MISCONF errors.
|
@SchrodingersGat — good question. The initial version did revert the volume mount from #11100; I've pushed an update that keeps it. The fix is disabling disk persistence ( The volume from #11100 stays in place for layout consistency. With persistence off, Redis no longer snapshots to disk, so the original #10977 concern (anonymous volumes accumulating InvenTree uses Redis purely as a Django cache backend ( |
|
Migration Test failure is pre-existing on |
|
Rebased onto latest #12415 already landed the persistence disable ( Updated the PR description to reflect the narrower scope. |

Summary
/datavolume mount from Save redis data in docker volume to prevent creating new volume on each container start #11100 while keeping disk persistence disabled--save "" --appendonly no)Context
On Windows Docker Desktop, the
inventree-data/redisbind mount can prevent Redis from writingdump.rdb, triggeringMISCONFerrors and blocking all write operations (including django-allauth login rate limiting).#12415 merged the core fix (disable RDB/AOF persistence) but removed the external volume mount. This PR restores the #11100 volume layout for consistency, as discussed with @SchrodingersGat — persistence remains off, so no
dump.rdbwrites occur and the Windows permission issue is still resolved.InvenTree uses Redis purely as a Django cache backend (
django_redis); cache data is ephemeral and does not require durable storage.Test plan
redis-cli SET testkey ok)http://localhost/web/loginwith demo credentials