[wifi-ap] When using virtual mode, some times re-starting the service does not work

Bug #1792923 reported by Alfonso Sanchez-Beato
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
snappy-hwe-snaps
Fix Released
Critical
Alfonso Sanchez-Beato

Bug Description

When using virtual mode, in some cases re-starting the wifi-ap service fails. What the log shows is:

Sep 17 08:13:23 C031031821-00034 wifi-ap.management-service[1706]: 2018/09/17 08:13:23 NetworkManager stopped -> started
Sep 17 08:13:24 C031031821-00034 wifi-ap.management-service[1706]: ap0: interface state ENABLED->DISABLED
Sep 17 08:13:24 C031031821-00034 wifi-ap.management-service[1706]: ap0: AP-DISABLED
Sep 17 08:13:24 C031031821-00034 wifi-ap.management-service[1706]: nl80211: deinit ifname=ap0 disabled_11b_rates=0
Sep 17 08:13:24 C031031821-00034 wifi-ap.management-service[1706]: /snap/wifi-ap/210/bin/ap.sh: line 53: /var/snap/wifi-ap/210/dnsmasq.pid: No such file or directory
Sep 17 08:13:34 C031031821-00034 wifi-ap.management-service[1706]: wlan0 Link encap:Ethernet HWaddr 94:54:93:2f:5b:08
Sep 17 08:13:34 C031031821-00034 wifi-ap.management-service[1706]: UP BROADCAST MULTICAST MTU:1500 Metric:1
Sep 17 08:13:34 C031031821-00034 wifi-ap.management-service[1706]: RX packets:0 errors:0 dropped:0 overruns:0 frame:0
Sep 17 08:13:34 C031031821-00034 wifi-ap.management-service[1706]: TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
Sep 17 08:13:34 C031031821-00034 wifi-ap.management-service[1706]: collisions:0 txqueuelen:3000
Sep 17 08:13:34 C031031821-00034 wifi-ap.management-service[1706]: RX bytes:0 (0.0 B) TX bytes:0 (0.0 B)
Sep 17 08:13:34 C031031821-00034 wifi-ap.management-service[1706]: WARNING: WiFi is currently not connected so we can't determine
Sep 17 08:13:34 C031031821-00034 wifi-ap.management-service[1706]: which channel we can use for the AP. This will most
Sep 17 08:13:34 C031031821-00034 wifi-ap.management-service[1706]: likely lead to failed connections when the STA gets
Sep 17 08:13:34 C031031821-00034 wifi-ap.management-service[1706]: connected.
Sep 17 08:13:34 C031031821-00034 wifi-ap.management-service[1706]: command failed: No space left on device (-28)
Sep 17 08:13:34 C031031821-00034 wifi-ap.management-service[1706]: ERROR: Failed to create virtual WiFi network interface
Sep 17 08:13:34 C031031821-00034 wifi-ap.management-service[1706]: /snap/wifi-ap/210/bin/ap.sh: line 49: kill: (2890) - No such process
Sep 17 08:13:34 C031031821-00034 wifi-ap.management-service[1706]: /snap/wifi-ap/210/bin/ap.sh: line 50: wait: pid 2890 is not a child of this shell
Sep 17 08:13:34 C031031821-00034 wifi-ap.management-service[1706]: /snap/wifi-ap/210/bin/ap.sh: line 53: /var/snap/wifi-ap/210/dnsmasq.pid: No such file or directory

This is due to the virtual interface not being removed when stopping the service.

Related branches

Changed in snappy-hwe-snaps:
importance: Undecided → Critical
assignee: nobody → Alfonso Sanchez-Beato (alfonsosanchezbeato)
status: New → In Progress
Changed in snappy-hwe-snaps:
status: In Progress → Fix Committed
Revision history for this message
Alfonso Sanchez-Beato (alfonsosanchezbeato) wrote :

Released in wifi-ap version 21.

Changed in snappy-hwe-snaps:
status: Fix Committed → Fix Released
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.