VPN connection failed because there were no valid secrets

Bug #1651458 reported by Frindli
22
This bug affects 5 people
Affects Status Importance Assigned to Milestone
Canonical System Image
New
Undecided
Alejandro J. Cura

Bug Description

I wasn't any problem with vpn before OTA 14. And I haven't any problem NOW on desktop ubuntu. Then I tried reset the vpn connection details with ubuntu touch network manager or the VPN editor click package (pete woods) but vpn don't worked from gui.

If I type in the terminal app "sudo nmcli con up VPNNAME" the message is: A password is required .. Warning: password for 'vpn.secrets.password' not given in 'passwd-file' and nmcli cannot ask without --ask option. I give again and again the correct password on the gui but dont work after ota 14..
And on Ubuntu Touch not worked for me if I tried the openvpn from terminal (sudo openvpn xy.conf).

Now, the connection is done successfully but only from terminal with this:
sudo nmcli --ask con up VPNNAME

Tags: openvpn vpn
Changed in canonical-devices-system-image:
assignee: nobody → Alejandro J. Cura (alecu)
Revision history for this message
Rüdiger Kupper (ruediger.kupper) wrote :

I confirm this problem. It seems to have appeared at sone tine after (but not immediately with) release of OTA-14.
Although VPN configuration has not changed, I cannot establish VPN connections via system indicator or system settings. Sliding the switch immediately displays the massage: Connection failed, because there was no valid configuration data.
I have tried re-entering the password in VPN settings, even deleting connection data and re-creating it via system settings, to no avail.
As Frindli correctly describes, the VPN connection can be established from the terminal, using
sudo nmcli con up VPNNAME
But this asks for the VPN password. So it appears that the password is not stored any longer when creating the VPN configuration using system settings.
As said before, this used to work until late 2016.

Revision history for this message
Pe (peterwerner) wrote :

I confirm this as well. Using Nexus 4 with OTA-15.04 this does't work any longer. Used to work fine with cyberghostvpn as of this instruction: http://askubuntu.com/questions/754878/how-to-setup-openvpn-provided-with-ota10-on-ubuntu-touch

password doesn't seem to be stored since it does not even try to establish the connection but fails immediately.

Many thanks

Revision history for this message
lepidas blades rompolos (lepidas) wrote :

I also have problem connectiong with VPN from gui

Revision history for this message
V (vbooka1) wrote :

I got similar problem in openSUSE Tumbleweed and found out that openvpn package was upgraded to version 2.4 but my openvpn configs were created for version 2.3.
Openvpn 2.4 is incompatible with old configs, so you should either rewrite conflicting parameters to the new format or downgrade openvpn package to 2.3.*.

Tags for google, please ignore:
Error: Connection activation failed: Unknown reason
Warning: password for 'vpn.secrets.password' not given in 'passwd-file' and nmcli cannot ask without '--ask' option.

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.