Parse Error

Scripts to manage certificates or generate config files

Moderators: TinCanTech, TinCanTech, TinCanTech, TinCanTech, TinCanTech, TinCanTech

Post Reply
ssclancy
OpenVpn Newbie
Posts: 2
Joined: Mon Dec 15, 2014 6:30 pm

Parse Error

Post by ssclancy » Mon Dec 15, 2014 6:46 pm

After a computer rebuild and clean Win 7 x64 install, OpenVPN is the one program install driving me bonkers.

Two problems exist.

1. An .ovpn file for a server no longer is preceded by the OpenVPN logo in Windows Explorer. In the old PC, I could right-click that file and a selection saying "Launch OpenVPN on this configuration" would be present. No longer.

2. Double-clicking the .opvn file produces a dialogue box with the following message: "I'm trying to parse (file location & name) as an --option parameter but I don't see a leading '--'

I'm searched and searched but cannot identify a remedy. I'd appreciate any help and counsel the community would provide.

My thanks in advance.

Sean

User avatar
Traffic
OpenVPN Protagonist
Posts: 4066
Joined: Sat Aug 09, 2014 11:24 am

Re: Parse Error

Post by Traffic » Tue Dec 16, 2014 1:30 pm

Open a command prompt in your openvpn/config directory and enter the command:

Code: Select all

openvpn --config server.ovpn
where server.ovpn is the name of the config file of your server.

This may not work as it sounds like you have not installed openvpn

ssclancy
OpenVpn Newbie
Posts: 2
Joined: Mon Dec 15, 2014 6:30 pm

Re: Parse Error

Post by ssclancy » Tue Dec 16, 2014 8:51 pm

Thanks "Traffic" for your guidance.

I did as you suggested and the following is the verbatim response:

Options Error: In [CMD-LINE]:1: Error opening configuration file: (file name).opvn

I'm willing to accept you might be correct about not installing OpenVPN but I did grab & install the following file from the site Download page:

openvpn-install-2.3.6-I601-x86_64

Should I have installed other OpenVPN software either before or after running that specific executable file? If so, can you direct me to the file name or the link because this was the lone file within the Downloads grid that seemed right for my PC.

Thanks again in advance,

Sean

User avatar
Traffic
OpenVPN Protagonist
Posts: 4066
Joined: Sat Aug 09, 2014 11:24 am

Re: Parse Error

Post by Traffic » Mon Dec 29, 2014 11:26 pm

ssclancy wrote:I did as you suggested and the following is the verbatim response:

Options Error: In [CMD-LINE]:1: Error opening configuration file: (file name).opvn
Please post verbatim details of the full path, command and parameters that you tried, like so:

Code: Select all

C:\Program Files\OpenVPN\Config> openvpn --config server.ovpn
Does the name of your server config have a space in it ? If so try this:

Code: Select all

openvpn --config "server name.ovpn"
ssclancy wrote:I did grab & install the following file from the site Download page:

openvpn-install-2.3.6-I601-x86_64
That is the correct file.

When you install OpenVPN you must select the file and use <Right-click> "Run as administrator" to install successfully .. but I suspect you already did that or you would have errors when trying to install.

Post Reply