GNOME Bugzilla – Bug 663193
nm-applet most run to handle vpn secrets. gnome-shell doesn't support this yet
Last modified: 2011-11-02 21:31:48 UTC
[networkmanager-pptp 0.9.1.95-1] Unable to connect since the last updates of Network Manager /var/log/messages.log : Nov 1 20:57:52 lola NetworkManager[954]: <info> VPN service 'pptp' started (org.freedesktop.NetworkManager.pptp), PID 9605 Nov 1 20:57:52 lola NetworkManager[954]: <info> VPN service 'pptp' appeared; activating connections Nov 1 20:57:52 lola NetworkManager[954]: <info> VPN plugin state changed: init (1) Nov 1 20:57:52 lola NetworkManager[954]: <info> Policy set 'Auto FB_LP' (wlan0) as default for IPv4 routing and DNS. Nov 1 20:57:52 lola NetworkManager[954]: <warn> Failed to add route Netlink Error (errno = File exists) Nov 1 20:57:52 lola NetworkManager[954]: <info> Policy set 'Auto FB_LP' (wlan0) as default for IPv6 routing and DNS. Nov 1 20:57:57 lola NetworkManager[954]: <info> VPN service 'pptp' disappeared
Can you do the following for me? 1) make sure the VPN is stopped 2) as root, run "/usr/libexec/nm-pptp-service --debug --persist" (replace libexec with wherever it is on your system, sometimes it's in /usr/lib, etc) 3) try to make the VPN connection 4) report the nm-pptp-service output here
Created attachment 200534 [details] NetWorkManager Debug NetworkManager --log-level=DEBUG --no-daemon
Created attachment 200535 [details] Debug pptp
Hi, When I run the pptp service in debug mode as root, nothing appears on the console. As against when I run NetworkManager and nm-applet in debug mode, the connection reaches to establish pptp do you understand me? My English is not perfect Thx
Here's what I get by running "NetworkManager - log-level = DEBUG" with the user fred : NetworkManager[31380]: <info> Starting VPN service 'pptp'... NetworkManager[31380]: <info> VPN service 'pptp' started (org.freedesktop.NetworkManager.pptp), PID 31586 NetworkManager[31380]: <info> VPN service 'pptp' appeared; activating connections NetworkManager[31380]: <debug> [1320258760.622948] [nm-vpn-connection.c:943] get_secrets(): (ee65f05a-f9d3-49d9-98c7-745e290c89ea/Technimac) requesting VPN secrets pass #1 NetworkManager[31380]: <debug> [1320258760.623378] [nm-agent-manager.c:1100] nm_agent_manager_get_secrets(): Secrets requested for connection /org/freedesktop/NetworkManager/Settings/1 (vpn) NetworkManager[31380]: <debug> [1320258760.623497] [nm-settings-connection.c:864] nm_settings_connection_get_secrets(): (ee65f05a-f9d3-49d9-98c7-745e290c89ea/vpn:1) secrets requested flags 0x80000000 hint '(null)' NetworkManager[31380]: <debug> [1320258760.624003] [nm-agent-manager.c:1015] get_start(): (0x1438220/vpn) system settings secrets sufficient NetworkManager[31380]: <debug> [1320258760.625181] [nm-settings-connection.c:721] agent_secrets_done_cb(): (ee65f05a-f9d3-49d9-98c7-745e290c89ea/vpn:1) existing secrets returned NetworkManager[31380]: <debug> [1320258760.625305] [nm-settings-connection.c:727] agent_secrets_done_cb(): (ee65f05a-f9d3-49d9-98c7-745e290c89ea/vpn:1) secrets request completed NetworkManager[31380]: <debug> [1320258760.625965] [nm-settings-connection.c:767] agent_secrets_done_cb(): (ee65f05a-f9d3-49d9-98c7-745e290c89ea/vpn:1) new agent secrets processed NetworkManager[31380]: <debug> [1320258760.626074] [nm-vpn-connection.c:911] get_secrets_cb(): (ee65f05a-f9d3-49d9-98c7-745e290c89ea/Technimac) asking service if additional secrets are required NetworkManager[31380]: <info> VPN plugin state changed: init (1) NetworkManager[31380]: <debug> [1320258760.630715] [nm-vpn-connection.c:873] plugin_need_secrets_cb(): (ee65f05a-f9d3-49d9-98c7-745e290c89ea/Technimac) service indicated additional secrets required NetworkManager[31380]: <debug> [1320258760.630864] [nm-vpn-connection.c:943] get_secrets(): (ee65f05a-f9d3-49d9-98c7-745e290c89ea/Technimac) requesting VPN secrets pass #2 NetworkManager[31380]: <debug> [1320258760.631042] [nm-agent-manager.c:1100] nm_agent_manager_get_secrets(): Secrets requested for connection /org/freedesktop/NetworkManager/Settings/1 (vpn) NetworkManager[31380]: <debug> [1320258760.631151] [nm-agent-manager.c:619] request_add_agent(): (:1.167/org.gnome.Shell.NetworkAgent/1000) agent allowed for secrets request 0x14867b0/vpn NetworkManager[31380]: <debug> [1320258760.631252] [nm-settings-connection.c:864] nm_settings_connection_get_secrets(): (ee65f05a-f9d3-49d9-98c7-745e290c89ea/vpn:2) secrets requested flags 0x0 hint '(null)' NetworkManager[31380]: <debug> [1320258760.631751] [nm-agent-manager.c:1021] get_start(): (0x14867b0/vpn) system settings secrets insufficient, asking agents NetworkManager[31380]: <debug> [1320258760.631861] [nm-agent-manager.c:694] next_generic(): (:1.167/org.gnome.Shell.NetworkAgent/1000) agent getting secrets for request 0x14867b0/vpn NetworkManager[31380]: <debug> [1320258760.631958] [nm-agent-manager.c:976] get_next_cb(): (0x14867b0/vpn) requesting user-owned secrets from agent :1.167 NetworkManager[31380]: <debug> [1320258760.711583] [nm-agent-manager.c:740] get_done_cb(): (:1.167/org.gnome.Shell.NetworkAgent/1000) agent failed secrets request 0x14867b0/vpn: (32) VPN secrets are currently unhandled. NetworkManager[31380]: <debug> [1320258760.711647] [nm-settings-connection.c:663] agent_secrets_done_cb(): (ee65f05a-f9d3-49d9-98c7-745e290c89ea/vpn:2) secrets request error: (6) No agents were available for this request. NetworkManager[31380]: <error> [1320258760.711663] [nm-vpn-connection.c:906] get_secrets_cb(): Failed to request VPN secrets #2: (6) No agents were available for this request. NetworkManager[31380]: <info> Policy set 'Auto FB_LP' (wlan0) as default for IPv4 routing and DNS. NetworkManager[31380]: <warn> Failed to add route Netlink Error (errno = File exists) NetworkManager[31380]: <error> [1320258760.712543] [nm-system.c:1061] nm_system_replace_default_ip6_route(): (wlan0): failed to set IPv6 default route: -1 NetworkManager[31380]: <info> Policy set 'Auto FB_LP' (wlan0) as default for IPv6 routing and DNS. NetworkManager[31380]: <info> VPN service 'pptp' disappeared
So it looks like the password is wrong: sent [CHAP Response id=0x46 <cac91654dd9139bee8abe3f79c7c188a0000000000000000d3f160dcd7a29c112536cd3ea47a2b0c161d729a28d6ae5200>, name = "istadmin"] rcvd [CHAP Failure id=0x46 ""] MS-CHAP authentication failed: CHAP authentication failed Is the password int he pptp debug log that you replaced with 'bbbbbb' the correct password?
Also, I see you're using GNOME Shell; the Shell handles all secrets except VPN secrets since that's not integrated yet. Until that's done, you still need to run nm-applet. Can you check to see whether nm-applet is running for the user which this is failing for?
exactly the service nm-applet is not running and when I run the VPN connection is working: D
that might be a packager issue. i disabled starting nm-applet when gnome-shell is used. AutostartCondition=GNOME3 unless-session gnome in /etc/xdg/autostart/nm-applet.desktop can this be a cause?
I work with version 0.9.1.90 before. Y is there a change between the two versions? For cons I see a file /etc/xdg/autostart/nm-applet.desktop
(In reply to comment #9) > that might be a packager issue. i disabled starting nm-applet when gnome-shell > is used. > > AutostartCondition=GNOME3 unless-session gnome in > /etc/xdg/autostart/nm-applet.desktop > > can this be a cause? Icon=nm-device-wireless Exec=nm-applet Terminal=false Type=Application NoDisplay=true X-GNOME-Bugzilla-Bugzilla=GNOME X-GNOME-Bugzilla-Product=NetworkManager X-GNOME-Bugzilla-Component=general X-GNOME-Autostart-enabled=true AutostartCondition=GNOME3 unless-session gnome
Yes, i added that in 0.9.1.95. i'm dropping it now.
Ok I understand Gnome-shell incorporates some features network, but not the VPN? there are only nm-applet can the VPN?
Thank you for quickly corrected the problem on ArchLinux Thx ArchLinux : http://projects.archlinux.org/svntogit/packages.git/commit/trunk?h=packages/network-manager-applet&id=d6f0b6aa83e75989ea08118b27e9b957524a7464