Results 1 to 9 of 9

Thread: VPN bug after todays updates

  1. #1
    Join Date
    Jul 2008
    Location
    Canada
    Beans
    Hidden!
    Distro
    Ubuntu Development Release

    VPN bug after todays updates

    My VPN looses connection after 1 min on 12.10 but works great on 12.04 on the same computer. Just started after today’s updates. Anyone else come across this bug as well?
    Sam
    UsingTheTerminal and PopularPages A very handy Documentation Search Tool used by many.

    Smile today, cry tomorrow!
    ( Read this everyday )

  2. #2
    Join Date
    Jul 2005
    Location
    Berlin, Germany
    Beans
    414
    Distro
    Ubuntu Development Release

    Re: VPN bug after todays updates

    It would be helpful if you described what type of VPN connection, as there are many.

    I'm going to assume you mean OpenVPN, because yes, I've noticed the same problem. The connection drops after 40s.

    The VPN plugin appears to be exiting unexpectedly:

    Code:
    Jun  9 16:53:13 thinkpad NetworkManager[1323]: <info> VPN plugin state changed: stopping (5)
    Jun  9 16:53:13 thinkpad NetworkManager[1323]: <info> VPN plugin state changed: stopped (6)
    Jun  9 16:53:13 thinkpad NetworkManager[1323]: <info> VPN plugin state change reason: 0
    Jun  9 16:53:13 thinkpad avahi-daemon[1310]: Withdrawing workstation service for tun0.
    Linux user since Slackware 3.4

  3. #3
    Join Date
    Jul 2008
    Location
    Canada
    Beans
    Hidden!
    Distro
    Ubuntu Development Release

    Re: VPN bug after todays updates

    I'm using pptp on WiTopia but with the same results.
    Thanks
    UsingTheTerminal and PopularPages A very handy Documentation Search Tool used by many.

    Smile today, cry tomorrow!
    ( Read this everyday )

  4. #4
    Join Date
    Jul 2005
    Location
    Berlin, Germany
    Beans
    414
    Distro
    Ubuntu Development Release

    Re: VPN bug after todays updates

    So that would appear to imply that Network Manager is at fault, since it's happening with two separate plugins.
    Linux user since Slackware 3.4

  5. #5
    Join Date
    Jul 2008
    Location
    Canada
    Beans
    Hidden!
    Distro
    Ubuntu Development Release

    Re: VPN bug after todays updates

    Quote Originally Posted by pressureman View Post
    So that would appear to imply that Network Manager is at fault, since it's happening with two separate plugins.
    I agree and Network Manager was one of the updates I took today.
    UsingTheTerminal and PopularPages A very handy Documentation Search Tool used by many.

    Smile today, cry tomorrow!
    ( Read this everyday )

  6. #6
    Join Date
    Jul 2005
    Location
    Berlin, Germany
    Beans
    414
    Distro
    Ubuntu Development Release

    Re: VPN bug after todays updates

    I tried running the openvpn plugin in the foreground like so:

    Code:
    sudo OPENVPN_DEBUG=1 /usr/lib/NetworkManager/nm-openvpn-service
    which yielded all the debug during the connection phase, and I could see keepalive pings occurring. The VPN was up - I was able to ping the remote server. But then as the VPN automatically disconnected itself, I saw the following:

    Code:
    ** Message: Connect timer expired, disconnecting.
    ** Message: Terminated openvpn daemon with PID 21424.
    Tue Jun 12 09:21:14 2012 us=793779 PO_WAIT[2,0] fd=5 rev=0x00000001 rwflags=0x0001 arg=0x7f30c66ce068 
    Tue Jun 12 09:21:14 2012 us=793833  event_wait returned 1
    Tue Jun 12 09:21:14 2012 us=793862 I/O WAIT status=0x0040
    Tue Jun 12 09:21:14 2012 us=793907 PID packet_id_free
    Tue Jun 12 09:21:14 2012 us=794028 SSL alert (write): warning: close notify
    Tue Jun 12 09:21:14 2012 us=794834 TCP/UDP: Closing socket
    Tue Jun 12 09:21:14 2012 us=794889 Closing TUN/TAP interface
    Tue Jun 12 09:21:14 2012 us=806547 SIGTERM[hard,] received, process exiting
    Searching through the networkmanager source, I found the "Connect timer expired, disconnecting" message in libnm-glib/nm-vpn-plugin.c, in the function connect_timer_expired(). This function is called from the following code snippet, in the same file:

    Code:
                    /* Add a timer to make sure we do not wait indefinitely for the successful connect. */
                    priv->connect_timer = g_timeout_add_seconds_full (G_PRIORITY_DEFAULT,
                                                                      NM_VPN_PLUGIN_CONNECT_TIMER,
                                                                      connect_timer_expired,
                                                                      plugin,
                                                                      connect_timer_removed);
    This confirms that it should not be limited to just the openvpn plugin (in my case), or even specific VPN plugins, but rather all VPN plugins. It would also appear that for whatever reason, network manager either doesn't think the plugin has connected (seems unlikely, since the GUI definitely indicates successful connection), or that it's not killing that timer upon successful connection.
    Linux user since Slackware 3.4

  7. #7
    Join Date
    Jul 2005
    Location
    Berlin, Germany
    Beans
    414
    Distro
    Ubuntu Development Release

    Smile Re: VPN bug after todays updates

    Looks like this has been acknowledged and fixed upstream - very recently:

    http://cgit.freedesktop.org/NetworkM...ba76a3218d4c54

    The commit message describes the problem exactly.

    I've opened an Ubuntu bug at https://bugs.launchpad.net/ubuntu/+s...r/+bug/1011991 - add yourself to that bug if it affects you, so it can get some attention.
    Last edited by pressureman; June 12th, 2012 at 09:16 AM.
    Linux user since Slackware 3.4

  8. #8
    Join Date
    Jul 2008
    Location
    Canada
    Beans
    Hidden!
    Distro
    Ubuntu Development Release

    Re: VPN bug after todays updates

    Quote Originally Posted by pressureman View Post
    Looks like this has been acknowledged and fixed upstream - very recently:

    http://cgit.freedesktop.org/NetworkM...ba76a3218d4c54

    The commit message describes the problem exactly.

    I've opened an Ubuntu bug at https://bugs.launchpad.net/ubuntu/+s...r/+bug/1011991 - add yourself to that bug if it affects you, so it can get some attention.
    Added.
    UsingTheTerminal and PopularPages A very handy Documentation Search Tool used by many.

    Smile today, cry tomorrow!
    ( Read this everyday )

  9. #9
    Join Date
    Jul 2008
    Location
    Canada
    Beans
    Hidden!
    Distro
    Ubuntu Development Release

    Re: VPN bug after todays updates

    It seems the latest updates from tonight fixed the VPN bug. Thread now marked as solved.
    UsingTheTerminal and PopularPages A very handy Documentation Search Tool used by many.

    Smile today, cry tomorrow!
    ( Read this everyday )

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •