Can not install Tunnelblick in my MacOs High Sierra - "The installation or repair took too long or failed. Try again?"

1,864 views
Skip to first unread message

Chamini Kumara

unread,
Jul 27, 2018, 2:26:18 AM7/27/18
to tunnelbli...@googlegroups.com
Hi,

I am new to Mac OS
I want to install Tunnelblick but it says  - "The installation or repair took too long or failed. Try again?"

What can be the error?

follows the console log:

Jul 27 16:21:39 ChaminiKumara Tunnelblick[21359]: Tunnelblick: OS X 10.13.4; Tunnelblick 3.7.5a (build 5011)
Jul 27 16:21:40 ChaminiKumara Tunnelblick[21359]: Tunnelblick cannot run when it is on /Volumes because the volume has the MNT_NOSUID statfs flag set.
Jul 27 16:21:47 ChaminiKumara com.apple.xpc.launchd[1] (com.apple.imfoundation.IMRemoteURLConnectionAgent): Unknown key for integer: _DirtyJetsamMemoryLimit
Jul 27 16:21:49 ChaminiKumara Tunnelblick[21359]: Tunnelblick needs to:
 • Be installed in /Applications as Tunnelblick
 • Change ownership and permissions of the program to secure it
 • Secure configurations
Jul 27 16:21:49 ChaminiKumara Tunnelblick[21359]: Beginning installation or repair
Jul 27 16:21:49 ChaminiKumara com.apple.xpc.launchd[1] (com.edb.launchd.postgresql-9.4[21365]): Service exited with abnormal code: 1
Jul 27 16:21:49 ChaminiKumara com.apple.xpc.launchd[1] (com.edb.launchd.postgresql-9.4): Service only ran for 0 seconds. Pushing respawn out by 10 seconds.
Jul 27 16:21:49 ChaminiKumara Tunnelblick[21359]: Unable to create flag file /tmp/tunnelblick-authorized-running
Error was 'Permission denied'
Jul 27 16:21:49 ChaminiKumara Tunnelblick[21359]: Failed to execute /Volumes/Tunnelblick/Tunnelblick.app/Contents/Resources/installer: (
   23
)
Jul 27 16:21:53 ChaminiKumara com.apple.xpc.launchd[1] (com.apple.imfoundation.IMRemoteURLConnectionAgent): Unknown key for integer: _DirtyJetsamMemoryLimit
Jul 27 16:21:56 ChaminiKumara com.apple.xpc.launchd[1] (com.apple.quicklook[21368]): Endpoint has been activated through legacy launch(3) APIs. Please switch to XPC or bootstrap_check_in(): com.apple.quicklook
Jul 27 16:21:59 ChaminiKumara com.apple.xpc.launchd[1] (com.edb.launchd.postgresql-9.4[21369]): Service exited with abnormal code: 1
Jul 27 16:21:59 ChaminiKumara com.apple.xpc.launchd[1] (com.edb.launchd.postgresql-9.4): Service only ran for 0 seconds. Pushing respawn out by 10 seconds.
Jul 27 16:22:00 ChaminiKumara Tunnelblick[21359]: Retrying execution of installer
Jul 27 16:22:00 ChaminiKumara Tunnelblick[21359]: Unable to create flag file /tmp/tunnelblick-authorized-running
Error was 'Permission denied'
Jul 27 16:22:00 ChaminiKumara Tunnelblick[21359]: Failed to execute /Volumes/Tunnelblick/Tunnelblick.app/Contents/Resources/installer: (
   22
)
Jul 27 16:22:01 ChaminiKumara Tunnelblick[21359]: Retrying execution of installer
Jul 27 16:22:01 ChaminiKumara Tunnelblick[21359]: Unable to create flag file /tmp/tunnelblick-authorized-running
Error was 'Permission denied'
Jul 27 16:22:01 ChaminiKumara Tunnelblick[21359]: Failed to execute /Volumes/Tunnelblick/Tunnelblick.app/Contents/Resources/installer: (
   22
)
Jul 27 16:22:02 ChaminiKumara Tunnelblick[21359]: Retrying execution of installer
Jul 27 16:22:02 ChaminiKumara Tunnelblick[21359]: Unable to create flag file /tmp/tunnelblick-authorized-running
Error was 'Permission denied'
Jul 27 16:22:02 ChaminiKumara Tunnelblick[21359]: Failed to execute /Volumes/Tunnelblick/Tunnelblick.app/Contents/Resources/installer: (
   22
)
Jul 27 16:22:02 ChaminiKumara Tunnelblick[21359]: Installation or repair failed; Log:
(none)
Jul 27 16:22:02 ChaminiKumara Tunnelblick[21359]: applicationShouldTerminate: termination because of Quit; delayed until 'shutdownTunnelblick' finishes
Jul 27 16:22:03 ChaminiKumara Tunnelblick[21359]: Need to replace and/or reload 'tunnelblickd':
   tunnelblickdHashOK   = NO
   launchctlPlistHashOK = NO
   tunnelblickdPlistOK  = NO
   socketOK             = NO
Jul 27 16:22:03 ChaminiKumara Tunnelblick[21359]: Not unloading kexts and not deleting logs because tunnelblickd is not loaded.
Jul 27 16:22:03 ChaminiKumara Tunnelblick[21359]: Finished shutting down Tunnelblick; allowing termination

Please help...

Thanks in advance,
Chamini

Tunnelblick developer

unread,
Jul 27, 2018, 7:26:25 AM7/27/18
to tunnelblick-discuss
The problem is shown here:

Jul 27 16:21:49 ChaminiKumara Tunnelblick[21359]: Unable to create flag file /tmp/tunnelblick-authorized-running
Error was 'Permission denied'

That just shouldn't happen. There may be something wrong with the ownership or permissions of the /tmp folder or of the /private/tmp folder (On macOS, /tmp is a symlink to /private/tmp.)

On an unmodified 10.13.6 system, I get the following:

$ ls -l / | grep tmp

lrwxr-xr-x@  1 root  wheel    11 Jul 19  2017 tmp -> private/tmp


$ ls -l /private | grep tmp

drwxrwxrwt   22 root  wheel   748 Jul 27 04:36 tmp


Is yours say the same?

Chamini Kumara

unread,
Jul 27, 2018, 8:21:19 AM7/27/18
to tunnelbli...@googlegroups.com

Hi,


Mac os version 10.13.4


$ ls -l / | grep tmp    returns following

lrwxr-xr-x@  1 root  wheel    11 28 Mar 20:53 tmp -> private/tmp


$ ls -l /private | grep tmp.    returns following

drwxr-xr-x  17 root  wheel   544 27 Jul 22:14 tmp


are these the normal settings?

Tunnelblick developer

unread,
Jul 27, 2018, 9:03:50 AM7/27/18
to tunnelblick-discuss
No those settings are not normal, and that's the problem. This:

$ ls -l /private | grep tmp.    returns following

drwxr-xr-x  17 root  wheel   544 27 Jul 22:14 tmp


means that only "root" is allowed to write to the /private/tmp folder. (The missing "w"s and "t" in "drwxr-xr-x" versus "drwxrwxrwt" mean that others cannot write to the folder.)

The most likely cause of such problems is a program installer that has an error. (Tunnelblick does not use an installer but many programs do.) See System Folder Security for more info. (Tunnelblick detects ownership/permissions problems with some system folders, but not /tmp or /private/tmp.)

Fixing this permissions error should allow Tunnelblick to install, but there is no way to know if the bad installer did any other damage.

You can fix the permissions with

sudo chmod 1777 /private/tmp

You will be asked for your login password; type it in and press the enter/return key. Note that as you type it in it will not echo (not even asterisks).

Then verify that the listing shows correct permissions:

$ ls -l /private | grep tmp

drwxrwxrwt   22 root  wheel   748 Jul 27 04:36 tmp


Please report back here if this solves the problem. (As I wrote, there may have been more damage done by the faulty installer.)

And if you can list the programs you have installed, that may help us determine which faulty installer caused the problem, and the distributors of the faulty installer could be notified and fix the problem.

Good luck!

Chamini Kumara

unread,
Jul 27, 2018, 9:39:48 AM7/27/18
to tunnelblick-discuss
Hi,

God bless you...
It did work

I installed following
Home-brew, ruby python, subversion, maven, docker, Postgresql 9.4.
Skype, chrome, Firefox like tools.
I had same issue when try to install Postgres, used docker to solve that.

Thanks,
Chamini

Chamini Kumara

unread,
Jul 27, 2018, 10:13:20 PM7/27/18
to tunnelblick-discuss
Also I installed dbeaver also

--
You received this message because you are subscribed to the Google Groups "tunnelblick-discuss" group.
To unsubscribe from this group and stop receiving emails from it, send an email to tunnelblick-dis...@googlegroups.com.
Visit this group at https://groups.google.com/group/tunnelblick-discuss.
For more options, visit https://groups.google.com/d/optout.

Chamini Kumara

unread,
Jul 29, 2018, 8:40:06 PM7/29/18
to tunnelblick-discuss
Hi again,

It really messed with permissions to my root directories.
Please let me know if you find out the bad installer.
my guess is Postgres. because after I installed Postgres, Tunnelblick was not responding then I tried re-installing . at this point I contacted you.
I downloaded from official website.


hope this is of use.
Regards,
Chamini 

Tunnelblick developer

unread,
Jul 30, 2018, 7:03:22 AM7/30/18
to tunnelblick-discuss
I don't really have time myself to track down bugs in other programs; there's plenty to do in Tunnelblick : )

But narrowing it down to a single program to test would make it pretty easy. Can you provide a link to the Postgres download and a checksum of the file you downloaded ( shasum -a 256 path-to-the-download)? There are two sites that may be considered "official" (https://www.postgresql.org and https://github.com/postgres/postgres), and several versions that can be downloaded.

idut...@gmail.com

unread,
Jul 1, 2019, 6:34:40 AM7/1/19
to tunnelblick-discuss
Hi,

I am having an issue to install Tunnelblick on my system as well.
Dit the same procedure as below still the error message:


The installation or repair took too long or failed. Try again


Can somebody assist me please

Tunnelblick developer

unread,
Jul 1, 2019, 6:39:30 AM7/1/19
to tunnelblick-discuss
I'm sorry Tunnelblick isn't installing properly for you.

What version of macOS are you using? What version of Tunnelblick are you trying to install?

Please post entries from the Console Log at the time of the failure.


On Monday, July 1, 2019 at 6:34:40 AM UTC-4, <> wrote:
Hi,

I am having an issue to install Tunnelblick on my system as well.
Dit the same procedure as below still the error message:

The installation or repair took too long or failed. Try again


Can somebody assist me pleasei

Tunnelblick developer

unread,
Jul 1, 2019, 8:01:05 AM7/1/19
to tunnelblick-discuss
In a private email, idutchy74 wrote:

I tried to use cortina as new macOS

Assuming you mean "Catalina" (macOS 10.15) and are using a Catalina beta, please see Tunnelblick and macOS Catalina.

Tunnelblick developer

unread,
Jul 6, 2019, 10:49:49 PM7/6/19
to tunnelblick-discuss

I have just release Tunnelblick 3.8.0beta04, which fixes a couple of problems that could make the installer fail.


Please try it.


If installs still fail for anyone, please post the contents of /tmp/tunnelblick-installer-log.txt log.

jw9...@gmail.com

unread,
Jul 9, 2019, 5:12:08 AM7/9/19
to tunnelblick-discuss
Trying to run Tunnelblick on High Sierra.  It used to work fine, but suddenly stopped, and I removed it to re-install.  Have tried several versions, the latest your 3.8.0beta04.  Here is my /tmp/tunnelblick-installer-log.txt.

Tunnelblick installer started 2019-07-09 08:45:38.758182. 3 arguments: 0x0001
     /Volumes/Mini/Users/james/Library/Application Support/Tunnelblick/Configurations/China - Hong Kong.tblk
     /private/var/folders/jt/qjfywd2n7s913kjf08h3jxv80000gn/T/Tunnelblick-8jvyL5/China - Hong Kong.tblk
getuid() = 501; getgid() = 20; geteuid() = 0; getegid() = 20
Apparent symlink attack detected: Symlink is at /Volumes/Mini, full path being tested is /Volumes/Mini/Users/james/Library/Application Support/Tunnelblick/Configurations

I've had a look at the Configurations directory with ls -l in the parent, and the result is drwxr-x---   2 james  admin   68 Jul  8 22:17 Configurations

I could see no reference to  any symlink.

Tunnelblick developer

unread,
Jul 9, 2019, 5:32:36 AM7/9/19
to tunnelblick-discuss
The message says the symlink is at /Volumes/Mini. That means that /Volumes/Mini is itself a symlink.

But I'm puzzled by why Tunnelblick is accessing /Volumes/Mini at all -- is your home folder somewhere other than the volume you boot from? That's allowed, but there can't be any symlinks in the path to it.

Note: you apparently installed Tunnelblick itself without a problem, and are trying to install a configuration, right?

James Wilde

unread,
Jul 9, 2019, 5:38:53 AM7/9/19
to tunnelbli...@googlegroups.com

That's interesting as Mini is the internal disk in my Mac Mini. I'll take a look at that, but if you have any suggestions, feel free.

Yes, installing Tunnelblick worked dine. It is tryinf to install configuration files which is the problem.

C6
Sent from my Huawei phone
--
You received this message because you are subscribed to a topic in the Google Groups "tunnelblick-discuss" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/tunnelblick-discuss/Z1TcCiM6Wtw/unsubscribe.
To unsubscribe from this group and all its topics, send an email to tunnelblick-dis...@googlegroups.com.

jw9...@gmail.com

unread,
Jul 9, 2019, 9:32:02 AM7/9/19
to tunnelblick-discuss
Further on this.  I did ls -l on /Volumes, and right enough, this is what I get:

lrwxr-xr-x   1 root   wheel     1 Jun 28 12:33 Mini -> /


Now I'm wondering how to change that without losing contact with my computer!


On Tuesday, 9 July 2019 11:38:53 UTC+2, James Wilde wrote:

That's interesting as Mini is the internal disk in my Mac Mini. I'll take a look at that, but if you have any suggestions, feel free.

Yes, installing Tunnelblick worked dine. It is tryinf to install configuration files which is the problem.

To unsubscribe from this group and all its topics, send an email to tunnelblick-discuss+unsub...@googlegroups.com.

Tunnelblick developer

unread,
Jul 9, 2019, 9:45:29 AM7/9/19
to tunnelblick-discuss
I think the real question is why is your home directory set up to be on /Volumes/Mini, instead of being set up to be on / directly.

I'm not sure what you mean by "losing contact with my computer"? Are you accessing it remotely or something?

jw9...@gmail.com

unread,
Jul 9, 2019, 9:57:52 AM7/9/19
to tunnelblick-discuss
Sorry for my non-technical explanation.  What I meant was that, if I merely remove this link from /Volumes, it might do something to my computer which would mean that I couldn't sign in or use it in any way.

I'll remove the link - don't know how it was created - and see what happens.

Tunnelblick developer

unread,
Jul 9, 2019, 10:14:42 AM7/9/19
to tunnelblick-discuss
Maybe too late, but you might not want to remove the link. It is possible you won't be able to log in. If you have an extra admin user account set up, you can log into that one and restore the link.

You need to find out how/why your home directory is set to use /Volumes/Mini instead of /. And how to undo that.

jw9...@gmail.com

unread,
Jul 9, 2019, 10:31:20 AM7/9/19
to tunnelblick-discuss
OK Thanks for your patience.  I've checked with my wife's Mac, and her home disk in /Volumes is a symlink.  I've taken away the link (or rather renamed it to iniM) and relocated my home directory to /Users/James.  On restarting, the home directory has stayed the same as that to which I changed it, /Users/james, and the symlink to my hard disk is back as /Volumes/Mini > /.  The name I changed it to is gone.  Now I'll try and reinstall the config files, and see if it goes better.

1 minute later:  Woohoo!  It worked!

I have no idea how or when my home directory was changed to /Volumes/Mini/Users/James, but changing it back to /Users/James has clearly fixed the problem.

Thanks for your help.
Reply all
Reply to author
Forward
0 new messages