For quite a long time now my Raspberry PI 4 has been loosing connectivity every few weeks. However the last 2 weeks or so my Raspberry PI has been losing connectivity almost daily. I'm running quite a standard setup on it with docker, portainer and some other docker containers. Whenever this happens I simply power cycle the device and everything works again.
I got a bit fed up with this so I started doing some investigation. I ran the ip addr
command and saw this:
As can be seen here for some reason the IPv4 address is missing. I tried unplugging the network cable and plugging it back in again but this didn't fix the issue. I then saw that it did still have an IPv6 address, so I tried to SSH to the PI using that address which unexpectedly worked perfectly.
I then tried to refresh the IP address by running sudo dhclient -r
and sudo dhclient
. This fixed the problem.
I have no idea why this issue happens though, so I'm looking for some help :).
Edit: As requested, here's the information on the version of Linux running on my PI:
uname -m: aarch64
Edit2:
I've also added a screenshot of the service --status-all
command:
Edit3:
Here's the output of the systemctl status dhcpcd.service
command:
It seems like the error route socket overflowed - learning interface state
is the problem here. What could be the cause for this?
Edit4: I've now tried this workaround, hopefully this fixes the issue: https://github.com/raspberrypi/linux/issues/4092#issuecomment-774512217
dhclient
although it will renew leases. Should not be necessary with a normaldhcpcd
setup.dhcpcd.conf
workaround solve the issue? I'm experiencing exactly the same thing with a very similar setup; PI4, 64bit Raspberry OS, Docker with Portainer and a bunch of small containers.