Page 1 of 1

Temporary directory (--tmp-dir) fails

Posted: Sun Nov 08, 2015 9:52 pm
by mickaphd
Dear all,

I use Viscosity on el Capitan and until yesterday it worked perfectly. I don't know what I did but I can't connect anymore to my providers, even with an other app.
This is the following log that I have :

Nov 08 11:47:39: Viscosity Mac 1.5.11 (1314)
Nov 08 11:47:39: Viscosity OpenVPN Engine Started
Nov 08 11:47:39: Running on Mac OS X 10.11.1
Nov 08 11:47:39: ---------
Nov 08 11:47:39: Vérification du statut d'accessibilité de la connexion ...
Nov 08 11:47:40: La connexion est accessible. Tentative de démarrage de la connexion.
Nov 08 11:47:40: Options error: Temporary directory (--tmp-dir) fails with '/tmp': No such file or directory
Nov 08 11:47:40: Options error: Please correct these errors.

It seems that there is a "/tmp" file problem but I don't know what to do to repair or restore this file.
Do you have any idea?

Thanks a lot for your help.


Re: Temporary directory (--tmp-dir) fails

Posted: Mon Nov 09, 2015 10:23 am
by James
Hi micka,

Try editing your connection in Viscosity, clicking on the Advanced tab, and removing the line with the "tmp-dir" command from the advanced commands area. Click Save and try connecting.


Re: Temporary directory (--tmp-dir) fails

Posted: Thu May 03, 2018 10:48 pm
by andharris
Seeing this error and do not have tmp-dir in my advanced config.

2018-05-03 08:43:32: Viscosity Mac 1.7.9 (1450)
2018-05-03 08:43:32: Viscosity OpenVPN Engine Started
2018-05-03 08:43:32: Running on macOS 10.13.4
2018-05-03 08:43:32: ---------
2018-05-03 08:43:32: State changed to Connecting
2018-05-03 08:43:32: Checking reachability status of connection...
2018-05-03 08:43:32: Connection is reachable. Starting connection attempt.
2018-05-03 08:43:32: Note: option tun-ipv6 is ignored because modern operating systems do not need special IPv6 tun handling anymore.
2018-05-03 08:43:32: Options error: Temporary directory (--tmp-dir) fails with '/tmp': Permission denied (errno=13)
2018-05-03 08:43:32: Options error: Please correct these errors.
2018-05-03 08:43:33: The OpenVPN subsystem could not be started.
2018-05-03 08:43:33: State changed to Disconnected

Re: Temporary directory (--tmp-dir) fails

Posted: Fri May 04, 2018 12:06 pm
by James
Hi andharris,

The error likely means that the permissions on your computer’s global temporary directory are incorrect. Please try running the following commands from the Terminal (/Applications/Utilities/Terminal) to set the directory to the correct permissions and see if it resolves the issue:
Code: Select all
sudo chown root:wheel /private/tmp
sudo chmod 1777 /private/tmp