Describe the bug
First, I don't know if this is a bug or simply a configuration pronblem.
My redis.log file has numerous occurrences of the same warning:
Warning: Could not create server TCP listening socket ::1:6379: bind: Cannot assign requested address
To reproduce
- Start or re-start redis.service.
- Note the warning in your redis logfile.
Expected behavior
I do not expect this warning to occur.
Additional information
OS: Arch Linux 5.11.15.arch1-2 Redis: 6.2.2-1 PHP-Redis 5.3.4-1
User: Command: Port pihole pihole-FT 53 http nginx 80 root nginx 80 root smbd 139 http nginx 443 root nginx 443 root smbd 445 root cupsd 631 http nginx 808 root nginx 808 mysql mariadbd 3306 root sshd 22 pihole pihole-FT 4711 redis redis-ser 6379 http nginx 8080 root nginx 8080 104 loolwsd 9980
Please let me know if I can provide any other information helpful to troubleshoot this problem.
Thank you,
sb
Comment From: oranagra
Your bind config option specifies that redis should bind to both ipv4 and ipv6, but ipv6 failed to bind, and redis continues (binding only to ipv4).
If you want to remove the warning, edit your bind config
Comment From: steadybright
Yes, consider this resolved. Thank you, @oranagra for your response!
Comment From: f-ivasic
Just a note, on redis-server 7, this initial warning lead to redis not to start at all.
Maybe more verbose or detailed message (like above) in the log would be useful.
Thanks.