Connection problems

Got a problem with Viscosity or need help? Ask here!

matthiasg

Posts: 1
Joined: Wed Sep 28, 2016 4:21 pm

Post by matthiasg » Wed Sep 28, 2016 4:27 pm
Hi all,

I'm trying to get Viscosity running, but i an error message which i need help to understand what it means. When I try to connect I get the following in the logs:
Code: Select all
Sep 28 08:24:29: Viscosity Mac 1.6.6 (1358)
Sep 28 08:24:29: Viscosity OpenVPN Engine Started
Sep 28 08:24:29: Running on Mac OS X 10.12
Sep 28 08:24:29: ---------
Sep 28 08:24:29: Checking reachability status of connection...
Sep 28 08:24:29: Connection is reachable. Starting connection attempt.
Sep 28 08:24:30: Options error: Unrecognized option or missing parameter(s) in /var/folders/zz/zyxvpxvq6csfxvn_n0000000000000/T/connection.OhpvL1/config.conf:14:  (2.3.12)
My config looks like this:
Code: Select all
#client
tls-client
dev tun
#proto tcp
proto tcp-client
remote vpn.xxx.com 1194
resolv-retry infinite
nobind
persist-key
persist-tun
auth-user-pass
reneg-sec 0
verb 4
auth SHA1
cipher AES-128-CBC
server 192.168.10.0 255.255.255.0
redirect-gateway
<ca>
-----BEGIN CERTIFICATE-----

-----END CERTIFICATE-----
</ca>
Been trying to get this config working for days without any luck. What am I doing wrong?

James

User avatar
Posts: 2313
Joined: Thu Sep 04, 2008 9:27 pm

Post by James » Thu Sep 29, 2016 8:55 am
Hi matthiasg,

Normally OpenVPN will list the invalid command between the "config.conf:14:" and "(2.3.12)" text. If this is blank it probably means you've got a funky hidden unicode character in there.

The number 14 indicates the line number in the configuration file. Try finding Viscosity's copy of the configuration file for your connection, open it with a text editor, and take a look at line 14. Try deleting any hidden spaces that could be the problem, save the changes, restart Viscosity, and try again. Your connection’s raw configuration file can be found at:
Your Home Folder/Library/Application Support/Viscosity/OpenVPN/#/config.conf

The Library folder is hidden under OS X. To get to it you'll need to open the "Go" menu in the Finder while holding down the Option key on your keyboard and click the Library item. Your Library folder will open.

Alternatively you may like to try opening the configuration file you're importing in a text editor and see if you can find the problem there. The app TextWrangler is helpful for that: it's Text->Zap Gremlins option makes it easy to remove hidden characters that shouldn't be there.

Cheers,
James
Web: https://www.sparklabs.com
Support: https://www.sparklabs.com/support
Twitter: https://twitter.com/sparklabs
2 posts Page 1 of 1