This is really a problematic Bug!
I could isolate the Problem a little more !

The Error Line  VPN service 'openvpn' disappeared
Can be found in:
network-manager-0.9.10.0/src/vpn-manager/nm-vpn-service.c

The Problematic Code Part where it breaks the OpenVPN Service
if (old_owner_good && !new_owner_good) {
                /* service went away */
                priv->service_running = FALSE;
                nm_log_info (LOGD_VPN, "VPN service '%s' disappeared", 
priv->name);
                nm_vpn_service_stop_connections (service, FALSE, 
NM_VPN_CONNECTION_STATE_REASON_SERVICE_STOPPED);
        }

can be found in the function _name_owner_changed

Maybe somebody know how to fix this now ?

static void
_name_owner_changed (NMDBusManager *mgr,
                     const char *name,
                     const char *old,
                     const char *new,
                     gpointer user_data)
{
        NMVPNService *service = NM_VPN_SERVICE (user_data);
        NMVPNServicePrivate *priv = NM_VPN_SERVICE_GET_PRIVATE (service);
        gboolean old_owner_good, new_owner_good, success;

        if (strcmp (name, priv->dbus_service))
                return;

        /* Service changed, no need to wait for the timeout any longer */
        if (priv->start_timeout) {
                g_source_remove (priv->start_timeout);
                priv->start_timeout = 0;
        }

        old_owner_good = (old && old[0]);
        new_owner_good = (new && new[0]);

        if (!old_owner_good && new_owner_good) {
                /* service appeared */
                priv->service_running = TRUE;
                nm_log_info (LOGD_VPN, "VPN service '%s' appeared; activating 
connections", priv->name);
                /* Expect success because the VPN service has already appeared 
*/
                success = start_active_vpn (service, NULL);
                g_warn_if_fail (success);
        } else if (old_owner_good && !new_owner_good) {
                /* service went away */
                priv->service_running = FALSE;
                nm_log_info (LOGD_VPN, "VPN service '%s' disappeared", 
priv->name);
                nm_vpn_service_stop_connections (service, FALSE, 
NM_VPN_CONNECTION_STATE_REASON_SERVICE_STOPPED);
        }
}


P.S. I had nm-applet Crashing allways when this Log Lines are showed

Oct 18 07:51:13 dbus[899]: [system] Activating via systemd: service 
name='org.freedesktop.hostname1' unit='dbus-org.freedesktop.hostname1.service'
Oct 18 07:51:13 systemd[1]: Starting Hostname Service...
Oct 18 07:51:13 dbus[899]: [system] Successfully activated service 
'org.freedesktop.hostname1'
Oct 18 07:51:13 systemd[1]: Started Hostname Service.
Oct 18 07:51:16 gnome-session[2345]: Nautilus-Share-Message: Called "net 
usershare info" but it failed: »net usershare« gab den Fehler 255 zurück: net 
usershare: cannot open usershare directory /var/lib/samba/usershares. Error 
Datei oder Verzeichnis nicht gefunden
Oct 18 07:51:16 gnome-session[2345]: Please ask your system administrator to 
enable user sharing.

There is something strange with usermanagement it looks like in ubuntu
when using OpenVPN !!!

** Also affects: network-manager (Ubuntu)
   Importance: Undecided
       Status: New

-- 
You received this bug notification because you are a member of Ubuntu
Server Team, which is subscribed to openvpn in Ubuntu.
https://bugs.launchpad.net/bugs/997927

Title:
  NM reports "VPN service 'openvpn' disappeared"

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/network-manager/+bug/997927/+subscriptions

-- 
Ubuntu-server-bugs mailing list
Ubuntu-server-bugs@lists.ubuntu.com
Modify settings or unsubscribe at: 
https://lists.ubuntu.com/mailman/listinfo/ubuntu-server-bugs

Reply via email to