Temporary directory (--tmp-dir) fails

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

mickaphd

Posts: 1
Joined: Sun Nov 08, 2015 5:11 am

Post by mickaphd » Sun Nov 08, 2015 9:52 pm
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.

micka

James

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

Post by James » Mon Nov 09, 2015 10:23 am
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.

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

andharris

Posts: 1
Joined: Thu May 03, 2018 10:45 pm

Post by andharris » Thu May 03, 2018 10:48 pm
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

James

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

Post by James » Fri May 04, 2018 12:06 pm
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
Cheers,
James
Web: https://www.sparklabs.com
Support: https://www.sparklabs.com/support
Twitter: https://twitter.com/sparklabs
4 posts Page 1 of 1