Viscosity refuses to connect all of a sudden

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

paulmuller

Posts: 8
Joined: Tue Nov 25, 2008 6:35 pm

Post by paulmuller » Mon Mar 30, 2009 9:57 am
A few days back Viscosity stopped establishing connections to a network it's been connecting to for months. So started good old Tunnelblick for the first time in a long time. They both use the same configuration. Tunnelblick still connects to the VPN server as it always had.

Viscosity asks for username/password, I enter the correct credentials, then nothing happens. The lock in Leopard's menu bar changes from orange back to red. That's it.

Here's an excerpt from the console. I don't know which messages are relevant. I replaced the real IPs with <someIP> and <IP1>:

30.03.09 00:34:34 openvpn[27971] OpenVPN 2.0.9 i386-apple-darwin9.0.0 [SSL] [LZO] built on Oct 29 2007
30.03.09 00:34:36 /Applications/Utilities/Viscosity.app/Contents/MacOS/Viscosity[22316] -[Keychain internetServer:forAccount:port:path:inSecurityDomain:protocol:auth:]:1670: Unable to find internet keychain item, error errSecItemNotFound (#-25300) - The item cannot be found.

30.03.09 00:34:44 openvpn[27972] IMPORTANT: OpenVPN's default port number is now 1194, based on an official port number assignment by IANA. OpenVPN 2.0-beta16 and earlier used 5000 as the default port.
30.03.09 00:34:44 openvpn[27972] LZO compression initialized
30.03.09 00:34:44 openvpn[27972] UDPv4 link local: [undef]
30.03.09 00:34:44 openvpn[27972] UDPv4 link remote: <someIP>:1194
30.03.09 00:34:44 openvpn[27972] [<vpn_entry_point>] Peer Connection Initiated with <someIP>:1194
30.03.09 00:34:45 openvpn[27972] Options error: Unrecognized option or missing parameter(s) in [PUSH-OPTIONS]:10: topology (2.0.9)
30.03.09 00:34:45 openvpn[27972] gw 192.168.1.1
30.03.09 00:34:45 openvpn[27972] TUN/TAP device /dev/tun0 opened
30.03.09 00:34:45 openvpn[27972] /sbin/ifconfig tun0 delete
30.03.09 00:34:45 openvpn[27972] NOTE: Tried to delete pre-existing tun/tap instance -- No Problem if failure
30.03.09 00:34:45 openvpn[27972] /sbin/ifconfig tun0 <IP1> <IP1 + 1> mtu 1500 netmask 255.255.255.255 up
30.03.09 00:34:45 openvpn[27972] /Applications/Utilities/Viscosity.app/Contents/Resources/dnsup.py tun0 1500 1542 <IP1> <IP1 + 1> init
30.03.09 00:34:46 openvpn[27972] script failed: shell command exited with error status: 1
30.03.09 00:34:46 openvpn[27972] Exiting

Hope someone can help.

-Paul

James

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

Post by James » Tue Mar 31, 2009 2:39 am
Hi Paul,

It looks like the connecting is failing as Viscosity is unable to set the DNS settings (its script is failing). It's possible that something has caused the permissions on this script to change, and so it is no longer able to execute. Try quitting and trashing your copy of Viscosity (your connection data is safe), and reinstalling the latest version.

Alternatively, if you don't use DNS support you can turn it off under the General tab (while editing your connection).

Cheers,
James
Web: https://www.sparklabs.com
Support: https://www.sparklabs.com/support
Twitter: https://twitter.com/sparklabs

paulmuller

Posts: 8
Joined: Tue Nov 25, 2008 6:35 pm

Post by paulmuller » Tue Mar 31, 2009 6:03 am
James, you were right about the cause of the problem. Switching off DNS support does indeed allow me to connect again. Trashing and reinstalling Viscosity, however, does not solve the problem.
Any other ideas? Could I verify/fix the permissions on the script myself?

-Paul

paulmuller

Posts: 8
Joined: Tue Nov 25, 2008 6:35 pm

Post by paulmuller » Tue Mar 31, 2009 7:36 am
Oohh, looking at the package contents of Viscosity.app I just had an idea. Viscosity uses Python, right. I think I recently messed up the Python installation on my Leopard system... I'll go check.

-Paul

paulmuller

Posts: 8
Joined: Tue Nov 25, 2008 6:35 pm

Post by paulmuller » Tue Mar 31, 2009 8:29 am
Indeed, the crippled Python installation was the problem. So, I reinstalled Python 2.6 using MacPorts:
Code: Select all
sudo port install python26
sudo port install python_select
sudo python_select python26
Then Python complained that
Code: Select all
python: execv: /Library/Frameworks/Python.framework/Versions/2.6/Resources/Python.app/Contents/MacOS/Python: No such file or directory
since the Python framework is installed in /System/Library/Frameworks/Python.framework/ instead of /Library/Frameworks/Python.framework/. Why is it so? No idea. So I created a symlink:
Code: Select all
cd /Library/Frameworks
sudo ln -s /System/Library/Frameworks/Python.framework Python.framework
Hope that may help someone out there.

-Paul
5 posts Page 1 of 1