Redis: # Could not create server TCP listening socket *:6379: bind: Address already in use / *** FATAL CONFIG FILE ERROR ***
redis-server exits at startup because the port is taken or the config file has an error.
Could not create server TCP listening socket *:6379: bind: Address already in use*** FATAL CONFIG FILE ERROR (Redis 7.0.0) ***Bad directive or wrong number of argumentsFailed listening on port 6379 (tcp), aborting.Can't open the append-only file: Permission denied Meaning
Find the owner of the port (ss -ltnp | grep 6379) — maybe a second Redis instance or a stuck process — or change port. For config errors, the message prints the line and reason (unknown directive, wrong arguments). Run redis-server /etc/redis/redis.conf --test-memory/check logs journalctl -u redis-server.
Common causes
- Another Redis already on 6379
- Config typo or unsupported directive for the version
- Wrong file permissions/ownership
- Invalid
bindaddress - Stale PID/unix socket file
⚡ Quick fix
sudo ss -ltnp | grep 6379and stop the other process or changeport- Fix the config line shown in
FATAL CONFIG FILE ERROR - Check
journalctl -u redis-server -n 50
Detailed fix by platform
Linux
redis-server /etc/redis/redis.confin foreground shows the exact error
How to diagnose
- Port — Owner?
- Config — Line number?
- Version — Directive supported?
🔧 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
- bind() failed (98: Address already in use) nginx: [emerg] bind() to 0.0.0.0:80 failed (98: Address already in use)
- 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
- ERR CONFIG SET failed (possibly related to argument) Redis: (error) ERR CONFIG SET failed (possibly related to argument 'maxmemory') - can't set immutable config
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