You are not logged in.

#1 2019-05-13 21:32:28

mcloaked
Member
From: Yorkshire, UK
Registered: 2012-02-02
Posts: 1,240

iwd update to 0.18-1 breaks wireless

After updating iwd today to 0.18-1 I found that networking with systemd-networkd is broken.  In the logs I have:

$ sudo journalctl -b -1 -u systemd-networkd --no-pager
-- Logs begin at Sat 2019-05-04 15:23:36 BST, end at Mon 2019-05-13 22:26:11 BST. --
May 13 22:01:54 lenovo1 systemd[1]: Starting Network Service...
May 13 22:01:55 lenovo1 systemd-networkd[517]: Enumeration completed
May 13 22:01:55 lenovo1 systemd[1]: Started Network Service.
May 13 22:01:55 lenovo1 systemd-networkd[517]: enp3s0: Interface name change detected, enp3s0 has been renamed to eth0.
May 13 22:01:55 lenovo1 systemd-networkd[517]: eth0: Interface name change detected, eth0 has been renamed to enp3s0.
May 13 22:01:55 lenovo1 systemd-networkd[517]: wlan0: Could not find device: No such device
May 13 22:01:55 lenovo1 systemd-networkd[517]: wlan0: Failed
May 13 22:01:55 lenovo1 systemd-networkd[517]: Could not add new link, ignoring: No such device
May 13 22:01:55 lenovo1 systemd-networkd[517]: wlan0: Interface name change detected, wlan0 has been renamed to wlp4s0.
May 13 22:01:55 lenovo1 systemd-networkd[517]: wlp4s0: Could not find device: No such device
May 13 22:01:55 lenovo1 systemd-networkd[517]: wlp4s0: Failed
May 13 22:01:55 lenovo1 systemd-networkd[517]: Could not update link, ignoring: No such device
May 13 22:01:55 lenovo1 systemd-networkd[517]: enp3s0: Could not bring up interface: Invalid argument
May 13 22:01:55 lenovo1 systemd-networkd[517]: wlan0: Gained carrier
May 13 22:01:56 lenovo1 systemd-networkd[517]: wlan0: Gained IPv6LL
May 13 22:06:39 lenovo1 systemd-networkd[517]: wlan0: Lost carrier
May 13 22:06:39 lenovo1 systemd-networkd[517]: Could not emit changed OperationalState: Transport endpoint is not connected
May 13 22:06:40 lenovo1 systemd[1]: Stopping Network Service...
May 13 22:06:40 lenovo1 systemd[1]: systemd-networkd.service: Succeeded.
May 13 22:06:40 lenovo1 systemd[1]: Stopped Network Service.

I found that I had no wireless connection - so I downgraded iwd (0.18-1 -> 0.17-1) and rebooted and it was fine again. 

The analogous journal log with iwd 0.17-1 was:

$ sudo journalctl -b -u systemd-networkd --no-pager
-- Logs begin at Sat 2019-05-04 15:23:36 BST, end at Mon 2019-05-13 22:32:53 BST. --
May 13 22:07:01 lenovo1 systemd[1]: Starting Network Service...
May 13 22:07:01 lenovo1 systemd-networkd[528]: Enumeration completed
May 13 22:07:01 lenovo1 systemd[1]: Started Network Service.
May 13 22:07:01 lenovo1 systemd-networkd[528]: enp3s0: Interface name change detected, enp3s0 has been renamed to eth0.
May 13 22:07:01 lenovo1 systemd-networkd[528]: eth0: Interface name change detected, eth0 has been renamed to enp3s0.
May 13 22:07:01 lenovo1 systemd-networkd[528]: wlp4s0: Interface name change detected, wlp4s0 has been renamed to wlan0.
May 13 22:07:01 lenovo1 systemd-networkd[528]: wlan0: Interface name change detected, wlan0 has been renamed to wlp4s0.
May 13 22:07:02 lenovo1 systemd-networkd[528]: enp3s0: Could not bring up interface: Invalid argument
May 13 22:07:03 lenovo1 systemd-networkd[528]: wlp4s0: Gained carrier
May 13 22:07:03 lenovo1 systemd-networkd[528]: wlp4s0: DHCPv4 address 10.0.0.94/24 via 10.0.0.135
May 13 22:07:05 lenovo1 systemd-networkd[528]: wlp4s0: Gained IPv6LL
May 13 22:07:07 lenovo1 systemd-networkd[528]: wlp4s0: Configured

Here wireless networking is working fine again.

I don't know if there is a work around for iwd 0.18-1, of if a correctly working version of iwd will be added to the repos for versions later than 0.17-1

[Edit} According to the bug report linked below by JasonRyan  which suggested a workaround I did change my .network file for the laptop to use the MACAddress= parameter instead of the Name= parameter in the [MATCH] section and this allows systemd-networkd to start up correctly and assign the address to the wireless interface - though it is now named wlan0 instead of the old name wlp4s0 as before. So the problem with iwd/systemd/udev remains and still needs to be worked on.

The log contains now with iwd version 0.81-1:

$ sudo journalctl -b -u systemd-networkd --no-pager
-- Logs begin at Tue 2019-05-07 20:33:38 BST, end at Tue 2019-05-14 18:45:56 BST. --
May 14 18:44:58 lenovo1 systemd[1]: Starting Network Service...
May 14 18:44:59 lenovo1 systemd-networkd[530]: Enumeration completed
May 14 18:44:59 lenovo1 systemd[1]: Started Network Service.
May 14 18:44:59 lenovo1 systemd-networkd[530]: enp3s0: Interface name change detected, enp3s0 has been renamed to eth0.
May 14 18:44:59 lenovo1 systemd-networkd[530]: eth0: Interface name change detected, eth0 has been renamed to enp3s0.
May 14 18:44:59 lenovo1 systemd-networkd[530]: wlan0: Could not find device: No such device
May 14 18:44:59 lenovo1 systemd-networkd[530]: wlan0: Failed
May 14 18:44:59 lenovo1 systemd-networkd[530]: Could not add new link, ignoring: No such device
May 14 18:44:59 lenovo1 systemd-networkd[530]: wlan0: Interface name change detected, wlan0 has been renamed to wlp4s0.
May 14 18:44:59 lenovo1 systemd-networkd[530]: wlp4s0: Could not find device: No such device
May 14 18:44:59 lenovo1 systemd-networkd[530]: wlp4s0: Failed
May 14 18:44:59 lenovo1 systemd-networkd[530]: Could not update link, ignoring: No such device
May 14 18:44:59 lenovo1 systemd-networkd[530]: enp3s0: Could not bring up interface: Invalid argument
May 14 18:44:59 lenovo1 systemd-networkd[530]: wlan0: Gained carrier
May 14 18:44:59 lenovo1 systemd-networkd[530]: wlan0: DHCPv4 address 10.0.0.94/24 via 10.0.0.135
May 14 18:45:00 lenovo1 systemd-networkd[530]: wlan0: Gained IPv6LL
May 14 18:45:02 lenovo1 systemd-networkd[530]: wlan0: Configured

This looks directly related to the report at  https://github.com/systemd/systemd/issues/12561 also which implies a systemd/udev problem too.

Edit 2: The workaround in Edit 1 only lasted a limited period before the wireless interface stopped working again - so I still had to downgrade iwd back to 0.71-1 and reboot to get consistent wireless connection that didn't break after some period.

Edit 3: This is the log with iwd 0.81-1 and using the MACAddress match in the systemd-networkd network file - initially the wireless interface was set up fine but then died a few minutes later:

$ sudo journalctl -b -1 -u systemd-networkd --no-pager
-- Logs begin at Tue 2019-05-07 20:33:38 BST, end at Tue 2019-05-14 19:28:58 BST. --
May 14 18:44:58 lenovo1 systemd[1]: Starting Network Service...
May 14 18:44:59 lenovo1 systemd-networkd[530]: Enumeration completed
May 14 18:44:59 lenovo1 systemd[1]: Started Network Service.
May 14 18:44:59 lenovo1 systemd-networkd[530]: enp3s0: Interface name change detected, enp3s0 has been renamed to eth0.
May 14 18:44:59 lenovo1 systemd-networkd[530]: eth0: Interface name change detected, eth0 has been renamed to enp3s0.
May 14 18:44:59 lenovo1 systemd-networkd[530]: wlan0: Could not find device: No such device
May 14 18:44:59 lenovo1 systemd-networkd[530]: wlan0: Failed
May 14 18:44:59 lenovo1 systemd-networkd[530]: Could not add new link, ignoring: No such device
May 14 18:44:59 lenovo1 systemd-networkd[530]: wlan0: Interface name change detected, wlan0 has been renamed to wlp4s0.
May 14 18:44:59 lenovo1 systemd-networkd[530]: wlp4s0: Could not find device: No such device
May 14 18:44:59 lenovo1 systemd-networkd[530]: wlp4s0: Failed
May 14 18:44:59 lenovo1 systemd-networkd[530]: Could not update link, ignoring: No such device
May 14 18:44:59 lenovo1 systemd-networkd[530]: enp3s0: Could not bring up interface: Invalid argument
May 14 18:44:59 lenovo1 systemd-networkd[530]: wlan0: Gained carrier
May 14 18:44:59 lenovo1 systemd-networkd[530]: wlan0: DHCPv4 address 10.0.0.94/24 via 10.0.0.135
May 14 18:45:00 lenovo1 systemd-networkd[530]: wlan0: Gained IPv6LL
May 14 18:45:02 lenovo1 systemd-networkd[530]: wlan0: Configured
May 14 19:00:35 lenovo1 systemd[1]: Stopping Network Service...
May 14 19:00:35 lenovo1 systemd[1]: systemd-networkd.service: Succeeded.
May 14 19:00:35 lenovo1 systemd[1]: Stopped Network Service.
May 14 19:00:35 lenovo1 systemd[1]: Starting Network Service...
May 14 19:00:36 lenovo1 systemd-networkd[2193]: wlan0: Gained IPv6LL
May 14 19:00:36 lenovo1 systemd-networkd[2193]: Enumeration completed
May 14 19:00:36 lenovo1 systemd[1]: Started Network Service.
May 14 19:00:36 lenovo1 systemd-networkd[2193]: wlan0: DHCPv4 address 10.0.0.94/24 via 10.0.0.135
May 14 19:00:38 lenovo1 systemd-networkd[2193]: wlan0: Configured
May 14 19:01:04 lenovo1 systemd[1]: Stopping Network Service...
May 14 19:01:04 lenovo1 systemd[1]: systemd-networkd.service: Succeeded.
May 14 19:01:04 lenovo1 systemd[1]: Stopped Network Service.
May 14 19:01:04 lenovo1 systemd[1]: Starting Network Service...
May 14 19:01:04 lenovo1 systemd-networkd[2211]: wlan0: Gained IPv6LL
May 14 19:01:04 lenovo1 systemd-networkd[2211]: Enumeration completed
May 14 19:01:04 lenovo1 systemd[1]: Started Network Service.
May 14 19:01:04 lenovo1 systemd-networkd[2211]: wlan0: DHCPv4 address 10.0.0.94/24 via 10.0.0.135
May 14 19:01:06 lenovo1 systemd-networkd[2211]: wlan0: Configured
May 14 19:02:07 lenovo1 systemd-networkd[2211]: wlan0: Lost carrier
May 14 19:02:07 lenovo1 systemd-networkd[2211]: wlan0: DHCP lease lost
May 14 19:02:07 lenovo1 systemd-networkd[2211]: wlan0: DHCPv6 lease lost
May 14 19:02:07 lenovo1 systemd-networkd[2211]: Could not emit changed OperationalState: Transport endpoint is not connected
May 14 19:02:08 lenovo1 systemd[1]: Stopping Network Service...
May 14 19:02:08 lenovo1 systemd[1]: systemd-networkd.service: Succeeded.
May 14 19:02:08 lenovo1 systemd[1]: Stopped Network Service.

and a corresponding iwd log entry at the same time as the systemd-networkd fail:

iwd[488]: MLME notification is missing ifindex attribute

which I believe means a failure of the 4 way handshake - presumably because the link has failed.

Edit 4: I realised from the linked bug report that I might be affected with my iptables firewall - I had restricted the interface to wlp4s0 - so I altered the firewall rules to include wlan0 - and it now works with iwd 0.81-1 - so it is a workaround but need to wait and see if there is any change to the package that allows the new interface names to be used in the MATCH section and not just the name or MACAddress.

Last edited by mcloaked (2019-05-15 19:41:10)


Mike C

Offline

#2 2019-05-14 00:19:49

sudoku
Member
Registered: 2012-10-31
Posts: 95

Re: iwd update to 0.18-1 breaks wireless

I can only add a me too. I'm keeping to 0.17 until I hear news.

Offline

#3 2019-05-14 00:26:27

jasonwryan
Anarchist
From: .nz
Registered: 2009-05-09
Posts: 30,424
Website

Re: iwd update to 0.18-1 breaks wireless


Arch + dwm   •   Mercurial repos  •   Surfraw

Registered Linux User #482438

Offline

#4 2019-05-14 02:17:00

sudoku
Member
Registered: 2012-10-31
Posts: 95

Re: iwd update to 0.18-1 breaks wireless

The proposed workaround does not restore connectivity for me, and neither does adding an override as mentioned in the comments (in fact I had the override already).

Last edited by sudoku (2019-05-14 02:17:43)

Offline

#5 2019-05-17 05:48:33

sudoku
Member
Registered: 2012-10-31
Posts: 95

Re: iwd update to 0.18-1 breaks wireless

For anyone interested, workaround here works for me:
https://www.reddit.com/r/archlinux/comm … g/enqbwr5/

Offline

Board footer

Powered by FluxBB