After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 690457 - nmcli cannot connect to wifi network
nmcli cannot connect to wifi network
Status: RESOLVED OBSOLETE
Product: NetworkManager
Classification: Platform
Component: nmcli
0.9.x
Other Linux
: Normal normal
: ---
Assigned To: NetworkManager maintainer(s)
NetworkManager maintainer(s)
Depends on:
Blocks:
 
 
Reported: 2012-12-18 22:34 UTC by Andrea Scarpino
Modified: 2020-11-12 14:32 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
journal log (9.49 KB, text/x-log)
2014-03-10 08:22 UTC, Andrea Scarpino
Details

Description Andrea Scarpino 2012-12-18 22:34:33 UTC
Using nmcli I get 3 diffent messages, but I cannot connect to any wifi network:

% nmcli con up id WIFI
** (process:28588): WARNING **: Could not initialize NMActiveConnection /org/freedesktop/NetworkManager/ActiveConnection/23: Method "GetAll" with signature "s" on interface "org.freedesktop.DBus.Properties" doesn't exist

** (process:28588): WARNING **: async_got_type: could not read properties for /org/freedesktop/NetworkManager/ActiveConnection/23: Method "Get" with signature "ss" on interface "org.freedesktop.DBus.Properties" doesn't exist

** (process:28588): WARNING **: Could not create object for /org/freedesktop/NetworkManager/ActiveConnection/23: Method "GetAll" with signature "s" on interface "org.freedesktop.DBus.Properties" doesn't exist



% nmcli con up id WIFI
Error: Connection activation failed.



% nmcli con up id WIFI
** (process:28619): WARNING **: async_got_type: could not read properties for /org/freedesktop/NetworkManager/ActiveConnection/26: Method "Get" with signature "ss" on interface "org.freedesktop.DBus.Properties" doesn't exist

** (process:28619): WARNING **: async_got_type: could not read properties for /org/freedesktop/NetworkManager/ActiveConnection/26: Method "Get" with signature "ss" on interface "org.freedesktop.DBus.Properties" doesn't exist

Error: Connection activation failed: Creating object for path '/org/freedesktop/NetworkManager/ActiveConnection/2' failed in libnm-glib.


I'm using awesome as WM in KDE.
I can connect to the WIFI network using the networkmanagement plasmoid.

Ask if you need more informations.

NM 0.9.6.4
Arch Linux
Comment 1 Andrea Scarpino 2012-12-19 16:27:13 UTC
I can connect to LAN networks.
Comment 2 Jiri Klimes 2013-03-08 10:34:22 UTC
Still a problem with 0.9.8.0-1 ?
Comment 3 Andrea Scarpino 2013-03-08 18:32:11 UTC
Yes, I get the same output with 0.9.8.0
Comment 4 Dan Winship 2013-05-02 15:59:42 UTC
NM bugzilla reorganization... sorry for the bug spam.
Comment 5 Jiri Klimes 2013-05-03 06:50:50 UTC
Do you still experience the problem? Could your NM installation be mangled somehow? Try to reinstall.

Please provide output of these commands:
$ nmcli -f name,devices,state,dbus-path c s
$ nmcli c l
$ nmcli dev wifi list

Any errors in /var/log/messages.log ?
Comment 6 Andrea Scarpino 2014-03-10 08:18:39 UTC
Still I can't connect with 0.9.8.8.

$ nmcli -f name,devices,state,dbus-path c s
NAME                      DEVICES    STATE        DBUS-PATH

$ nmcli c l                                
NAME                      UUID                                   TYPE              TIMESTAMP-REAL                    
X                       8abeec34-e760-42ad-861c-56ba0739a6ea   802-11-wireless   Mon 10 Mar 2014 09:12:44 AM CET

$ nmcli dev wifi list                      
SSID                              BSSID               MODE             FREQ       RATE       SIGNAL   SECURITY   ACTIVE  
'X'                             00:C0:A8:E9:63:7A   Infrastructure   2452 MHz   54 MB/s    67       WPA2       no
Comment 7 Andrea Scarpino 2014-03-10 08:22:18 UTC
Created attachment 271399 [details]
journal log
Comment 8 Jiri Klimes 2014-03-10 09:29:34 UTC
I don't see the manual connection attempt in the logs.

There is just an auto-activation try when NM starts, that fails due to missing secrets, which might be the problem.
nmcli don't support handling secrets yet. So either you have to (a) have some applet running, that can provide NM with the password (e.g. nm-applet, NM plasma applet, ...), or (b) have the password stored in the keyfile, so that NM don't need to ask for that.

Mar 10 09:13:56 stockholm NetworkManager[211]: <info> (wlan0): device state change: need-auth -> failed (reason 'no-secrets') [60 120 7]

Could you run in one terminal (to get logs)
$ sudo journalctl -fu NetworkManager
and
try to connect in another terminal with
$ nmcli con up "X"

If the missing password is the issue, you can add it to
/etc/NetworkManager/system-connections/X, section [802-11-wireless-security]
psk=your_password
and make sure there is no 'psk-flags' there (or set it to 0: 'psk-flags=0')
Comment 9 Andrea Scarpino 2014-03-10 09:43:32 UTC
Is exactly as you said. Replacing psk-flags=1 with psk=password fixed it.

So, not a bug I guess :-)
Comment 10 Pacho Ramos 2014-12-11 11:06:56 UTC
We got a report recently downstream due to that same option being present in the config:
https://bugs.gentoo.org/show_bug.cgi?id=528748

Not sure how that option is ending at in configs but, maybe NM should handle it a bit more gracefully as looks like it's a bit common to have it present
Comment 11 Pacho Ramos 2016-05-04 09:18:29 UTC
Also, is psk-flags=1 really valid or not? :/, maybe this is a duplicate of a nmcli bug that doesn't handle that option and forces people to store the passwords in the config file :|

Thanks
Comment 12 André Klapper 2020-11-12 14:32:51 UTC
bugzilla.gnome.org is being shut down in favor of a GitLab instance. 
We are closing all old bug reports and feature requests in GNOME Bugzilla which have not seen updates for a long time.

If you still use NetworkManager and if you still see this bug / want this feature in a recent and supported version of NetworkManager, then please feel free to report it at https://gitlab.freedesktop.org/NetworkManager/NetworkManager/-/issues/

Thank you for creating this report and we are sorry it could not be implemented (workforce and time is unfortunately limited).