Bug 439742 - VPNC did not work with NetworkManager-kde
Summary: VPNC did not work with NetworkManager-kde
Status: RESOLVED WONTFIX
Alias: None
Product: openSUSE 11.1
Classification: openSUSE
Component: KDE3 (show other bugs)
Version: Factory
Hardware: Other Other
: P3 - Medium : Normal (vote)
Target Milestone: ---
Assignee: Will Stephenson
QA Contact: E-mail List
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2008-10-29 07:16 UTC by Johann-Nikolaus Andreae
Modified: 2016-04-15 09:15 UTC (History)
3 users (show)

See Also:
Found By: Beta-Customer
Services Priority:
Business Priority:
Blocker: ---
Marketing QA Status: ---
IT Deployment: ---


Attachments
/var/log/messages (2.40 MB, text/plain)
2008-11-12 09:14 UTC, Johann-Nikolaus Andreae
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Johann-Nikolaus Andreae 2008-10-29 07:16:11 UTC
Config a vpnc connection works
Establish a connection did not work. No reaction after clicking on the entry.

NetworkManager log:
Oct 27 15:25:30 linux-1c2m NetworkManager: <info>  Starting VPN service 'org.freedesktop.NetworkManager.vpnc'...
Oct 27 15:25:30 linux-1c2m NetworkManager: <WARN>  nm_vpn_service_daemon_exec(): VPN service 'org.freedesktop.NetworkManager.vpnc': could not launch the VPN service. error: (8) Failed to execute child process "/usr/lib/NetworkManager-vpnc/nm-vpnc-service" (No such file or directory).
Oct 27 15:25:30 linux-1c2m NetworkManager: <WARN>  impl_manager_activate_connection(): Connection (2) /org/freedesktop/NetworkManagerSettings/Connection/7 failed to activate: (3) Failed to execute child process "/usr/lib/NetworkManager-vpnc/nm-vpnc-service" (No such file or directory)
Comment 1 Bin Li 2008-11-03 07:54:12 UTC
Johann,

 The rpm package's problem, the service path is wrong, I've already fixed. And it already in Beta4. 

http://download.opensuse.org/repositories/GNOME:/Factory/openSUSE_Factory/i586/NetworkManager-vpnc-0.7.0.r4209-7.3.i586.rpm
http://download.opensuse.org/repositories/GNOME:/Factory/openSUSE_Factory/i586/NetworkManager-vpnc-gnome-0.7.0.r4209-7.3.i586.rpm

 Would you mind try these packages?
Comment 2 Johann-Nikolaus Andreae 2008-11-05 08:14:19 UTC
It still did not work.

NetworkManager log:
Nov  5 09:09:35 t500 NetworkManager: <WARN>  wait_for_connection_expired(): Connection (2) /org/freedesktop/NetworkManagerSettings/Connection/4 failed to activate (timeout): (0) Connection was not provided by any settings service

This packages are not in the main Factory reposotory.
Need i a update for the vpnc-kde package?
Comment 3 Bin Li 2008-11-05 13:40:38 UTC
(In reply to comment #2 from Johann-Nikolaus Andreae)
> It still did not work.
> NetworkManager log:
> Nov  5 09:09:35 t500 NetworkManager: <WARN>  wait_for_connection_expired():
> Connection (2) /org/freedesktop/NetworkManagerSettings/Connection/4 failed to
> activate (timeout): (0) Connection was not provided by any settings service
> This packages are not in the main Factory reposotory.
> Need i a update for the vpnc-kde package?

Do you use the KDE desktop? if so, install it. Would you attach more log when run "NetworkManager --no-daemon"? Of course kill the process first, then send me back your log.
Comment 4 Johann-Nikolaus Andreae 2008-11-05 16:16:30 UTC
yes i use kde. there is no new package for kde available.

NetworkManager output (last line is vpnc)
NetworkManager: <info>  starting...                                                    
-- Error received: File exists                                                         
-- Original message: type=0x14 length=56 flags=<REQUEST,ACK,ATOMIC> sequence-nr=1225901509 pid=4203512
NetworkManager: <WARN>  nm_generic_enable_loopback(): error -17 returned from rtnl_addr_add():        
Sucess                                                                                                

NetworkManager: <info>  Found radio killswitch /org/freedesktop/Hal/devices/pci_8086_4237_rfkill_5100AGN_wlan
NetworkManager: <info>  eth0: driver is 'e1000e'.                                                            
NetworkManager: <info>  Found new Ethernet device 'eth0'.                                                    
NetworkManager: <info>  (eth0): exported as /org/freedesktop/Hal/devices/net_00_1c_25_97_ef_46               
NetworkManager: <info>  wlan0: driver is 'iwlagn'.                                                           
NetworkManager: <info>  wlan0: driver supports SSID scans (scan_capa 0x01).                                  
NetworkManager: <info>  Found new 802.11 WiFi device 'wlan0'.                                                
NetworkManager: <info>  (wlan0): exported as /org/freedesktop/Hal/devices/net_00_21_5d_a8_de_ba              
NetworkManager: <WARN>  killswitch_getpower_reply(): Error getting killswitch power: Method "GetPower" with signature "" on interface "org.freedesktop.Hal.Device.KillSwitch" doesn't exist                                                   
.                                                                                                                      
NetworkManager: <info>  (eth0): device state change: 1 -> 2                                                            
NetworkManager: <info>  (eth0): bringing up device.                                                                    
NetworkManager: <info>  (eth0): preparing device.                                                                      
NetworkManager: <info>  (eth0): deactivating device (reason: 2).                                                       
NetworkManager: <info>  (wlan0): device state change: 1 -> 2                                                           
NetworkManager: <info>  (wlan0): bringing up device.                                                                   
NetworkManager: <info>  (wlan0): preparing device.                                                                     
NetworkManager: <info>  (wlan0): deactivating device (reason: 2).                                                      
NetworkManager: <info>  (wlan0): device state change: 2 -> 3                                                           
NetworkManager: <info>  (wlan0): supplicant interface state change: 1 -> 2.                                            
NetworkManager: <info>  (eth0): carrier now ON (device state 2)                                                        
NetworkManager: <info>  (eth0): device state change: 2 -> 3                                                            
NetworkManager: <info>  Activation (eth0) starting connection 'Auto eth0'                                              
NetworkManager: <info>  (eth0): device state change: 3 -> 4                                                            
NetworkManager: <info>  Activation (eth0) Stage 1 of 5 (Device Prepare) scheduled...                                   
NetworkManager: <info>  Activation (eth0) Stage 1 of 5 (Device Prepare) started...                                     
NetworkManager: <info>  Activation (eth0) Stage 2 of 5 (Device Configure) scheduled...                                 
NetworkManager: <info>  Activation (eth0) Stage 1 of 5 (Device Prepare) complete.                                      
NetworkManager: <info>  Activation (eth0) Stage 2 of 5 (Device Configure) starting...                                  
NetworkManager: <info>  (eth0): device state change: 4 -> 5                                                            
NetworkManager: <info>  Activation (eth0) Stage 2 of 5 (Device Configure) successful.                                  
NetworkManager: <info>  Activation (eth0) Stage 3 of 5 (IP Configure Start) scheduled.                                 
NetworkManager: <info>  Activation (eth0) Stage 2 of 5 (Device Configure) complete.                                    
NetworkManager: <info>  Activation (eth0) Stage 3 of 5 (IP Configure Start) started...                                 
NetworkManager: <info>  (eth0): device state change: 5 -> 7                                                            
NetworkManager: <info>  Activation (eth0) Beginning DHCP transaction.                                                  
Internet Systems Consortium DHCP Client V3.1.1                                                                         
Copyright 2004-2008 Internet Systems Consortium.                                                                       
All rights reserved.                                                                                                   
For info, please visit http://www.isc.org/sw/dhcp/                                                                     

wmaster0: unknown hardware address type 801
NetworkManager: <info>  dhclient started with pid 9211
wmaster0: unknown hardware address type 801           
NetworkManager: <info>  Activation (eth0) Stage 3 of 5 (IP Configure Start) complete.
NetworkManager: <info>  DHCP: device eth0 state changed (null) -> preinit            
Listening on LPF/eth0/00:1c:25:97:ef:46                                              
Sending on   LPF/eth0/00:1c:25:97:ef:46                                              
Sending on   Socket/fallback                                                         
DHCPDISCOVER on eth0 to 255.255.255.255 port 67 interval 3                           
DHCPOFFER from 141.22.27.2                                                           
DHCPREQUEST on eth0 to 255.255.255.255 port 67
DHCPACK from 141.22.27.2
bound to 141.22.26.77 -- renewal in 1712 seconds.
NetworkManager: <info>  DHCP: device eth0 state changed preinit -> bound
NetworkManager: <info>  Activation (eth0) Stage 4 of 5 (IP Configure Get) scheduled...
NetworkManager: <info>  Activation (eth0) Stage 4 of 5 (IP Configure Get) started...
NetworkManager: <info>    address 141.22.26.77
NetworkManager: <info>    prefix 23 (255.255.254.0)
NetworkManager: <info>    gateway 141.22.26.1
NetworkManager: <info>    hostname 'andrea_j'
NetworkManager: <info>    nameserver '141.22.192.100'
NetworkManager: <info>    nameserver '141.22.192.101'
NetworkManager: <info>    nameserver '141.22.192.102'
NetworkManager: <info>    domain name 'cpt.haw-hamburg.de'
NetworkManager: <info>  Activation (eth0) Stage 5 of 5 (IP Configure Commit) scheduled...
NetworkManager: <info>  Activation (eth0) Stage 4 of 5 (IP Configure Get) complete.
NetworkManager: <info>  Activation (eth0) Stage 5 of 5 (IP Configure Commit) started...
NetworkManager: <info>  (eth0): device state change: 7 -> 8
NetworkManager: <debug> [1225901519.021484] run_netconfig(): Spawning '/sbin/netconfig modify --service NetworkManager'
NetworkManager: <debug> [1225901519.036801] write_to_netconfig(): Writing to netconfig: INTERFACE='eth0'

NetworkManager: <debug> [1225901519.037103] write_to_netconfig(): Writing to netconfig: DNSSEARCH='cpt.haw-hamburg.de cpt.haw-hamburg.de'

NetworkManager: <debug> [1225901519.037340] write_to_netconfig(): Writing to netconfig: DNSSERVERS='141.22.192.100 141.22.192.101 141.22.192.102'

NetworkManager: <info>  Clearing nscd hosts cache.
NetworkManager: <info>  Policy set 'Auto eth0' (eth0) as default for routing and DNS.
NetworkManager: <info>  Activation (eth0) successful, device activated.
NetworkManager: <info>  Activation (eth0) Stage 5 of 5 (IP Configure Commit) complete.
ATTENTION: You have modified /etc/resolv.conf.  Leaving it untouched...
You can find my version in /etc/resolv.conf.netconfig ...
NetworkManager: <WARN>  wait_for_connection_expired(): Connection (2) /org/freedesktop/NetworkManagerSettings/Connection/4 failed to activate (timeout): (0) Connection was not provided by any settings service
Comment 5 Bin Li 2008-11-10 02:32:29 UTC
Tambet,

 I'm not found what's caused this information,

 ATTENTION: You have modified /etc/resolv.conf.  Leaving it untouched...
You can find my version in /etc/resolv.conf.netconfig ...

 So is it the reason that the netconfig run failed or not return the right value?
Comment 6 Tambet Ingo 2008-11-10 07:20:28 UTC
I don't know, reassigning the info provider.
Comment 7 Johann-Nikolaus Andreae 2008-11-10 09:03:59 UTC
I copy the /etc/resolv.conf.netconfig to /etc/resolv.conf and restart the networl (rcnetwork restart). It still did not work.

I found out that it coud be a gerneral problem of the NetworkMangager.
Setting up IP manualy still did not work (bug #439413).
yesterday i try to conect to a wireless WEP network. the same massage in the NetworkManager log:

Nov 10 09:50:56 t500 NetworkManager: <WARN>  wait_for_connection_expired(): Connection (2) /org/freedesktop/NetworkManagerSettings/Connection/5 failed to activate (timeout): (0) Connection was not provided by any settings service

How to reassign the info provider?
Comment 8 Bin Li 2008-11-10 09:14:00 UTC
Johann,
 You are the info provider, when you provide information, just select "Leave as ASSIGNED".

 And do you try to use the vpnc in terminal connecting the VPN gateway? Does it connect successfully?
Comment 9 Johann-Nikolaus Andreae 2008-11-10 10:05:44 UTC
Ok sorry i did not notice that i was not inforequest for me.

Yes run vpnc on the console works.
Comment 10 Bin Li 2008-11-10 10:30:24 UTC
Johann, 

 From the information in Comment #2, I'm not found something like this:

Starting VPN service 'org.freedesktop.NetworkManager.vpnc'..

 So would you mind kill the NetworkManager and run with "--no-daemon" again? After the connection is ok, click the VPN connections for selecting what you wanna connect, after this click the log on screen will be useful, and till it failed information outing.

 Thanks!
Comment 11 Johann-Nikolaus Andreae 2008-11-10 10:52:42 UTC
If i click on the vpn connection i get on the follogwing message:

NetworkManager: <WARN>  wait_for_connection_expired(): Connection (2) /org/freedesktop/NetworkManagerSettings/Connection/4 failed to activate (timeout): (0) Connection was not provided by any settings service

No more information what is wrong. The same massage i get if i try to set a IP manualy or connect to a encryted wlan (current only wep tested).
Comment 12 Bin Li 2008-11-11 03:43:53 UTC
Johann, 

 Very weird, so just attach your /var/log/message which you have done the vpn connection operation.
Comment 13 Johann-Nikolaus Andreae 2008-11-11 09:24:57 UTC
There is no output at /var/log/message if i try to connect via NetworkManager
Connect via vpnc i get the following output:

Nov 11 10:21:07 t500 kernel: tun: Universal TUN/TAP device driver, 1.6
Nov 11 10:21:07 t500 kernel: tun: (C) 1999-2004 Max Krasnyansky <maxk@qualcomm.com>
Nov 11 10:21:07 t500 kernel: tun0: Disabled Privacy Extensions
Comment 14 Bin Li 2008-11-11 11:53:17 UTC
(In reply to comment #13 from Johann-Nikolaus Andreae)
> There is no output at /var/log/message if i try to connect via NetworkManager
> Connect via vpnc i get the following output:
> 
> Nov 11 10:21:07 t500 kernel: tun: Universal TUN/TAP device driver, 1.6
> Nov 11 10:21:07 t500 kernel: tun: (C) 1999-2004 Max Krasnyansky
> <maxk@qualcomm.com>
> Nov 11 10:21:07 t500 kernel: tun0: Disabled Privacy Extensions
> 
So would you mind upload the /var/log/message file?
Comment 15 Johann-Nikolaus Andreae 2008-11-12 09:14:32 UTC
Created attachment 251523 [details]
/var/log/messages
Comment 16 Zsolt Sági 2008-11-14 16:13:13 UTC
Isnt't it related to this?

https://bugzilla.novell.com/show_bug.cgi?id=445153
Comment 17 Johann-Nikolaus Andreae 2008-11-14 16:23:35 UTC
no in my case vpnc works only via NetworkManager (KDE) not.
Comment 18 Zsolt Sági 2008-11-14 16:28:08 UTC
I've tried it with radius and local users too. With and without split tunnelling but neither worked. I use simple IPSec PSK with Xauth. What are your setting?
Comment 19 Johann-Nikolaus Andreae 2008-11-15 09:59:50 UTC
I use the comandline options --gateway, --id and --username with group and userpassword.
Comment 20 Bin Li 2008-11-17 07:30:56 UTC
Johann,

 I doubt it relate to your NetworkManager's service, where is your nm-vpnc-service? Just use the "whereis nm-vpnc-service". Does it same with program key in "/etc/NetworkManager/VPN/nm-vpnc-service.name"?

Comment 21 Johann-Nikolaus Andreae 2008-11-17 08:26:35 UTC
yes it is.

nm-vpnc-service: /usr/lib/nm-vpnc-service

[VPN Connection]
name=vpnc
service=org.freedesktop.NetworkManager.vpnc
program=/usr/lib/nm-vpnc-service
Comment 22 Bin Li 2008-11-17 10:48:55 UTC
Johann,

So I've no idea about this issue, could you assign me a temp account to connect the vpn server? I just wanna reproduce this issue in my environment so that I could debug it. Could you provide any help?

Thanks!
Comment 23 Johann-Nikolaus Andreae 2008-11-19 16:03:04 UTC
No i did not can give you access to the vpn. it is the vpn of the university.

I have found the a problem way knetworkmanager did not try to establish the 
connection. It is kded4. It blocks the networkmanager.

I have found it out traying to use cnetworkmanager to establish a wlan-
connection.

:~> cnetworkmanager -C HAW-WLAN --unprotected
cnetworkmanager 0.7.1 - Command Line Interface for NetworkManager
Could not provide settings service, another applet is running

knetworkmanager is terminated.

Terminating the kde session an tray again.
The "running applet" is terminated i get a differet errormassage from 
cnetworkmanager.

Starting kde again. terminating all kde-demons that coud have access to the 
networkmanger. After killing kded4 the connection to wlan with knetoworkmanager work.

Trayin the vpnc connection i get the following NetworkManager log output:
Nov 19 16:57:51 t500 NetworkManager: <info>  Starting VPN service 'org.freedesktop.NetworkManager.vpnc'...
Nov 19 16:57:51 t500 NetworkManager: <info>  VPN service 'org.freedesktop.NetworkManager.vpnc' started (org.freedesktop.NetworkManager.vpnc), PID 5726
Nov 19 16:57:51 t500 NetworkManager: <info>  VPN service 'org.freedesktop.NetworkManager.vpnc' just appeared, activating connections
Nov 19 16:57:51 t500 NetworkManager: <info>  VPN plugin state changed: 1
Nov 19 16:57:51 t500 NetworkManager: <info>  VPN plugin state changed: 3
Nov 19 16:57:51 t500 NetworkManager: <info>  VPN connection 'HAW-Home' (Connect) reply received.
Nov 19 16:57:51 t500 NetworkManager: <WARN>  nm_vpn_connection_connect_cb(): VPN connection 'HAW-Home' failed to connect: 'property 'Disable NAT Traversal' invalid or not supported'.
Nov 19 16:57:51 t500 NetworkManager: <WARN>  connection_state_changed(): Could not process the request because no VPN connection was active.

The property 'Disable NAT Traversal' is not checked in the vpnc settings.
Comment 24 Bin Li 2008-11-20 08:05:38 UTC
(In reply to comment #23 from Johann-Nikolaus Andreae)
> Trayin the vpnc connection i get the following NetworkManager log output:
> Nov 19 16:57:51 t500 NetworkManager: <info>  Starting VPN service
> 'org.freedesktop.NetworkManager.vpnc'...
> Nov 19 16:57:51 t500 NetworkManager: <info>  VPN service
> 'org.freedesktop.NetworkManager.vpnc' started
> (org.freedesktop.NetworkManager.vpnc), PID 5726
> Nov 19 16:57:51 t500 NetworkManager: <info>  VPN service
> 'org.freedesktop.NetworkManager.vpnc' just appeared, activating connections
> Nov 19 16:57:51 t500 NetworkManager: <info>  VPN plugin state changed: 1
> Nov 19 16:57:51 t500 NetworkManager: <info>  VPN plugin state changed: 3
> Nov 19 16:57:51 t500 NetworkManager: <info>  VPN connection 'HAW-Home'
> (Connect) reply received.
> Nov 19 16:57:51 t500 NetworkManager: <WARN>  nm_vpn_connection_connect_cb():
> VPN connection 'HAW-Home' failed to connect: 'property 'Disable NAT Traversal'
> invalid or not supported'.
> Nov 19 16:57:51 t500 NetworkManager: <WARN>  connection_state_changed(): Could
> not process the request because no VPN connection was active.
> 
> The property 'Disable NAT Traversal' is not checked in the vpnc settings.
> 
Tamás already give me an vpn account for testing, but not certificate method.
And what's your NetworkManager-vpnc ang NetworkManager-vpnc-gnome version?

From the source code r4209 and r4274, not found any "Disable NAT Traversal" keyword in source file.
Comment 25 Bin Li 2008-11-20 08:17:33 UTC
Oh, you not use the nm-applet, it should be the knetworkmanager's problem.
what's your knetworkmanager's version?
Comment 26 Bin Li 2008-11-20 08:24:46 UTC
Should be NetworkManager-vpnc-kde or NetworkManager-vpnc-kde4? What version of these package?
Comment 27 Johann-Nikolaus Andreae 2008-11-20 08:32:01 UTC
NetworkManger 0.7.0.r4274-2.1
NetworkManager-vpnc 0.7.0.r4274-1.4
NetworkManager-kde 0.7r848570-21.1
NetworkManager-vpnc-kde 0.7r848570-21.1
NetworkManager.kde4 0.7-5.2

I use the kde3 vorsion.
NetworkManager kde4 current did not work. After the last (bata4 -> beta5) update thare is a emty widget.
Comment 28 Bin Li 2008-11-20 08:48:44 UTC
Review the NetworkManager-kde code, the "Disable NAT Traversal" not support any more.

Should use "NAT Traversal Mode", and the value should be "none", "natt" or "cisco-udp".

Reassign to Helmut.
Comment 29 Zsolt Sági 2008-11-20 09:02:31 UTC
Hi guys. For everyday activities we use certificate based IPSec VPN, but vpnc does not support X509 certificates, AFAIK. Or does this new version? I can convert this test account to X509-based if you want to.

BTW, KDE4's networkmanager is really unusable yet.
Comment 30 Jörg Hermsdorf 2009-01-06 16:22:47 UTC
I have the same problem with NetworkManager-kde and NetworkMangager-vpnc-kde on openSUSE 11.1 Final.

NetworkManager: <WARN>  wait_for_connection_expired(): Connection (2) /org/freedesktop/NetworkManagerSettings/Connection/6 failed to activate (timeout): (0) Connection was not provided by any settings service

I get a similar error when I try to establish a connection via my Vodafone UMTS card:
NetworkManager: <WARN>  wait_for_connection_expired(): Connection (2) /org/freedesktop/NetworkManagerSettings/Connection/8 failed to activate (timeout): (0) Connection was not provided by any settings service

So this does not seem to be a VPNC specific problem...
Comment 31 Christian Trippe 2009-01-11 18:53:21 UTC
I have the same problem with openSUSE 11.1 GM.

From /var/log/NetworkManager I see

Jan 11 19:38:01 notebook NetworkManager: <WARN>  nm_vpn_connection_connect_cb(): VPN connection 'uni-wuppertal-extern' failed to connect: 'property 'Disa
ble NAT Traversal' invalid or not supported'.

which corresponds to comment 28.
Comment 32 Helmut Schaa 2009-01-12 09:02:57 UTC
Fix submitted to Factory.
Comment 33 Zsolt Sági 2009-01-12 13:36:25 UTC
Will it also be fixed in openSUSE 11.1?
Comment 34 Zsolt Sági 2009-01-12 13:36:57 UTC
Sorry, on more question: Do you still need the test account?
Comment 35 Helmut Schaa 2009-01-12 13:40:40 UTC
(In reply to comment #33)
> Will it also be fixed in openSUSE 11.1?

I would like to collect some more KNM fixes first before issuing an online update.

(In reply to comment #34)
> Sorry, on more question: Do you still need the test account?

No, thanks.
Comment 36 Zsolt Sági 2009-01-12 13:48:46 UTC
>> Will it also be fixed in openSUSE 11.1?

>I would like to collect some more KNM fixes first before issuing an online
>update.

Thank you for the development work, and the quick reply. May I suggest you to take a look at this issue, which may be even more serious than this one: https://bugzilla.novell.com/show_bug.cgi?id=444740




>> Sorry, on more question: Do you still need the test account?

>No, thanks.

Anyway, I'll leave it open in case of an unexpected need.
Comment 37 Zsolt Sági 2009-02-23 11:24:55 UTC
I've closed the account. Just ask me if you need it again.
Comment 38 Christian Zoz 2009-07-02 09:46:42 UTC
KNetworkManager for KDE3 is not maintained any longer. Therefore I resolve all bugs that are still open as WONTFIX without looking at each single bug report.
If this bug deals already with KDE4 and is still in progress, then please apologize the mistake and feel free to reopen it.
Comment 39 Bernhard Wiedemann 2016-04-15 09:15:52 UTC
This is an autogenerated message for OBS integration:
This bug (439742) was mentioned in
https://build.opensuse.org/request/show/4884 Factory / NetworkManager-kde