GNOME Bugzilla – Bug 770907
Activation of a new wifi connection fails when monitor-connection-files=yes
Last modified: 2016-09-12 14:28:06 UTC
Activation of a new wifi connection from nmcli fails with: nmcli --ask device wifi connect foobar Password: **** Error: Connection activation failed: (7) Secrets were required, but not provided when NM is configured with monitor-connection-files=yes. Relevant part of logs: [1473063862.2005] audit: op="connection-add-activate" uuid="f5f1883b-27d4-4ad9-8eae-e3d075249956" name="foobar 4" pid=456 uid=0 result="success" [1473063862.2009] Saving secrets for connection /org/freedesktop/NetworkManager/Settings/45 (foobar 4) [1473063862.2010] ifcfg-rh: ifcfg_dir_changed(/etc/sysconfig/network-scripts/keys-foobar_4) = 3 // /etc/sysconfig/network-scripts/ifcfg-foobar_4 [1473063862.2010] ifcfg-rh: loading from file "/etc/sysconfig/network-scripts/ifcfg-foobar_4"... [1473063862.2013] settings-connection[0x1a241a0]: constructed (NMIfcfgConnection) [1473063862.2015] settings-connection[0x1a241a0,f5f1883b-27d4-4ad9-8eae-e3d075249956]: replace settings from connection 0x195aa40 (foobar 4) [1473063862.2020] ifcfg-rh: update /etc/sysconfig/network-scripts/ifcfg-foobar_4 (f5f1883b-27d4-4ad9-8eae-e3d075249956,"foobar 4") [1473063862.2027] ++ connection 'ifcfg-update' (0x1a241a0/NMIfcfgConnection < 0x182af20/NMIfcfgConnection): [1473063862.2027] ++ 802-11-wireless-security [ 0x1a29890 < 0x198dad0 ] [1473063862.2027] ++ 802-11-wireless-security.proto = [\"wpa\", \"rsn\"] < [] [1473063862.2027] ++ 802-11-wireless-security.auth-alg < 'open' [...] [1473063862.2979] device (wlp4s0): The connection was modified since activation [1473063862.2979] device (wlp4s0): state change: need-auth -> failed (reason 'no-secrets') [60 120 7]
Created attachment 334830 [details] [review] [PATCH 1/2] ifcfg-rh: add wifi protocols only if present in connection file
Created attachment 334831 [details] [review] [PATCH 2/2] ifcfg-rh: fill 'auth-alg' with the original value for WPA-PSK
lgtm
Patches applied to master: https://cgit.freedesktop.org/NetworkManager/NetworkManager/commit/?id=00c4e7e73a48ed9a26440b2d46cfaad641e6688e https://cgit.freedesktop.org/NetworkManager/NetworkManager/commit/?id=b519b96c4e9c4b3c91745a1343b0db0997c03b18 and nm-1-4.