[SOLVED] NetworkManager fails to connect - authentication problem
SlackwareThis Forum is for the discussion of Slackware Linux.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
NetworkManager fails to connect - authentication problem
Hi,
When trying to connect to a wifi network using NetworkManager, it asks for the AP password, and even though I enter the correct password, it fails to connect, and keeps asking for the password.
First time I used NetworkManager, it worked perfect. Next day, I couldn't connect to the same AP. This AP uses WPA2.
When I boot a Kali live USB , I can connect without problems.
I found several threads all around the web about problems similar to this, but couldn't find the solution for me. Something similar with Wicd and the Bad Password Error, it happened to me too, and I removed wicd.
Could it be something about the keyring? Because I saw this in dmesg :
Code:
Feb 24 17:55:39 paneb gnome-keyring-daemon[1206]: couldn't allocate secure memory to keep passwords and or keys from being written to the disk
And NetworkManager.conf has this entry "plugins=keyfile":
Since I'm not using Gnome or Gnome Keyring, I'm thinking this message is due to NetworkManager querying it.
I'm using Slackware64 14.1 and Xfce.
Here are a few things that could help, thanks in advance to anyone who took the time to read all this:
Code:
02:00.0 Network controller [0280]: Intel Corporation WiFi Link 5100 [8086:4232]
Subsystem: Intel Corporation WiFi Link 5100 AGN [8086:1201]
Flags: bus master, fast devsel, latency 0, IRQ 46
Memory at fdffe000 (64-bit, non-prefetchable) [size=8K]
Capabilities: [c8] Power Management version 3
Capabilities: [d0] MSI: Enable+ Count=1/1 Maskable- 64bit+
Capabilities: [e0] Express Endpoint, MSI 00
Capabilities: [100] Advanced Error Reporting
Capabilities: [140] Device Serial Number 00-22-fa-ff-ff-28-cf-b2
Kernel driver in use: iwlwifi
Kernel modules: iwlwifi
things in /var/log/messages:
Code:
Feb 24 17:30:37 paneb NetworkManager[1094]: <info> Activation (wlan0) starting connection 'Speedy-24A521'
Feb 24 17:30:37 paneb NetworkManager[1094]: <info> (wlan0): device state change: disconnected -> prepare (reason 'none') [30 40 0]
Feb 24 17:30:37 paneb NetworkManager[1094]: <info> NetworkManager state is now CONNECTING
Feb 24 17:30:37 paneb NetworkManager[1094]: <info> Activation (wlan0) Stage 1 of 5 (Device Prepare) scheduled...
Feb 24 17:30:37 paneb NetworkManager[1094]: <info> Activation (wlan0) Stage 1 of 5 (Device Prepare) started...
Feb 24 17:30:37 paneb NetworkManager[1094]: <info> Activation (wlan0) Stage 2 of 5 (Device Configure) scheduled...
Feb 24 17:30:37 paneb NetworkManager[1094]: <info> Activation (wlan0) Stage 1 of 5 (Device Prepare) complete.
Feb 24 17:30:37 paneb NetworkManager[1094]: <info> Activation (wlan0) Stage 2 of 5 (Device Configure) starting...
Feb 24 17:30:37 paneb NetworkManager[1094]: <info> (wlan0): device state change: prepare -> config (reason 'none') [40 50 0]
Feb 24 17:30:37 paneb NetworkManager[1094]: <info> Activation (wlan0/wireless): access point 'Speedy-24A521' has security, but secrets are required.
Feb 24 17:30:37 paneb NetworkManager[1094]: <info> (wlan0): device state change: config -> need-auth (reason 'none') [50 60 0]
Feb 24 17:30:37 paneb NetworkManager[1094]: <info> Activation (wlan0) Stage 2 of 5 (Device Configure) complete.
Feb 24 17:30:37 paneb NetworkManager[1094]: <info> Activation (wlan0) Stage 1 of 5 (Device Prepare) scheduled...
Feb 24 17:30:37 paneb NetworkManager[1094]: <info> Activation (wlan0) Stage 1 of 5 (Device Prepare) started...
Feb 24 17:30:37 paneb NetworkManager[1094]: <info> (wlan0): device state change: need-auth -> prepare (reason 'none') [60 40 0]
Feb 24 17:30:37 paneb NetworkManager[1094]: <info> Activation (wlan0) Stage 2 of 5 (Device Configure) scheduled...
Feb 24 17:30:37 paneb NetworkManager[1094]: <info> Activation (wlan0) Stage 1 of 5 (Device Prepare) complete.
Feb 24 17:30:37 paneb NetworkManager[1094]: <info> Activation (wlan0) Stage 2 of 5 (Device Configure) starting...
Feb 24 17:30:37 paneb NetworkManager[1094]: <info> (wlan0): device state change: prepare -> config (reason 'none') [40 50 0]
Feb 24 17:30:37 paneb NetworkManager[1094]: <info> Activation (wlan0/wireless): connection 'Speedy-24A521' has security, and secrets exist. No new secrets needed.
Feb 24 17:30:37 paneb NetworkManager[1094]: <info> Config: added 'ssid' value 'Speedy-24A521'
Feb 24 17:30:37 paneb NetworkManager[1094]: <info> Config: added 'scan_ssid' value '1'
Feb 24 17:30:37 paneb NetworkManager[1094]: <info> Config: added 'key_mgmt' value 'WPA-PSK'
Feb 24 17:30:37 paneb NetworkManager[1094]: <info> Config: added 'auth_alg' value 'OPEN'
Feb 24 17:30:37 paneb NetworkManager[1094]: <info> Config: added 'psk' value '<omitted>'
Feb 24 17:30:37 paneb NetworkManager[1094]: <info> Activation (wlan0) Stage 2 of 5 (Device Configure) complete.
Feb 24 17:30:37 paneb NetworkManager[1094]: <info> Config: set interface ap_scan to 1
Feb 24 17:30:37 paneb NetworkManager[1094]: <info> (wlan0): supplicant interface state: inactive -> scanning
Feb 24 17:30:40 paneb NetworkManager[1094]: <info> (wlan0): supplicant interface state: scanning -> authenticating
Feb 24 17:30:40 paneb NetworkManager[1094]: <info> (wlan0): supplicant interface state: authenticating -> associating
Feb 24 17:30:40 paneb NetworkManager[1094]: <info> (wlan0): supplicant interface state: associating -> associated
Feb 24 17:30:40 paneb NetworkManager[1094]: <info> (wlan0): supplicant interface state: associated -> disconnected
Feb 24 17:30:41 paneb NetworkManager[1094]: <info> (wlan0): supplicant interface state: disconnected -> scanning
Feb 24 17:30:52 paneb NetworkManager[1094]: <info> (wlan0): supplicant interface state: scanning -> authenticating
Feb 24 17:30:52 paneb NetworkManager[1094]: <info> (wlan0): supplicant interface state: authenticating -> associating
Feb 24 17:30:52 paneb NetworkManager[1094]: <info> (wlan0): supplicant interface state: associating -> associated
Feb 24 17:30:52 paneb NetworkManager[1094]: <info> (wlan0): supplicant interface state: associated -> disconnected
Feb 24 17:30:52 paneb NetworkManager[1094]: <info> (wlan0): supplicant interface state: disconnected -> scanning
Feb 24 17:31:02 paneb NetworkManager[1094]: <info> (wlan0): device state change: config -> need-auth (reason 'none') [50 60 0]
Feb 24 17:31:03 paneb NetworkManager[1094]: <info> (wlan0): supplicant interface state: scanning -> inactive
Feb 24 17:31:05 paneb NetworkManager[1094]: <info> Activation (wlan0) Stage 1 of 5 (Device Prepare) scheduled...
Feb 24 17:31:05 paneb NetworkManager[1094]: <info> Activation (wlan0) Stage 1 of 5 (Device Prepare) started...
Feb 24 17:31:05 paneb NetworkManager[1094]: <info> (wlan0): device state change: need-auth -> prepare (reason 'none') [60 40 0]
Feb 24 17:31:05 paneb NetworkManager[1094]: <info> Activation (wlan0) Stage 2 of 5 (Device Configure) scheduled...
Feb 24 17:31:05 paneb NetworkManager[1094]: <info> Activation (wlan0) Stage 1 of 5 (Device Prepare) complete.
Feb 24 17:31:05 paneb NetworkManager[1094]: <info> Activation (wlan0) Stage 2 of 5 (Device Configure) starting...
Feb 24 17:31:05 paneb NetworkManager[1094]: <info> (wlan0): device state change: prepare -> config (reason 'none') [40 50 0]
Feb 24 17:31:05 paneb NetworkManager[1094]: <info> Activation (wlan0/wireless): connection 'Speedy-24A521' has security, and secrets exist. No new secrets needed.
Feb 24 17:31:05 paneb NetworkManager[1094]: <info> Config: added 'ssid' value 'Speedy-24A521'
Feb 24 17:31:05 paneb NetworkManager[1094]: <info> Config: added 'scan_ssid' value '1'
Feb 24 17:31:05 paneb NetworkManager[1094]: <info> Config: added 'key_mgmt' value 'WPA-PSK'
Feb 24 17:31:05 paneb NetworkManager[1094]: <info> Config: added 'auth_alg' value 'OPEN'
Feb 24 17:31:05 paneb NetworkManager[1094]: <info> Config: added 'psk' value '<omitted>'
Feb 24 17:31:05 paneb NetworkManager[1094]: <info> Activation (wlan0) Stage 2 of 5 (Device Configure) complete.
Feb 24 17:31:05 paneb NetworkManager[1094]: <info> Config: set interface ap_scan to 1
Feb 24 17:31:05 paneb NetworkManager[1094]: <info> (wlan0): supplicant interface state: inactive -> associating
Feb 24 17:31:05 paneb NetworkManager[1094]: <info> (wlan0): supplicant interface state: associating -> associated
Feb 24 17:31:05 paneb NetworkManager[1094]: <info> (wlan0): supplicant interface state: associated -> disconnected
Feb 24 17:31:05 paneb NetworkManager[1094]: <info> (wlan0): supplicant interface state: disconnected -> scanning
Feb 24 17:31:16 paneb NetworkManager[1094]: <info> (wlan0): supplicant interface state: scanning -> authenticating
Feb 24 17:31:16 paneb NetworkManager[1094]: <info> (wlan0): supplicant interface state: authenticating -> associating
Feb 24 17:31:16 paneb NetworkManager[1094]: <info> (wlan0): supplicant interface state: associating -> associated
Feb 24 17:31:16 paneb NetworkManager[1094]: <info> (wlan0): supplicant interface state: associated -> disconnected
Feb 24 17:31:16 paneb NetworkManager[1094]: <info> (wlan0): supplicant interface state: disconnected -> scanning
Feb 24 17:31:30 paneb NetworkManager[1094]: <info> (wlan0): device state change: config -> need-auth (reason 'none') [50 60 0]
Feb 24 17:31:33 paneb NetworkManager[1094]: <info> (wlan0): supplicant interface state: scanning -> inactive
Feb 24 17:31:33 paneb NetworkManager[1094]: <info> (wlan0): device state change: need-auth -> failed (reason 'no-secrets') [60 120 7]
Feb 24 17:31:33 paneb NetworkManager[1094]: <info> NetworkManager state is now DISCONNECTED
Feb 24 17:31:33 paneb NetworkManager[1094]: <info> Marking connection 'Speedy-24A521' invalid.
Feb 24 17:31:33 paneb NetworkManager[1094]: <info> (wlan0): device state change: failed -> disconnected (reason 'none') [120 30 0]
Feb 24 17:31:33 paneb NetworkManager[1094]: <info> (wlan0): deactivating device (reason 'none') [0]
I have gnome-keyring in my system (I'll find out later why it's needed since I don't have Gnome).
I finnally got connected after a lot of tries, I wrote the correct password and it kept asking for it. It was like this for 1 hour or so, meanwhile I was trying to find put what is wrong.
Next day, it failed to connect but it didn't ask for the password. NetworkManager just tried to reconnect during some time, maybe 20 minutes, and it finally succeded.
I wouldn't say it's the router, because other devices and OSes connect right away.
In NetworkManager there should be a tab on the left called "Other". When you click that, what does it say for "Store connection secrets: "? Since the error states it is trying to prevent storage on disk, then setting it to "In secure storage (encrypted)" should stop the error (theoretically).
The other possibility is it could be the IEEE settings. Sometimes those have caused me problems either being on or off. They should be in the wifi connection's properties but I don't have a wireless connection to verify, and my ethernet doesn't show up in the 64-bit Slackware for me for whatever reason so I just use the dhcp option in netconfig to autostart my connection at boot-time.
Gnome-Keyring is basically, more or less, a security credentials daemon. It's similar to KDE's wallet.
I understand what these daemons are. In fact, I was considering using a passwords vault, but it seems this is giving me more problems than its worth. Gnome-keyring was first launched by Chrome, and it was poping up every time I started Chrome. Now I followed this hint: erased the keyring files, leave password field blank, and proceed unsecurely. I just did this, I'm yet to test if this fixes my connection problems. Either way, after doing this, is gnome-keyring still loaded and available by networkmanager? Because I'm thinking the problem with NetworkManager is that gnome-keyring isn't loaded before I start Chrome. It seems NetworkManager succeds in connecting to WPA2 networks after I start Chrome, which launches gnome-keyring.
Quote:
Originally Posted by ryan858
In NetworkManager there should be a tab on the left called "Other". When you click that, what does it say for "Store connection secrets: "?
Please help me find that, because it looks promising but I'm not seeing it. I'm using XFCE, and when rc.networkmanager is started, it loads the NetworkManager Applet 0.9.8.4 . There are no tabs in that applet, is there any other way to access NetworkManager? Either using a gui or cli.
Quote:
Originally Posted by ryan858
The other possibility is it could be the IEEE settings. Sometimes those have caused me problems either being on or off. They should be in the wifi connection's properties but I don't have a wireless connection to verify, and my ethernet doesn't show up in the 64-bit Slackware for me for whatever reason so I just use the dhcp option in netconfig to autostart my connection at boot-time.
I have to look into this too, I've seen messages about disconnecting due to a change in the bandwidth that is not available for my country (AR, Argentina):
I think the router might be wrongly configured, and it could be picking a configuration not allowed for Argentina, thus my wifi just can keep connected legally. But I could try changing this settings at least to verify if this is true. Do you know how to do that? I mean, changing my country settings for the wifi card.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.