Become a MacRumors Supporter for $50/year with no ads, ability to filter front page stories, and private forums.

Aussie John

macrumors member
Original poster
Jun 26, 2004
39
0
I have rebuilt our server and updated to 10.8 (previously 10.7).
When I try to restore the OD database i get the following error. (FYI DNS resolves).



mail:~ svradmin$ sudo slapconfig -restoredb /Volumes/Server\ HD/OD/nov\ 2012\ OD\ archive.sparseimage
2012-11-18 10:13:21 +0000 slapconfig -restoredb
2012-11-18 10:13:21 +0000 1 Mounting the archive
2012-11-18 10:13:21 +0000 command: /usr/bin/hdiutil attach /Volumes/Server HD/OD/nov 2012 OD archive.sparseimage -readonly
Enter disk image passphrase:
2012-11-18 10:13:28 +0000 command: /usr/bin/hdiutil attach -stdinpass /Volumes/Server HD/OD/nov 2012 OD archive.sparseimage -readonly
2012-11-18 10:13:30 +0000 Error: Command failed with exit code 1: out=, errmsg=hdiutil: attach failed - Authentication error
2012-11-18 10:13:30 +0000 Unable to mount the archive (error = 1)
2012-11-18 10:13:30 +0000 Removed file at path /var/run/slapconfig.lock.
mail:~ svradmin$

Any suggestions appreciated
 

switon

macrumors 6502a
Sep 10, 2012
636
1
RE: disk image...

Hi,

Tough one...

It looks like the disk image requires a password in order to attach to it, which hdituil prompts for, but then the password is not supplied so it fails.

What happens if you use the -q option on the slapconfig? Does it still fail or is the password supplied?

Switon
 

Aussie John

macrumors member
Original poster
Jun 26, 2004
39
0
Hi,

Tough one...

It looks like the disk image requires a password in order to attach to it, which hdituil prompts for, but then the password is not supplied so it fails.

What happens if you use the -q option on the slapconfig? Does it still fail or is the password supplied?

Switon

the image is created in server admin (Open directory), when creating archive option which prompts for a password when creating.
 

switon

macrumors 6502a
Sep 10, 2012
636
1
RE serveradmin commandline...

Hi,

Are you running 10.6.8 or 10.7.4 server? It sounds like a bug in the server admin app. Instead of using the GUI version of server admin, what if you try using the serveradmin commandline command? You might get it to work this way.

Switon
 

Aussie John

macrumors member
Original poster
Jun 26, 2004
39
0
Hi,

Are you running 10.6.8 or 10.7.4 server? It sounds like a bug in the server admin app. Instead of using the GUI version of server admin, what if you try using the serveradmin commandline command? You might get it to work this way.

Switon

I have installed 10.8.
and I did use the command line

sudo slapconfig -restoredb /Volumes/Server\ HD/OD/nov\ 2012\ OD\ archive.sparseimage

cheers
 

switon

macrumors 6502a
Sep 10, 2012
636
1
re: -q

Then I would at least try the -q option....what have you got to loose? Switon.
Probably won't work...but there is a chance it will stop the prompt (which fails) and just supply the password.
 

mire3212

macrumors newbie
May 28, 2010
18
0
Austin, TX
See if you can open the disk image outside of Terminal, just find it in the Finder and double click it. If you can't supply the correct passphrase, it will fail when being run from from the command line.

The important thing from your log snippet is this:

Enter disk image passphrase:
2012-11-18 10:13:28 +0000 command: /usr/bin/hdiutil attach -stdinpass /Volumes/Server HD/OD/nov 2012 OD archive.sparseimage -readonly
2012-11-18 10:13:30 +0000 Error: Command failed with exit code 1: out=, errmsg=hdiutil: attach failed - Authentication error

That error is indicating that the Archive password is NOT what you typed when it asked to enter the passphrase.
 
Last edited:

Aussie John

macrumors member
Original poster
Jun 26, 2004
39
0
Well I resaved the archive and saved to the disk of the new installation. Now the restore seems to work. Thanks for responses
 
Register on MacRumors! This sidebar will go away, and you'll see fewer ads.