network-manager-openvpn not working

Bug #204696 reported by GianlucaDAndrea
18
Affects Status Importance Assigned to Milestone
network-manager-openvpn (Ubuntu)
Invalid
Undecided
Unassigned

Bug Description

configured a openvpn vpn tunnel with x509 certificate. after clicking on the configured vpn tunnel in network manager applet, it asks me for the certificate password, but the vpn tunnel is not working. this is a snippet of /var/log/daemon.log, even if the certificate password is wrong

Mar 21 16:41:11 voyager NetworkManager: <info> Will activate VPN connection 'Eurix', service 'org.freedesktop.NetworkManager.openvpn', user_name 'carletto', vpn_data 'connection-type / x509 / dev / tun / remote / 192.168.3.1 / port / 1194 / proto / udp / servercert-insecure / no / ca / /home/carletto/.gnupg/caeurix.crt / cert / /home/carletto/.gnupg/gianluca_dandrea.crt / key / /home/carletto/.gnupg/gianluca_dandrea.key / comp-lzo / no / shared-key / / local-ip / / remote-ip / / username / ', route ''.
Mar 21 16:41:11 voyager NetworkManager: <info> VPN Activation (Eurix) Stage 1 of 4 (Connection Prepare) scheduled...
Mar 21 16:41:11 voyager NetworkManager: <info> VPN Activation (Eurix) Stage 1 of 4 (Connection Prepare) ran VPN service daemon org.freedesktop.NetworkManager.openvpn (PID 24964)
Mar 21 16:41:11 voyager NetworkManager: <info> VPN Activation (Eurix) Stage 1 of 4 (Connection Prepare) complete.
Mar 21 16:41:11 voyager NetworkManager: <info> VPN Activation (Eurix) Stage 2 of 4 (Connection Prepare Wait) scheduled...
Mar 21 16:41:11 voyager NetworkManager: <info> VPN Activation (Eurix) Stage 2 of 4 (Connection Prepare Wait) waiting...
Mar 21 16:41:11 voyager NetworkManager: <info> VPN Activation (Eurix) Stage 2 of 4 (Connection Prepare Wait) scheduled...
Mar 21 16:41:12 voyager NetworkManager: <info> VPN Activation (Eurix) Stage 2 of 4 (Connection Prepare Wait) waiting...
Mar 21 16:41:12 voyager NetworkManager: <info> VPN Activation (Eurix) Stage 2 of 4 (Connection Prepare Wait) scheduled...
Mar 21 16:41:12 voyager NetworkManager: <info> VPN Activation (Eurix) Stage 2 of 4 (Connection Prepare Wait) waiting...
Mar 21 16:41:12 voyager NetworkManager: <info> VPN Activation (Eurix) Stage 2 of 4 (Connection Prepare Wait) scheduled...
Mar 21 16:41:12 voyager NetworkManager: <info> VPN Activation (Eurix) Stage 2 of 4 (Connection Prepare Wait) waiting...
Mar 21 16:41:12 voyager NetworkManager: <info> VPN Activation (Eurix) Stage 2 of 4 (Connection Prepare Wait) scheduled...
Mar 21 16:41:12 voyager NetworkManager: <info> VPN Activation (Eurix) Stage 2 of 4 (Connection Prepare Wait) waiting...
Mar 21 16:41:12 voyager NetworkManager: <info> VPN Activation (Eurix) Stage 2 of 4 (Connection Prepare Wait) scheduled...
Mar 21 16:41:12 voyager NetworkManager: <info> VPN Activation (Eurix) Stage 2 of 4 (Connection Prepare Wait) waiting...
Mar 21 16:41:12 voyager NetworkManager: <info> VPN Activation (Eurix) Stage 2 of 4 (Connection Prepare Wait) scheduled...
Mar 21 16:41:13 voyager NetworkManager: <info> VPN Activation (Eurix) Stage 2 of 4 (Connection Prepare Wait) waiting...
Mar 21 16:41:13 voyager NetworkManager: <info> VPN Activation (Eurix) Stage 2 of 4 (Connection Prepare Wait) scheduled...
Mar 21 16:41:13 voyager NetworkManager: <info> VPN Activation (Eurix) Stage 2 of 4 (Connection Prepare Wait) waiting...
Mar 21 16:41:13 voyager NetworkManager: <info> VPN Activation (Eurix) Stage 2 of 4 (Connection Prepare Wait) scheduled...
Mar 21 16:41:13 voyager NetworkManager: <info> VPN Activation (Eurix) Stage 2 of 4 (Connection Prepare Wait) waiting...
Mar 21 16:41:13 voyager NetworkManager: <info> VPN Activation (Eurix) Stage 2 of 4 (Connection Prepare Wait) scheduled...
Mar 21 16:41:13 voyager NetworkManager: <info> VPN Activation (Eurix) Stage 2 of 4 (Connection Prepare Wait) waiting...
Mar 21 16:41:13 voyager NetworkManager: <info> VPN Activation (Eurix) Stage 2 of 4 (Connection Prepare Wait) scheduled...
Mar 21 16:41:13 voyager NetworkManager: <info> VPN Activation (Eurix) Stage 2 of 4 (Connection Prepare Wait) waiting...
Mar 21 16:41:13 voyager NetworkManager: <info> VPN Activation (Eurix) failed.
Mar 21 16:41:13 voyager NetworkManager: <WARN> nm_vpn_service_stop_connection(): (VPN Service org.freedesktop.NetworkManager.openvpn): could not stop connection 'Eurix' because service was 2.

any ideas?

Revision history for this message
John Fettig (jfettig) wrote :

Are you able to get this to work by using the openvpn client? If so, could you post the configuration file?

Revision history for this message
Pat Double (patdouble) wrote :

I am having the exact same problem. If I run with the attached config file it works fine.

openvpn --config vpn.conf

Revision history for this message
John Fettig (jfettig) wrote :

Could you also export the configuration you are using in network-manager-openvpn and attach it?

Revision history for this message
Pat Double (patdouble) wrote :

Note I remove the file path, but they are correct full paths here.

Revision history for this message
Pat Double (patdouble) wrote :

This is interesting... after reboot it works now. I installed the VPN support for network manager and the menu options become available. If NM was indeed restarted (I thought it was), I think it odd a machine reboot would make a difference.

Revision history for this message
Aaron Kurtz (a.kurtz) wrote :

I had exactly the same experience - although network manager restarted after the installation of network-manager-openvpn, until I actually restarted my machine any attempt to connect through the vpn failed.

After restarting, it connected properly, and this time actually displayed something in the NM applet when I tried to connect. I suspect something other than Network Manager needs to be restarted.

Revision history for this message
Thomas Novin (thomasn80) wrote :

Confirmed! Had problem getting my connection to work (just installed n-m-openvpn) but I had it working from CLI. After rebooting my connection worked!

Changing to confirmed..

Changed in network-manager-openvpn:
status: New → Confirmed
Revision history for this message
Lazy (ubuntu-bugs-oittaa) wrote :

I have certificate and config made by Ipcop firewall. network-manager-openvpn worked before these latest updates but now it works only from command line with sudo. Rebooting does not help.

Revision history for this message
syn66 (syn66) wrote :

Aaron Kurtz hit the nail on the head. After installing nm openvpn stuff it looks like nm was unable to communicate with dbus. NM was saying it couldn't find secrets. After restarting everything worked. I attached part of the daemon log that occured when trying to connect.

NetworkManager: 0.7.1~rc4.1.cf199a964-0ubuntu2
NetworkManager-openvpn: 0.7.1~rc4.1.20090323+bzr27-0ubuntu2
dbus: 1.2.12-0ubuntu2
openvpn: 2.1~rc11-1ubuntu3

This system is Jaunty

Mathew Hodson (mhodson)
Changed in network-manager-openvpn (Ubuntu):
status: Confirmed → Invalid
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.