Discussion:
[Dnsmasq-discuss] NM - dnsmasq, shared conn. no IP to client
Kemal Kilic
2018-11-05 18:25:33 UTC
Permalink
Hello Folks,

I have 64 bit openSUSE Tumbleweed.
Just a week ago my shared wifi and ethernet connections were working with
NetworkManager

I do not know what happened but now I got such messages and the client can
not get IP address
Why dnsmasq can not create that lease file in /var/lib/NetworkManager?
How can I get over this problem?

Thanks for your time.
Here is the NetworkManager log:

systemctl status NetworkManager
● NetworkManager.service - Network Manager
Loaded: loaded (/usr/lib/systemd/system/NetworkManager.service; enabled;
vendor preset: disabled)
Drop-In: /usr/lib/systemd/system/NetworkManager.service.d
└─NetworkManager-ovs.conf
Active: active (running)
Docs: man:NetworkManager(8)
Main PID: 1319 (NetworkManager)
Tasks: 4 (limit: 4915)
CGroup: /system.slice/NetworkManager.service
├─1319 /usr/sbin/NetworkManager --no-daemon
└─1704 /sbin/dhclient -d -q -sf /usr/lib/nm-dhcp-helper -pf
/var/run/dhclient-enp5s0.pid -lf
/var/lib/NetworkManager/dhclient-5aa08187-8d97-4502-836f-6f26683d034e-enp5s0.lease
-cf /var/lib/N>

Nov 05 20:13:51 michael NetworkManager[1319]: <info> [1541441631.6756]
Executing: /usr/sbin/iptables --table nat --insert POSTROUTING --source
10.42.0.0/255.255.255.0 ! --destination 10.42.0.0/255.255>
Nov 05 20:13:51 michael NetworkManager[1319]: <info> [1541441631.6767]
dnsmasq-manager: starting dnsmasq...
Nov 05 20:13:51 michael NetworkManager[1319]: <info> [1541441631.6778]
device (wlp2s0f0u10): state change: ip-config -> ip-check (reason 'none',
sys-iface-state: 'managed')
Nov 05 20:13:51 michael NetworkManager[1319]: <info> [1541441631.6788]
device (wlp2s0f0u10): state change: ip-check -> secondaries (reason 'none',
sys-iface-state: 'managed')
Nov 05 20:13:51 michael NetworkManager[1319]: <info> [1541441631.6790]
device (wlp2s0f0u10): state change: secondaries -> activated (reason
'none', sys-iface-state: 'managed')
Nov 05 20:13:51 michael NetworkManager[1319]: dnsmasq: cannot open or
create lease file /var/lib/NetworkManager/dnsmasq-wlp2s0f0u10.leases:
Permission denied
Nov 05 20:13:51 michael dnsmasq[692]: cannot open or create lease file
/var/lib/NetworkManager/dnsmasq-wlp2s0f0u10.leases: Permission denied
Nov 05 20:13:51 michael dnsmasq[692]: FAILED to start up
Nov 05 20:13:51 michael NetworkManager[1319]: <info> [1541441631.6902]
device (wlp2s0f0u10): Activation: successful, device activated.
Nov 05 20:13:51 michael NetworkManager[1319]: <warn> [1541441631.6907]
dnsmasq-manager: dnsmasq exited with error: Filesystem problem (missing
file/directory, permissions) (3)
--
Kemal

If you only at least one time today, you have made God smile, then the day
is a gain for you.
Otherwise keep on smiling, tomorrow is another day, another chance!!!

Pax et Bonum
Geert Stappers
2018-11-05 19:33:48 UTC
Permalink
Post by Kemal Kilic
Hello Folks,
I have 64 bit openSUSE Tumbleweed.
Just a week ago my shared wifi and ethernet connections were working with
NetworkManager
I do not know what happened but now I got such messages and the client can
not get IP address
Why dnsmasq can not create that lease file in /var/lib/NetworkManager?
How can I get over this problem?
Start with explaining why NetworkManager (usualy on "clients" )
should start dnsmasq (usualy on "servers" )
Post by Kemal Kilic
Thanks for your time.
In http://www.catb.org/~esr/faqs/smart-questions.html is documented
that I could/should have spend my time elsewhere.
Post by Kemal Kilic
systemctl status NetworkManager
??? NetworkManager.service - Network Manager
Loaded: loaded (/usr/lib/systemd/system/NetworkManager.service; enabled;
vendor preset: disabled)
Drop-In: /usr/lib/systemd/system/NetworkManager.service.d
??????NetworkManager-ovs.conf
Active: active (running)
Docs: man:NetworkManager(8)
Main PID: 1319 (NetworkManager)
Tasks: 4 (limit: 4915)
CGroup: /system.slice/NetworkManager.service
??????1319 /usr/sbin/NetworkManager --no-daemon
??????1704 /sbin/dhclient -d -q -sf /usr/lib/nm-dhcp-helper -pf /var/run/dhclient-enp5s0.pid -lf
/var/lib/NetworkManager/dhclient-5aa08187-8d97-4502-836f-6f26683d034e-enp5s0.lease
-cf /var/lib/N>
Nov 05 20:13:51 michael NetworkManager[1319]: <info> [1541441631.6756] Executing: /usr/sbin/iptables --table nat --insert POSTROUTING --source 10.42.0.0/255.255.255.0 ! --destination 10.42.0.0/255.255>
Nov 05 20:13:51 michael NetworkManager[1319]: <info> [1541441631.6767] dnsmasq-manager: starting dnsmasq...
Nov 05 20:13:51 michael NetworkManager[1319]: <info> [1541441631.6778] device (wlp2s0f0u10): state change: ip-config -> ip-check (reason 'none', sys-iface-state: 'managed')
Nov 05 20:13:51 michael NetworkManager[1319]: <info> [1541441631.6788] device (wlp2s0f0u10): state change: ip-check -> secondaries (reason 'none', sys-iface-state: 'managed')
Nov 05 20:13:51 michael NetworkManager[1319]: <info> [1541441631.6790] device (wlp2s0f0u10): state change: secondaries -> activated (reason 'none', sys-iface-state: 'managed')
Nov 05 20:13:51 michael NetworkManager[1319]: dnsmasq: cannot open or create lease file /var/lib/NetworkManager/dnsmasq-wlp2s0f0u10.leases: Permission denied
Nov 05 20:13:51 michael dnsmasq[692]: cannot open or create lease file /var/lib/NetworkManager/dnsmasq-wlp2s0f0u10.leases: Permission denied
Nov 05 20:13:51 michael dnsmasq[692]: FAILED to start up
Nov 05 20:13:51 michael NetworkManager[1319]: <info> [1541441631.6902] device (wlp2s0f0u10): Activation: successful, device activated.
Nov 05 20:13:51 michael NetworkManager[1319]: <warn> [1541441631.6907] dnsmasq-manager: dnsmasq exited with error: Filesystem problem (missing file/directory, permissions) (3)
Groeten
Geert Stappers
--
Leven en laten leven
john doe
2018-11-05 19:54:38 UTC
Permalink
Post by Kemal Kilic
Hello Folks,
I have 64 bit openSUSE Tumbleweed.
Just a week ago my shared wifi and ethernet connections were working with
NetworkManager
I do not know what happened but now I got such messages and the client can
not get IP address
Why dnsmasq can not create that lease file in /var/lib/NetworkManager?
How can I get over this problem?
Thanks for your time.
systemctl status NetworkManager
● NetworkManager.service - Network Manager
Loaded: loaded (/usr/lib/systemd/system/NetworkManager.service; enabled;
vendor preset: disabled)
Drop-In: /usr/lib/systemd/system/NetworkManager.service.d
└─NetworkManager-ovs.conf
Active: active (running)
Docs: man:NetworkManager(8)
Main PID: 1319 (NetworkManager)
Tasks: 4 (limit: 4915)
CGroup: /system.slice/NetworkManager.service
├─1319 /usr/sbin/NetworkManager --no-daemon
└─1704 /sbin/dhclient -d -q -sf /usr/lib/nm-dhcp-helper -pf
/var/run/dhclient-enp5s0.pid -lf
/var/lib/NetworkManager/dhclient-5aa08187-8d97-4502-836f-6f26683d034e-enp5s0.lease
-cf /var/lib/N>
Nov 05 20:13:51 michael NetworkManager[1319]: <info> [1541441631.6756]
Executing: /usr/sbin/iptables --table nat --insert POSTROUTING --source
10.42.0.0/255.255.255.0 ! --destination 10.42.0.0/255.255>
Nov 05 20:13:51 michael NetworkManager[1319]: <info> [1541441631.6767]
dnsmasq-manager: starting dnsmasq...
Nov 05 20:13:51 michael NetworkManager[1319]: <info> [1541441631.6778]
device (wlp2s0f0u10): state change: ip-config -> ip-check (reason 'none',
sys-iface-state: 'managed')
Nov 05 20:13:51 michael NetworkManager[1319]: <info> [1541441631.6788]
device (wlp2s0f0u10): state change: ip-check -> secondaries (reason 'none',
sys-iface-state: 'managed')
Nov 05 20:13:51 michael NetworkManager[1319]: <info> [1541441631.6790]
device (wlp2s0f0u10): state change: secondaries -> activated (reason
'none', sys-iface-state: 'managed')
Nov 05 20:13:51 michael NetworkManager[1319]: dnsmasq: cannot open or
Permission denied
Nov 05 20:13:51 michael dnsmasq[692]: cannot open or create lease file
/var/lib/NetworkManager/dnsmasq-wlp2s0f0u10.leases: Permission denied
Nov 05 20:13:51 michael dnsmasq[692]: FAILED to start up
Nov 05 20:13:51 michael NetworkManager[1319]: <info> [1541441631.6902]
device (wlp2s0f0u10): Activation: successful, device activated.
Nov 05 20:13:51 michael NetworkManager[1319]: <warn> [1541441631.6907]
dnsmasq-manager: dnsmasq exited with error: Filesystem problem (missing
file/directory, permissions) (3)
Is it working if you start dnsmasq directly?:

$ systemctl restart dnsmasq

Did you change the permissions of one or more directories in the path?:

/var/lib/NetworkManager/
--
John Doe
Loading...