OpenVPN isn't very informative about this error, but it is usually caused by invalid characters in the configuration file. They may be invisible characters. Sometimes this happens when using a configuration file that came from Windows.
The configuration file is short enough that the easiest way to fix it is to re-type it into TextEdit, in "Plain Text" mode. (Open TextEdit, then click "Format" and "Make Plain Text". If the "Format" menu has "Make Rich Text" instead, it is already in "Plain Text" mode.) Note -- don't copy/paste, because that will just put the bad character(s) into the new file. You have to actually retype all of it.
Notes:
- You can probably set it to "verb 3", which is usually high enough to show what's wrong if it doesn't connect.
- Be careful using up/down scripts -- you must set the configuration to NOT "Set Nameserver" or they won't be executed. And most people are better of using one of the other "Set nameserver" settings, which uses standard Tunnelblick scripts.
Good luck!
On Friday, June 15, 2012 11:19:44 AM UTC-4, Becky wrote:
Hi, I was hoping that someone could narrow down my connection issues.I'm attempting to connect to an OpenVPN server using Tunnelblick 3.2.6 on a Mac OS X 10.7 but when I launch the connection I get the following error message:
Error:OpenVPN returned with status 1. Possible error in configuration file.
Here is the log file and configuration file in use
client
dev tun
proto tcp
remote server.xxx
ip-win32 dynamic
resolv-retry infinite
nobind
ca ca.crt
cert user.crt
key user.key
tls-auth ta.key 1
up up.sh
down down.sh
comp-lzo
verb 5
float
2012-06-15 16:06:28 *Tunnelblick: OS X
10.7.3; Tunnelblick 3.2.6 (build 2891.3007)
2012-06-15 16:06:29 *Tunnelblick:
Attempting connection with NGDDataCentre; Set nameserver = 1; monitoring
connection
2012-06-15 16:06:29 *Tunnelblick:
/Applications/Tunnelblick.app/Contents/Resources/openvpnstart start
NGDDataCentre.ovpn 1337 1 0 0 0 49 -atDASNGWrdasngw
2012-06-15 16:06:29 *Tunnelblick:
openvpnstart status #242: Error: OpenVPN returned with status 1. Possible error
in configuration file. See "All Messages" in Console for details
2012-06-15 16:06:29 *Tunnelblick:
openvpnstart:
/Applications/Tunnelblick.app/Contents/Resources/openvpn/openvpn-2.2.1/openvpn
--cd /Users/user/Library/Application Support/Tunnelblick/Configurations
--daemon --management 127.0.0.1 1337 --config
/Users/user/Library/Application
Support/Tunnelblick/Configurations/NGDDataCentre.ovpn --log
/Library/Application
Support/Tunnelblick/Logs/-SUsers-Spublicity-SLibrary-SApplication Support-STunnelblick-SConfigurations-SNGDDataCentre.ovpn.1_0_0_0_49.1337.openvpn.log
--management-query-passwords --management-hold --script-security 2 --up
/Applications/Tunnelblick.app/Contents/Resources/client.up.tunnelblick.sh -m -w
-d -atDASNGWrdasngw --down
/Applications/Tunnelblick.app/Contents/Resources/client.down.tunnelblick.sh -m
-w -d -atDASNGWrdasngw --up-restart
Its probably something really stupid that I have missed but I am not very experience with Macs as I usually work with Windows. Can any one point me in the right direction?
Many thanks.