dhcpd-4.3.6 works only when launched with -f or -d flag

classic Classic list List threaded Threaded
9 messages Options
Reply | Threaded
Open this post in threaded view
|

dhcpd-4.3.6 works only when launched with -f or -d flag

m.madej

Hello

I try to run dhcpd on my wifi network. I build it using Yocto and here are a versions of my built system:

kernel: 4.14

dhcpd: 4.3.6

bind: 9.10.6-r0

everything is running on cortex a5 core (sama5d27 processor)

When i run dhcpd manually with -d or -f option (debug or foreground) everything seems to work fine. But when dhcpd is started as daemon it does not work at all.

I run strace and it seems it hangs on: "futex(0xb6913098, FUTEX_WAIT_PRIVATE, 0, NULL"

I found a bug with similar behaviour here https://bugs.launchpad.net/ubuntu/+source/isc-dhcp/+bug/1551855 but as i understand it should be fixed in version i use.

Does someone have any idea?

Thanks in advance

Regards
Mariusz Madej

_______________________________________________
dhcp-users mailing list
[hidden email]
https://lists.isc.org/mailman/listinfo/dhcp-users
Reply | Threaded
Open this post in threaded view
|

Re: dhcpd-4.3.6 works only when launched with -f or -d flag

Bill Shirley-2
So how are you starting dhcpd as a daemon.  Systemd?

What does the command line look like?
[0:root@bb8 ~]$ ps aux | grep dhcpd
root     20586  0.0  0.0 119524  1004 pts/3    S+   06:14   0:00 grep --color=auto dhcpd
dhcpd    22665  0.0  0.0 139796 26832 ?        Ss   Feb27   0:13 /usr/sbin/dhcpd -f -cf /etc/dhcp/dhcpd.conf -user dhcpd -group dhcpd --no-pid
dhcpd    31924  0.0  0.0 141492 28936 ?        Ss   Feb13   0:24 /usr/sbin/dhcpd -f -6 -cf /etc/dhcp/dhcpd6.conf -user dhcpd -group dhcpd --no-pid


Bill

On 3/1/2019 1:10 AM, [hidden email] wrote:

Hello

I try to run dhcpd on my wifi network. I build it using Yocto and here are a versions of my built system:

kernel: 4.14

dhcpd: 4.3.6

bind: 9.10.6-r0

everything is running on cortex a5 core (sama5d27 processor)

When i run dhcpd manually with -d or -f option (debug or foreground) everything seems to work fine. But when dhcpd is started as daemon it does not work at all.

I run strace and it seems it hangs on: "futex(0xb6913098, FUTEX_WAIT_PRIVATE, 0, NULL"

I found a bug with similar behaviour here https://bugs.launchpad.net/ubuntu/+source/isc-dhcp/+bug/1551855 but as i understand it should be fixed in version i use.

Does someone have any idea?

Thanks in advance

Regards
Mariusz Madej

_______________________________________________
dhcp-users mailing list
[hidden email]
https://lists.isc.org/mailman/listinfo/dhcp-users

_______________________________________________
dhcp-users mailing list
[hidden email]
https://lists.isc.org/mailman/listinfo/dhcp-users
Reply | Threaded
Open this post in threaded view
|

Re: dhcpd-4.3.6 works only when launched with -f or -d flag

m.madej
Hi,

So how are you starting dhcpd as a daemon.  Systemd?

I start it from console so far, just without -f and -d flags(it goes background then). I have a plan to launch hotspot from my own configuration tool later.


What does the command line look like?


/usr/sbin/dhcpd -cf /etc/dhcp/dhcpd.conf


dhcpd.conf file looks like this:


# cat /etc/dhcp/dhcpd.conf
default-lease-time 600;
max-lease-time 7200;

subnet 192.168.5.0 netmask 255.255.255.0 {
   range 192.168.5.10 192.168.5.100;
   option subnet-mask 255.255.255.0;
   option broadcast-address 192.168.5.255;
   option routers 192.168.5.4;
   option domain-name-servers 8.8.8.8, 8.8.4.4, 1.1.1.1;
   option domain-name "mydomain.org";
}

Regards
Mariusz

On 02/03/19 13:16, Bill Shirley wrote:
So how are you starting dhcpd as a daemon.  Systemd?

What does the command line look like?
[0:root@bb8 ~]$ ps aux | grep dhcpd
root     20586  0.0  0.0 119524  1004 pts/3    S+   06:14   0:00 grep --color=auto dhcpd
dhcpd    22665  0.0  0.0 139796 26832 ?        Ss   Feb27   0:13 /usr/sbin/dhcpd -f -cf /etc/dhcp/dhcpd.conf -user dhcpd -group dhcpd --no-pid
dhcpd    31924  0.0  0.0 141492 28936 ?        Ss   Feb13   0:24 /usr/sbin/dhcpd -f -6 -cf /etc/dhcp/dhcpd6.conf -user dhcpd -group dhcpd --no-pid


Bill

On 3/1/2019 1:10 AM, [hidden email] wrote:

Hello

I try to run dhcpd on my wifi network. I build it using Yocto and here are a versions of my built system:

kernel: 4.14

dhcpd: 4.3.6

bind: 9.10.6-r0

everything is running on cortex a5 core (sama5d27 processor)

When i run dhcpd manually with -d or -f option (debug or foreground) everything seems to work fine. But when dhcpd is started as daemon it does not work at all.

I run strace and it seems it hangs on: "futex(0xb6913098, FUTEX_WAIT_PRIVATE, 0, NULL"

I found a bug with similar behaviour here https://bugs.launchpad.net/ubuntu/+source/isc-dhcp/+bug/1551855 but as i understand it should be fixed in version i use.

Does someone have any idea?

Thanks in advance

Regards
Mariusz Madej

_______________________________________________
dhcp-users mailing list
[hidden email]
https://lists.isc.org/mailman/listinfo/dhcp-users


_______________________________________________
dhcp-users mailing list
[hidden email]
https://lists.isc.org/mailman/listinfo/dhcp-users


_______________________________________________
dhcp-users mailing list
[hidden email]
https://lists.isc.org/mailman/listinfo/dhcp-users
Reply | Threaded
Open this post in threaded view
|

Re: dhcpd-4.3.6 works only when launched with -f or -d flag

glenn.satchell
If you try running form the command line with --user and --group options
does it work? eg

/usr/sbin/dhcpd -f -cf /etc/dhcp/dhcpd.conf -user dhcpd -group dhcpd

See when it runs as a daemon it includes the --user and --group files?
Check that user dhcpd can write to the leases file, the directory where
the leases file is and the appropriate log file.

regards,
-glenn

On 2019-03-05 17:03, Mariusz Madej wrote:

> Hi,
>
>> So how are you starting dhcpd AS A DAEMON.  Systemd?
>
> I start it from console so far, just without -f and -d flags(it goes
> background then). I have a plan to launch hotspot from my own
> configuration tool later.
>
>> What does the command line look like?
>
> /usr/sbin/dhcpd -cf /etc/dhcp/dhcpd.conf
>
> dhcpd.conf file looks like this:
>
>  # cat /etc/dhcp/dhcpd.conf
> default-lease-time 600;
> max-lease-time 7200;
>
> subnet 192.168.5.0 netmask 255.255.255.0 {
>    range 192.168.5.10 192.168.5.100;
>    option subnet-mask 255.255.255.0;
>    option broadcast-address 192.168.5.255;
>    option routers 192.168.5.4;
>    option domain-name-servers 8.8.8.8, 8.8.4.4, 1.1.1.1;
>    option domain-name "mydomain.org";
> }
>
> Regards
> Mariusz
>
> *
> *
> On 02/03/19 13:16, Bill Shirley wrote:
>
>> So how are you starting dhcpd AS A DAEMON.  Systemd?
>>
>> What does the command line look like?
>> [0:root@bb8 ~]$ ps aux | grep dhcpd
>> root     20586  0.0  0.0 119524  1004 pts/3    S+   06:14   0:00
>> grep --color=auto dhcpd
>> dhcpd    22665  0.0  0.0 139796 26832 ?        Ss   Feb27   0:13
>> /usr/sbin/dhcpd -f -cf /etc/dhcp/dhcpd.conf -user dhcpd -group dhcpd
>> --no-pid
>> dhcpd    31924  0.0  0.0 141492 28936 ?        Ss   Feb13   0:24
>> /usr/sbin/dhcpd -f -6 -cf /etc/dhcp/dhcpd6.conf -user dhcpd -group
>> dhcpd --no-pid
>>
>> Bill
>>
>> On 3/1/2019 1:10 AM, [hidden email] wrote:
>>
>>> Hello
>>>
>>> I try to run dhcpd on my wifi network. I build it using Yocto and
>>> here are a versions of my built system:
>>>
>>> kernel: 4.14
>>>
>>> dhcpd: 4.3.6
>>>
>>> bind: 9.10.6-r0
>>>
>>> everything is running on cortex a5 core (sama5d27 processor)
>>>
>>> When i run dhcpd manually with -d or -f option (debug or
>>> foreground) everything seems to work fine. But when dhcpd is
>>> started as daemon it does not work at all.
>>>
>>> I run strace and it seems it hangs on: "futex(0xb6913098,
>>> FUTEX_WAIT_PRIVATE, 0, NULL"
>>>
>>> I found a bug with similar behaviour here
>>> https://bugs.launchpad.net/ubuntu/+source/isc-dhcp/+bug/1551855
>>> but as i understand it should be fixed in version i use. Does
>>> someone have any idea?
>>>
>>> Thanks in advance
>>>
>>> Regards
>>> Mariusz Madej
>>>
>>> *
>>> *
>>>
>>> _______________________________________________
>>> dhcp-users mailing list
>>> [hidden email]
>>> https://lists.isc.org/mailman/listinfo/dhcp-users
>>
>> _______________________________________________
>> dhcp-users mailing list
>> [hidden email]
>> https://lists.isc.org/mailman/listinfo/dhcp-users
> _______________________________________________
> dhcp-users mailing list
> [hidden email]
> https://lists.isc.org/mailman/listinfo/dhcp-users
_______________________________________________
dhcp-users mailing list
[hidden email]
https://lists.isc.org/mailman/listinfo/dhcp-users
Reply | Threaded
Open this post in threaded view
|

Re: dhcpd-4.3.6 works only when launched with -f or -d flag

Peter Fischer
I have the exact same problem and I am also using yocto. I think it is not a
permission issue, since I tried to give all permissions by setting all the
files and dirs to 777 and, in a second test, I ran dhcpd as root and neither
test was successful.
Additionally I recognized that if I run with '-f', htop shows me 3
additional threads.

Kind regards,
Peter Fischer



--
Sent from: http://isc-dhcp-users.2343191.n4.nabble.com/
_______________________________________________
dhcp-users mailing list
[hidden email]
https://lists.isc.org/mailman/listinfo/dhcp-users
Reply | Threaded
Open this post in threaded view
|

Re: dhcpd-4.3.6 works only when launched with -f or -d flag

Sten Carlsen
Selinux?

On 07/03/2019 14.08, Peter Fischer wrote:
I have the exact same problem and I am also using yocto. I think it is not a
permission issue, since I tried to give all permissions by setting all the
files and dirs to 777 and, in a second test, I ran dhcpd as root and neither
test was successful. 
Additionally I recognized that if I run with '-f', htop shows me 3
additional threads.

Kind regards,
Peter Fischer



--
Sent from: http://isc-dhcp-users.2343191.n4.nabble.com/
_______________________________________________
dhcp-users mailing list
[hidden email]
https://lists.isc.org/mailman/listinfo/dhcp-users


_______________________________________________
dhcp-users mailing list
[hidden email]
https://lists.isc.org/mailman/listinfo/dhcp-users
Reply | Threaded
Open this post in threaded view
|

Re: dhcpd-4.3.6 works only when launched with -f or -d flag

m.madej
On 07/03/19 17:34, Sten Carlsen wrote:
Selinux?

In my case, no.


On 07/03/2019 14.08, Peter Fischer wrote:
I have the exact same problem and I am also using yocto. I think it is not a
permission issue, since I tried to give all permissions by setting all the
files and dirs to 777 and, in a second test, I ran dhcpd as root and neither
test was successful. 
Additionally I recognized that if I run with '-f', htop shows me 3
additional threads.

Kind regards,
Peter Fischer


I confirm, permissions to 777 and dhcpd as root does not change anything

_______________________________________________
dhcp-users mailing list
[hidden email]
https://lists.isc.org/mailman/listinfo/dhcp-users
Reply | Threaded
Open this post in threaded view
|

Re: dhcpd-4.3.6 works only when launched with -f or -d flag

Peter Fischer
In reply to this post by Sten Carlsen

No, it is a custom linux that I built with yocto.

On 07.03.19 17:34, Sten Carlsen wrote:
Selinux?

On 07/03/2019 14.08, Peter Fischer wrote:
I have the exact same problem and I am also using yocto. I think it is not a
permission issue, since I tried to give all permissions by setting all the
files and dirs to 777 and, in a second test, I ran dhcpd as root and neither
test was successful. 
Additionally I recognized that if I run with '-f', htop shows me 3
additional threads.

Kind regards,
Peter Fischer



--
Sent from: http://isc-dhcp-users.2343191.n4.nabble.com/
_______________________________________________
dhcp-users mailing list
[hidden email]
https://lists.isc.org/mailman/listinfo/dhcp-users


_______________________________________________
dhcp-users mailing list
[hidden email]
https://lists.isc.org/mailman/listinfo/dhcp-users
--

Softwareentwicklung

InMach Intelligente Maschinen GmbH
Kässbohrerstr. 19
89077 Ulm

fon: +49 731 550166-89
fax: +49 731 550166-9

e-mail: [hidden email]
web: www.inmach.de



Name und Sitz der Gesellschaft: InMach Intelligente Maschinen GmbH, Ulm
Handelsregister: Ulm, HRB 4829
Geschäftsführung: Matthias Strobel, Dr. Boris Kluge
USt-IdNr.: DE813776520
AGB: www.inmach.de/agb

Diese E-Mail und alle mitgesendeten Dateien sind vertraulich und ausschließlich für den Gebrauch durch den Empfänger bestimmt.
This E-Mail and any files transmitted with it are confidential intended solely for the use of the addressee.



_______________________________________________
dhcp-users mailing list
[hidden email]
https://lists.isc.org/mailman/listinfo/dhcp-users
Reply | Threaded
Open this post in threaded view
|

Re: dhcpd-4.3.6 works only when launched with -f or -d flag

Bill Shirley-2
In reply to this post by m.madej
Do you think running as a daemon it drops privileges and then can't get to the
configuration and leases files?

Bill

On 3/5/2019 1:03 AM, Mariusz Madej wrote:
Hi,

So how are you starting dhcpd as a daemon.  Systemd?

I start it from console so far, just without -f and -d flags(it goes background then). I have a plan to launch hotspot from my own configuration tool later.


What does the command line look like?


/usr/sbin/dhcpd -cf /etc/dhcp/dhcpd.conf


dhcpd.conf file looks like this:


# cat /etc/dhcp/dhcpd.conf
default-lease-time 600;
max-lease-time 7200;

subnet 192.168.5.0 netmask 255.255.255.0 {
   range 192.168.5.10 192.168.5.100;
   option subnet-mask 255.255.255.0;
   option broadcast-address 192.168.5.255;
   option routers 192.168.5.4;
   option domain-name-servers 8.8.8.8, 8.8.4.4, 1.1.1.1;
   option domain-name "mydomain.org";
}

Regards
Mariusz

On 02/03/19 13:16, Bill Shirley wrote:
So how are you starting dhcpd as a daemon.  Systemd?

What does the command line look like?
[0:root@bb8 ~]$ ps aux | grep dhcpd
root     20586  0.0  0.0 119524  1004 pts/3    S+   06:14   0:00 grep --color=auto dhcpd
dhcpd    22665  0.0  0.0 139796 26832 ?        Ss   Feb27   0:13 /usr/sbin/dhcpd -f -cf /etc/dhcp/dhcpd.conf -user dhcpd -group dhcpd --no-pid
dhcpd    31924  0.0  0.0 141492 28936 ?        Ss   Feb13   0:24 /usr/sbin/dhcpd -f -6 -cf /etc/dhcp/dhcpd6.conf -user dhcpd -group dhcpd --no-pid


Bill

On 3/1/2019 1:10 AM, [hidden email] wrote:

Hello

I try to run dhcpd on my wifi network. I build it using Yocto and here are a versions of my built system:

kernel: 4.14

dhcpd: 4.3.6

bind: 9.10.6-r0

everything is running on cortex a5 core (sama5d27 processor)

When i run dhcpd manually with -d or -f option (debug or foreground) everything seems to work fine. But when dhcpd is started as daemon it does not work at all.

I run strace and it seems it hangs on: "futex(0xb6913098, FUTEX_WAIT_PRIVATE, 0, NULL"

I found a bug with similar behaviour here https://bugs.launchpad.net/ubuntu/+source/isc-dhcp/+bug/1551855 but as i understand it should be fixed in version i use.

Does someone have any idea?

Thanks in advance

Regards
Mariusz Madej

_______________________________________________
dhcp-users mailing list
[hidden email]
https://lists.isc.org/mailman/listinfo/dhcp-users


_______________________________________________
dhcp-users mailing list
[hidden email]
https://lists.isc.org/mailman/listinfo/dhcp-users


_______________________________________________
dhcp-users mailing list
[hidden email]
https://lists.isc.org/mailman/listinfo/dhcp-users

_______________________________________________
dhcp-users mailing list
[hidden email]
https://lists.isc.org/mailman/listinfo/dhcp-users