dullangle / simbl

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

posix_spawn("/Library/ScriptingAdditions/SIMBL.osax/Contents/Resources/SIMBL Agent.app/Contents/MacOS/SIMBL Agent", ...): Permission denied #2

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
After installing SIMBL-0.9.4b.pkg, my console logs this in a loop:

9/9/09 8:56:20 AM   com.apple.launchd.peruser.502[165]
(net.culater.SIMBL.Agent) Throttling respawn: Will start in 10 seconds
9/9/09 8:56:30 AM   com.apple.launchd.peruser.502[165]
(net.culater.SIMBL.Agent[404])
posix_spawn("/Library/ScriptingAdditions/SIMBL.osax/Contents/Resources/SIMBL 
Agent.app/Contents/MacOS/SIMBL
Agent", ...): Permission denied
9/9/09 8:56:30 AM   com.apple.launchd.peruser.502[165]
(net.culater.SIMBL.Agent[404]) Exited with exit code: 1
9/9/09 8:56:30 AM   com.apple.launchd.peruser.502[165]
(net.culater.SIMBL.Agent) Throttling respawn: Will start in 10 seconds
9/9/09 8:56:40 AM   com.apple.launchd.peruser.502[165]
(net.culater.SIMBL.Agent[405])
posix_spawn("/Library/ScriptingAdditions/SIMBL.osax/Contents/Resources/SIMBL 
Agent.app/Contents/MacOS/SIMBL
Agent", ...): Permission denied
9/9/09 8:56:40 AM   com.apple.launchd.peruser.502[165]
(net.culater.SIMBL.Agent[405]) Exited with exit code: 1
9/9/09 8:56:40 AM   com.apple.launchd.peruser.502[165]
(net.culater.SIMBL.Agent) Throttling respawn: Will start in 10 seconds

Original issue reported on code.google.com by jma...@gmail.com on 9 Sep 2009 at 12:58

GoogleCodeExporter commented 8 years ago
I should also note the one, and only, plugin i'm using -
http://blog.fallingsnow.net/2009/08/28/fixing-colors-in-terminal-app-on-10-6/

Original comment by jma...@gmail.com on 9 Sep 2009 at 12:59

GoogleCodeExporter commented 8 years ago
Can you run the following command and attach the output:

sudo find "/Library/ScriptingAdditions/SIMBL.osax" -ls

Original comment by ms...@gmail.com on 9 Sep 2009 at 3:50

GoogleCodeExporter commented 8 years ago
I'm also seeing this bug, with a different set of plugins -- not including the 
one
jmazzi noted yesterday. I've got iPlace.bundle, KeywordManagerPlugin.bundle, and
TastyAppsAVPlugin.bundle -- although I didn't even realize I had it.

Here's my output for you:

1269179    0 drwxrwxr-x   3 root     admin         102 Sep  6 14:42
/Library/ScriptingAdditions/SIMBL.osax
1269180    0 drwxrwxr-x   4 root     admin         170 Sep  6 14:42
/Library/ScriptingAdditions/SIMBL.osax/Contents
1269181    4 -rw-rw-r--   1 root     admin        1212 Sep  6 14:42
/Library/ScriptingAdditions/SIMBL.osax/Contents/Info.plist
1269182    0 drwxrwxr-x   2 root     admin         102 Sep  6 14:42
/Library/ScriptingAdditions/SIMBL.osax/Contents/MacOS
1269183  120 -rwxrwxr-x   1 root     admin      121840 Sep  6 14:42
/Library/ScriptingAdditions/SIMBL.osax/Contents/MacOS/SIMBL
1269184    0 drwxrwxr-x   3 root     admin         170 Sep  6 14:42
/Library/ScriptingAdditions/SIMBL.osax/Contents/Resources
1269185    0 drwxrwxr-x   3 root     admin         102 Sep  6 14:42
/Library/ScriptingAdditions/SIMBL.osax/Contents/Resources/SIMBL\ Agent.app
1269186    0 drwxrwxr-x   4 root     admin         204 Sep  6 14:42
/Library/ScriptingAdditions/SIMBL.osax/Contents/Resources/SIMBL\ 
Agent.app/Contents
1269187    4 -rw-rw-r--   1 root     admin         875 Sep  6 14:42
/Library/ScriptingAdditions/SIMBL.osax/Contents/Resources/SIMBL\
Agent.app/Contents/Info.plist
1269188    0 drwxrwxr-x   2 root     admin         102 Sep  6 14:42
/Library/ScriptingAdditions/SIMBL.osax/Contents/Resources/SIMBL\ 
Agent.app/Contents/MacOS
1269189   80 -rwxrwxr-x   1 root     admin       79848 Sep  6 14:42
/Library/ScriptingAdditions/SIMBL.osax/Contents/Resources/SIMBL\
Agent.app/Contents/MacOS/SIMBL\ Agent
1269190    4 -rw-rw-r--   1 root     admin           8 Sep  6 14:42
/Library/ScriptingAdditions/SIMBL.osax/Contents/Resources/SIMBL\
Agent.app/Contents/PkgInfo
1269191    0 drwxrwxr-x   3 root     admin         136 Sep  6 14:42
/Library/ScriptingAdditions/SIMBL.osax/Contents/Resources/SIMBL\
Agent.app/Contents/Resources
1269192    0 drwxrwxr-x   2 root     admin         136 Sep  6 14:42
/Library/ScriptingAdditions/SIMBL.osax/Contents/Resources/SIMBL\
Agent.app/Contents/Resources/English.lproj
1269193    4 -rw-rw-r--   1 root     admin          92 Sep  6 14:42
/Library/ScriptingAdditions/SIMBL.osax/Contents/Resources/SIMBL\
Agent.app/Contents/Resources/English.lproj/InfoPlist.strings
1269194   28 -rw-rw-r--   1 root     admin       25608 Sep  6 14:42
/Library/ScriptingAdditions/SIMBL.osax/Contents/Resources/SIMBL\
Agent.app/Contents/Resources/English.lproj/MainMenu.nib
1269195    4 -rw-rw-r--   1 root     admin         507 Sep  6 14:42
/Library/ScriptingAdditions/SIMBL.osax/Contents/Resources/SIMBL\
Agent.app/Contents/Resources/net.culater.SIMBL.Agent.plist
1269196    4 -rw-rw-r--   1 root     admin         650 Sep  6 14:42
/Library/ScriptingAdditions/SIMBL.osax/Contents/Resources/SIMBL.rsrc
1269197    4 -rw-rw-r--   1 root     admin         671 Sep  6 14:42
/Library/ScriptingAdditions/SIMBL.osax/Contents/Resources/SIMBL.sdef

Original comment by billi...@gmail.com on 10 Sep 2009 at 1:16

GoogleCodeExporter commented 8 years ago
I'd also like to note that the script will run if you type it in directly. 
However,
It doesn't appear to be working. After a reboot, the error comes back (in 
console).

Original comment by jma...@gmail.com on 10 Sep 2009 at 1:21

GoogleCodeExporter commented 8 years ago
Not sure if this is specifically affecting Visor too, but that's the only 
plugin I'm trying to use on 10.6 and when I 
look in console I'm getting the same permission denied error.  Visor's site 
says to use SIMBL 0.8.2.

I noticed there is no SIMBL.bundle on my computer though, has that changed to 
being SIMBL.osax under 
ScriptingAdditions instead?

Original comment by m...@halfzero.net on 10 Sep 2009 at 5:24

GoogleCodeExporter commented 8 years ago
After some digging I found at least what my problem was:

host:Library user2$ ls -l
...
drwxrwxr-x    2 root     admin    68 Jun 23 20:20 Screen Savers
drwx------    3 user1  wheel   102 Sep  8 16:16 ScriptingAdditions
drwxrwxr-x   12 root     admin   408 Aug 31 09:05 Scripts
...

I first tried changing ownership of ScriptingAdditions to root:wheel.  This 
obviously didn't help, but made it 
more consistent.  I have two users on my MBP, and my guess is when SIMBL 
installed I provided user1's 
credentials by mistake.  I mostly only use user2, and I'm not sure what context 
the initialization command is 
running in.  In either case, I think the only thing that needed to be changed 
was chmod 775 
/Library/ScriptingAdditions so it appears as:

host:Library user2$ sudo chmod 775 ScriptingAdditions
host:Library user2$ ls -l
...
drwxrwxr-x    2 root     admin    68 Jun 23 20:20 Screen Savers
drwxrwxr-x    3 user1     admin   102 Sep  8 16:16 ScriptingAdditions
drwxrwxr-x   12 root     admin   408 Aug 31 09:05 Scripts
...

As soon as I chmod'd Console showed me that SIMBL initialized and the 
permission denied messages stopped.  
I launched Terminal.app and saw output of the bundle attaching to Terminal.app, 
but it seems to have some 
other problems.  The menubar icon showed up, so I'm pretty sure it's out of 
SIMBL's hands at this point, but at 
least I've solved the SIMBL loading problem.

Original comment by m...@halfzero.net on 10 Sep 2009 at 5:41

GoogleCodeExporter commented 8 years ago
No longer having issues with Visor either.  Just needed to create a new window 
after opening Terminal.app and 
Visor picked it right up.

Original comment by m...@halfzero.net on 10 Sep 2009 at 7:58

GoogleCodeExporter commented 8 years ago
Interesting. This permission bug is showing up in Adobe forums as well. I will 
make a fix to the next version of 
the installer to conservatively set the permissions to 775, with root:admin 
ownership.

Thanks very much for getting to the bottom of this.

Original comment by ms...@gmail.com on 11 Sep 2009 at 12:23

GoogleCodeExporter commented 8 years ago
Appears to fix the problem in my experience as well: 

Sep 10 20:32:29 bacontaffy com.apple.launchd.peruser.501[170]
(net.culater.SIMBL.Agent[27018]): Exited with exit code: 1
Sep 10 20:32:29 bacontaffy com.apple.launchd.peruser.501[170]
(net.culater.SIMBL.Agent): Throttling respawn: Will start in 10 seconds
Sep 10 20:32:29 bacontaffy sudo[27017]: hal0 : TTY=ttys005 ; PWD=/Library ; 
USER=root
; COMMAND=/opt/local/bin/chmod 755 ScriptingAdditions/
10 September 2009 20.32.37 UTC-0400 
Sep 10 20:32:39 bacontaffy SIMBL Agent[27022]: initialized

Original comment by billi...@gmail.com on 11 Sep 2009 at 12:36

GoogleCodeExporter commented 8 years ago
Fixed in SIMBL-0.9.5

Original comment by ms...@gmail.com on 11 Sep 2009 at 6:09

GoogleCodeExporter commented 8 years ago
Thanks Mike! Fantastic the magic you work. I gave SIMBL a very positive review 
on
MacUpdate. Not as nice as the person before me, though -- he actually loves you.

Original comment by billi...@gmail.com on 12 Sep 2009 at 5:19