You are not logged in.

#1 2021-11-22 13:57:14

j1simon
Member
From: Denmark
Registered: 2016-01-28
Posts: 189

dnsmasq: chown of PID file /var/run/NetworkManager/dnsmasq.pid failed

KDE Plasma
NetworkManager with dnsmasq enabled (https://wiki.archlinux.org/title/NetworkManager#dnsmasq).

All seems work but in journalctl output:

...
dnsmasq[2145]: chown of PID file /var/run/NetworkManager/dnsmasq.pid failed: Operation not allowed
....

$ ls -l /var/run/NetworkManager/dnsmasq.pid
-rw-r--r-- 1 root root 5 nov 22 14:25 /var/run/NetworkManager/dnsmasq.pid

Offline

#2 2021-11-23 08:43:31

j1simon
Member
From: Denmark
Registered: 2016-01-28
Posts: 189

Re: dnsmasq: chown of PID file /var/run/NetworkManager/dnsmasq.pid failed

I just checked that it shows me another warning (below the previous one):

dnsmasq[2245]: warning: no upstream servers configured

What does it mean?

Offline

#3 2021-11-25 17:36:32

Morta
Member
Registered: 2019-07-07
Posts: 655

Re: dnsmasq: chown of PID file /var/run/NetworkManager/dnsmasq.pid failed

j1simon wrote:

I just checked that it shows me another warning (below the previous one):

dnsmasq[2245]: warning: no upstream servers configured

What does it mean?

It's mean that no DNS-Server are configured. I think so.

https://askubuntu.com/questions/1031260 … er-upgrade


Remove dns=dnsmasq in the config or set DNS Server

Offline

#4 2021-11-25 17:45:03

progandy
Member
Registered: 2012-05-17
Posts: 5,184

Re: dnsmasq: chown of PID file /var/run/NetworkManager/dnsmasq.pid failed

I believe that warning can be ignored. networkmanager should set upstream servers later, after dnsmasq has started without upstream servers. dnsmasq is started first, then later when dns servers are received with dhcp they are given to the already running dnsmasq.

Last edited by progandy (2021-11-25 17:46:15)


| alias CUTF='LANG=en_XX.UTF-8@POSIX ' |

Offline

#5 2021-11-25 20:22:49

Morta
Member
Registered: 2019-07-07
Posts: 655

Re: dnsmasq: chown of PID file /var/run/NetworkManager/dnsmasq.pid failed

progandy wrote:

I believe that warning can be ignored. networkmanager should set upstream servers later, after dnsmasq has started without upstream servers. dnsmasq is started first, then later when dns servers are received with dhcp they are given to the already running dnsmasq.

Ok then you can remove dns=dnsmasq anyway, nor?

Offline

#6 2021-11-25 20:35:55

progandy
Member
Registered: 2012-05-17
Posts: 5,184

Re: dnsmasq: chown of PID file /var/run/NetworkManager/dnsmasq.pid failed

Morta wrote:

Ok then you can remove dns=dnsmasq anyway, nor?

That is possible if you do not want to use dnsmasq to forward all dns queries. Using dns=dnsmasq is one option, though. Alternatives would be systemd-resolved, resolv.conf (managed through openrsolv/resolvconf) or resolv.conf (written directly).
Using either dnsmasq or systemd-resolved can have advantages with caching and/or conditional forwarding, though. (If you need or want that)

Last edited by progandy (2021-11-25 20:38:04)


| alias CUTF='LANG=en_XX.UTF-8@POSIX ' |

Offline

#7 2021-11-26 08:08:24

j1simon
Member
From: Denmark
Registered: 2016-01-28
Posts: 189

Re: dnsmasq: chown of PID file /var/run/NetworkManager/dnsmasq.pid failed

I don't understand that if NetworkManager is the one that raises this dnsmasq service it doesn't do it correctly to avoid these unnecessary messages. I have opened a issue: https://gitlab.freedesktop.org/NetworkM … issues/859

Last edited by j1simon (2021-11-26 08:39:29)

Offline

Board footer

Powered by FluxBB