My machine as Wi-Fi Hotspot broken after upgrade to 20.04

Bug #1870359 reported by Krister Swenson
16
This bug affects 3 people
Affects Status Importance Assigned to Milestone
network-manager (Ubuntu)
Fix Released
High
Unassigned
Focal
Fix Released
Undecided
Unassigned

Bug Description

* Impact
The hotspot feature fails to forward the data to the clients

* Test case
- log into an Ubuntu or GNOME session
- connect the machine to an eth cable for internet
- go to gnome-control-center -> wifi
- enable the hotspot from the menu in the headerbar
- connect another device to the wifi created
-> the client should connect and access to internet work correctly

* Regression potential
the change is only updating the iptables binary location, there shouldn't be any code impact out of having the command working on systems without usrmerge when it was not before

---------

I have a machine with a wired network connection and a wifi card. I've been using the machine as a wireless router and server in my house. I've attached a screenshot of the Wi-Fi network settings. It looks as expected.

Upon updating to 20.04, none of my machines can use the connection. The linux machine will not connect. The windows machine will connect but will not have internet.

ProblemType: Bug
DistroRelease: Ubuntu 20.04
Package: network-manager 1.22.10-1ubuntu1
ProcVersionSignature: Ubuntu 5.4.0-21.25-generic 5.4.27
Uname: Linux 5.4.0-21-generic x86_64
NonfreeKernelModules: wl
ApportVersion: 2.20.11-0ubuntu22
Architecture: amd64
CurrentDesktop: ubuntu:GNOME
Date: Thu Apr 2 15:47:02 2020
IfupdownConfig:
 # interfaces(5) file used by ifup(8) and ifdown(8)
 auto lo
 iface lo inet loopback
InstallationDate: Installed on 2015-09-30 (1645 days ago)
InstallationMedia: Ubuntu 15.04 "Vivid Vervet" - Release amd64 (20150422)
IpRoute:
 default via 192.168.0.1 dev eth0 proto static metric 100
 169.254.0.0/16 dev eth0 scope link metric 1000
 192.168.0.0/24 dev eth0 proto kernel scope link src 192.168.0.100 metric 100
SourcePackage: network-manager
UpgradeStatus: Upgraded to focal on 2020-04-02 (0 days ago)
WifiSyslog:

mtime.conffile..etc.NetworkManager.NetworkManager.conf: 2018-01-13T14:45:42.987041
nmcli-nm:
 RUNNING VERSION STATE STARTUP CONNECTIVITY NETWORKING WIFI-HW WIFI WWAN-HW WWAN
 running 1.22.10 connected started full enabled enabled enabled enabled enabled

Revision history for this message
Krister Swenson (thekswenson) wrote :
Revision history for this message
Launchpad Janitor (janitor) wrote :

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

Changed in network-manager (Ubuntu):
status: New → Confirmed
Revision history for this message
Marcos R. Tosetti (agacinco) wrote :

I have the same issue. Everything was working fine on 18.04, it only stopped working after upgrading to 20.04. My phone (Android) can see the wifi network (hotspot), it connects to it, it says it is connected but there is no internet. I tried many different configurations, different software, but nothing worked.

Revision history for this message
Krister Swenson (thekswenson) wrote :

Hello, could someone please help me debug this problem?

This ubuntu 20.04 box is the only viable wifi router in my house!
I'm considering downgrading my system, but would prefer to find the bug.

Revision history for this message
Biep (biep) wrote :

For me the "Turn on WiFi hotspot" is greyed out. I tried http://ubuntuhandbook.org/index.php/2019/10/fix-wi-fi-hotspot-not-working-ubuntu-18-04/ - and that does give me something hotspot-y, but when trying to connect I get *Association request to the driver failed*, and then *Cntrl-event-netwerk-not-found*. Upon reconnecting, I get *Associated with ...*, followed by some quick messages that disappear before I can read them, and then again the "Network not found". And it would be a kluge anyway, because the option remains greyed out - one has to connect to a hidden network to get the hotspot (not really) going.

Revision history for this message
Biep (biep) wrote :

The workaround in http://ubuntuhandbook.org/index.php/2019/10/fix-wi-fi-hotspot-not-working-ubuntu-18-04/ works, but as a kluge. The option "Turn on WiFi hotspot" remains greyed out, but by connecting to a hidden network one can get the hotspot going.

Revision history for this message
Hooman (hooman67) wrote :

I have the same problem. I see packets being received by Ubuntu through the WiFi iface, but they don't seem to be delivered.

Revision history for this message
Sebastien Bacher (seb128) wrote :

Could you try if it works better in nm-connection-editor? Could you add your 'journalctl -b 0' log after triggering the issue? It would also be useful to have details on how it's not working. Is the menu option disabled? do you fail to connect? do you connect by have no data working?

Revision history for this message
Krister Swenson (thekswenson) wrote :

1. I removed the network from the Wi-Fi setting and "Turn On Wi-Fi Hotspot..." is not grayed out.
2. I opened nm-connection-editor and click the +, then "Wi-Fi", then chose:
  - Mode: Hotspot
  - Device: wlp3s0
  - No security
3. I connect with Ubuntu from another machine. There does appear to be a connection (WiFi settings has a check mark next to the network), but there is no internet and the icon remains a question mark.

Revision history for this message
Krister Swenson (thekswenson) wrote :
Revision history for this message
Hooman (hooman67) wrote :

I noticed the iptables needed for the hotspot to work are not set when the hotspot is enabled.

Revision history for this message
Sebastien Bacher (seb128) wrote :

The log has iptables errors

May 18 14:50:08 julep NetworkManager[1050]: <info> [1589806208.0498] Executing: /sbin/iptables --table filter --insert INPUT --in-interface wlp3s0 --protocol tcp --destination-port 53 --jump ACCEPT
May 18 14:50:08 julep NetworkManager[1050]: <warn> [1589806208.0512] Error executing command: Failed to execute child process “/sbin/iptables” (No such file or directory)

Do you have iptables installed? could you do
$ which iptables?

Revision history for this message
Krister Swenson (thekswenson) wrote :

=> which iptables
/usr/sbin/iptables

Revision history for this message
Krister Swenson (thekswenson) wrote :

=> iptables --version
iptables v1.8.4 (legacy)

Revision history for this message
Krister Swenson (thekswenson) wrote :

/usr/sbin/iptables is a symlink to another name with is linked to another name which is linked to /usr/sbin/xtables-legacy-multi

Revision history for this message
Sebastien Bacher (seb128) wrote :

Could you try if the build from https://launchpad.net/~ubuntu-desktop/+archive/ubuntu/ppa/+build/19327707 fixes the issue for you?

Changed in network-manager (Ubuntu):
importance: Undecided → High
status: Confirmed → In Progress
Revision history for this message
Krister Swenson (thekswenson) wrote :

With the new packages installed I can now connect and use the hotspot as long as the WPA is disabled.
Thanks for the fix!

As soon as I re-enable the WPA, I can no longer connect with my Ubuntu laptop.
I can, however, connect from Android, Windows 10, and MacOS when the WPA in enabled.

Is this a different Ubuntu client bug?

Revision history for this message
Krister Swenson (thekswenson) wrote :

Another related bug is that the "Turn On WiFi Hotspots..." menu item is always gray. The only way I can create or modify a hotspot is using the nm-connection-editor. Is this a bug I should report elsewhere?

Revision history for this message
Sebastien Bacher (seb128) wrote :

Thanks for testing, what do you mean 'as long as the WPA is disabled'? You mean you need to disable wifi to enable hotspot? That's expected since you only have one antenna and it can't only have on role at a time, either receiver or access point.

The 'always grey' is another issue, can you report it? There is a known issue that on first opening the item is unactive but works after changing to another settings page and back to wifi, but if that's solving if for you then opening a new report makes sense

Revision history for this message
Krister Swenson (thekswenson) wrote :

On the computer with the hotspot, if I make the network open, with no WPA, then I can connect and use the hotspot with all machines.

If I enable WEP in the hotspot settting (nm-connection-editor), all machines can still connect and use the hotspot.

If I enbale WPA in the hotspot settings (nm-connection-editor), then my Ubuntu laptop (another machine) cannot connect to the hotspot, while all other machines can.

Revision history for this message
Krister Swenson (thekswenson) wrote :

The "always gray" issue is indeed solved by clicking out of the wifi setting and then back in.

Revision history for this message
Sebastien Bacher (seb128) wrote :

Thanks, bug #1879122 is the menu not enabled issue, you should open a new ticket about the WPA problem, it's different from the one initially discussed on this report

Changed in network-manager (Ubuntu):
status: In Progress → Fix Committed
description: updated
Revision history for this message
Krister Swenson (thekswenson) wrote :

@seb128 Which package do you want me to report this against?
ubuntu-bug will not let me do it against network-manager because it is "not an official Ubuntu package".

Revision history for this message
Timo Aaltonen (tjaalton) wrote : Please test proposed package

Hello Krister, or anyone else affected,

Accepted network-manager into focal-proposed. The package will build now and be available at https://launchpad.net/ubuntu/+source/network-manager/1.22.10-1ubuntu2.1 in a few hours, and then in the -proposed repository.

Please help us by testing this new package. See https://wiki.ubuntu.com/Testing/EnableProposed for documentation on how to enable and use -proposed. Your feedback will aid us getting this update out to other Ubuntu users.

If this package fixes the bug for you, please add a comment to this bug, mentioning the version of the package you tested, what testing has been performed on the package and change the tag from verification-needed-focal to verification-done-focal. If it does not fix the bug for you, please add a comment stating that, and change the tag to verification-failed-focal. In either case, without details of your testing we will not be able to proceed.

Further information regarding the verification process can be found at https://wiki.ubuntu.com/QATeam/PerformingSRUVerification . Thank you in advance for helping!

N.B. The updated package will be released to -updates after the bug(s) fixed by this package have been verified and the package has been in -proposed for a minimum of 7 days.

Changed in network-manager (Ubuntu Focal):
status: New → Fix Committed
tags: added: verification-needed verification-needed-focal
Revision history for this message
Ubuntu SRU Bot (ubuntu-sru-bot) wrote : Autopkgtest regression report (network-manager/1.22.10-1ubuntu2.1)

All autopkgtests for the newly accepted network-manager (1.22.10-1ubuntu2.1) for focal have finished running.
The following regressions have been reported in tests triggered by the package:

systemd/unknown (armhf)

Please visit the excuses page listed below and investigate the failures, proceeding afterwards as per the StableReleaseUpdates policy regarding autopkgtest regressions [1].

https://people.canonical.com/~ubuntu-archive/proposed-migration/focal/update_excuses.html#network-manager

[1] https://wiki.ubuntu.com/StableReleaseUpdates#Autopkgtest_Regressions

Thank you!

Revision history for this message
Krister Swenson (thekswenson) wrote :

I installed 1.22.10-1ubuntu2.1 and turned the hotspot on...
   my clients can use the hotspot normally.

tags: added: verification-done verification-done-focal
removed: verification-needed verification-needed-focal
tags: added: verification-needed
removed: verification-done
Revision history for this message
Launchpad Janitor (janitor) wrote :

This bug was fixed in the package network-manager - 1.22.10-1ubuntu2.1

---------------
network-manager (1.22.10-1ubuntu2.1) focal; urgency=medium

  * debian/rules:
    - the iptables binary is in /usr/sbin now, use the correct location in
      the configure. Should fix the hotspot feature not working in GNOME
      on upgraded systems which haven't been usrmerged.
      (lp: #1870359)

 -- Sebastien Bacher <email address hidden> Wed, 20 May 2020 18:23:10 +0200

Changed in network-manager (Ubuntu Focal):
status: Fix Committed → Fix Released
Revision history for this message
Łukasz Zemczak (sil2100) wrote : Update Released

The verification of the Stable Release Update for network-manager has completed successfully and the package is now being released to -updates. Subsequently, the Ubuntu Stable Release Updates Team is being unsubscribed and will not receive messages about this bug report. In the event that you encounter a regression using the package from -updates please report a new bug using ubuntu-bug and tag the bug report regression-update so we can easily find any regressions.

Revision history for this message
Launchpad Janitor (janitor) wrote :

This bug was fixed in the package network-manager - 1.24.0-1ubuntu2

---------------
network-manager (1.24.0-1ubuntu2) groovy; urgency=medium

  * debian/rules:
    - the iptables binary is in /usr/sbin now, use the correct location in
      the configure. Should fix the hotspot feature not working in GNOME
      on upgraded systems which haven't been usrmerged.
      (lp: #1870359)

 -- Sebastien Bacher <email address hidden> Wed, 20 May 2020 12:03:07 +0200

Changed in network-manager (Ubuntu):
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.