Having a hard time with an OpenVPN network, where logs in journald don't show anything of interest yet nm-openvpn quits.
What is the right procedure to pass the --debug flag to nm-openvpn these days (i.e.: F23/F24)?
Everything I find is seriously outdated. Recent bz entries I reviewed didn't offer any hints either...
thank you,
m
On Thu, Apr 14, 2016 at 12:16 PM, Martin Langhoff martin.langhoff@gmail.com wrote:
Having a hard time with an OpenVPN network, where logs in journald don't show anything of interest yet nm-openvpn quits.
To answer my own question:
- Create /usr/libexec/nm-openvpn-service-debug, a shell script that execs /usr/libexec/nm-openvpn-service --debug
- killall nm-openvpn-service
- Edit /etc/NetworkManager/VPN/nm-openvpn-service.name to use /usr/libexec/nm-openvpn-service-debug
- Set loglevel=DEBUG in /etc/NetworkManager/NetworkManager.conf
- Restart NetworkManager
- Grab output with journald -f -u nm-openvpn -u NetworkManager
Funny enough when nm-openvpn-service is run with --debug, its output changes from being logged as nm-openvpn to NetworkManager.
Now I have all the log output; can't make heads nor tail of it but hey. Progress :-)
m
On Thu, 2016-04-14 at 12:16 -0400, Martin Langhoff wrote:
Having a hard time with an OpenVPN network, where logs in journald don't show anything of interest yet nm-openvpn quits.
What is the right procedure to pass the --debug flag to nm-openvpn these days (i.e.: F23/F24)?
Everything I find is seriously outdated. Recent bz entries I reviewed didn't offer any hints either...
thank you,
Hi,
https://wiki.gnome.org/Projects/NetworkManager/Debugging#Debugging_NetworkMa...
still works for me on F23 (nm-1-0).
F24 comes with 1-2-rc1. There it might be different... If your nm- openvpn plugin is of version 1.2, you might need to set "supports-multiple-connections=false" in both /etc/NetworkManager/VPN/nm-openvpn-service.name /usr/lib/NetworkManager/VPN//nm-openvpn-service.name After that, the steps above should work again.
Thomas
On Thu, Apr 14, 2016 at 12:41 PM, Thomas Haller thaller@redhat.com wrote:
https://wiki.gnome.org/Projects/NetworkManager/Debugging#Debugging_NetworkMa...
still works for me on F23 (nm-1-0).
good to hear! I'm on F23 right now.
The top of that page says it's all stale due to systemd, so I thought perhaps nm-openvpn instantiation was mediated through systemd somehow, and the method you mention wouldn't work right.
Re-tested with your method, same output as my method.
F24 comes with 1-2-rc1. There it might be different... If your nm- openvpn plugin is of version 1.2, you might need to set "supports-multiple-connections=false" in both /etc/NetworkManager/VPN/nm-openvpn-service.name /usr/lib/NetworkManager/VPN//nm-openvpn-service.name After that, the steps above should work again.
thanks!
m