← Back to team overview

touch-packages team mailing list archive

[Bug 997927] Re: NM reports "VPN service 'openvpn' disappeared"

 

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
Touch seeded packages, which is subscribed to network-manager in Ubuntu.
https://bugs.launchpad.net/bugs/997927

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

Status in network-manager package in Ubuntu:
  New
Status in openvpn package in Ubuntu:
  Confirmed

Bug description:
  NetworkManager[920]: <info> VPN service 'openvpn' disappeared

  a similar bug has been reported to be fixed. Unfortunately not.

  ProblemType: Bug
  DistroRelease: Ubuntu 12.04
  Package: network-manager 0.9.4.0-0ubuntu4
  ProcVersionSignature: Ubuntu 3.2.0-24.37-generic 3.2.14
  Uname: Linux 3.2.0-24-generic x86_64
  NonfreeKernelModules: nvidia wl
  ApportVersion: 2.0.1-0ubuntu7
  Architecture: amd64
  CRDA: Error: command ['iw', 'reg', 'get'] failed with exit code 1: nl80211 not found.
  Date: Fri May 11 09:33:10 2012
  IfupdownConfig:
   auto lo
   iface lo inet loopback
  InstallationMedia: Ubuntu 11.10 "Oneiric Ocelot" - Release amd64+mac (20111012)
  IpRoute:
   default via 10.1.0.254 dev eth1  proto static 
   10.0.0.0/8 dev eth1  proto kernel  scope link  src 10.1.0.123  metric 2 
   169.254.0.0/16 dev eth1  scope link  metric 1000 
   172.16.164.0/24 dev vmnet8  proto kernel  scope link  src 172.16.164.1 
   192.168.179.0/24 dev vmnet1  proto kernel  scope link  src 192.168.179.1
  NetworkManager.state:
   [main]
   NetworkingEnabled=true
   WirelessEnabled=true
   WWANEnabled=true
   WimaxEnabled=true
  SourcePackage: network-manager
  UpgradeStatus: Upgraded to precise on 2012-04-29 (11 days ago)
  nmcli-dev:
   DEVICE     TYPE              STATE         DBUS-PATH                                  
   eth1       802-11-wireless   connected     /org/freedesktop/NetworkManager/Devices/1  
   eth0       802-3-ethernet    unavailable   /org/freedesktop/NetworkManager/Devices/0
  nmcli-nm:
   RUNNING         VERSION    STATE           NET-ENABLED   WIFI-HARDWARE   WIFI       WWAN-HARDWARE   WWAN      
   running         0.9.4.0    connected       enabled       enabled         enabled    enabled         disabled

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