Greetings, I successfully (accidentally) caught and reproduced the issue. All the commands were run as regular non-root user.
1.) So what I first did is: ############################################### $ nmcli con up VPN-NAME A password is required to connect to 'VPN-NAME'. Warning: password for 'vpn.secrets.gateway' not given in 'passwd-file' and nmcli cannot ask without '--ask' option. Error: Connection activation failed: no valid VPN secrets. ############################################### What happened here is that the graphical credentials form showed up. I started to type in my PIN and then opened the RSA app on my phone started to type in the TOKEN and meanwhile I got this error (you see above): "Error: Connection activation failed: no valid VPN secrets." 2.) Then I got suspicions. Waited for the next TOKEN, typed the PIN and TOKEN into a text file, ran the same command, immediately copy pasted the PIN+TOKEN from the text file and it worked. ############################################### $ nmcli con up VPN-NAME A password is required to connect to 'VPN-NAME'. Warning: password for 'vpn.secrets.gateway' not given in 'passwd-file' and nmcli cannot ask without '--ask' option. VPN connection successfully activated (D-Bus active path: /org/freedesktop/NetworkManager/ActiveConnection/3) ############################################### 3.) + 4.) I reproduced the same steps from the graphical interface with the same results. So I was finally able to log in from gnome network app by being quick enough with the prepared credentials. Please note that I never used the --ask option. It pretty much seems that this is a timeout issue, NM times out while waiting for the credentials too early, if you are quick enough you are able to log in though. I also removed and reinstalled those packages from the 16.04 repo and restarted network manager: ii libopenconnect5:amd64 7.06-2build2 amd64 open client for Cisco AnyConnect VPN - shared library ii network-manager-openconnect 1.0.2-1build1 amd64 network management framework (OpenConnect plugin) ii network-manager-openconnect-gnome 1.0.2-1build1 amd64 network management framework (OpenConnect plugin GNOME GUI) ii openconnect 7.06-2build2 amd64 open client for Cisco AnyConnect VPN And it still keeps working. I hope this helps. -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1575354 Title: Can't connect to VPN with openconnect through the GUI To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/network-manager-openconnect/+bug/1575354/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs