Wifi: Secrets were required but not provided

Using NetworkManager’s nmcli I sometimes get this message when activating my wifi connection.

% nmcli connection delete $ssid
% nmcli device wifi connect $ssid password $password
Error: Connection activation failed: Secrets were required, but not provided
% nmcli connection up $ssid
Error: Connection activation failed: Secrets were required, but not provided

This seems to be a common issue based on the Stack Exchange page but none of the answers work reliably. After a while of randomly cycling through those commands plus nixos-rebuild switch, I’m sometimes able to get it to work.

Does anybody understand what causes this issue or how to avoid it?

1 Like