Mailing Lists: Apple Mailing Lists

Image of Mac OS face in stamp
 
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: hdiutil attach fails under some repeatable circumstances



The problem turned out to be that when I would log out of my ssh session, the bootstrap namespace is deactivated and so hdiutil fails to be able to marshall some distributed objects that uses as "helpers".

And so the solution is to startup my script in the context of the startup item (using /usr/libexec/StartupItemContext) so that it has a global bootstrap namespace that isn't deactivated when I close the ssh session into the server.

That was that answer I got from DTS. And apparently that solves the problem (i.e. it works now).

This one was well worth the DTS incident. I was under the impression that I was somehow using hdiutil in an incorrect way. Turns out I was right.

Brant
On Oct 22, 2007, at 10:32 AM, Eric Slosser wrote:

Does the process of attaching your disk image display any GUI?  If so, perhaps you're running into the lack of a login context. 

See TN2083 "Daemons and Agents", <http://developer.apple.com/technotes/tn2005/tn2083.html>

On Oct 19, 2007, at 10:39 AM, Brant Sears wrote:

However, once I log out of my server box (which is actually just a G4 Mac mini running standard Tiger which I'm using to do formal builds and host a little web page for the builds), the hdiutil attach call fails. At this point, I don't see the actual error message, but my script tests for whether the volume is mounted and it reports a failure.


 _______________________________________________
Do not post admin requests to the list. They will be ignored.
Xcode-users mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/xcode-users/email@hidden

This email sent to email@hidden

References: 
 >hdiutil attach fails under some repeatable circumstances (From: Brant Sears <email@hidden>)
 >Re: hdiutil attach fails under some repeatable circumstances (From: Eric Slosser <email@hidden>)



Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2007 Apple Inc. All rights reserved.