cvca / tunnelblick

Automatically exported from code.google.com/p/tunnelblick
0 stars 0 forks source link

cd to '/Library/Application' failed: No such file or directory (errno=2) #218

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
I tried to connect my vpn use GUI and got a error said:  OpenVPN returned with 
status 1, errno = 13: Permission denied

Then I follow the GUI's log to run the command line in Terminal and got error 
message: Wed Nov  7 22:13:20 2012 cd to '/Library/Application' failed: No such 
file or directory (errno=2). The command I run is:

/Applications/Tunnelblick.app/Contents/Resources/openvpn/openvpn-2.2.1/openvpn 
--cd /Library/Application 
Support/Tunnelblick/Users/mingqi/usa.puff.tblk/Contents/Resources --daemon 
--management 127.0.0.1 1337 --config /Library/Application 
Support/Tunnelblick/Users/mingqi/usa.puff.tblk/Contents/Resources/config.ovpn 
--log /Library/Application 
Support/Tunnelblick/Logs/-SUsers-Smingqi-SLibrary-SApplication 
Support-STunnelblick-SConfigurations-Susa.puff.tblk-SContents-SResources-Sconfig
.ovpn.1_0_1_0_305.1337.openvpn.log --management-query-passwords 
--management-hold --script-security 2 --up 
/Applications/Tunnelblick.app/Contents/Resources/client.up.tunnelblick.sh -m -w 
-d -f -atADGNWradsgnw --down 
/Applications/Tunnelblick.app/Contents/Resources/client.down.tunnelblick.sh -m 
-w -d -f -atADGNWradsgnw --up-restart

The full error message from GUI logs is:
-------------------------------

2012-11-07 22:12:03 *Tunnelblick: OS X 10.8.2; Tunnelblick 3.3beta28 (build 
3153)
2012-11-07 22:12:03 *Tunnelblick: Attempting connection with usa.puff using 
shadow copy; Set nameserver = 1; monitoring connection
2012-11-07 22:12:03 *Tunnelblick: openvpnstart start usa.puff.tblk 1337 1 0 1 0 
305 -atADGNWradsgnw 
2012-11-07 22:12:03 *Tunnelblick: openvpnstart starting OpenVPN:
                    *                    /Applications/Tunnelblick.app/Contents/Resources/openvpn/openvpn-2.2.1/openvpn --cd /Library/Application Support/Tunnelblick/Users/mingqi/usa.puff.tblk/Contents/Resources --daemon --management 127.0.0.1 1337 --config /Library/Application Support/Tunnelblick/Users/mingqi/usa.puff.tblk/Contents/Resources/config.ovpn --log /Library/Application Support/Tunnelblick/Logs/-SUsers-Smingqi-SLibrary-SApplication Support-STunnelblick-SConfigurations-Susa.puff.tblk-SContents-SResources-Sconfig.ovpn.1_0_1_0_305.1337.openvpn.log --management-query-passwords --management-hold --script-security 2 --up /Applications/Tunnelblick.app/Contents/Resources/client.up.tunnelblick.sh -m -w -d -f -atADGNWradsgnw --down /Applications/Tunnelblick.app/Contents/Resources/client.down.tunnelblick.sh -m -w -d -f -atADGNWradsgnw --up-restart
2012-11-07 22:12:03 *Tunnelblick:

Could not start OpenVPN (openvpnstart returned with status #236)

Contents of the openvpnstart log:
*Tunnelblick: openvpnstart log:
     DEBUG: Became root
     DEBUG: runAsRoot: Executing /Applications/Tunnelblick.app/Contents/Resources/openvpn/openvpn-2.2.1/openvpn --cd /Library/Application Support/Tunnelblick/Users/mingqi/usa.puff.tblk/Contents/Resources --daemon --management 127.0.0.1 1337 --config /Library/Application Support/Tunnelblick/Users/mingqi/usa.puff.tblk/Contents/Resources/config.ovpn --log /Library/Application Support/Tunnelblick/Logs/-SUsers-Smingqi-SLibrary-SApplication Support-STunnelblick-SConfigurations-Susa.puff.tblk-SContents-SResources-Sconfig.ovpn.1_0_1_0_305.1337.openvpn.log --management-query-passwords --management-hold --script-security 2 --up /Applications/Tunnelblick.app/Contents/Resources/client.up.tunnelblick.sh -m -w -d -f -atADGNWradsgnw --down /Applications/Tunnelblick.app/Contents/Resources/client.down.tunnelblick.sh -m -w -d -f -atADGNWradsgnw --up-restart
     DEBUG: Stopped being root
     DEBUG: stdout: 
     DEBUG: stderr: 
     DEBUG: runAsRoot: Finished execution

     OpenVPN returned with status 1, errno = 13:
          Permission denied

     Command used to start OpenVPN (one argument per displayed line):

          /Applications/Tunnelblick.app/Contents/Resources/openvpn/openvpn-2.2.1/openvpn
          --cd
          /Library/Application Support/Tunnelblick/Users/mingqi/usa.puff.tblk/Contents/Resources
          --daemon
          --management
          127.0.0.1
          1337
          --config
          /Library/Application Support/Tunnelblick/Users/mingqi/usa.puff.tblk/Contents/Resources/config.ovpn
          --log
          /Library/Application Support/Tunnelblick/Logs/-SUsers-Smingqi-SLibrary-SApplication Support-STunnelblick-SConfigurations-Susa.puff.tblk-SContents-SResources-Sconfig.ovpn.1_0_1_0_305.1337.openvpn.log
          --management-query-passwords
          --management-hold
          --script-security
          2
          --up
          /Applications/Tunnelblick.app/Contents/Resources/client.up.tunnelblick.sh -m -w -d -f -atADGNWradsgnw
          --down
          /Applications/Tunnelblick.app/Contents/Resources/client.down.tunnelblick.sh -m -w -d -f -atADGNWradsgnw
          --up-restart

     Contents of the OpenVPN log:

     More details may be in the Console Log's "All Messages"

Original issue reported on code.google.com by mingqi.s...@gmail.com on 7 Nov 2012 at 2:19

GoogleCodeExporter commented 9 years ago
As the error message in the Tunnelblick log says, more information may be in 
Console Log.

The problem you are having when you "follow the GUI's log to run the command 
line in Terminal" is because the command line in the log is for reading, not 
copying. It doesn't show the quotes or backslashes that would be necessary if 
you use Terminal.

"Permission denied" errors usually have to do with the way ownership and/or 
permissions on the contents of a .tblk are set up. (This should be done by 
Tunnelblick when you double-click to install a configuration, but perhaps 
there's a bug.)

Try dragging
     /Library/Application Support/Tunnelblick/Users/mingqi/usa.puff.tblk
to the Trash (you'll need a computer admin's username/password to do so) and 
then trying to reconnect. Tunnelblick will ask for the username/password again 
so it can recreate usa.puff.tblk before reconnecting.

Original comment by jkbull...@gmail.com on 7 Nov 2012 at 3:07

GoogleCodeExporter commented 9 years ago

Original comment by jkbull...@gmail.com on 5 Jan 2013 at 10:38