Xcraft
Posts: 2
Joined: Fri May 29, 2020 1:59 am

Connection to dhcpcd lost at every boot [Solved]

Fri May 29, 2020 2:26 am

Hi,

First, I'm sorry, I'm new to raspberry please bear with me and my desceiptions.

I migrated from an old laptop (as server via docker containers) to RPi 4. Installed Buster and everything is working fine. I went ahea dand installed 2 containers just to test out if my backup is working. I restarted and everything is working fine. After, I went ahead and install all my containers (14 of them) everything works great aside from some that doesn't have armfh support, figured that out after.

Then I rebooted. Network icon shows up&down with 2 X. Hovering to it, it shows "connection to dhcpcd lost" and "No wireless interface found". I can't ping the pi, I don't have Internet access. I use Ethernet BTW.

I searched for solutions and so far I tried:
1. Setting up Static IP at dhcpcd.conf
2. Editing my /etc/network/interfaces file and adding

Code: Select all

auth lo
iface lo inet dhcp

auth eth0
iface eth0 inet dhcp(and to manual)
3. I tried almost every solution I find in this forum and other sites but to no avail. Except the one relating to wpa_supplicant because I want to use Ethernet.

One solution that worked for me is executing the command:

Code: Select all

sudo dhcpcd - 4
It immediately connects me, and everything is working again. I disabled IPV6 via the interface as described from the thread (in this forum as well) where I found that command.

But the solution is not persistent. If I reboot I'm back to the problem.

Please help.

I noticed that there are new network interfaces with naming format as:

veth#####

There are 8 of them.

Please tell me what logs you need and how to acquire them. Thanks!

epoch1970
Posts: 5022
Joined: Thu May 05, 2016 9:33 am
Location: Paris, France

Re: Connection to dhcpcd lost at every boot

Fri May 29, 2020 8:07 am

Maybe dhcpcd dies right after boot?
Docker creates various network devices for containers to run, perhaps dhcpcd gets confused by what's happening in the machine.

I would try reverting changes made to the interfaces file and all others, then add

Code: Select all

denyinterfaces veth*
to the beginning of /etc/dhcpcd.conf.
Then reboot and see.
"S'il n'y a pas de solution, c'est qu'il n'y a pas de problème." Les Shadoks, J. Rouxel

Xcraft
Posts: 2
Joined: Fri May 29, 2020 1:59 am

Re: Connection to dhcpcd lost at every boot

Fri May 29, 2020 8:39 am

epoch1970 wrote:
Fri May 29, 2020 8:07 am
Maybe dhcpcd dies right after boot?
Docker creates various network devices for containers to run, perhaps dhcpcd gets confused by what's happening in the machine.

I would try reverting changes made to the interfaces file and all others, then add

Code: Select all

denyinterfaces veth*
to the beginning of /etc/dhcpcd.conf.
Then reboot and see.
Thank you very much! I spent hours trying to solve this and that line is just magic! Everything is working as expected!

Edit: How do I mark the thread as solve?

epoch1970
Posts: 5022
Joined: Thu May 05, 2016 9:33 am
Location: Paris, France

Re: Connection to dhcpcd lost at every boot

Fri May 29, 2020 9:22 am

You don't need to.
Some manage to edit the title in their initial post. I never do that so I'm not sure where to click.

( While I am here, one for the search engines: docker container network issue disconnected dhcpcd dhcpcd.conf denyinterfaces veth )
"S'il n'y a pas de solution, c'est qu'il n'y a pas de problème." Les Shadoks, J. Rouxel

User avatar
FTrevorGowen
Forum Moderator
Forum Moderator
Posts: 5590
Joined: Mon Mar 04, 2013 6:12 pm
Location: Bristol, U.K.
Contact: Website

Re: Connection to dhcpcd lost at every boot

Fri May 29, 2020 1:12 pm

epoch1970 wrote:
Fri May 29, 2020 9:22 am
You don't need to.
Some manage to edit the title in their initial post. I never do that so I'm not sure where to click.

( While I am here, one for the search engines: docker container network issue disconnected dhcpcd dhcpcd.conf denyinterfaces veth )
@epoch1970 w.r.t. "where to click" - the edit "pencil" symbol which is the first one of the group of symbols at the top right of the first post which formed the topic (for the default forum view).
@Xcraft on this occasion I've done it for you ...
Trev.
Still running Raspbian Jessie or Stretch on some older Pi's (an A, B1, 2xB2, B+, P2B, 3xP0, P0W, 2xP3A+, P3B+, P3B, B+, and a A+) but Buster on the P4B's. See: https://www.cpmspectrepi.uk/raspberry_pi/raspiidx.htm

Return to “Troubleshooting”