Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
[solved] nm-applet not connecting to VPN in xfce w/systemd
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Desktop Environments
View previous topic :: View next topic  
Author Message
martinlmccourt
n00b
n00b


Joined: 24 Jan 2015
Posts: 3

PostPosted: Mon Apr 20, 2015 1:01 am    Post subject: [solved] nm-applet not connecting to VPN in xfce w/systemd Reply with quote

Hi everyone,

I've been beating my head against walls trying to get nm-applet to activate my vpnc connections. I'm running xfce4 under systemd and
I think it might be policykit/permission related but I've tried recompiling numerous packages with an array of different USE flags for various things.

I'm starting my XFCE session via GDM. If I activate the VPN connection using nmtui it works nicely and even updates the nm-applet systemtray icon to show that it connected successfully. I don't fully understand policykit and I think I need help troubleshooting it in the case that this is actually where my problem lies. Here's the journal output I see when I try to activate a connection:
Code:

Apr 19 20:53:45 marty NetworkManager[3104]: <info>  Starting VPN service 'vpnc'...
Apr 19 20:53:45 marty NetworkManager[3104]: <info>  VPN service 'vpnc' started (org.freedesktop.NetworkManager.vpnc), PID 1530
Apr 19 20:53:45 marty NetworkManager[3104]: <info>  VPN service 'vpnc' appeared; activating connections
Apr 19 20:53:45 marty NetworkManager[3104]: <info>  VPN plugin state changed: starting (3)
Apr 19 20:53:45 marty NetworkManager[3104]: <info>  VPN connection '*vpn-connection-here*' (ConnectInteractive) reply received.
Apr 19 20:53:45 marty NetworkManager[3104]: <info>  VPN plugin state changed: stopped (6)
Apr 19 20:53:45 marty NetworkManager[3104]: <info>  VPN plugin state change reason: unknown (0)
Apr 19 20:53:45 marty NetworkManager[3104]: (nm-vpnc-service:1530): GLib-CRITICAL **: Source ID 5 was not found when attempting to remove it
Apr 19 20:53:45 marty /etc/gdm/Xsession[3451]: (nm-applet:3640): nm-applet-WARNING **: Failed to show notification: GDBus.Error:org.freedesktop.DBus.Error.ServiceUnknown: The name org.freedesktop.Notifications was not provided by any .service files
Apr 19 20:53:45 marty NetworkManager[3104]: ** Message: vpnc started with pid 1533
Apr 19 20:53:45 marty NetworkManager[3104]: ** Message: Terminated vpnc daemon with PID 1533.
Apr 19 20:54:05 marty NetworkManager[3104]: <info>  VPN service 'vpnc' disappeared

And here's what happens when I (successfully) connect to it using nmtui:
Code:

============================Apr 19 20:56:07 marty NetworkManager[3104]: <info>  Starting VPN service 'vpnc'...             
Apr 19 20:56:07 marty NetworkManager[3104]: <info>  VPN service 'vpnc' started (org.freedesktop.NetworkManager.vpnc), PID 1553
Apr 19 20:56:07 marty NetworkManager[3104]: <info>  VPN service 'vpnc' appeared; activating connections                     
Apr 19 20:56:07 marty NetworkManager[3104]: <info>  VPN plugin state changed: init (1)                                     
Apr 19 20:56:07 marty NetworkManager[3104]: <info>  VPN plugin state changed: starting (3)                                 
Apr 19 20:56:07 marty NetworkManager[3104]: <info>  VPN connection 'q9' (Connect) reply received.                           
Apr 19 20:56:07 marty NetworkManager[3104]: <info>  (tun0): carrier is OFF                                                 
Apr 19 20:56:07 marty NetworkManager[3104]: <info>  (tun0): new Tun device (driver: 'unknown' ifindex: 9)                   
Apr 19 20:56:07 marty NetworkManager[3104]: <info>  (tun0): exported as /org/freedesktop/NetworkManager/Devices/8           
Apr 19 20:56:07 marty systemd-udevd[1561]: failed to execute '/lib/udev/socket:@/org/freedesktop/hal/udev_event' 'socket:@/org/freedesktop/hal/udev_event': No such file or directory                                                                                                   
Apr 19 20:56:07 marty systemd-sysctl[1563]: Overwriting earlier assignment of kernel/sysrq in file '/usr/lib64/sysctl.d/60-gentoo.conf'.
Apr 19 20:56:07 marty systemd-sysctl[1563]: Overwriting earlier assignment of net/ipv4/conf/default/rp_filter in file '/etc/sysctl.d/99-sysctl.conf'.
Apr 19 20:56:07 marty systemd-sysctl[1563]: Overwriting earlier assignment of net/ipv4/conf/all/rp_filter in file '/etc/sysctl.d/99-sysctl.conf'.
Apr 19 20:56:07 marty systemd-udevd[1565]: failed to execute '/lib/udev/socket:@/org/freedesktop/hal/udev_event' 'socket:@/org/freedesktop/hal/udev_event': No such file or directory                                                                                                   
Apr 19 20:56:07 marty systemd-udevd[1566]: failed to execute '/lib/udev/socket:@/org/freedesktop/hal/udev_event' 'socket:@/org/freedesktop/hal/udev_event': No such file or directory                                                                                                   
Apr 19 20:56:07 marty NetworkManager[3104]: ** Message: vpnc started with pid 1557
Apr 19 20:56:07 marty NetworkManager[3104]: <info>  VPN connection '*vpn-connection-here*' (IP4 Config Get) reply received from old-style plugin.
Apr 19 20:56:07 marty NetworkManager[3104]: <info>  VPN Gateway: *snip*
Apr 19 20:56:07 marty NetworkManager[3104]: <info>  Tunnel Device: tun0
Apr 19 20:56:07 marty NetworkManager[3104]: <info>  IPv4 configuration:
Apr 19 20:56:07 marty NetworkManager[3104]: <info>    Internal Address: *snip*
Apr 19 20:56:07 marty NetworkManager[3104]: <info>    Internal Prefix: 24
Apr 19 20:56:07 marty NetworkManager[3104]: <info>    Internal Point-to-Point Address: *snip*
Apr 19 20:56:07 marty NetworkManager[3104]: <info>    Maximum Segment Size (MSS): 0
Apr 19 20:56:07 marty NetworkManager[3104]: <info>    Static Route: *snip*   Next Hop: 0.0.0.0
Apr 19 20:56:07 marty NetworkManager[3104]: <info>    Static Route: *snip*   Next Hop: 0.0.0.0
Apr 19 20:56:07 marty NetworkManager[3104]: <info>    Static Route: *snip*   Next Hop: 0.0.0.0
Apr 19 20:56:07 marty NetworkManager[3104]: <info>    Static Route: *snip*   Next Hop: 0.0.0.0
Apr 19 20:56:07 marty NetworkManager[3104]: <info>    Static Route: *snip*   Next Hop: 0.0.0.0
Apr 19 20:56:07 marty NetworkManager[3104]: <info>    Static Route: *snip*   Next Hop: 0.0.0.0
Apr 19 20:56:07 marty NetworkManager[3104]: <info>    Static Route: *snip*   Next Hop: 0.0.0.0
Apr 19 20:56:07 marty NetworkManager[3104]: <info>    Static Route: *snip*   Next Hop: 0.0.0.0
Apr 19 20:56:07 marty NetworkManager[3104]: <info>    Static Route: *snip*   Next Hop: 0.0.0.0
Apr 19 20:56:07 marty NetworkManager[3104]: <info>    Static Route: *snip*   Next Hop: 0.0.0.0
Apr 19 20:56:07 marty NetworkManager[3104]: <info>    Forbid Default Route: yes
Apr 19 20:56:07 marty NetworkManager[3104]: <info>    Internal DNS: *snip*
Apr 19 20:56:07 marty NetworkManager[3104]: <info>    Internal DNS: *snip*
Apr 19 20:56:07 marty NetworkManager[3104]: <info>    DNS Domain: '*snip*'
Apr 19 20:56:07 marty NetworkManager[3104]: <info>  No IPv6 configuration
Apr 19 20:56:07 marty NetworkManager[3104]: <info>  (tun0): link connected
Apr 19 20:56:07 marty NetworkManager[3104]: <info>  VPN connection 'q9' (IP Config Get) complete.
Apr 19 20:56:07 marty NetworkManager[3104]: <info>  VPN plugin state changed: started (4)
Apr 19 20:56:07 marty NetworkManager[3104]: <info>  (tun0): device state change: unmanaged -> unavailable (reason 'connection-assumed') [10 20 41]
Apr 19 20:56:07 marty NetworkManager[3104]: <info>  (tun0): device state change: unavailable -> disconnected (reason 'connection-assumed') [20 30 41]
Apr 19 20:56:07 marty NetworkManager[3104]: <info>  (tun0): Activation: starting connection 'tun0'
Apr 19 20:56:07 marty NetworkManager[3104]: <info>  (tun0): Activation: Stage 1 of 5 (Device Prepare) scheduled...
Apr 19 20:56:07 marty NetworkManager[3104]: can't open pidfile /var/lib/run/NetworkManager/nm-vpnc-7a41148c-1cbf-4cec-a0e1-b8e00eb78f69.pid for writing
Apr 19 20:56:07 marty dbus[3093]: [system] Activating via systemd: service name='org.freedesktop.nm_dispatcher' unit='dbus-org.freedesktop.nm-dispatcher.service'
Apr 19 20:56:07 marty NetworkManager[3104]: <info>  (tun0): Activation: Stage 1 of 5 (Device Prepare) started...
Apr 19 20:56:07 marty NetworkManager[3104]: <info>  (tun0): device state change: disconnected -> prepare (reason 'none') [30 40 0]
Apr 19 20:56:07 marty NetworkManager[3104]: <info>  (tun0): Activation: Stage 2 of 5 (Device Configure) scheduled...
Apr 19 20:56:07 marty NetworkManager[3104]: <info>  (tun0): Activation: Stage 1 of 5 (Device Prepare) complete.
Apr 19 20:56:07 marty NetworkManager[3104]: <info>  (tun0): Activation: Stage 2 of 5 (Device Configure) starting...
Apr 19 20:56:07 marty NetworkManager[3104]: <info>  (tun0): device state change: prepare -> config (reason 'none') [40 50 0]
Apr 19 20:56:07 marty NetworkManager[3104]: <info>  (tun0): Activation: Stage 2 of 5 (Device Configure) successful.
Apr 19 20:56:07 marty NetworkManager[3104]: <info>  (tun0): Activation: Stage 3 of 5 (IP Configure Start) scheduled.
Apr 19 20:56:07 marty NetworkManager[3104]: <info>  (tun0): Activation: Stage 2 of 5 (Device Configure) complete.
Apr 19 20:56:07 marty NetworkManager[3104]: <info>  (tun0): Activation: Stage 3 of 5 (IP Configure Start) started...
Apr 19 20:56:07 marty NetworkManager[3104]: <info>  (tun0): device state change: config -> ip-config (reason 'none') [50 70 0]
Apr 19 20:56:07 marty NetworkManager[3104]: <info>  (tun0): Activation: Stage 5 of 5 (IPv4 Configure Commit) scheduled...
Apr 19 20:56:07 marty NetworkManager[3104]: <info>  (tun0): Activation: Stage 3 of 5 (IP Configure Start) complete.
Apr 19 20:56:07 marty systemd[1]: Starting Network Manager Script Dispatcher Service...
Apr 19 20:56:07 marty /etc/gdm/Xsession[3451]: (nm-applet:3640): nm-applet-WARNING **: Failed to show notification: GDBus.Error:org.freedesktop.DBus.Error.ServiceUnknown: The name org.freedesktop.Notifications was not provided by any .service files
Apr 19 20:56:07 marty NetworkManager[3104]: <info>  (tun0): Activation: Stage 5 of 5 (IPv4 Commit) started...
Apr 19 20:56:08 marty dbus[3093]: [system] Successfully activated service 'org.freedesktop.nm_dispatcher'
Apr 19 20:56:08 marty systemd[1]: Started Network Manager Script Dispatcher Service.
Apr 19 20:56:08 marty nm-dispatcher[1568]: Dispatching action 'vpn-up' for tun0
Apr 19 20:56:08 marty NetworkManager[3104]: <info>  (tun0): device state change: ip-config -> ip-check (reason 'none') [70 80 0]
Apr 19 20:56:08 marty NetworkManager[3104]: <info>  (tun0): Activation: Stage 5 of 5 (IPv4 Commit) complete.
Apr 19 20:56:08 marty NetworkManager[3104]: <info>  (tun0): device state change: ip-check -> secondaries (reason 'none') [80 90 0]
Apr 19 20:56:08 marty NetworkManager[3104]: <info>  (tun0): device state change: secondaries -> activated (reason 'none') [90 100 0]
Apr 19 20:56:08 marty NetworkManager[3104]: <info>  (tun0): Activation: successful, device activated.
Apr 19 20:56:08 marty nm-dispatcher[1568]: Dispatching action 'up' for tun0
Apr 19 20:56:09 marty ntpd[3282]: Listen normally on 15 tun0 *snip*:123
Apr 19 20:56:09 marty ntpd[3282]: 19 Apr 20:56:09 ntpd[3282]: Listen normally on 15 tun0 *snip*:123


I'll happily post any additional info I'm just not sure what could be broken at this point.

Thanks!


Last edited by martinlmccourt on Tue Apr 21, 2015 11:55 am; edited 1 time in total
Back to top
View user's profile Send private message
Princess Nell
l33t
l33t


Joined: 15 Apr 2005
Posts: 738

PostPosted: Mon Apr 20, 2015 9:20 pm    Post subject: Reply with quote

While my system is quite different from yours, I found that the current version of networkmanager-vpnc does not work for me. That is, networkmanager-vpnc-1.0.0. Version 0.9.10.0, however, works fine. Never tried nmtui, though.
Back to top
View user's profile Send private message
martinlmccourt
n00b
n00b


Joined: 24 Jan 2015
Posts: 3

PostPosted: Tue Apr 21, 2015 11:53 am    Post subject: Reply with quote

Thanks for that Princess Nell!

The following did the trick!

Code:

echo "=net-misc/networkmanager-vpnc-1.0.0" >> /etc/portage/package.mask
emerge -vq1 net-misc/networkmanager-vpnc
Back to top
View user's profile Send private message
Princess Nell
l33t
l33t


Joined: 15 Apr 2005
Posts: 738

PostPosted: Tue May 26, 2015 9:33 pm    Post subject: Reply with quote

And here's the reason: https://bugs.gentoo.org/show_bug.cgi?id=549038.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Desktop Environments All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum