Re: Ethernet connection not listed through DBus/ListConnections
On Wed, May 27, 2009 at 5:56 PM, daniel åkerud daniel.ake...@gmail.comwrote: I am trying to automatically connect to a VPN (PPTP) connection through DBus. I have used the script posted by Tambet Ingo as a starting point, found here: http://www.nabble.com/dbus-and-OpenVPN-Autostart-td21905375.html The problem is that my Ethernet connection (Auto Eth1), that is required to be connected before the VPN, is not listed through the org.freedesktop.NetworkManagerUserSettings.ListConnections function. So how do I get the last parameter to ActivateConnection? I.e.: iface.ActivateConnection('org.freedesktop.NetworkManagerUserSettings', vpn_connection, # = /org/freedesktop/NetworkManagerSettings/0 which is my VPN dbus.ObjectPath(/), active_connection, # where to get? reply_handler=reply_handler, error_handler=error_handler) I do have the UUID for both connections, found under cat /etc/NetworkManager/system-connections/Auto eth1 and cat ~/.gconf/system/networking/connections/2/connection/%gconf.xml respectively. I am using network-manager-0.7.1~rc4.1.cf199a964 under Ubuntu 9.04. Any and all help appreciated. BR/D I'm stuck here, and the PPTP connection goes down several times a day, really frustrating. Anyone can shed some light on this dbus issue? What could trigger that my ethernet connection is not listed in ListConnections? /D ___ NetworkManager-list mailing list NetworkManager-list@gnome.org http://mail.gnome.org/mailman/listinfo/networkmanager-list
VPN problem
Hi, I've got issues trying to connect to a Cisco VPN through Network Manager. I'm using Ubuntu 9.04 with NM 0.7.0.100. Note that if I use vpnc directly, $ sudo vpnc-connect vpn.conf it's working just fine. Network Manager is configured with the same parameters as used in vpn.conf. When using Network Manager, I get those errors below in the /var/log/daemon.log file: May 30 11:17:36 LinuxPC NetworkManager: info Starting VPN service 'org.freedesktop.NetworkManager.vpnc'... May 30 11:17:36 LinuxPC NetworkManager: info VPN service 'org.freedesktop.NetworkManager.vpnc' started (org.freedesktop.NetworkManager.vpnc), PID 11684 May 30 11:17:36 LinuxPC NetworkManager: info VPN service 'org.freedesktop.NetworkManager.vpnc' just appeared, activating connections May 30 11:17:36 LinuxPC NetworkManager: info VPN plugin state changed: 1 May 30 11:17:36 LinuxPC NetworkManager: info VPN plugin state changed: 3 May 30 11:17:36 LinuxPC NetworkManager: info VPN connection 'VPN rtbf users' (Connect) reply received. May 30 11:17:38 LinuxPC NetworkManager: info VPN plugin failed: 1 May 30 11:17:38 LinuxPC NetworkManager: info VPN plugin state changed: 6 May 30 11:17:38 LinuxPC NetworkManager: info VPN plugin state change reason: 0 May 30 11:17:38 LinuxPC NetworkManager: WARN connection_state_changed(): Could not process the request because no VPN connection was active. May 30 11:17:38 LinuxPC NetworkManager: info (eth0): writing resolv.conf to /sbin/resolvconf May 30 11:17:38 LinuxPC NetworkManager: info Policy set 'Auto eth0' (eth0) as default for routing and DNS. May 30 11:17:51 LinuxPC NetworkManager: debug [1243675071.001188] ensure_killed(): waiting for vpn service pid 11684 to exit May 30 11:17:51 LinuxPC NetworkManager: debug [1243675071.001333] ensure_killed(): vpn service pid 11684 cleaned up Does this mean something to you? TIA, Michel -- Michel Leunen http://linux.leunen.com ___ NetworkManager-list mailing list NetworkManager-list@gnome.org http://mail.gnome.org/mailman/listinfo/networkmanager-list
debug tips
Hi folks, I'm trying to debug a 100% reproducable issue but don't really know where to look for clues. I have a Sony VAIO VGN-FZ240E, running 64bit Fedora 8. It happens with many wifi networks that when I boot everything goes fine, I can connect to the wifi network with nm-applet but as soon as I lose the connection I will never be able reconnect. The networks in question use pre-shared keys. If I reboot, everything will be fine again, I can connect using the password, but as soon as I lose connection the only way I can reconnect is by reboot. Instead of rebooting I tried manually restarting all network related services but that doesn't help. These are the services I restart in this order from /etc/rc3.d that I guess are relevant: service ip6tables restart service iptables restart service network restart The first two are fine, but 'service network restart' always fails bringing up wlan. When I reboot, wlan comes up okay though. And this is 100% reproducable. I have absolutely no clue what reboot does that I don't when manually starting the services. Also, I have no idea where to look for clues. Which log files to look at? Any other tips? Thanks very much, Daniel -- Psss, psss, put it down! - http://www.cafepress.com/putitdown ___ NetworkManager-list mailing list NetworkManager-list@gnome.org http://mail.gnome.org/mailman/listinfo/networkmanager-list
Re: debug tips
On Sat, 2009-05-30 at 10:49 -0700, Daniel Fetchinson wrote: Hi folks, I'm trying to debug a 100% reproducable issue but don't really know where to look for clues. I have a Sony VAIO VGN-FZ240E, running 64bit Fedora 8. It happens with many wifi networks that when I boot everything goes fine, I can connect to the wifi network with nm-applet but as soon as I lose the connection I will never be able reconnect. The networks in question use pre-shared keys. If I reboot, everything will be fine again, I can connect using the password, but as soon as I lose connection the only way I can reconnect is by reboot. Instead of rebooting I tried manually restarting all network related services but that doesn't help. These are the services I restart in this order from /etc/rc3.d that I guess are relevant: service ip6tables restart service iptables restart service network restart NetworkManager and network are two different competitive systems to support networking. I don't say it would work but you should restart NetworkManager not network. The first two are fine, but 'service network restart' always fails bringing up wlan. When I reboot, wlan comes up okay though. And this is 100% reproducable. I have absolutely no clue what reboot does that I don't when manually starting the services. Also, I have no idea where to look for clues. Which log files to look at? Any other tips? Thanks very much, Daniel -- === Love isn't only blind, it's also deaf, dumb, and stupid. === Aaron Konstam telephone: (210) 656-0355 e-mail: akons...@sbcglobal.net ___ NetworkManager-list mailing list NetworkManager-list@gnome.org http://mail.gnome.org/mailman/listinfo/networkmanager-list