You are not logged in.

#1 2023-09-27 20:59:17

auntytonga
Member
Registered: 2023-09-27
Posts: 3

[Solved] iwd.service PID error message

I've started using iwd with the built-in dhcp client and this is my config. Before I was using iwd just for wifi and dhcpcd as my dhcp client. The only service managing network on my machine now is iwd and unbound for DNS.

$ cat /etc/iwd/main.conf
[General]
AddressRandomization=once
EnableNetworkConfiguration=true

[Network]
NameResolvingService=resolvconf

Now I'm getting these errors in the journal and I'm not sure if there is a misconfiguration or what's going on.

iwd.service: Got notification message from PID 17558, but reception only permitted for main PID 1099
$ journalctl -b -u iwd
Sep 27 16:22:58 arch systemd[1]: Starting Wireless service...
Sep 27 16:22:58 arch iwd[1099]: Wireless daemon version 2.8
Sep 27 16:22:58 arch iwd[1099]: Loaded configuration from /etc/iwd/main.conf
Sep 27 16:22:58 arch systemd[1]: Started Wireless service.
Sep 27 16:22:58 arch iwd[1099]: rfkill id 0 can't be matched to a wiphy
Sep 27 16:22:58 arch iwd[1099]: Wiphy: 0, Name: phy0
Sep 27 16:22:58 arch iwd[1099]:         Permanent Address: xx:xx:xx:xx:xx:xx
Sep 27 16:22:58 arch iwd[1099]:         2.4Ghz Band:
Sep 27 16:22:58 arch iwd[1099]:                 Bitrates (non-HT):
Sep 27 16:22:58 arch iwd[1099]:                          1.0 Mbps
Sep 27 16:22:58 arch iwd[1099]:                          2.0 Mbps
Sep 27 16:22:58 arch iwd[1099]:                          5.5 Mbps
Sep 27 16:22:58 arch iwd[1099]:                         11.0 Mbps
Sep 27 16:22:58 arch iwd[1099]:                          6.0 Mbps
Sep 27 16:22:58 arch iwd[1099]:                          9.0 Mbps
Sep 27 16:22:58 arch iwd[1099]:                         12.0 Mbps
Sep 27 16:22:58 arch iwd[1099]:                         18.0 Mbps
Sep 27 16:22:58 arch iwd[1099]:                         24.0 Mbps
Sep 27 16:22:58 arch iwd[1099]:                         36.0 Mbps
Sep 27 16:22:58 arch iwd[1099]:                         48.0 Mbps
Sep 27 16:22:58 arch iwd[1099]:                         54.0 Mbps
Sep 27 16:22:58 arch iwd[1099]:                 HT Capabilities:
Sep 27 16:22:58 arch iwd[1099]:                         HT40
Sep 27 16:22:58 arch iwd[1099]:                         Short GI for 20Mhz
Sep 27 16:22:58 arch iwd[1099]:                         Short GI for 40Mhz
Sep 27 16:22:58 arch iwd[1099]:                 HT RX MCS indexes:
Sep 27 16:22:58 arch iwd[1099]:                         0-15
Sep 27 16:22:58 arch iwd[1099]:                 HE Capabilities
Sep 27 16:22:58 arch iwd[1099]:                         Interface Types: ap
Sep 27 16:22:58 arch iwd[1099]:                         Max HE RX <= 80MHz MCS: 0-11 for NSS: 2
Sep 27 16:22:58 arch iwd[1099]:                         Max HE TX <= 80MHz MCS: 0-11 for NSS: 2
Sep 27 16:22:58 arch iwd[1099]:                         Interface Types: station
Sep 27 16:22:58 arch iwd[1099]:                         Max HE RX <= 80MHz MCS: 0-11 for NSS: 2
Sep 27 16:22:58 arch iwd[1099]:                         Max HE TX <= 80MHz MCS: 0-11 for NSS: 2
Sep 27 16:22:58 arch iwd[1099]:         5Ghz Band:
Sep 27 16:22:58 arch iwd[1099]:                 Bitrates (non-HT):
Sep 27 16:22:58 arch iwd[1099]:                          6.0 Mbps
Sep 27 16:22:58 arch iwd[1099]:                          9.0 Mbps
Sep 27 16:22:58 arch iwd[1099]:                         12.0 Mbps
Sep 27 16:22:58 arch iwd[1099]:                         18.0 Mbps
Sep 27 16:22:58 arch iwd[1099]:                         24.0 Mbps
Sep 27 16:22:58 arch iwd[1099]:                         36.0 Mbps
Sep 27 16:22:58 arch iwd[1099]:                         48.0 Mbps
Sep 27 16:22:58 arch iwd[1099]:                         54.0 Mbps
Sep 27 16:22:58 arch iwd[1099]:                 HT Capabilities:
Sep 27 16:22:58 arch iwd[1099]:                         HT40
Sep 27 16:22:58 arch iwd[1099]:                         Short GI for 20Mhz
Sep 27 16:22:58 arch iwd[1099]:                         Short GI for 40Mhz
Sep 27 16:22:58 arch iwd[1099]:                 HT RX MCS indexes:
Sep 27 16:22:58 arch iwd[1099]:                         0-15
Sep 27 16:22:58 arch iwd[1099]:                 VHT Capabilities:
Sep 27 16:22:58 arch iwd[1099]:                         160 Mhz operation
Sep 27 16:22:58 arch iwd[1099]:                         Short GI for 80Mhz
Sep 27 16:22:58 arch iwd[1099]:                         Short GI for 160 and 80 + 80 Mhz
Sep 27 16:22:58 arch iwd[1099]:                         Max RX MCS: 0-9 for NSS: 2
Sep 27 16:22:58 arch iwd[1099]:                         Max TX MCS: 0-9 for NSS: 2
Sep 27 16:22:58 arch iwd[1099]:                 HE Capabilities
Sep 27 16:22:58 arch iwd[1099]:                         Interface Types: ap
Sep 27 16:22:58 arch iwd[1099]:                         Max HE RX <= 80MHz MCS: 0-11 for NSS: 2
Sep 27 16:22:58 arch iwd[1099]:                         Max HE TX <= 80MHz MCS: 0-11 for NSS: 2
Sep 27 16:22:58 arch iwd[1099]:                         Max HE RX <= 160MHz MCS: 0-11 for NSS: 2
Sep 27 16:22:58 arch iwd[1099]:                         Max HE TX <= 160MHz MCS: 0-11 for NSS: 2
Sep 27 16:22:58 arch iwd[1099]:                         Interface Types: station
Sep 27 16:22:58 arch iwd[1099]:                         Max HE RX <= 80MHz MCS: 0-11 for NSS: 2
Sep 27 16:22:58 arch iwd[1099]:                         Max HE TX <= 80MHz MCS: 0-11 for NSS: 2
Sep 27 16:22:58 arch iwd[1099]:                         Max HE RX <= 160MHz MCS: 0-11 for NSS: 2
Sep 27 16:22:58 arch iwd[1099]:                         Max HE TX <= 160MHz MCS: 0-11 for NSS: 2
Sep 27 16:22:58 arch iwd[1099]:         6GHz Band:
Sep 27 16:22:58 arch iwd[1099]:                 Bitrates (non-HT):
Sep 27 16:22:58 arch iwd[1099]:                          6.0 Mbps
Sep 27 16:22:58 arch iwd[1099]:                          9.0 Mbps
Sep 27 16:22:58 arch iwd[1099]:                         12.0 Mbps
Sep 27 16:22:58 arch iwd[1099]:                         18.0 Mbps
Sep 27 16:22:58 arch iwd[1099]:                         24.0 Mbps
Sep 27 16:22:58 arch iwd[1099]:                         36.0 Mbps
Sep 27 16:22:58 arch iwd[1099]:                         48.0 Mbps
Sep 27 16:22:58 arch iwd[1099]:                         54.0 Mbps
Sep 27 16:22:58 arch iwd[1099]:                 HE Capabilities
Sep 27 16:22:58 arch iwd[1099]:                         Interface Types: ap
Sep 27 16:22:58 arch iwd[1099]:                         Max HE RX <= 80MHz MCS: 0-11 for NSS: 2
Sep 27 16:22:58 arch iwd[1099]:                         Max HE TX <= 80MHz MCS: 0-11 for NSS: 2
Sep 27 16:22:58 arch iwd[1099]:                         Max HE RX <= 160MHz MCS: 0-11 for NSS: 2
Sep 27 16:22:58 arch iwd[1099]:                         Max HE TX <= 160MHz MCS: 0-11 for NSS: 2
Sep 27 16:22:58 arch iwd[1099]:                         Interface Types: station
Sep 27 16:22:58 arch iwd[1099]:                         Max HE RX <= 80MHz MCS: 0-11 for NSS: 2
Sep 27 16:22:58 arch iwd[1099]:                         Max HE TX <= 80MHz MCS: 0-11 for NSS: 2
Sep 27 16:22:58 arch iwd[1099]:                         Max HE RX <= 160MHz MCS: 0-11 for NSS: 2
Sep 27 16:22:58 arch iwd[1099]:                         Max HE TX <= 160MHz MCS: 0-11 for NSS: 2
Sep 27 16:22:58 arch iwd[1099]:         Ciphers: BIP-GMAC-256 BIP-GMAC-128 GCMP-256 GCMP-128
Sep 27 16:22:58 arch iwd[1099]:                  BIP-CMAC-128 CCMP-128 TKIP
Sep 27 16:22:58 arch iwd[1099]:         Supported iftypes: ad-hoc station ap p2p-client p2p-go p2p-device
Sep 27 16:23:00 arch iwd[1099]: [DHCPv4] l_dhcp_client_start:1219 Entering state: DHCP_STATE_SELECTING
Sep 27 16:23:01 arch iwd[1099]: [DHCPv4] dhcp_client_handle_offer:811 Entering state: DHCP_STATE_REQUESTING
Sep 27 16:23:01 arch iwd[1099]: [DHCPv4] dhcp_client_rx_message:915 Entering state: DHCP_STATE_BOUND
Sep 27 16:23:01 arch iwd[1488]: /usr/lib/resolvconf/libc: Zeile 246: /etc/resolv.conf: Das Dateisystem ist nur lesbar
Sep 27 16:23:01 arch systemd[1]: iwd.service: Got notification message from PID 1489, but reception only permitted for main PID 1099
Sep 27 16:23:01 arch iwd[1099]: [DHCPv4] dhcp_client_rx_message:948 T1 expiring in 43200192 ms
Sep 27 16:23:04 arch iwd[1686]: /usr/lib/resolvconf/libc: Zeile 246: /etc/resolv.conf: Das Dateisystem ist nur lesbar
Sep 27 16:23:04 arch systemd[1]: iwd.service: Got notification message from PID 1687, but reception only permitted for main PID 1099
Sep 27 16:23:05 arch iwd[1746]: /usr/lib/resolvconf/libc: Zeile 246: /etc/resolv.conf: Das Dateisystem ist nur lesbar
Sep 27 16:23:05 arch systemd[1]: iwd.service: Got notification message from PID 1747, but reception only permitted for main PID 1099
Sep 27 19:21:42 arch iwd[1099]: Received Deauthentication event, reason: 3, from_ap: false
Sep 27 19:21:42 arch iwd[8377]: /usr/lib/resolvconf/libc: Zeile 246: /etc/resolv.conf: Das Dateisystem ist nur lesbar
Sep 27 19:21:42 arch systemd[1]: iwd.service: Got notification message from PID 8378, but reception only permitted for main PID 1099
Sep 27 19:21:42 arch iwd[8446]: /usr/lib/resolvconf/libc: Zeile 246: /etc/resolv.conf: Das Dateisystem ist nur lesbar
Sep 27 19:21:42 arch systemd[1]: iwd.service: Got notification message from PID 8447, but reception only permitted for main PID 1099
Sep 27 19:21:42 arch iwd[8515]: /usr/lib/resolvconf/libc: Zeile 246: /etc/resolv.conf: Das Dateisystem ist nur lesbar
Sep 27 19:21:42 arch systemd[1]: iwd.service: Got notification message from PID 8516, but reception only permitted for main PID 1099
Sep 27 19:21:42 arch iwd[1099]: [DHCPv4] l_dhcp_client_stop:1264 Entering state: DHCP_STATE_INIT
Sep 27 19:21:45 arch iwd[1099]: [DHCPv4] l_dhcp_client_start:1219 Entering state: DHCP_STATE_SELECTING
Sep 27 19:21:45 arch iwd[1099]: [DHCPv4] dhcp_client_handle_offer:811 Entering state: DHCP_STATE_REQUESTING
Sep 27 19:21:45 arch iwd[1099]: [DHCPv4] dhcp_client_rx_message:915 Entering state: DHCP_STATE_BOUND
Sep 27 19:21:45 arch iwd[8808]: /usr/lib/resolvconf/libc: Zeile 246: /etc/resolv.conf: Das Dateisystem ist nur lesbar
Sep 27 19:21:45 arch systemd[1]: iwd.service: Got notification message from PID 8810, but reception only permitted for main PID 1099
Sep 27 19:21:45 arch iwd[1099]: [DHCPv4] dhcp_client_rx_message:948 T1 expiring in 43200670 ms
Sep 27 19:21:49 arch iwd[9055]: /usr/lib/resolvconf/libc: Zeile 246: /etc/resolv.conf: Das Dateisystem ist nur lesbar
Sep 27 19:21:49 arch iwd[9115]: /usr/lib/resolvconf/libc: Zeile 246: /etc/resolv.conf: Das Dateisystem ist nur lesbar
Sep 27 19:21:49 arch systemd[1]: iwd.service: Got notification message from PID 9116, but reception only permitted for main PID 1099
Sep 27 19:22:07 arch iwd[9620]: /usr/lib/resolvconf/libc: Zeile 246: /etc/resolv.conf: Das Dateisystem ist nur lesbar
Sep 27 19:22:07 arch systemd[1]: iwd.service: Got notification message from PID 9621, but reception only permitted for main PID 1099
Sep 27 19:22:07 arch iwd[9672]: /usr/lib/resolvconf/libc: Zeile 246: /etc/resolv.conf: Das Dateisystem ist nur lesbar
Sep 27 19:22:07 arch systemd[1]: iwd.service: Got notification message from PID 9673, but reception only permitted for main PID 1099
Sep 27 19:22:07 arch iwd[9718]: /usr/lib/resolvconf/libc: Zeile 246: /etc/resolv.conf: Das Dateisystem ist nur lesbar
Sep 27 19:22:07 arch systemd[1]: iwd.service: Got notification message from PID 9719, but reception only permitted for main PID 1099
Sep 27 19:22:08 arch iwd[1099]: [DHCPv4] l_dhcp_client_stop:1264 Entering state: DHCP_STATE_INIT
Sep 27 19:22:08 arch iwd[1099]: [DHCPv4] l_dhcp_client_start:1219 Entering state: DHCP_STATE_SELECTING
Sep 27 19:22:08 arch iwd[1099]: [DHCPv4] dhcp_client_handle_offer:811 Entering state: DHCP_STATE_REQUESTING
Sep 27 19:22:08 arch iwd[1099]: [DHCPv4] dhcp_client_rx_message:915 Entering state: DHCP_STATE_BOUND
Sep 27 19:22:08 arch iwd[9851]: /usr/lib/resolvconf/libc: Zeile 246: /etc/resolv.conf: Das Dateisystem ist nur lesbar
Sep 27 19:22:08 arch systemd[1]: iwd.service: Got notification message from PID 9852, but reception only permitted for main PID 1099
Sep 27 19:22:08 arch iwd[1099]: [DHCPv4] dhcp_client_rx_message:948 T1 expiring in 43200476 ms
Sep 27 22:29:36 arch iwd[1099]: Received Deauthentication event, reason: 3, from_ap: false
Sep 27 22:29:36 arch iwd[17182]: /usr/lib/resolvconf/libc: Zeile 246: /etc/resolv.conf: Das Dateisystem ist nur lesbar
Sep 27 22:29:36 arch iwd[1099]: [DHCPv4] l_dhcp_client_stop:1264 Entering state: DHCP_STATE_INIT
Sep 27 22:29:39 arch iwd[1099]: [DHCPv4] l_dhcp_client_start:1219 Entering state: DHCP_STATE_SELECTING
Sep 27 22:29:39 arch iwd[1099]: [DHCPv4] dhcp_client_handle_offer:811 Entering state: DHCP_STATE_REQUESTING
Sep 27 22:29:39 arch iwd[1099]: [DHCPv4] dhcp_client_rx_message:915 Entering state: DHCP_STATE_BOUND
Sep 27 22:29:39 arch iwd[17557]: /usr/lib/resolvconf/libc: Zeile 246: /etc/resolv.conf: Das Dateisystem ist nur lesbar
Sep 27 22:29:39 arch systemd[1]: iwd.service: Got notification message from PID 17558, but reception only permitted for main PID 1099
Sep 27 22:29:39 arch iwd[1099]: [DHCPv4] dhcp_client_rx_message:948 T1 expiring in 43200930 ms
Sep 27 22:29:39 arch iwd[17610]: /usr/lib/resolvconf/libc: Zeile 246: /etc/resolv.conf: Das Dateisystem ist nur lesbar
Sep 27 22:29:39 arch systemd[1]: iwd.service: Got notification message from PID 17611, but reception only permitted for main PID 1099
Sep 27 22:29:39 arch iwd[17664]: /usr/lib/resolvconf/libc: Zeile 246: /etc/resolv.conf: Das Dateisystem ist nur lesbar
Sep 27 22:29:39 arch systemd[1]: iwd.service: Got notification message from PID 17665, but reception only permitted for main PID 1099

Maybe someone could check if they have similar message in their logs or tell me if I have got something wrong on my system.

Last edited by auntytonga (2023-09-28 08:31:08)

Offline

#2 2023-09-27 21:47:00

seth
Member
Registered: 2012-09-03
Posts: 60,787

Re: [Solved] iwd.service PID error message

I'd focus on

Sep 27 16:23:01 arch iwd[1488]: /usr/lib/resolvconf/libc: Zeile 246: /etc/resolv.conf: Das Dateisystem ist nur lesbar
stat /etc/resolv.conf
lsattr /etc/resolv.conf

Offline

#3 2023-09-28 07:30:06

auntytonga
Member
Registered: 2023-09-27
Posts: 3

Re: [Solved] iwd.service PID error message

$ stat /etc/resolv.conf   
 Datei: /etc/resolv.conf
 Größe: 79        	Blöcke: 8          EA Block: 4096   reguläre Datei
Gerät: 254/0	Inode: 6029332     Verknüpfungen: 1
Zugriff: (0644/-rw-r--r--)  Uid: (    0/    root)   Gid: (    0/    root)
Zugriff: 2023-07-28 11:29:19.293604863 +0200
Modifiziert: 2023-09-19 09:42:40.861753993 +0200
Geändert: 2023-09-19 09:42:40.861753993 +0200
Geburt: 2023-07-02 15:25:36.833167065 +0200
$ lsattr /etc/resolv.conf
--------------e------- /etc/resolv.conf

I use openresolv to manage the file and I've configured it like the wiki suggests for use with unbound as my local resolver.

$ cat /etc/resolvconf.conf
# Configuration for resolvconf(8)
# See resolvconf.conf(5) for details

resolv_conf=/etc/resolv.conf
# If you run a local name server, you should uncomment the below line and
# configure your subscribers configuration files below.
name_servers="::1 127.0.0.1"
resolv_conf_options="trust-ad"
$ cat /etc/resolv.conf
# Generated by resolvconf
nameserver ::1
nameserver 127.0.0.1
options trust-ad

Offline

#4 2023-09-28 07:57:26

seth
Member
Registered: 2012-09-03
Posts: 60,787

Re: [Solved] iwd.service PID error message

The permissions and attributes (not immutable) look ok, unless the root fs is acutally mouted ro, the problem likely results from https://git.kernel.org/pub/scm/network/ … 5af245d1d5

The wiki hasn't seen any updates since then, try to set "resolv_conf_mv" to true (but that's just a blind guess)

However, since you're using a static local unbound resolution, you don't have anyfunctional issues from those errors, do you?

Offline

#5 2023-09-28 08:30:39

auntytonga
Member
Registered: 2023-09-27
Posts: 3

Re: [Solved] iwd.service PID error message

Ok, I have solved it.

I went through https://man.archlinux.org/man/iwd.config.5 again and saw that for NameResolvingService there is a third option "none". I previously missed that when setting up iwd as my dhcp-client and thought it could only be set to systemd or resolvconf. Changed my /etc/iwd/main.conf and now the errors are gone. Not sure why this works though and it seems kind of counterintuitive but now iwd doesn't try to mess with /etc/resolv.conf anymore and DNS still works.

Thanks seth for your helpful suggestions.

Offline

Board footer

Powered by FluxBB