You are not logged in.

#1 2024-05-15 18:54:47

yanik11
Member
Registered: 2024-05-15
Posts: 5

Can't connect to wifi with NetworkManager

Hello.
When trying to connect to my home network with

 nmcli dev wifi connect SSID 

or

 nmcli con up UUID 

it shows an error.

Error: Connection activation failed: The Wi-Fi network could not be found
Hint: use 'journalctl -xe NM_CONNECTION=2d73c81a-21eb-41fb-96c4-1132f971c9d8 + NM_DEVICE=wlp2s0f0u1i2' to get more details.
 
journalctl -xe NM_CONNECTION=2d73c81a-21eb-41fb-96c4-1132f971c9d8 + NM_DEVICE=wlp2s0f0u1i2
May 16 00:51:01 ArchLinuxKDE NetworkManager[19463]: <info>  [1715809861.0024] device (wlp2s0f0u1i2): state change: prepare -> config (reason 'none', sys-iface-state: 'managed')
May 16 00:51:01 ArchLinuxKDE NetworkManager[19463]: <info>  [1715809861.0026] device (wlp2s0f0u1i2): Activation: (wifi) access point 'RT-5GPON-A115' has security, but secrets are required.
May 16 00:51:01 ArchLinuxKDE NetworkManager[19463]: <info>  [1715809861.0026] device (wlp2s0f0u1i2): state change: config -> need-auth (reason 'none', sys-iface-state: 'managed')
May 16 00:51:01 ArchLinuxKDE NetworkManager[19463]: <info>  [1715809861.0027] sup-iface[2dc96520c04329aa,0,wlp2s0f0u1i2]: wps: type pbc start...
May 16 00:51:01 ArchLinuxKDE NetworkManager[19463]: <info>  [1715809861.0032] device (wlp2s0f0u1i2): state change: need-auth -> prepare (reason 'none', sys-iface-state: 'managed')
May 16 00:51:01 ArchLinuxKDE NetworkManager[19463]: <info>  [1715809861.0033] device (wlp2s0f0u1i2): state change: prepare -> config (reason 'none', sys-iface-state: 'managed')
May 16 00:51:01 ArchLinuxKDE NetworkManager[19463]: <info>  [1715809861.0034] device (wlp2s0f0u1i2): Activation: (wifi) connection 'RT-5GPON-A115' has security, and secrets exist.  No new >
May 16 00:51:26 ArchLinuxKDE NetworkManager[19463]: <warn>  [1715809886.1278] device (wlp2s0f0u1i2): Activation: (wifi) association took too long, failing activation
May 16 00:51:26 ArchLinuxKDE NetworkManager[19463]: <info>  [1715809886.1278] device (wlp2s0f0u1i2): state change: config -> failed (reason 'ssid-not-found', sys-iface-state: 'managed')
May 16 00:51:26 ArchLinuxKDE NetworkManager[19463]: <warn>  [1715809886.1282] device (wlp2s0f0u1i2): Activation: failed for connection 'RT-5GPON-A115'
May 16 00:51:26 ArchLinuxKDE NetworkManager[19463]: <info>  [1715809886.1284] device (wlp2s0f0u1i2): state change: failed -> disconnected (reason 'none', sys-iface-state: 'managed')
May 16 00:51:31 ArchLinuxKDE NetworkManager[19463]: <info>  [1715809891.1708] device (wlp2s0f0u1i2): supplicant interface state: disconnected -> scanning
May 16 00:51:31 ArchLinuxKDE NetworkManager[19463]: <info>  [1715809891.1708] device (wlp2s0f0u1i2): supplicant interface state: scanning -> disconnected
May 16 00:51:31 ArchLinuxKDE NetworkManager[19463]: <info>  [1715809891.6718] device (wlp2s0f0u1i2): Activation: starting connection 'RT-5GPON-A115' (2d73c81a-21eb-41fb-96c4-1132f971c9d8)
May 16 00:51:31 ArchLinuxKDE NetworkManager[19463]: <info>  [1715809891.6719] device (wlp2s0f0u1i2): state change: disconnected -> prepare (reason 'none', sys-iface-state: 'managed')
May 16 00:51:31 ArchLinuxKDE NetworkManager[19463]: <info>  [1715809891.6721] device (wlp2s0f0u1i2): state change: prepare -> config (reason 'none', sys-iface-state: 'managed')
May 16 00:51:31 ArchLinuxKDE NetworkManager[19463]: <info>  [1715809891.6724] device (wlp2s0f0u1i2): Activation: (wifi) access point 'RT-5GPON-A115' has security, but secrets are required.
May 16 00:51:31 ArchLinuxKDE NetworkManager[19463]: <info>  [1715809891.6725] device (wlp2s0f0u1i2): state change: config -> need-auth (reason 'none', sys-iface-state: 'managed')
May 16 00:51:31 ArchLinuxKDE NetworkManager[19463]: <info>  [1715809891.6727] sup-iface[2dc96520c04329aa,0,wlp2s0f0u1i2]: wps: type pbc start...
May 16 00:51:31 ArchLinuxKDE NetworkManager[19463]: <info>  [1715809891.6739] device (wlp2s0f0u1i2): state change: need-auth -> prepare (reason 'none', sys-iface-state: 'managed')
May 16 00:51:31 ArchLinuxKDE NetworkManager[19463]: <info>  [1715809891.6742] device (wlp2s0f0u1i2): state change: prepare -> config (reason 'none', sys-iface-state: 'managed')
May 16 00:51:31 ArchLinuxKDE NetworkManager[19463]: <info>  [1715809891.6744] device (wlp2s0f0u1i2): Activation: (wifi) connection 'RT-5GPON-A115' has security, and secrets exist.  No new >
May 16 00:51:57 ArchLinuxKDE NetworkManager[19463]: <warn>  [1715809917.1276] device (wlp2s0f0u1i2): Activation: (wifi) association took too long, failing activation
May 16 00:51:57 ArchLinuxKDE NetworkManager[19463]: <info>  [1715809917.1276] device (wlp2s0f0u1i2): state change: config -> failed (reason 'ssid-not-found', sys-iface-state: 'managed')
May 16 00:51:57 ArchLinuxKDE NetworkManager[19463]: <warn>  [1715809917.1280] device (wlp2s0f0u1i2): Activation: failed for connection 'RT-5GPON-A115'
May 16 00:51:57 ArchLinuxKDE NetworkManager[19463]: <info>  [1715809917.1282] device (wlp2s0f0u1i2): state change: failed -> disconnected (reason 'none', sys-iface-state: 'managed')
May 16 00:52:06 ArchLinuxKDE NetworkManager[19463]: <info>  [1715809926.8478] device (wlp2s0f0u1i2): supplicant interface state: disconnected -> scanning
May 16 00:52:06 ArchLinuxKDE NetworkManager[19463]: <info>  [1715809926.8479] device (wlp2s0f0u1i2): supplicant interface state: scanning -> disconnected
May 16 00:52:06 ArchLinuxKDE NetworkManager[19463]: <info>  [1715809926.8623] device (wlp2s0f0u1i2): Activation: starting connection 'RT-5GPON-A115' (2d73c81a-21eb-41fb-96c4-1132f971c9d8)
May 16 00:52:06 ArchLinuxKDE NetworkManager[19463]: <info>  [1715809926.8624] device (wlp2s0f0u1i2): state change: disconnected -> prepare (reason 'none', sys-iface-state: 'managed')
May 16 00:52:06 ArchLinuxKDE NetworkManager[19463]: <info>  [1715809926.8626] device (wlp2s0f0u1i2): state change: prepare -> config (reason 'none', sys-iface-state: 'managed')
May 16 00:52:06 ArchLinuxKDE NetworkManager[19463]: <info>  [1715809926.8629] device (wlp2s0f0u1i2): Activation: (wifi) access point 'RT-5GPON-A115' has security, but secrets are required.
May 16 00:52:06 ArchLinuxKDE NetworkManager[19463]: <info>  [1715809926.8629] device (wlp2s0f0u1i2): state change: config -> need-auth (reason 'none', sys-iface-state: 'managed')
May 16 00:52:06 ArchLinuxKDE NetworkManager[19463]: <info>  [1715809926.8631] sup-iface[2dc96520c04329aa,0,wlp2s0f0u1i2]: wps: type pbc start...
May 16 00:52:06 ArchLinuxKDE NetworkManager[19463]: <info>  [1715809926.8638] device (wlp2s0f0u1i2): state change: need-auth -> prepare (reason 'none', sys-iface-state: 'managed')
May 16 00:52:06 ArchLinuxKDE NetworkManager[19463]: <info>  [1715809926.8640] device (wlp2s0f0u1i2): state change: prepare -> config (reason 'none', sys-iface-state: 'managed')
May 16 00:52:06 ArchLinuxKDE NetworkManager[19463]: <info>  [1715809926.8641] device (wlp2s0f0u1i2): Activation: (wifi) connection 'RT-5GPON-A115' has security, and secrets exist.  No new >
May 16 00:52:32 ArchLinuxKDE NetworkManager[19463]: <warn>  [1715809952.1283] device (wlp2s0f0u1i2): Activation: (wifi) association took too long, failing activation
May 16 00:52:32 ArchLinuxKDE NetworkManager[19463]: <info>  [1715809952.1283] device (wlp2s0f0u1i2): state change: config -> failed (reason 'ssid-not-found', sys-iface-state: 'managed')
May 16 00:52:32 ArchLinuxKDE NetworkManager[19463]: <warn>  [1715809952.1287] device (wlp2s0f0u1i2): Activation: failed for connection 'RT-5GPON-A115'
May 16 00:52:32 ArchLinuxKDE NetworkManager[19463]: <info>  [1715809952.1289] device (wlp2s0f0u1i2): state change: failed -> disconnected (reason 'none', sys-iface-state: 'managed')
May 16 00:52:42 ArchLinuxKDE NetworkManager[19463]: <info>  [1715809962.0377] device (wlp2s0f0u1i2): supplicant interface state: disconnected -> scanning
May 16 00:52:42 ArchLinuxKDE NetworkManager[19463]: <info>  [1715809962.0378] device (wlp2s0f0u1i2): supplicant interface state: scanning -> disconnected

My question is how can I resolve this error?

Offline

#2 2024-05-15 19:59:34

seth
Member
From: Won't reply 2 private help req
Registered: 2012-09-03
Posts: 75,989

Re: Can't connect to wifi with NetworkManager

May 16 00:51:26 ArchLinuxKDE NetworkManager[19463]: <warn>  [1715809886.1278] device (wlp2s0f0u1i2): Activation: (wifi) association took too long, failing activation
May 16 00:51:26 ArchLinuxKDE NetworkManager[19463]: <info>  [1715809886.1278] device (wlp2s0f0u1i2): state change: config -> failed (reason 'ssid-not-found', sys-iface-state: 'managed')
May 16 00:51:26 ArchLinuxKDE NetworkManager[19463]: <warn>  [1715809886.1282] device (wlp2s0f0u1i2): Activation: failed for connection 'RT-5GPON-A115'
May 16 00:51:26 ArchLinuxKDE NetworkManager[19463]: <info>  [1715809886.1284] device (wlp2s0f0u1i2): state change: failed -> disconnected (reason 'none', sys-iface-state: 'managed')

It looks like the AP isn't in reach but  that could mean anything.
Please post your complete system journal for the boot:

sudo journalctl -b | curl -F 'file=@-' 0x0.st

(wpa_supplicant will hopefully know more and maybe there're HW related issues. And please never copy and paste out of the pager as it truncates lines)

Offline

#3 2024-05-16 08:47:28

yanik11
Member
Registered: 2024-05-15
Posts: 5

Re: Can't connect to wifi with NetworkManager

seth wrote:
May 16 00:51:26 ArchLinuxKDE NetworkManager[19463]: <warn>  [1715809886.1278] device (wlp2s0f0u1i2): Activation: (wifi) association took too long, failing activation
May 16 00:51:26 ArchLinuxKDE NetworkManager[19463]: <info>  [1715809886.1278] device (wlp2s0f0u1i2): state change: config -> failed (reason 'ssid-not-found', sys-iface-state: 'managed')
May 16 00:51:26 ArchLinuxKDE NetworkManager[19463]: <warn>  [1715809886.1282] device (wlp2s0f0u1i2): Activation: failed for connection 'RT-5GPON-A115'
May 16 00:51:26 ArchLinuxKDE NetworkManager[19463]: <info>  [1715809886.1284] device (wlp2s0f0u1i2): state change: failed -> disconnected (reason 'none', sys-iface-state: 'managed')

It looks like the AP isn't in reach but  that could mean anything.
Please post your complete system journal for the boot:

sudo journalctl -b | curl -F 'file=@-' 0x0.st

(wpa_supplicant will hopefully know more and maybe there're HW related issues. And please never copy and paste out of the pager as it truncates lines)

journalctl for the boot

Offline

#4 2024-05-16 13:48:06

seth
Member
From: Won't reply 2 private help req
Registered: 2012-09-03
Posts: 75,989

Re: Can't connect to wifi with NetworkManager

You've NM and dhcpcd enabled concurrently and they trip over each other => stop and disable dhcpcd.
That being said:

May 16 14:35:25 ArchLinuxKDE wpa_supplicant[682]: Successfully initialized wpa_supplicant
May 16 14:35:25 ArchLinuxKDE wpa_supplicant[682]: dbus: fill_dict_with_properties dbus_interface=fi.w1.wpa_supplicant1.Interface.P2PDevice dbus_property=P2PDeviceConfig getter failed
May 16 14:35:38 ArchLinuxKDE wpa_supplicant[682]: wlp2s0f0u1i2: Reject scan trigger since one is already pending
May 16 14:35:46 ArchLinuxKDE wpa_supplicant[682]: wlp2s0f0u1i2: CTRL-EVENT-REGDOM-CHANGE init=BEACON_HINT type=UNKNOWN
May 16 14:35:49 ArchLinuxKDE wpa_supplicant[682]: wlp2s0f0u1i2: WPS-PBC-ACTIVE
May 16 14:35:49 ArchLinuxKDE NetworkManager[589]: <info>  [1715859349.8909] Config: added 'key_mgmt' value 'WPA-PSK WPA-PSK-SHA256 FT-PSK SAE FT-SAE'
May 16 14:36:03 ArchLinuxKDE wpa_supplicant[682]: wlp2s0f0u1i2: WPS-CANCEL
May 16 14:36:04 ArchLinuxKDE wpa_supplicant[682]: wlp2s0f0u1i2: SME: Trying to authenticate with 1c:ca:41:13:a1:1a (SSID='RT-5GPON-A115' freq=5180 MHz)
May 16 14:36:19 ArchLinuxKDE wpa_supplicant[682]: wlp2s0f0u1i2: CTRL-EVENT-DISCONNECTED bssid=1c:ca:41:13:a1:1a reason=3 locally_generated=1
May 16 14:36:19 ArchLinuxKDE wpa_supplicant[682]: wlp2s0f0u1i2: CTRL-EVENT-DSCP-POLICY clear_all
May 16 14:36:20 ArchLinuxKDE NetworkManager[589]: <info>  [1715859380.2951] Config: added 'key_mgmt' value 'WPA-PSK WPA-PSK-SHA256 FT-PSK SAE FT-SAE'
May 16 14:36:33 ArchLinuxKDE wpa_supplicant[682]: wlp2s0f0u1i2: WPS-CANCEL
May 16 14:36:33 ArchLinuxKDE wpa_supplicant[682]: wlp2s0f0u1i2: Reject scan trigger since one is already pending
May 16 14:36:33 ArchLinuxKDE wpa_supplicant[682]: wlp2s0f0u1i2: Failed to initiate AP scan

There might be more to this - also disable networkmanager, reboot and try to connect to the wifi w/ wifi-menu from the netctl package.

Offline

#5 2024-05-16 18:48:20

yanik11
Member
Registered: 2024-05-15
Posts: 5

Re: Can't connect to wifi with NetworkManager

seth wrote:

You've NM and dhcpcd enabled concurrently and they trip over each other => stop and disable dhcpcd.
That being said:

May 16 14:35:25 ArchLinuxKDE wpa_supplicant[682]: Successfully initialized wpa_supplicant
May 16 14:35:25 ArchLinuxKDE wpa_supplicant[682]: dbus: fill_dict_with_properties dbus_interface=fi.w1.wpa_supplicant1.Interface.P2PDevice dbus_property=P2PDeviceConfig getter failed
May 16 14:35:38 ArchLinuxKDE wpa_supplicant[682]: wlp2s0f0u1i2: Reject scan trigger since one is already pending
May 16 14:35:46 ArchLinuxKDE wpa_supplicant[682]: wlp2s0f0u1i2: CTRL-EVENT-REGDOM-CHANGE init=BEACON_HINT type=UNKNOWN
May 16 14:35:49 ArchLinuxKDE wpa_supplicant[682]: wlp2s0f0u1i2: WPS-PBC-ACTIVE
May 16 14:35:49 ArchLinuxKDE NetworkManager[589]: <info>  [1715859349.8909] Config: added 'key_mgmt' value 'WPA-PSK WPA-PSK-SHA256 FT-PSK SAE FT-SAE'
May 16 14:36:03 ArchLinuxKDE wpa_supplicant[682]: wlp2s0f0u1i2: WPS-CANCEL
May 16 14:36:04 ArchLinuxKDE wpa_supplicant[682]: wlp2s0f0u1i2: SME: Trying to authenticate with 1c:ca:41:13:a1:1a (SSID='RT-5GPON-A115' freq=5180 MHz)
May 16 14:36:19 ArchLinuxKDE wpa_supplicant[682]: wlp2s0f0u1i2: CTRL-EVENT-DISCONNECTED bssid=1c:ca:41:13:a1:1a reason=3 locally_generated=1
May 16 14:36:19 ArchLinuxKDE wpa_supplicant[682]: wlp2s0f0u1i2: CTRL-EVENT-DSCP-POLICY clear_all
May 16 14:36:20 ArchLinuxKDE NetworkManager[589]: <info>  [1715859380.2951] Config: added 'key_mgmt' value 'WPA-PSK WPA-PSK-SHA256 FT-PSK SAE FT-SAE'
May 16 14:36:33 ArchLinuxKDE wpa_supplicant[682]: wlp2s0f0u1i2: WPS-CANCEL
May 16 14:36:33 ArchLinuxKDE wpa_supplicant[682]: wlp2s0f0u1i2: Reject scan trigger since one is already pending
May 16 14:36:33 ArchLinuxKDE wpa_supplicant[682]: wlp2s0f0u1i2: Failed to initiate AP scan

There might be more to this - also disable networkmanager, reboot and try to connect to the wifi w/ wifi-menu from the netctl package.

I stopped dhcpcd and networkmanager. After the reboot "sudo wifi-menu" fails to scan for networks.

Offline

#6 2024-05-16 18:57:50

seth
Member
From: Won't reply 2 private help req
Registered: 2012-09-03
Posts: 75,989

Re: Can't connect to wifi with NetworkManager

Did you also disable them? (otherwise they start w/ the reboot)
Do you have a journal covering the wifi-menu attempt?

Since there're quite some partitions, do you have a parallel windows installation?
In that case see the 3rd link below. Mandatory.
Disable it (it's NOT the BIOS setting!) and reboot windows and linux twice for voodo reasons.

Offline

#7 2024-05-17 15:50:12

yanik11
Member
Registered: 2024-05-15
Posts: 5

Re: Can't connect to wifi with NetworkManager

seth wrote:

Did you also disable them? (otherwise they start w/ the reboot)
Do you have a journal covering the wifi-menu attempt?

Since there're quite some partitions, do you have a parallel windows installation?
In that case see the 3rd link below. Mandatory.
Disable it (it's NOT the BIOS setting!) and reboot windows and linux twice for voodo reasons.

Yeah, i stopped then disabled them.
journalctl

Yes, I have parallel windows installation. I disabled fast boot as per your link, rebooted linux and windows twice, but it didn't help.

Offline

#8 2024-05-17 19:18:51

seth
Member
From: Won't reply 2 private help req
Registered: 2012-09-03
Posts: 75,989

Re: Can't connect to wifi with NetworkManager

May 17 21:40:41 ArchLinuxKDE kernel: rtw_8822bu 1-1:1.2 wlp2s0f0u1i2: renamed from wlan0
…
May 17 21:41:12 ArchLinuxKDE sudo[1941]:    yanik : TTY=pts/1 ; PWD=/home/yanik ; USER=root ; COMMAND=/usr/bin/wifi-menu
May 17 21:41:12 ArchLinuxKDE sudo[1941]: pam_unix(sudo:session): session opened for user root(uid=0) by yanik(uid=1000)
May 17 21:41:21 ArchLinuxKDE systemd[1]: systemd-localed.service: Deactivated successfully.
May 17 21:41:24 ArchLinuxKDE systemd[1]: systemd-timedated.service: Deactivated successfully.
May 17 21:41:40 ArchLinuxKDE sudo[1941]: pam_unix(sudo:session): session closed for user root

So wifi-menu ran for ~30s but there was not attempt being made to connect to a network? Or to scan for some?

"sudo wifi-menu" fails to scan for networks.

What is the actual error message here?

Next step would be to stop/disable NM and scan manually, https://wiki.archlinux.org/title/Networ … ireless#iw

Offline

#9 2024-05-18 09:43:31

yanik11
Member
Registered: 2024-05-15
Posts: 5

Re: Can't connect to wifi with NetworkManager

seth wrote:
May 17 21:40:41 ArchLinuxKDE kernel: rtw_8822bu 1-1:1.2 wlp2s0f0u1i2: renamed from wlan0
…
May 17 21:41:12 ArchLinuxKDE sudo[1941]:    yanik : TTY=pts/1 ; PWD=/home/yanik ; USER=root ; COMMAND=/usr/bin/wifi-menu
May 17 21:41:12 ArchLinuxKDE sudo[1941]: pam_unix(sudo:session): session opened for user root(uid=0) by yanik(uid=1000)
May 17 21:41:21 ArchLinuxKDE systemd[1]: systemd-localed.service: Deactivated successfully.
May 17 21:41:24 ArchLinuxKDE systemd[1]: systemd-timedated.service: Deactivated successfully.
May 17 21:41:40 ArchLinuxKDE sudo[1941]: pam_unix(sudo:session): session closed for user root

So wifi-menu ran for ~30s but there was not attempt being made to connect to a network? Or to scan for some?

"sudo wifi-menu" fails to scan for networks.

What is the actual error message here?

Next step would be to stop/disable NM and scan manually, https://wiki.archlinux.org/title/Networ … ireless#iw

No attempts to connect, only to scan for some. Error message was like
"Scanning for networks... failed
No networks found"

Yeah, it finally worked when connecting using iw, thank you! I guess I won't be able to connect using Network Manager?

Offline

#10 2024-05-18 13:51:24

seth
Member
From: Won't reply 2 private help req
Registered: 2012-09-03
Posts: 75,989

Re: Can't connect to wifi with NetworkManager

You should only be able to scan, but not connect to a protected network using iw.

Can you scan/connect w/ iwd?
https://wiki.archlinux.org/title/Iwd#iwctl
https://wiki.archlinux.org/title/Networ … Fi_backend

Offline

Board footer

Powered by FluxBB