Skip to content

Pi drops IPv4 address after DHCP lease expires #611

Closed as not planned
Closed as not planned
@geerlingguy

Description

@geerlingguy

After updating to the latest versions of Pi OS, Docker, etc. sometime in the last week or two, my Internet Pi seems to entirely drop its wired network connection after my network DHCP lease is up (literally 24h after boot). The only way to recover is a hard reboot (since this is a headless Pi).

In the syslog, I see:

Aug  6 01:34:42 geerli avahi-daemon[398]: Withdrawing address record for 10.0.100.3 on eth0.
Aug  6 01:34:42 geerli avahi-daemon[398]: Leaving mDNS multicast group on interface eth0.IPv4 with address 10.0.100.3.
Aug  6 01:34:42 geerli avahi-daemon[398]: Interface eth0.IPv4 no longer relevant for mDNS.
Aug  6 01:34:56 geerli systemd[1]: run-docker-runtime\x2drunc-moby-dffd0eb098dcc0dbd442b74566b64c4452df98d1675a513a7951463342bc256d-runc.1YatQ6.mount: Succeeded.
Aug  6 01:35:05 geerli dockerd[740]: time="2024-08-06T01:35:05.269649369-05:00" level=error msg="[resolver] failed to query external DNS server" client-addr="udp:127.0.0.1:43159" dns-server="udp:127.0.0.1:53" error="read udp 127.0.0.1:43159->127.0.0.1:53: i/o timeout" question=";raw.githubusercontent.com.\tIN\t AAAA"
Aug  6 01:35:05 geerli dockerd[740]: time="2024-08-06T01:35:05.276761116-05:00" level=error msg="[resolver] failed to query external DNS server" client-addr="udp:127.0.0.1:60157" dns-server="udp:127.0.0.1:53" error="read udp 127.0.0.1:60157->127.0.0.1:53: i/o timeout" question=";grafana.com.\tIN\t AAAA"

Initially I thought the network stack could be buggy, but after reading through Every 24h, network connectivity ceases, I'm beginning to think Docker's at fault, considering the interesting container networking layout that makes Internet Pi work...

I'll try to debug the problem in this issue, in case anyone else runs into it. First step, will try running a full upgrade today.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions