You are not logged in.

#1 2022-12-14 15:17:18

Pooya
Member
Registered: 2022-10-14
Posts: 12

[SOLVED] iwctl doesn't start " waiting for IWD"

i am unable to connect to internet. while booting, i see wireless service fail.
when i try to start or enable iwd:

Job for iwd.service failed because the control process exited with error code.
See "systemctl status iwd.service" and "journalctl -xeu iwd.service" for details.

when i check the iwd.service status the output is:

× iwd.service - Wireless service
     Loaded: loaded (/etc/systemd/system/iwd.service; enabled; preset: disabled)
     Active: failed (Result: exit-code) since Wed 2022-12-14 18:28:30 +0330; 1min 5s ago
       Docs: man:iwd(8)
             man:iwd.config(5)
             man:iwd.network(5)
             man:iwd.ap(5)
    Process: 5609 ExecStart=/usr/lib/iwd/iwd (code=exited, status=1/FAILURE)
   Main PID: 5609 (code=exited, status=1/FAILURE)
        CPU: 15ms

Dec 14 18:28:30 POOYA systemd[1]: iwd.service: Scheduled restart job, restart counter is at 5.
Dec 14 18:28:30 POOYA systemd[1]: Stopped Wireless service.
Dec 14 18:28:30 POOYA systemd[1]: iwd.service: Start request repeated too quickly.
Dec 14 18:28:30 POOYA systemd[1]: iwd.service: Failed with result 'exit-code'.
Dec 14 18:28:30 POOYA systemd[1]: Failed to start Wireless service.

i have tried chrooting via live usb and updating the whole system, removing and reinstalling the iwd package, and also disabling wpa_supplicant. neither have worked.
i am going mad. thank you

Last edited by Pooya (2022-12-16 20:12:04)

Offline

#2 2022-12-14 15:30:38

V1del
Forum Moderator
Registered: 2012-10-16
Posts: 25,104

Re: [SOLVED] iwctl doesn't start " waiting for IWD"

wpa_supplicant should never have been started in the first place when trying to use iwd. Which other services do you have enabled that can and will conflict with iwd?

sudo journalctl -b
find /etc/systemd -type l -exec test -f {} \; -print | awk -F'/' '{ printf ("%-40s | %s\n", $(NF-0), $(NF-1)) }' | sort -f

Offline

#3 2022-12-14 16:55:11

Pooya
Member
Registered: 2022-10-14
Posts: 12

Re: [SOLVED] iwctl doesn't start " waiting for IWD"

V1del wrote:

wpa_supplicant should never have been started in the first place when trying to use iwd. Which other services do you have enabled that can and will conflict with iwd?

sudo journalctl -b
find /etc/systemd -type l -exec test -f {} \; -print | awk -F'/' '{ printf ("%-40s | %s\n", $(NF-0), $(NF-1)) }' | sort -f

i dont think wpa_supplicant was enabled, i just mentioned it to show it wasn't the problem
journalctl -b returns : Failed to get boot id, no such file or directory
and the second command returns:

dbus-org.freedesktop.network1.service    | system
dbus-org.freedesktop.nm-dispatcher.service | system
dbus-org.freedesktop.resolve1.service    | system
dhcpcd.service                           | multi-user.target.wants
gcr-ssh-agent.socket                     | sockets.target.wants
getty@tty1.service                       | getty.target.wants
iwd.service                              | multi-user.target.wants
NetworkManager.service                   | multi-user.target.wants
NetworkManager-wait-online.service       | network-online.target.wants
p11-kit-server.socket                    | sockets.target.wants
pipewire.socket                          | sockets.target.wants
pulseaudio.socket                        | sockets.target.wants
remote-fs.target                         | multi-user.target.wants
systemd-networkd.service                 | multi-user.target.wants
systemd-networkd.socket                  | sockets.target.wants
systemd-networkd-wait-online.service     | network-online.target.wants
systemd-network-generator.service        | sysinit.target.wants
systemd-resolved.service                 | sysinit.target.wants
tlp.service                              | multi-user.target.wants
tor.service                              | multi-user.target.wants

note: i chrooted into arch from my fedora on another partition

Offline

#4 2022-12-14 16:59:30

Scimmia
Fellow
Registered: 2012-09-01
Posts: 13,694

Re: [SOLVED] iwctl doesn't start " waiting for IWD"

First thing you need to do is decide how you want to manage your network. You have dhcpcd, iwd, NetworkManager, and systemd-networkd all enabled, which will never work right.

Offline

#5 2022-12-14 17:02:55

Pooya
Member
Registered: 2022-10-14
Posts: 12

Re: [SOLVED] iwctl doesn't start " waiting for IWD"

Scimmia wrote:

First thing you need to do is decide how you want to manage your network. You have dhcpcd, iwd, NetworkManager, and systemd-networkd all enabled, which will never work right.

i thought networkmanager needs iwd, since everytime iwctl is broken nmtui is broken too.
i use network-manager, should i disable the other services?

Offline

#6 2022-12-14 17:10:32

Scimmia
Fellow
Registered: 2012-09-01
Posts: 13,694

Re: [SOLVED] iwctl doesn't start " waiting for IWD"

Yes, you should disable the other 3 in that case. NetworkManager uses wpa_supplicant by default, but it can use IWD if you configure it to. See the NetworkManager wiki page. Note that iwd should not be enabled for that.

Last edited by Scimmia (2022-12-14 17:10:54)

Offline

#7 2022-12-14 17:24:31

Pooya
Member
Registered: 2022-10-14
Posts: 12

Re: [SOLVED] iwctl doesn't start " waiting for IWD"

Pooya wrote:
Scimmia wrote:

First thing you need to do is decide how you want to manage your network. You have dhcpcd, iwd, NetworkManager, and systemd-networkd all enabled, which will never work right.

i thought networkmanager needs iwd, since everytime iwctl is broken nmtui is broken too.
i use network-manager, should i disable the other services?

So i disabled dhcpcd, networkmanager, systemd-networkd and tried enabling iwd but the result is the exact same, nothing changes.
I tried disabling iwd and enabling networkmanager
But nmtui doesn't detect any wifi and shows nothing

Offline

#8 2022-12-14 17:32:46

Pooya
Member
Registered: 2022-10-14
Posts: 12

Re: [SOLVED] iwctl doesn't start " waiting for IWD"

Pooya wrote:
Scimmia wrote:

First thing you need to do is decide how you want to manage your network. You have dhcpcd, iwd, NetworkManager, and systemd-networkd all enabled, which will never work right.

i thought networkmanager needs iwd, since everytime iwctl is broken nmtui is broken too.
i use network-manager, should i disable the other services?

So i disabled dhcpcd, networkmanager, systemd-networkd and tried enabling iwd but the result is the exact same, nothing changes.
I tried disabling iwd and enabling networkmanager
But nmtui doesn't detect any wifi and shows nothing

Offline

#9 2022-12-14 18:18:32

Scimmia
Fellow
Registered: 2012-09-01
Posts: 13,694

Re: [SOLVED] iwctl doesn't start " waiting for IWD"

and wpa_supplicant is installed?

Offline

#10 2022-12-14 19:14:11

Pooya
Member
Registered: 2022-10-14
Posts: 12

Re: [SOLVED] iwctl doesn't start " waiting for IWD"

Scimmia wrote:

and wpa_supplicant is installed?

Yes

Offline

#11 2022-12-14 19:52:06

Zod
Member
From: Hoosiertucky
Registered: 2019-03-10
Posts: 636

Re: [SOLVED] iwctl doesn't start " waiting for IWD"

After disabling the extra services, if you haven't stopped them you should probably reboot.

Offline

#12 2022-12-14 20:19:19

seth
Member
From: Don't DM me only for attention
Registered: 2012-09-03
Posts: 74,307

Re: [SOLVED] iwctl doesn't start " waiting for IWD"

journalctl -b returns : Failed to get boot id, no such file or directory

note: i chrooted into arch from my fedora on another partition

https://wiki.archlinux.org/title/System … al_to_view
Otherwise, boot the arch system, run

sudo journalctl -b > ~/journal.txt

and upload that journal from the fedora boot - we need a journal to know what's actually going on there.

Offline

#13 2022-12-14 20:45:46

Pooya
Member
Registered: 2022-10-14
Posts: 12

Re: [SOLVED] iwctl doesn't start " waiting for IWD"

Zod wrote:

After disabling the extra services, if you haven't stopped them you should probably reboot.

i did this but it won't make a difference

Offline

#14 2022-12-14 20:49:07

Pooya
Member
Registered: 2022-10-14
Posts: 12

Re: [SOLVED] iwctl doesn't start " waiting for IWD"

seth wrote:

journalctl -b returns : Failed to get boot id, no such file or directory

note: i chrooted into arch from my fedora on another partition

https://wiki.archlinux.org/title/System … al_to_view
Otherwise, boot the arch system, run

sudo journalctl -b > ~/journal.txt

and upload that journal from the fedora boot - we need a journal to know what's actually going on there.

i uploaded the output to: https://pastebin.pl/view/649fe207

Offline

#15 2022-12-14 21:04:25

seth
Member
From: Don't DM me only for attention
Registered: 2012-09-03
Posts: 74,307

Re: [SOLVED] iwctl doesn't start " waiting for IWD"

503, try

cat journal.txt | curl -F 'file=@-' 0x0.st

Offline

#16 2022-12-14 21:11:23

Pooya
Member
Registered: 2022-10-14
Posts: 12

Re: [SOLVED] iwctl doesn't start " waiting for IWD"

seth wrote:

503, try

cat journal.txt | curl -F 'file=@-' 0x0.st

sorry, here it is.
http://0x0.st/onWZ.txt

Offline

#17 2022-12-14 21:15:30

seth
Member
From: Don't DM me only for attention
Registered: 2012-09-03
Posts: 74,307

Re: [SOLVED] iwctl doesn't start " waiting for IWD"

Dec 15 00:06:52 POOYA systemd-modules-load[251]: Failed to find module 'crypto_user'
Dec 15 00:06:52 POOYA systemd-modules-load[251]: Failed to find module 'pkcs8_key_parser'

Compare

pacman -Qi linux

Offline

#18 2022-12-14 21:24:58

Pooya
Member
Registered: 2022-10-14
Posts: 12

Re: [SOLVED] iwctl doesn't start " waiting for IWD"

seth wrote:
Dec 15 00:06:52 POOYA systemd-modules-load[251]: Failed to find module 'crypto_user'
Dec 15 00:06:52 POOYA systemd-modules-load[251]: Failed to find module 'pkcs8_key_parser'

Compare

pacman -Qi linux

so the output is

Name            : linux
Version         : 6.0.12.arch1-1
Description     : The Linux kernel and modules
Architecture    : x86_64
URL             : https://github.com/archlinux/linux/commits/v6.0.12-arch1
Licenses        : GPL2
Groups          : None
Provides        : VIRTUALBOX-GUEST-MODULES  WIREGUARD-MODULE  KSMBD-MODULE
Depends On      : coreutils  kmod  initramfs
Optional Deps   : wireless-regdb: to set the correct wireless channels of your country
                  linux-firmware: firmware images needed for some devices [installed]
Required By     : None
Optional For    : base
Conflicts With  : None
Replaces        : virtualbox-guest-modules-arch  wireguard-arch
Installed Size  : 163.44 MiB
Packager        : Jan Alexander Steffens (heftig) <heftig@archlinux.org>
Build Date      : Thu 08 Dec 2022 02:33:38 PM +0330
Install Date    : Fri 09 Dec 2022 01:58:56 AM +0330
Install Reason  : Explicitly installed
Install Script  : No
Validated By    : Signature

should i look for these modules and enable them? what do you mean by compare?

Offline

#19 2022-12-14 21:30:09

seth
Member
From: Don't DM me only for attention
Registered: 2012-09-03
Posts: 74,307

Re: [SOLVED] iwctl doesn't start " waiting for IWD"

Look at the first line of your journal again.

Offline

#20 2022-12-14 21:38:40

Pooya
Member
Registered: 2022-10-14
Posts: 12

Re: [SOLVED] iwctl doesn't start " waiting for IWD"

seth wrote:

Look at the first line of your journal again.

sorry but i don't understand anything

Offline

#21 2022-12-14 22:00:43

seth
Member
From: Don't DM me only for attention
Registered: 2012-09-03
Posts: 74,307

Re: [SOLVED] iwctl doesn't start " waiting for IWD"

You're booting a dated kernel because you forgot to mount the /boot partition before updating it.

Offline

#22 2022-12-15 10:31:44

Pooya
Member
Registered: 2022-10-14
Posts: 12

Re: [SOLVED] iwctl doesn't start " waiting for IWD"

seth wrote:

You're booting a dated kernel because you forgot to mount the /boot partition before updating it.

So after a lot of head scratching i found out the problem and solved it. Thanks a lot.
I was in fact mounting boot partition when updating with live usb, i wasn't mounting it when booting normally because i had commented that part in fstab. I solved this issue and everything was normal. Thanks again.

Offline

#23 2022-12-15 10:32:50

V1del
Forum Moderator
Registered: 2012-10-16
Posts: 25,104

Re: [SOLVED] iwctl doesn't start " waiting for IWD"

Please mark as [SOLVED] by editing the title in your first post.

Offline

Board footer

Powered by FluxBB