On every boot, raring 3.7.0-7 fails to connect to wireless WPA

Bug #1097002 reported by jerrylamos
22
This bug affects 4 people
Affects Status Importance Assigned to Milestone
linux (Ubuntu)
Incomplete
Medium
Unassigned
network-manager (Ubuntu)
Confirmed
Undecided
Unassigned

Bug Description

On Acer Aspire 1, Intel Corporation Centrino Wireless-N 1000 [Condor Peak, and on Acer 5253 Broadcom BCM 43225 automatically disconnect from hidden wireless WPA and I have to mouse select the NM applet, choose the only network available, then connect using the already saved encryption key.

Ubuntu 12.04.1 and Mint14 connect automatically instead of disconnecting automatically like Raring does.

Attached is syslog.1 showing the disconnect, do a gedit and search on disconnect. Manuall connect (to report the bug) then follows.

ProblemType: Bug
DistroRelease: Ubuntu 13.04
Package: network-manager 0.9.6.0+git201211131441.e9e2c56-0ubuntu3
ProcVersionSignature: Ubuntu 3.7.0-7.15-generic 3.7.0
Uname: Linux 3.7.0-7-generic i686
ApportVersion: 2.7-0ubuntu2
Architecture: i386
Date: Mon Jan 7 14:06:28 2013
IfupdownConfig:
 # interfaces(5) file used by ifup(8) and ifdown(8)
 auto lo
 iface lo inet loopback
InstallationDate: Installed on 2012-11-27 (41 days ago)
InstallationMedia: Ubuntu 13.04 "Raring Ringtail" - Alpha i386 (20121127)
IpRoute:
 default via 192.168.0.1 dev wlan0 proto static
 169.254.0.0/16 dev wlan0 scope link metric 1000
 192.168.0.0/24 dev wlan0 proto kernel scope link src 192.168.0.5 metric 9
MarkForUpload: True
NetworkManager.state:
 [main]
 NetworkingEnabled=true
 WirelessEnabled=true
 WWANEnabled=true
 WimaxEnabled=true
ProcEnviron:
 TERM=xterm
 PATH=(custom, no user)
 XDG_RUNTIME_DIR=<set>
 LANG=en_US.UTF-8
 SHELL=/bin/bash
SourcePackage: network-manager
UpgradeStatus: No upgrade log present (probably fresh install)
nmcli-con:
 NAME UUID TYPE TIMESTAMP TIMESTAMP-REAL AUTOCONNECT READONLY DBUS-PATH
 Wired connection 1 2544f4e0-61c6-477a-8993-21942972660b 802-3-ethernet 1357585406 Mon 07 Jan 2013 02:03:26 PM EST yes no /org/freedesktop/NetworkManager/Settings/1
 LAUREL 0ac07da4-a668-48e4-93fa-5d6db993ad47 802-11-wireless 1357585580 Mon 07 Jan 2013 02:06:20 PM EST yes no /org/freedesktop/NetworkManager/Settings/0
nmcli-dev:
 DEVICE TYPE STATE DBUS-PATH
 wlan0 802-11-wireless connected /org/freedesktop/NetworkManager/Devices/1
 eth0 802-3-ethernet unavailable /org/freedesktop/NetworkManager/Devices/0
nmcli-nm:
 RUNNING VERSION STATE NET-ENABLED WIFI-HARDWARE WIFI WWAN-HARDWARE WWAN
 running 0.9.7.0 connected enabled enabled enabled enabled disabled

Revision history for this message
jerrylamos (jerrylamos) wrote :
Revision history for this message
Marius B. Kotsbak (mariusko) wrote :

Please test with a Quantal live CD, so that we know where the regression was introduced.

Changed in network-manager (Ubuntu):
status: New → Incomplete
Revision history for this message
jerrylamos (jerrylamos) wrote :

Tried with an installed Quantal,
Release: 12.10
Codename: quantal
Linux version 3.5.0-17-generic (buildd@allspice) (gcc version 4.7.2 (Ubuntu/Linaro 4.7.2-2ubuntu1) ) #28-Ubuntu SMP Tue Oct 9 19:31:23 UTC 2012

Set up wireless WPA was working fine.

Shutdown, booted, Quantal "disconnected" instead of connecting.

Used Systems Settings Network. Response sluggish, it did remember the network, and did remember the WPA encryption. Very sluggish but did then connect. Network Manager had the network name, had the encryption key, but disconnected anyway until I got it going again manually thru systems settings.

Attached is syslog.

Revision history for this message
Marius B. Kotsbak (mariusko) wrote :

So you mean the bug is present in Quantal as well? Are you sure it is working fine in Precise?

Revision history for this message
jerrylamos (jerrylamos) wrote :

Yes, Quantal doesn't connect and must be manually connected through system settings, even though it remembers the network name, encryption, etc. When it boots up, where it should connect, it says "disconnect" which does show up in the many many messages from network manager on the syslog. Once network manager (or the kernel, I wouldn't know) asks for authenticate it goes right through.

Since Raring is all setup to recognize hidden wireless, the network, and the encryption key it should try that first off. Instead it seems to do a knee jerk disconnect and then never even tries to connect with the information it already has. Where is the spot in the nm script that says go do the connect and authenticate? Why isn't it being issued?

Let me go check Precise again. I usually run Raring but do have backup Quantal and Precise partitions.

Thanks for looking at this.

tags: added: quantal regression-release
Revision history for this message
jerrylamos (jerrylamos) wrote :

Here's Precise. Booted up, I looked closely, there was a "Disconnected" message followed shorty by "Connected". Attached is syslog showing that. All I had to do is wait a few seconds.

Raring today, there was a "Disconnected" and when I finally got tired of waiting, systems settings network manager said "out of range." Is that what it would get if it was trying to connect to hidden wireless without doing the encryption key etc.?

 Went through the drop down menus, nm eventually put up the network name which it had already, then nm put up the encryption key which it had already, and connected. It had all the information. It's as if there is nothing in the raring nm boot script to even try to connect to the already configured hidden wireless WPA network.

Why doesn't the raring nm boot script connect automatically like it does in precise?

I can't read nm scripts. Conceptually, raring nm should look at the configuration on boot, see there is a hidden wireless network configured, authenticate and connect. For some reason raring nm totally ignores the configuration then decides to "disconnect" without even trying to connect to the configuration that is already set up. Precise can do it, what changed (lots....)?

It's like Raring looks around, does not see any public network and gives up even though it does have all the info for connecting to hidden wireless WPA. Precise can do it, what got dropped out of Raring?

Thanks, Jerry

Revision history for this message
Marius B. Kotsbak (mariusko) wrote :

To determine if this is a kernel or network manager issue, would it be possible for you to try to install a kernel for precise and see if that solves the issue?

Changed in linux (Ubuntu):
status: New → Incomplete
Revision history for this message
jerrylamos (jerrylamos) wrote :

Actually, on Quantal, I even installed a Debian kernel, upstream looked at the result and said as soon as the kernel gets the authenticate signal it promptly connects. As you can see from the syslogs, once the NM gets around to issuing the "authentiate", the kernel goes right ahead and connects.

The problem is, the NM does not bother to send the "authenticate" to the kernel. No way the kernel can connect if NM doesn't ask it to.

Where in the NM scripts is it supposed to issue the authenticate and connect? Is it possible to patch the NM to put a tell tale syslog message in the NM scripts to say it is going to connect, or why it won't issue the connect?

I can try to apply a patch, but I'm not a developer so I don't know how to write a patch for NM to find out where it decides not to connect, or why NM stopped before issuing the authenticate.

Thank you for looking at this.

BTW, linuxmint14 based on Quantal has no such trouble. Use settings to set up hidden wireless and works every time thereafter. I don't know how to compare the mint14 nm scripts to the quantal nm scripts.

Revision history for this message
jerrylamos (jerrylamos) wrote :
Download full text (10.3 KiB)

Raring 3.8 still has problem. Here's relevant syslog entries from Acer 5253 amd64 notebook. At 15:23:45 NM decides to disconnect. At 14:23:50. I started manual connect to hidden network which went through just fine, see the entries.

As a user since Dapper Drake Beta, why has Network Manager decided to deactivate device at 15:23:45?? There are "no new secrets needed" so why does it disconnect anyway?

At 15:24:45 after I started manual connect to hidden network it says.
Jan 12 15:24:47 Aspire-5253 NetworkManager[805]: <info> Activation (wlan0/wireless): connection 'LAUREL' has security, and secrets exist. No new secrets needed.
then goes right ahead and authenticates. Why doesn't NM just go ahead and connect like Precise does? Why didn't NM do the connect at 15:23:45?? instead of me having to do a manual connect?

Jan 12 15:23:45 Aspire-5253 cron[976]: (CRON) INFO (Running @reboot jobs)
Jan 12 15:23:45 Aspire-5253 kernel: [ 6.254504] IPv6: ADDRCONF(NETDEV_UP): wlan0: link is not ready
Jan 12 15:23:45 Aspire-5253 NetworkManager[805]: <info> (wlan0): preparing device.
Jan 12 15:23:45 Aspire-5253 NetworkManager[805]: <info> (wlan0): deactivating device (reason 'managed') [2]
Jan 12 15:23:45 Aspire-5253 kernel: [ 6.259191] IPv6: ADDRCONF(NETDEV_UP): wlan0: link is not ready
Jan 12 15:23:45 Aspire-5253 dbus[401]: [system] Activating service name='fi.w1.wpa_supplicant1' (using servicehelper)
Jan 12 15:23:45 Aspire-5253 kernel: [ 6.271985] cfg80211: World regulatory domain updated:
Jan 12 15:23:45 Aspire-5253 kernel: [ 6.271995] cfg80211: (start_freq - end_freq @ bandwidth), (max_antenna_gain, max_eirp)
Jan 12 15:23:45 Aspire-5253 kernel: [ 6.272000] cfg80211: (2402000 KHz - 2472000 KHz @ 40000 KHz), (300 mBi, 2000 mBm)
Jan 12 15:23:45 Aspire-5253 kernel: [ 6.272004] cfg80211: (2457000 KHz - 2482000 KHz @ 20000 KHz), (300 mBi, 2000 mBm)
Jan 12 15:23:45 Aspire-5253 kernel: [ 6.272007] cfg80211: (2474000 KHz - 2494000 KHz @ 20000 KHz), (300 mBi, 2000 mBm)
Jan 12 15:23:45 Aspire-5253 kernel: [ 6.272011] cfg80211: (5170000 KHz - 5250000 KHz @ 40000 KHz), (300 mBi, 2000 mBm)
Jan 12 15:23:45 Aspire-5253 kernel: [ 6.272014] cfg80211: (5735000 KHz - 5835000 KHz @ 40000 KHz), (300 mBi, 2000 mBm)
Jan 12 15:23:45 Aspire-5253 acpid: 33 rules loaded
Jan 12 15:23:45 Aspire-5253 acpid: waiting for events: event logging is off
Jan 12 15:23:45 Aspire-5253 NetworkManager[805]: SCPlugin-Ifupdown: devices added (path: /sys/devices/pci0000:00/0000:00:15.3/0000:07:00.0/bcma0:0/net/wlan0, iface: wlan0)
Jan 12 15:23:45 Aspire-5253 NetworkManager[805]: SCPlugin-Ifupdown: device added (path: /sys/devices/pci0000:00/0000:00:15.3/0000:07:00.0/bcma0:0/net/wlan0, iface: wlan0): no ifupdown configuration found.
Jan 12 15:23:45 Aspire-5253 dbus[401]: [system] Successfully activated service 'fi.w1.wpa_supplicant1'
Jan 12 15:23:45 Aspire-5253 NetworkManager[805]: <info> wpa_supplicant started
Jan 12 15:23:45 Aspire-5253 NetworkManager[805]: <info> (wlan0) supports 4 scan SSIDs
Jan 12 15:23:45 Aspire-5253 NetworkManager[805]: <warn> Trying to remove a non-existant call id.
Jan 12 15:23:45 Aspire-5253 NetworkManager[805]: <info> (wla...

Revision history for this message
jerrylamos (jerrylamos) wrote :

Today, raring detected the right wireless network ssid, then said "out of range".

Does NM check for hidden network encryption before issuing that message? I'd guess not.

Did manual settings > network > hidden network and connected right up since NM had all the info it needed. No problem with "out of range", so it is a false message.

Revision history for this message
Joseph Salisbury (jsalisbury) wrote :

Would it be possible for you to test the latest upstream kernel? Refer to https://wiki.ubuntu.com/KernelMainlineBuilds . Please test the latest v3.8 kernel[0] (Not a kernel in the daily directory) and install both the linux-image and linux-image-extra .deb packages.

If this bug is fixed in the mainline kernel, please add the following tag 'kernel-fixed-upstream'.

If the mainline kernel does not fix this bug, please add the tag: 'kernel-bug-exists-upstream'.

If you are unable to test the mainline kernel, for example it will not boot, please add the tag: 'kernel-unable-to-test-upstream'.
Once testing of the upstream kernel is complete, please mark this bug as "Confirmed".

Thanks in advance.

[0] http://kernel.ubuntu.com/~kernel-ppa/mainline/v3.8-rc3-raring/

Changed in linux (Ubuntu):
importance: Undecided → Medium
Revision history for this message
jerrylamos (jerrylamos) wrote :

I'll give the mainline kernel a try tomorrow.

Do note, looking at the syslogs, every time the mainline kernel is asked to "authenticate" by the Network Manager it does connect just fine.

The problem is, the Network Manager is not asking for the authentication.

I'm no developer, but having thrashed around with this bug for some time on two different pc's, I don't think the Network Manager is in the mainline kernel.

Is there some way to patch the Network Manager scripts to put a message in syslog on why it is stopping short instead of connecting?

Thanks.

Revision history for this message
Joseph Salisbury (jsalisbury) wrote :

Actually, Raring has been rebased to upstream v3.8-rc3 now. Can you apply the latest updates and see if this bug still exists?

Revision history for this message
jerrylamos (jerrylamos) wrote :

Just submitted bug 1099976 where network manager is falsely reporting "out of range".

Anyway let me see if I can try the latest upstream kernel. All these bugs are pointing right at a network manager logic failure, but I'll try the kernel anyway.

jerrylamos (jerrylamos)
Changed in network-manager (Ubuntu):
status: Incomplete → Confirmed
Revision history for this message
jerrylamos (jerrylamos) wrote :

Installed latest upstream kernel I could find:

3.8.0-030800rc3-generic #201301092235 SMP Thu Jan 10 03:36:25 UTC 2013 x86_64 x86_64 x86_64 GNU/Linux

That didn't help the network manager logic bug at all, got the same disconnect. Do note I filed a bug #1099976 where the syslog clearly shows:

Jan 15 14:13:31 Aspire-5253 NetworkManager[785]: <info> Auto-activating connection 'LAUREL'.
Jan 15 14:13:31 Aspire-5253 NetworkManager[785]: <info> Activation (wlan0) starting connection 'LAUREL'
Jan 15 14:13:31 Aspire-5253 NetworkManager[785]: <info> (wlan0): device state change: disconnected -> prepare (reason 'none') [30 40 0]
Jan 15 14:13:31 Aspire-5253 NetworkManager[785]: <info> Activation (wlan0/wireless): connection 'LAUREL' has security, and secrets exist. No new secrets needed.
Jan 15 14:14:10 Aspire-5253 NetworkManager[785]: <info> Activation (wlan0) Stage 2 of 5 (Device Configure) starting...
Jan 15 14:14:10 Aspire-5253 NetworkManager[785]: <info> (wlan0): device state change: prepare -> config (reason 'none') [40 50 0]
.....
Jan 15 14:14:10 Aspire-5253 NetworkManager[785]: <info> Activation (wlan0/wireless): access point 'LAUREL' has security, but secrets are required.

So there it sits, with network disconnected. Network manager has the secrets but isn't even bothering to use tem. them.

Manually select Settings > Network, shows the network "Out of Range" which it is not. I do "connect to hidden network" and voila, connects O.K. with the secrets it already had. Note the time stamps:

Jan 15 15:18:02 Aspire-5253 NetworkManager[885]: <info> Activation (wlan0/wireless): connection 'LAUREL' has security, and secrets exist. No new secrets needed.
...
Jan 15 15:18:03 Aspire-5253 kernel: [ 115.088454] wlan0: authenticated
....
Jan 15 15:18:03 Aspire-5253 NetworkManager[885]: <info> Activation (wlan0/wireless) Stage 2 of 5 (Device Configure) successful. Connected to wireless network 'LAUREL'
Connect then proceeds O.K.

Syslog attached.

Revision history for this message
jerrylamos (jerrylamos) wrote :

"network out of range" message from Network Manager. Same bug on Aspire 1 netbook with
Network controller: Intel Corporation Centrino Wireless-N 1000 [Condor Peak]
as on the Broadcom reported previously.

Network Manager sees the hidden network, knows it requires WPA key, then tries to connect without the WPA encryption key and of course it won't connect. Then posts "out of range" when the bug is network manager didn't use the encryption key.

Manually go through the drop down menus, select hidden network, select the same network, network manager already has the encryption key, and connects just fine. Network Manager on Pangolin has no such problem.

Is there any way to try the Network Manager from Pangolin on Raring?

Thanks.

Revision history for this message
jerrylamos (jerrylamos) wrote :

As of 23 January, Raring still disconnects.

Sees the hidden wireless network.

NM reports that "secrets required" so it disconnects.

Then NM discovers it has the "secrets" i.e. the encryption password.

Does not even try to connect. Pangolin, Mint14, etc. have no problem.

Raring's NM won't connect at boot,

Manually, select the network which is displayed, NM says "out of range". It is not out of range. NM tried to connect without using the "secret" password, which of course won't work don't even try it, then falsly concluded must have been out of range.

Manually select connect to hidden network. NM magically fills in all the "secrets" which it had stored. Manually connect just fine. It is not "out of range".

The NM logic for connecting is wrong.
1. If the network that has been set up is a hidden encrypted network, don't even try to connect without the encryption key. That's the mistake in the NM logic.

2. Since it's the same network I always use, do connect on every boot, using the already stored encryption key. I"m set up to connect automatically, then do it.

Any suggestions on how to "connect automatically"? In development, with unstable Raring, I boot a lot.

Thanks

Revision history for this message
jerrylamos (jerrylamos) wrote :

As of 26 January build, either amd64 or i386, network manager detects the network, sees that an encryption key is needed, and then disconnects.

Manually connect to the hidden network, it's got the key already, click thru the drop downs and connects fine.

Obviously the network manager needs to put 2 and 2 together:
1. Hidden network.]
2. NM has the name of the network.
3. NM knows on a hidden network a key is required.
4. NM knows what the key is.
5. NM should enable wireless and connect but instead quits. Bug in the NM connection code.
6. Lost sight of how many times I had to manually connect today on two different pc's, one with Intel the other with Broadcom, same problem

Only thing NM is better at is going through the drop downs which was deadly slow. Now just slow.

BTW, Pangolin just goes ahead and connects.

Revision history for this message
jerrylamos (jerrylamos) wrote :

25 February disconnects from wireless encrypted network on boot. That's the latest daily build & update.

Select "System Settings" network it says "Out of range. It is not.

Select "connect to hidden networks" and after a delay, displays the network, has the encryption key already, and when selected connects. Not out of range at all.

Revision history for this message
jerrylamos (jerrylamos) wrote :

Raring Ringtail on every boot (with U+1 I do a lot of boots) does not automatically connect to WPA wireless.
Raring Beta 2 invariably "disconnects" on boot. Systems Settings Network says "out of range" obviously tried to connect without the encryption key it already has. Manually select drop down window, shows the correct network, select it, and after a while presents a drop down with all the required info, and waits for me to select it. I do, and after a while it connects. Syslog has some network manager messages about "secrets required" and is oblivious to the "secrets" network manager already has.

Pangolin on the same pc and netowrk connects autmatically, might take a couple seconds. Raring doesn't connect, as a matter of Network Manager policy.

Android tablets on the same network (7" and 10.1") set up encryption once and they connect immediately. Every time. Raring doesn't.

Chromebook boots, zooms up, connects, and bam into the internet. Once encryption is set up always boots right up, using the info, no manual intervention required. Raring doesn't compete with Chromebook on boot and ease of getting to internet.

Apparently Network Manager doesn't consider this a bug, just the way network manager has decided to slow down boot. My other wireless products are set up for user convenience.

Revision history for this message
Christopher (soft-kristal) wrote :

I reported similar issues as bug #1172967, so I will close that one.

The upgrade from 12.10 to 13.04 was not smooth. After restarting at the end of the process, the boot hung with a black screen. I rebooted in failsafe mode and after enabling networking I resumed in low graphics mode and was successful.

After rebooting, I had high resolution graphics but no internet connection. I rebooted again and used the 'old kernel', which is odd as it was supposedly deleted during the upgrade. My system shows that it's running 13.0.4 and I obviously have an internet connection.

I have had the same issue on three different computers with different graphic cards. When I next reboot I'll try the current kernel again.

--next day...

After rebooting into 3.8.0-19, I get an internet connection for about 30 seconds, then it drops and won't re-connect unless suspended and woke again, where I get a fresh 30 seconds before it disconnects again.

The network manager applet reports that both wired and wireless are working when they clearly aren't.

The 'phantom' kernel 3.5.0-28 in Raring is still the only one I can use to stay connected. This is the case on both this laptop and my desktop.

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.