Opened 11 years ago

Last modified 11 years ago

#898 closed defect (Fixed)

Unified installer for MacOSX fails

Reported by: rpgoldman Owned by: phobos
Priority: Low Milestone:
Component: Applications/Tor bundles/installation Version: 0.2.0.32
Severity: Keywords:
Cc: rpgoldman Actual Points:
Parent ID: Points:
Reviewer: Sponsor:

Description

The tor unified installer for MacOSX fails for me, with an error in the postflight script.

Looking at the install.log file, I see the following:

Dec 31 16:56:14 rpgoldman-2 Installer[31191]: run postflight script for Tor
Dec 31 16:56:14 rpgoldman-2 runner[31198]: postflight[31209]: The account _tor already exists.
Dec 31 16:56:14 rpgoldman-2 runner[31198]: postflight[31209]:
Dec 31 16:56:15 rpgoldman-2 runner[31198]: postflight[31209]: open: No such file or directory.
Dec 31 16:56:15 rpgoldman-2 runner[31198]: postflight[31209]:
Dec 31 16:56:15 rpgoldman-2 Installer[31191]: Install failed: The following install step failed: run postflight script

for Tor. Contact the software manufacturer for assistance.

Dec 31 16:56:16 rpgoldman-2 Installer[31191]: IFDInstallController 85D040 state = 7
Dec 31 16:56:16 rpgoldman-2 Installer[31191]: Displaying 'Install Failed' UI.
Dec 31 16:56:16 rpgoldman-2 Installer[31191]: 'Install Failed' UI displayed message:'The following install step

failed: run postflight script for Tor. Contact the software manufacturer for assistance.'.

I originally had this postflight script problem installing the Vidalia bundle, and only later realized that it was a

problem with tor, when I tried to install the standalone tor installer. I reported my earlier experiences on the
Vidalia trac, at http://trac.vidalia-project.net/ticket/399, where it didn't attract any interest.

[Automatically added by flyspray2trac: Operating System: OSX 10.5 Leopard]

Child Tickets

Attachments (1)

Picture 1.png (114.9 KB) - added by amit 10 years ago.
Same error: just tried Mac OSX installer from download page (0.2.0.35-0.1.14-universal).

Download all attachments as: .zip

Change History (13)

comment:1 Changed 11 years ago by phobos

This isn't a big deal, it means it couldn't install torbutton into firefox for unknown reasons.

On your system, does the Firefox browser exist in /Applications/Firefox.app/ ?

The code snippet from TorPostflight is:
su $USER open -a /Applications/Firefox.app /Library/Torbutton/torbutton-$TORBUTTON_VERSION.xpi

Where $USER is your user account and $TORBUTTON_VERSION should be 1.2.0-fx.

comment:2 Changed 11 years ago by rpgoldman

Yes, my browser is in the standard location:

[rpgoldman-2:~/emacs-packages/org] rpg% ls /Library/Torbutton/
Torbutton-LICENSE.txt torbutton-1.2.0-fx.xpi

Furthermore, when I try that command at the shell (but without the su), everything is hunky dory:

[rpgoldman-2:~/emacs-packages/org] rpg% open -a /Applications/Firefox.app/ /Library/Torbutton/torbutton-1.2.0-fx.xpi

Is it possible that the su is the problem? With su, this doesn't work for me:

[rpgoldman-2:~/emacs-packages/org] rpg% su rpg open -a /Applications/Firefox.app/ /Library/Torbutton/torbutton-1.2.0-fx.xpi
Password:
open: No such file or directory.

I tried supplying the full pathname, and didn't do much better:

[rpgoldman-2:~/emacs-packages/org] rpg% su rpg /usr/bin/open -a /Applications/Firefox.app/ /Library/Torbutton/torbutton-1.2.0-fx.xpi
Password:
????^B^G^C^P??^L^R: Command not found.
Unmatched `.

su - rpg fails, also.

However, when I give the -c and wrap quotes around the command, it works fine:

[rpgoldman-2:~/emacs-packages/org] rpg% su rpg -c '/usr/bin/open -a /Applications/Firefox.app/ /Library/Torbutton/torbutton-1.2.0-fx.xpi'
Password:
[rpgoldman-2:~/emacs-packages/org] rpg%

Does this help?

comment:3 Changed 11 years ago by rpgoldman

For that matter, sudo -u rpg with that command (and no quotation) works, too. Any reason to use su instead of sudo?

comment:4 Changed 11 years ago by rpgoldman

BTW, any workaround? Seems like when this goes south the whole installer aborts. If there's anything that would allow this postflight script to run to completion, I'd be glad to know what it is.

comment:5 Changed 11 years ago by phobos

I know you get a "Install failed" message, but I bet everything installed but torbutton into Firefox. The automagic
torbutton install in firefox is the last thing the installer has to do, and it runs into issues if the $USER account
isn't listed as a system administrator. Sometimes it runs into issues if it is.

As for su vs. sudo, the problem is the installer runs as root. So the su $USER open is to force firefox to run as
$USER, rather than as root. I could try specifying /usr/bin/open rather than trust the environment path to find "open".

Alternatively, we don't install torbutton for the user. Rather we tell them torbutton is in /library/torbutton and to open up firefox and install it themselves.

comment:6 Changed 11 years ago by rpgoldman

Re su versus sudo, when I did sudo -u $USER, that worked for me.

I'm a little confused that the su $USER -c '<command>' worked, since there's no discussion of a -c option to su in the man page for me on OSX. But the -c option was necessary for me when I used su on linux, to handle this kind of problem. Any guess why that fixed it?

comment:7 Changed 11 years ago by rpgoldman

OK, I have manually installed the torbutton and now I am able to make vidalia start up tor and privoxy. Thank you very much.

comment:8 Changed 11 years ago by phobos

Is your user account, rpg, an admin on the machine?

comment:9 Changed 11 years ago by rpgoldman

Yes, it is.

comment:10 Changed 10 years ago by phobos

This should be fixed in the current 0.2.1.15-rc installer, Can you confirm?

Changed 10 years ago by amit

Attachment: Picture 1.png added

Same error: just tried Mac OSX installer from download page (0.2.0.35-0.1.14-universal).

comment:11 Changed 10 years ago by amit

I just tried the 0.2.1.16 installer. I still get the same error as I got for 0.2.0.35 (see attachment)

comment:12 Changed 10 years ago by phobos

flyspray2trac: bug closed.
This is fixed in the bundles that include vidalia 0.1.15

Note: See TracTickets for help on using tickets.