dhcpcd-discuss

Re: dhcpcd dumplease reports "dhcpcd not running"

Roy Marples

Tue Nov 10 09:11:50 2020

Hi Matthew

On 09/11/2020 19:45, Matthew Clarkson wrote:
After applying the patch, I am able to dump the lease if dhcpcd is configured with --disable-privsep.

With privsep enabled I am seeing the message "main: control_send: Broken pipe" the first time attempting to dump the lease and "dhcpcd is not running message" on subsequent attempts.

Attached is strace of the first attempt showing EPIPE error when trying to write to the .unpriv socket, a listing of the run directory, and strace of the second dumplease attempt showing ECONNREFUSED when trying to connect to the socket (presumably because the first write attempt failed.

Any thoughts are appreciated.

Sounds like the master dhcpcd process crashed!
This is bad. I can't even replicate your problem.

Could you describe which OS you are using please?

To get more debug info we will probably need to strace -f the main dhcpcd process rather than the calling client. FWIW, this works fine for me on NetBSD-current and Devuan (pretty fresh).

Roy

Follow-Ups:
Re: dhcpcd dumplease reports "dhcpcd not running"Roy Marples
References:
dhcpcd dumplease reports "dhcpcd not running"Matthew Clarkson
Re: dhcpcd dumplease reports "dhcpcd not running"Roy Marples
RE: dhcpcd dumplease reports "dhcpcd not running"Matthew Clarkson
Archive administrator: postmaster@marples.name