Re: No (more) OpenVPN on Debian8 (Jessie)

2015-03-09 Thread Dan Williams
On Thu, 2015-03-05 at 19:00 +0100, system_error wrote:
 Hello developers,
 
 I have a Problem whit Jessie and my OpenVPN. I am
 looking for help at the Debian Forum first, but i get no Answers :( (0)
 
 Maybe only developers can help by this issue?
 
 I use following packages:
 
 network-manager   | 0.9.10.0-6
 network-manager debug | 0.9.10.0-6
 network-manager-openvpn   | 0.9.10.0-1
 network-manager-openvpn-gnome | 0.9.10.0-1
 
 #I start Networkconnections at NM-Manager (Jessie / Cinnamon)
 Mar  5 14:55:31 desktop dbus[521]: [system] Activating via systemd:
 service name='org.freedesktop.hostname1'
 unit='dbus-org.freedesktop.hostname1.service'
 
 #I select my *.conf file, i get from my VPN-Provider (it's works on Wheezy!)
 Mar  5 14:55:31 desktop systemd[1]: Failed to reset devices.list on
 /system.slice: Invalid argument
 Mar  5 14:55:31 desktop dbus[521]: [system] Successfully activated
 service 'org.freedesktop.hostname1'
 
 #NM-Manager (Window) crashes. My LAN was still allive  (whitout VPN)
 Mar  5 14:55:45 desktop kernel: [ 1140.258095] nm-connection-e[2123]:
 segfault at 1326510 ip 01326510 sp 7fff11ebda18 error 15

So this looks like a crash in the editor, and based on some other traces
Michael provided last week could be an issue in the NM OpenVPN plugin.
I tried to reproduce the issue (with a given sample .ovpn file) last
week but couldn't using 0.9.10.2.  Are you able to provide a openvpn
connection file that I can try the import with?

Dan

___
networkmanager-list mailing list
networkmanager-list@gnome.org
https://mail.gnome.org/mailman/listinfo/networkmanager-list


[PATCH 1/1] examples: python: print into stderr

2015-03-09 Thread Petr Vorel
Signed-off-by: Petr Vorel petr.vo...@gmail.com
---
 examples/python/dbus/vpn.py | 2 +-
 examples/python/gi/add_connection.py| 2 +-
 examples/python/gi/deactivate-all.py| 2 +-
 examples/python/gi/firewall-zone.py | 2 +-
 examples/python/gi/update-ip4-method.py | 2 +-
 5 files changed, 5 insertions(+), 5 deletions(-)

diff --git a/examples/python/dbus/vpn.py b/examples/python/dbus/vpn.py
index 59773a6..5f4af0a 100755
--- a/examples/python/dbus/vpn.py
+++ b/examples/python/dbus/vpn.py
@@ -106,7 +106,7 @@ def activate_connection(connection_path, device_path):
 sys.exit(0)
 
 def error_handler(*args):
-   print Error activating device: %s % args
+   sys.stderr.write(Error activating device: %s\n % args)
 sys.exit(1)
 
 bus = dbus.SystemBus()
diff --git a/examples/python/gi/add_connection.py 
b/examples/python/gi/add_connection.py
index bb1163d..6665099 100755
--- a/examples/python/gi/add_connection.py
+++ b/examples/python/gi/add_connection.py
@@ -69,7 +69,7 @@ def added_cb(client, result, data):
 client.add_connection_finish(result)
 print(The connection profile has been succesfully added to 
NetworkManager.)
 except Exception, e:
-print(Error: %s % e)
+sys.stderr.write(Error: %s\n % e)
 main_loop.quit()
 
 if __name__ == __main__:
diff --git a/examples/python/gi/deactivate-all.py 
b/examples/python/gi/deactivate-all.py
index 68f1d2d..571f3fe 100755
--- a/examples/python/gi/deactivate-all.py
+++ b/examples/python/gi/deactivate-all.py
@@ -77,5 +77,5 @@ if __name__ == __main__:
 client.deactivate_connection(ac, None)
 sys.stdout.write(\033[32m  - succeeded\033[0m\n)
 except Exception, e:
-   sys.stdout.write(\033[31m  - failed\033[0m (%s)\n % 
e.message)
+   sys.stderr.write(\033[31m  - failed\033[0m (%s)\n % 
e.message)
 
diff --git a/examples/python/gi/firewall-zone.py 
b/examples/python/gi/firewall-zone.py
index ed9e591..10add3e 100755
--- a/examples/python/gi/firewall-zone.py
+++ b/examples/python/gi/firewall-zone.py
@@ -75,5 +75,5 @@ if __name__ == __main__:
 print('%s' zone set to '%s') % (c.get_id(), new_zone)
 break
 if not found:
-print (Error: connection '%s' not found.) % (con_name)
+sys.stderr.write(Error: connection '%s' not found.\n) % (con_name)
 main_loop.quit()
diff --git a/examples/python/gi/update-ip4-method.py 
b/examples/python/gi/update-ip4-method.py
index 983578c..2aa4af3 100755
--- a/examples/python/gi/update-ip4-method.py
+++ b/examples/python/gi/update-ip4-method.py
@@ -80,6 +80,6 @@ if __name__ == __main__:
 c.commit_changes(True, None)
 print(The connection profile has been updated.)
 except Exception, e:
-print(Error: %s % e)
+sys.stderr.write(Error: %s\n % e)
 break
 
-- 
2.1.4

___
networkmanager-list mailing list
networkmanager-list@gnome.org
https://mail.gnome.org/mailman/listinfo/networkmanager-list