Ubuntu Forums ubuntu.com - launchpad.net - ubuntu help  

Go Back   Ubuntu Forums > The Ubuntu Forum Community > Main Support Categories > Networking & Wireless
Register Reset Password Forum Help Forum Council Search Today's Posts Mark Forums Read

Ubuntu 9.10 is out!!!

When downloading Ubuntu 9.10 please consider using bittorrent to get your copy of Ubuntu.

The Ubuntu Developers Summit for Lucid Lynx will be held the week of 16-Nov-2009 till 20-Nov-2009 in Dallas, TX USA. Visit the the Ubuntu wiki for more information about UDS and how to participate remotely.

Networking & Wireless
Having problems getting connected to the internet or getting your wireless card to work? Ask here.

 
Thread Tools Display Modes
Old November 23rd, 2008   #1
giesen2
Spilled the Beans
 
Join Date: Feb 2008
Beans: 14
The VPN connection 'xxxxx' failed because there were no valid VPN secrets.

Brand new install of Ubuntu 8.10 (Intrepid Ibex). I installed network-manager-pptp through Synaptic and did a full restart.

I'm trying to get a VPN connection setup. This is a standard windows VPN host

The VPN connection 'xxxxx' failed because there were no valid VPN secrets.

I've googled this error, and tried several suggestions of switching authentication options, but nothing is working.

How do I get the detailed logs regarding this error?

Thanks!

Last edited by giesen2; November 23rd, 2008 at 02:11 PM.. Reason: mentioned installing network-manager-pptp
giesen2 is offline   Reply With Quote
Old November 24th, 2008   #2
Iowan
Ubuntu addict and loving it
 
Iowan's Avatar
 
Join Date: Jan 2006
Location: Not heaven... Iowa
Beans: 6,294
Ubuntu 8.04 Hardy Heron
Re: The VPN connection 'xxxxx' failed because there were no valid VPN secrets.

HAve you seen this VPN Client Help page?
Iowan is offline   Reply With Quote
Old November 24th, 2008   #3
slacker9876
A Carafe of Ubuntu
 
slacker9876's Avatar
 
Join Date: May 2006
Location: Colorado, USA
Beans: 83
Ubuntu 7.10 Gutsy Gibbon
Re: The VPN connection 'xxxxx' failed because there were no valid VPN secrets.

I was having the same problem and I used this method:


Solution Source

Hi -
Here's how to get it working in Ubuntu Intrepid for a Windows home network. Before trying this, be sure your router allows PPTP service.
Open Network Configuration (Start, System, Preferences).
Highlight your VPN connection, hit Edit.
At IPv4 Settings Tab: choose method Automatic (VPN).
At VPN Tab:
1 - input the IP address of the target computer.
2 - input your user name. Leave all else blank.
3 - hit Advanced button.
At Authentication:
1 - UNcheck PAP (because PAP means to allow unsecured passage - this is the source of "no shared shared secrets")
2 - Check CHAP, MSCHAP and MSCHAPv2.
At Security and Compression:
1 - Check Use Point-to-point encryption (MPPE)
2 - Select 128-bit (most secure).
3 - Check Allow stateful encryption.
At Echo: check Allow PPP echo packets.
Leave all else blank. Hit OK, OK to save and get out.
Note: Your password is requested on VPN startup. I did not try to add it to the keyring.


This worked for me but no until I removed my password from the actual connection. I am on my VPN right now. I hope this helps.
slacker9876 is offline   Reply With Quote
Old November 30th, 2008   #4
Black Serpent
First Cup of Ubuntu
 
Join Date: Jun 2008
Beans: 6
Re: The VPN connection 'xxxxx' failed because there were no valid VPN secrets.

I think I solved the problem.

The source of the problem is - the application nm-pptp-auth-dialog wants to access the keyring to search for the password.

The problem: there is no such record in the keyring table. so it returns an error. Due to a bug, the application do not append the record in the first place!

solution:

make a new VPN connection. Connect to it. Click Deny when prompted: "Allow application to access keyring?"

then enter the password manually, and check "Save password in keyring"

then click Allow Always

and Wallah, you have just created the required entry in the keyring! You'll no longer have "no secerts" problem!

(goto applications > accessories > keyring manager > passwords to see it!)

Hope this helps. Please let me know if it doesn't.
Black Serpent is offline   Reply With Quote
Old December 1st, 2008   #5
bastett
First Cup of Ubuntu
 
Join Date: Nov 2008
Beans: 1
Re: The VPN connection 'xxxxx' failed because there were no valid VPN secrets.

Thanks Serpent,
this worked for me too.

Has this been lodged as a bug?
bastett is offline   Reply With Quote
Old December 2nd, 2008   #6
Black Serpent
First Cup of Ubuntu
 
Join Date: Jun 2008
Beans: 6
Re: The VPN connection 'xxxxx' failed because there were no valid VPN secrets.

my pleasure!

I don't know. should I report it as a bug?
Black Serpent is offline   Reply With Quote
Old June 24th, 2009   #7
mothman7
First Cup of Ubuntu
 
Join Date: Jun 2009
Beans: 1
Wink Re: The VPN connection 'xxxxx' failed because there were no valid VPN secrets.

AHHH this is such an annoying error. Unfortunately, none of the info I could find online really fixes it. You can connect if you do not store your password in the key ring, but if you get disconnected, you have to do it all over again every time.

However, I found a real solution. Uninstall the Gnome Network Manager applet and install the KDE one instead. The bug in in the Gnome applet. The KDE applet also works with Gnome, so you don't need to run KDE. If you need PPTP install Kvpnc as well. I am successfully running both with Gnome, configured them to use PPTP and it worked on the first try, no more errors. It uses the KDE keyring and remembers your password as well.

This is a serious bug that needs to be fixed, fortunately KDE can save you here.

Last edited by mothman7; June 24th, 2009 at 01:38 PM..
mothman7 is offline   Reply With Quote
Old August 20th, 2009   #8
mac666
A Carafe of Ubuntu
 
Join Date: Aug 2009
Location: hisingen, sweden
Beans: 147
Ubuntu 9.04 Jaunty Jackalope
Re: The VPN connection 'xxxxx' failed because there were no valid VPN secrets.

Any news? Is this bug fixed? Can only find KVpnc KDE and i cant handle it...
mac666 is offline   Reply With Quote
Old September 14th, 2009   #9
abasco
First Cup of Ubuntu
 
Join Date: Sep 2009
Beans: 1
Re: The VPN connection 'xxxxx' failed because there were no valid VPN secrets.

Quote:
Originally Posted by slacker9876 View Post
I was having the same problem and I used this method:


Solution Source

Hi -
Here's how to get it working in Ubuntu Intrepid for a Windows home network. Before trying this, be sure your router allows PPTP service.
Open Network Configuration (Start, System, Preferences).
Highlight your VPN connection, hit Edit.
At IPv4 Settings Tab: choose method Automatic (VPN).
At VPN Tab:
1 - input the IP address of the target computer.
2 - input your user name. Leave all else blank.
3 - hit Advanced button.
At Authentication:
1 - UNcheck PAP (because PAP means to allow unsecured passage - this is the source of "no shared shared secrets")
2 - Check CHAP, MSCHAP and MSCHAPv2.
At Security and Compression:
1 - Check Use Point-to-point encryption (MPPE)
2 - Select 128-bit (most secure).
3 - Check Allow stateful encryption.
At Echo: check Allow PPP echo packets.
Leave all else blank. Hit OK, OK to save and get out.
Note: Your password is requested on VPN startup. I did not try to add it to the keyring.


This worked for me but no until I removed my password from the actual connection. I am on my VPN right now. I hope this helps.
Hi, I have similar problem, how do I find out if my router allows PPTP service?
abasco is offline   Reply With Quote
Old October 14th, 2009   #10
azredwing
5 Cups of Ubuntu
 
Join Date: Apr 2008
Beans: 43
Re: The VPN connection 'xxxxx' failed because there were no valid VPN secrets.

Quote:
Originally Posted by Black Serpent View Post
I think I solved the problem.

The source of the problem is - the application nm-pptp-auth-dialog wants to access the keyring to search for the password.

The problem: there is no such record in the keyring table. so it returns an error. Due to a bug, the application do not append the record in the first place!

solution:

make a new VPN connection. Connect to it. Click Deny when prompted: "Allow application to access keyring?"

then enter the password manually, and check "Save password in keyring"

then click Allow Always

and Wallah, you have just created the required entry in the keyring! You'll no longer have "no secerts" problem!

(goto applications > accessories > keyring manager > passwords to see it!)

Hope this helps. Please let me know if it doesn't.
Verifying that this method works; I can connect to my vpn server now. Running Jaunty x64.
azredwing is offline   Reply With Quote

Bookmarks

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 04:59 PM.


vBulletin ©2000 - 2009, Jelsoft Enterprises Ltd. Ubuntu Logo, Ubuntu and Canonical © Canonical Ltd. Tango Icons © Tango Desktop Project. lingonberry