redis won't start up after distribution upgrade from Ubuntu 16.04 to 18.04

684 views
Skip to first unread message

Dave Nelson

unread,
Aug 20, 2018, 8:15:06 AM8/20/18
to Redis DB
I had redis working fine under Ubuntu 16.04 (server edition)  but then I did a distribution upgrade to Ubuntu 18.04 and now redis won't start any more. I tried uninstalling and reinstalling but to no avail. Now it's attempting to start every minute but failing...

A pastebin with the entries being generated once a minute in the redis error log is here: http://pasted.co/01a5bf07

A pastebin showing my redis.conf (in /etc/redis) is here: http://pasted.co/41cb0607
It's the same conf file as was functioning OK under 16.04. Maybe I need to tweak something?
I have 4 of my sites using redis...

A pastebin showing command line output from systemd is here:  http://pasted.co/ffc1c65a

The error log notably says "NOTIFY_SOCKET not found" and "Creating Server TCP listening socket ::1:6379: bind: Cannot assign requested address"

Has anyone else encountered this problem after an Ubuntu distribution upgrade?
Anyone know of a solution?

Thanks for any help, and all the best, 
Dave

f...@bendingspoons.com

unread,
Aug 20, 2018, 8:30:40 AM8/20/18
to Redis DB
The error says that it cannot bind an IPV6 address. Check if it's enabled on your machines or modify the configuration to listen only on IPV4 adresses.

Dave Nelson

unread,
Aug 20, 2018, 9:07:28 PM8/20/18
to Redis DB
Hi Federico,

Thanks for your reply. I tried disabling ipv6 using this how-to: https://www.techrepublic.com/article/how-to-disable-ipv6-on-linux/

But the result is the same, redis still doesn't start, and can't be reached on 127.0.0.1::1

Meanwhile, trawling the Web, I found a workaround solution: bind it to 0.0.0.0

Redis now starts, but I'm not sure if there are any security implications with this solution...

Any ideas?

All best wishes,
Dave

Chris Holman

unread,
Aug 20, 2018, 9:19:18 PM8/20/18
to redi...@googlegroups.com

Your configuration file has:

bind 127.0.0.1 ::1
You can change that line to be just 127.0.0.1 and it should work.

and can't be reached on 127.0.0.1::1

::1 is the IPv6 loopback address, not a port number. The correct address is 127.0.0.1:6379.

There are significant security implications to using 0.0.0.0 - your Redis is now exposed to your network. You should only do that if you understand the risks of open unrestricted access and have mitigated them appropriately. Read more about them here: https://redis.io/topics/security

--
You received this message because you are subscribed to the Google Groups "Redis DB" group.
To unsubscribe from this group and stop receiving emails from it, send an email to redis-db+u...@googlegroups.com.
To post to this group, send email to redi...@googlegroups.com.
Visit this group at https://groups.google.com/group/redis-db.
For more options, visit https://groups.google.com/d/optout.

Dave Nelson

unread,
Aug 20, 2018, 9:28:24 PM8/20/18
to redi...@googlegroups.com
Hello Chris,
Thanks for your message. I have done what you advised and it is now
started on 127.0.0.1:6379.
Thanks very much for your help. ;-)
All best wishes,
Dave
Reply all
Reply to author
Forward
0 new messages