Redis: (error) ERR CONFIG SET failed (possibly related to argument 'maxmemory') - can't set immutable config
CONFIG SET rejected the parameter — it is immutable at runtime, invalid, or disabled by the hosting provider.
ERR CONFIG SET failed (possibly related to argument 'maxmemory')(error) ERR CONFIG SET failed (possibly related to argument 'port') - can't set immutable configERR CONFIG SET failed (possibly related to argumentReplyError: ERR CONFIG SET failedERR Unsupported CONFIG parameter Meaning
Some settings (bind, port, daemonize) need a restart, so edit redis.conf instead. Others fail due to invalid values/units (maxmemory 2gb). Managed Redis (ElastiCache, Memorystore, Azure) blocks CONFIG and uses parameter groups/portal settings. Check CONFIG GET param for valid values and INFO server for the version.
Common causes
- Immutable parameter (needs restart)
- Invalid value or unit
- CONFIG renamed/disabled (
rename-command CONFIG "") - Managed service blocking CONFIG
- ACL without
+config
⚡ Quick fix
- Edit
redis.confand restart for immutable settings - Use the provider's parameter group/portal
- Check
ACL GETUSERfor+configandrename-commandlines
Detailed fix by platform
Linux
redis-cli CONFIG GET maxmemory; redis-cli CONFIG SET maxmemory 2gb
How to diagnose
- Parameter — Mutable?
- Provider — Managed?
- ACL — config allowed?
🔧 Still not fixed?
Many errors look alike. If the steps above didn’t solve it, one of these is probably what you’re facing:
Similar errors
- Can't connect to Redis from another host (bind 127.0.0.1) Redis: Could not connect to Redis at 10.0.0.5:6379: Connection timed out
- env() returns null (config cached) Laravel: .env changes ignored / env('X') returns null after php artisan config:cache
- ERR DB index is out of range Redis: (error) ERR DB index is out of range / ERR SELECT is not allowed in cluster mode
Most viewed in Redis
- READONLY You can't write against a read only replica Redis: READONLY You can't write against a read only replica
- MISCONF Redis: MISCONF Redis is configured to save RDB snapshots, but it's currently unable to persist to disk
- OOM command not allowed Redis: OOM command not allowed when used memory > 'maxmemory'
Other ways to find it
Where this error sits
Origin: Data. Errors that are often confused with or caused by this one (click to open):
🧠 Still stuck? Analyze your error
Paste the full message, response headers or stack trace — we'll detect the platform and point to the most likely cause.
💬 What worked for others
No tips yet — did something else fix this for you?
Share what worked for you
Tips are checked by an editor before they appear. Links are removed.
Report a correction or suggest an improvement
Last updated 5 Nov 2026