wpa_supplicant executes hundreds of failed atempts in a second

Bug #1824118 reported by Victor de Souza Magalhaes
26
This bug affects 4 people
Affects Status Importance Assigned to Milestone
wpa (Ubuntu)
Confirmed
Undecided
Unassigned

Bug Description

I use my computer to create a wifi hotspot to my local wired network.
Whenever I do so I get short hangs that last for about a second every few minutes.
Looking into the syslog in /var/log/syslog I get the output at the end of this message.
I have tried my best to look for an answer to this bug, but the reported bugs on wpa_supplicant are
all for other ret codes.

Best,

Victor

Apr 10 10:54:40 Amaterasu wpa_supplicant[1048]: wlp3s0: CTRL-EVENT-SCAN-FAILED ret=-95 retry=1
Apr 10 10:55:13 Amaterasu wpa_supplicant[1048]: message repeated 33 times: [ wlp3s0: CTRL-EVENT-SCAN-FAILED ret=-95 retry=1]
Apr 10 10:55:14 Amaterasu dbus-daemon[1748]: [session uid=1000 pid=1748] Activating via systemd: service name='org.gnome.evince.Daemon' unit='evince.service' requested by ':1.413' (uid=1000 pid=6414 comm="emacs lib/legacy/uv_check.f90 " label="unconfined")
Apr 10 10:55:14 Amaterasu systemd[1695]: Starting Evince document viewer...
Apr 10 10:55:14 Amaterasu dbus-daemon[1748]: [session uid=1000 pid=1748] Successfully activated service 'org.gnome.evince.Daemon'
Apr 10 10:55:14 Amaterasu systemd[1695]: Started Evince document viewer.
Apr 10 10:55:14 Amaterasu dbus-daemon[1748]: [session uid=1000 pid=1748] Activating service name='org.x.reader.Daemon' requested by ':1.413' (uid=1000 pid=6414 comm="emacs lib/legacy/uv_check.f90 " label="unconfined")
Apr 10 10:55:14 Amaterasu dbus-daemon[1748]: [session uid=1000 pid=1748] Successfully activated service 'org.x.reader.Daemon'
Apr 10 10:55:14 Amaterasu wpa_supplicant[1048]: wlp3s0: CTRL-EVENT-SCAN-FAILED ret=-95 retry=1
Apr 10 10:55:37 Amaterasu wpa_supplicant[1048]: message repeated 23 times: [ wlp3s0: CTRL-EVENT-SCAN-FAILED ret=-95 retry=1]
Apr 10 10:55:38 Amaterasu dbus-daemon[1748]: apparmor="DENIED" operation="dbus_method_call" bus="session" path="/org/freedesktop/Notifications" interface="org.freedesktop.Notifications" member="Notify" mask="send" name="org.freedesktop.Notifications" pid=2263 label="snap.spotify.spotify"
Apr 10 10:55:38 Amaterasu wpa_supplicant[1048]: wlp3s0: CTRL-EVENT-SCAN-FAILED ret=-95 retry=1
Apr 10 10:57:39 Amaterasu wpa_supplicant[1048]: message repeated 120 times: [ wlp3s0: CTRL-EVENT-SCAN-FAILED ret=-95 retry=1]
Apr 10 10:57:40 Amaterasu dbus-daemon[1748]: apparmor="DENIED" operation="dbus_method_call" bus="session" path="/org/freedesktop/Notifications" interface="org.freedesktop.Notifications" member="Notify" mask="send" name="org.freedesktop.Notifications" pid=2263 label="snap.spotify.spotify"
Apr 10 10:57:40 Amaterasu wpa_supplicant[1048]: wlp3s0: CTRL-EVENT-SCAN-FAILED ret=-95 retry=1
Apr 10 10:58:15 Amaterasu wpa_supplicant[1048]: message repeated 35 times: [ wlp3s0: CTRL-EVENT-SCAN-FAILED ret=-95 retry=1]
Apr 10 10:58:15 Amaterasu dbus-daemon[1748]: [session uid=1000 pid=1748] Activating via systemd: service name='org.gnome.evince.Daemon' unit='evince.service' requested by ':1.421' (uid=1000 pid=6772 comm="emacs /var/log/syslog " label="unconfined")
Apr 10 10:58:15 Amaterasu systemd[1695]: Starting Evince document viewer...
Apr 10 10:58:15 Amaterasu dbus-daemon[1748]: [session uid=1000 pid=1748] Successfully activated service 'org.gnome.evince.Daemon'
Apr 10 10:58:15 Amaterasu systemd[1695]: Started Evince document viewer.
Apr 10 10:58:15 Amaterasu dbus-daemon[1748]: [session uid=1000 pid=1748] Activating service name='org.x.reader.Daemon' requested by ':1.421' (uid=1000 pid=6772 comm="emacs /var/log/syslog " label="unconfined")
Apr 10 10:58:15 Amaterasu dbus-daemon[1748]: [session uid=1000 pid=1748] Successfully activated service 'org.x.reader.Daemon'

Paul White (paulw2u)
affects: ubuntu → wpa (Ubuntu)
Revision history for this message
Launchpad Janitor (janitor) wrote :

Status changed to 'Confirmed' because the bug affects multiple users.

Changed in wpa (Ubuntu):
status: New → Confirmed
Revision history for this message
Alexander Rehbein (rehbein) wrote :

Same here, trying to share my USB tethered internet connection.

```
Mär 23 14:35:18 are-TP-X240 NetworkManager[5202]: <info> [1584970518.6359] manager: startup complete
Mär 23 14:35:18 are-TP-X240 systemd[1]: Started Network Manager Wait Online.
-- Subject: Unit NetworkManager-wait-online.service has finished start-up
-- Defined-By: systemd
-- Support: http://www.ubuntu.com/support
--
-- Unit NetworkManager-wait-online.service has finished starting up.
--
-- The start-up result is RESULT.
Mär 23 14:35:18 are-TP-X240 wpa_supplicant[927]: wlp3s0: CTRL-EVENT-SCAN-FAILED ret=-95 retry=1
Mär 23 14:35:19 are-TP-X240 wpa_supplicant[927]: wlp3s0: CTRL-EVENT-SCAN-FAILED ret=-95 retry=1
Mär 23 14:35:20 are-TP-X240 wpa_supplicant[927]: wlp3s0: CTRL-EVENT-SCAN-FAILED ret=-95 retry=1
Mär 23 14:35:21 are-TP-X240 wpa_supplicant[927]: wlp3s0: CTRL-EVENT-SCAN-FAILED ret=-95 retry=1
Mär 23 14:35:22 are-TP-X240 wpa_supplicant[927]: wlp3s0: AP-STA-CONNECTED 00:16:ea:e5:68:70
Mär 23 14:35:22 are-TP-X240 wpa_supplicant[927]: wlp3s0: CTRL-EVENT-SCAN-FAILED ret=-95 retry=1
Mär 23 14:35:23 are-TP-X240 dnsmasq-dhcp[5295]: DHCPREQUEST(wlp3s0) 10.42.0.239 00:16:ea:e5:68:70
Mär 23 14:35:23 are-TP-X240 dnsmasq-dhcp[5295]: DHCPACK(wlp3s0) 10.42.0.239 00:16:ea:e5:68:70 are-fokus-x200
Mär 23 14:35:23 are-TP-X240 wpa_supplicant[927]: wlp3s0: CTRL-EVENT-SCAN-FAILED ret=-95 retry=1
Mär 23 14:35:24 are-TP-X240 wpa_supplicant[927]: wlp3s0: CTRL-EVENT-SCAN-FAILED ret=-95 retry=1
Mär 23 14:35:25 are-TP-X240 wpa_supplicant[927]: wlp3s0: CTRL-EVENT-SCAN-FAILED ret=-95 retry=1

```

and it goes on forever.

The hotspot seems to be working fine, otherwise.

```
$ cat /etc/lsb-release
DISTRIB_ID=Ubuntu
DISTRIB_RELEASE=18.04
DISTRIB_CODENAME=bionic
DISTRIB_DESCRIPTION="Ubuntu 18.04.4 LTS"
```

```
$ wpa_supplicant -v
wpa_supplicant v2.6
Copyright (c) 2003-2016, Jouni Malinen <email address hidden> and contributors
```

Revision history for this message
Michael Plotkin (plotkin) wrote :

Same problem affects me on Ubuntu 20.04 system. I have wifi adapter configured as hotspot. The hotspot also seems to be working normally but the log files are full of messages:
wpa_supplicant[1359]: wlp9s0: CTRL-EVENT-SCAN-FAILED ret=-95 retry=1

Best regards,
Michael.

Revision history for this message
David Post (ohyonghao) wrote :

Same problem here. If I use my WiFi as a normal interface, no issues at all. I have wired ethernet and use this as a hotspot for some devices and once every second I see:

Oct 20 20:32:14 KRainbow wpa_supplicant[898]: wlp5s0: CTRL-EVENT-SCAN-FAILED ret=-95 retry=1
Oct 20 20:32:15 KRainbow wpa_supplicant[898]: wlp5s0: CTRL-EVENT-SCAN-FAILED ret=-95 retry=1
Oct 20 20:32:16 KRainbow wpa_supplicant[898]: wlp5s0: CTRL-EVENT-SCAN-FAILED ret=-95 retry=1
Oct 20 20:32:17 KRainbow wpa_supplicant[898]: wlp5s0: CTRL-EVENT-SCAN-FAILED ret=-95 retry=1
Oct 20 20:32:18 KRainbow wpa_supplicant[898]: wlp5s0: CTRL-EVENT-SCAN-FAILED ret=-95 retry=1
Oct 20 20:32:19 KRainbow wpa_supplicant[898]: wlp5s0: CTRL-EVENT-SCAN-FAILED ret=-95 retry=1
Oct 20 20:32:20 KRainbow wpa_supplicant[898]: wlp5s0: CTRL-EVENT-SCAN-FAILED ret=-95 retry=1
Oct 20 20:32:21 KRainbow wpa_supplicant[898]: wlp5s0: CTRL-EVENT-SCAN-FAILED ret=-95 retry=1

If I setup a wpa_supplicant configuration and run it manually this does not happen. When running as AP I would like to disable periodic scanning.

cat /etc/lsb-release
DISTRIB_ID=Ubuntu
DISTRIB_RELEASE=20.10
DISTRIB_CODENAME=groovy
DISTRIB_DESCRIPTION="Ubuntu 20.10"

Happened on 20.04 as well.

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.