Re: Unable to connect - Error Status 1

225 views
Skip to first unread message

jkbull...gmail.com

unread,
Jun 15, 2012, 11:34:01 AM6/15/12
to tunnelbli...@googlegroups.com
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:
  1. You can probably set it to "verb 3", which is usually high enough to show what's wrong if it doesn't connect.
  2. 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.

jkbull...gmail.com

unread,
Jun 15, 2012, 11:38:39 AM6/15/12
to tunnelbli...@googlegroups.com
To clarify: In the VPN Details… window, you need to click the Settings tab and change "Set DNS/WINS" to "Do not set nameserver" if you want to use your up/down scripts.

If "Set DNS/WINS" is set to any other setting, standard Tunnelblick scripts will be used instead of your up/down scripts. As I said before, the default, "Set nameserver", works best for most people.

Becky

unread,
Jun 15, 2012, 11:51:16 AM6/15/12
to tunnelbli...@googlegroups.com
Thank you so much. I will try that out first thing on Monday morning. I had a quick little look, but I first have to figure out how to save a new config file created from scratch without it being forced to adopt the .txt file extension!

I will let you know how I get on :-)

Jonathan K. Bullard

unread,
Jun 15, 2012, 12:20:10 PM6/15/12
to tunnelbli...@googlegroups.com
That's easy. The TextEdit Save dialog has a checkbox to "Use .txt extension if none provided" -- just un-check that and use the .conf or .ovpn extension in the name you provide.

On Fri, Jun 15, 2012 at 11:51 AM, Becky <becky...@hayley-group.com> wrote:
Thank you so much. I will try that out first thing on Monday morning. I had a quick little look, but I first have to figure out how to save a new config file created from scratch without it being forced to adopt the .txt file extension!

I will let you know how I get on :-)

--
You received this message because you are subscribed to the Google Groups "tunnelblick-discuss" group.
To view this discussion on the web visit https://groups.google.com/d/msg/tunnelblick-discuss/-/oEi88M_tS5IJ.

To post to this group, send email to tunnelbli...@googlegroups.com.
To unsubscribe from this group, send email to tunnelblick-dis...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/tunnelblick-discuss?hl=en.

Reply all
Reply to author
Forward
0 new messages