mailsmith breaking superduper backups

33 views
Skip to first unread message

blinde

unread,
Sep 28, 2011, 5:14:11 PM9/28/11
to Mailsmith Talk
i run a nightly backup using superduper, which makes a bootable clone
of my main hard drive onto one of my externals.

maybe 1 out of 5 backups fail with the following mailsmith error (or
similar):

| 01:38:33 AM | Error | SDCopy: Error copying /Users/blinde/Mail/
Mailsmith User Data/Mail/Deleted Mail.messageData/
51745+MailsmithMessageData+FAB085CB-2EA8-4EE2-A075-
D09DF394B74F.msgd.lock to /Volumes/lizard_1/Users/blinde/Mail/
Mailsmith User Data/Mail/Deleted Mail.messageData/
51745+MailsmithMessageData+FAB085CB-2EA8-4EE2-A075-
D09DF394B74F.msgd.lock of type 8 due to error 2: No such file or
directory

i don't really find out about this until i hit my desk the next
morning, at which point i run the backup manually and it works
flawlessly.

so... it NEVER barfs during daylight hours, but late night backups
fail one out of five times.

is mailsmith doing some cleanup in the wee hours? maybe when there are
very few cpu cycles being used?

superduper says they can't really tell which are temp files that can
safely be ignored.

suggestions welcome,
thanks,
bruce





Rich Siegel

unread,
Sep 28, 2011, 7:21:42 PM9/28/11
to mailsmi...@googlegroups.com
On Wednesday, September 28, 2011, blinde <bruce...@gmail.com> wrote:

>i run a nightly backup using superduper, which makes a bootable clone
>of my main hard drive onto one of my externals.

Me too.

>| 01:38:33 AM | Error | SDCopy: Error copying /Users/blinde/Mail/
>Mailsmith User Data/Mail/Deleted Mail.messageData/
>51745+MailsmithMessageData+FAB085CB-2EA8-4EE2-A075-
>D09DF394B74F.msgd.lock to /Volumes/lizard_1/Users/blinde/Mail/
>Mailsmith User Data/Mail/Deleted Mail.messageData/
>51745+MailsmithMessageData+FAB085CB-2EA8-4EE2-A075-
>D09DF394B74F.msgd.lock of type 8 due to error 2: No such file or
>directory

You may thank Spotlight for this. The .lock file is being
created by the Spotlight indexer for the duration of the process
in which Spotlight indexes the file. In your case, it just so
happens that the files are there when SuperDuper starts backing
up, and deleted by Spotlight before SuperDuper gets to copy
those files.

>superduper says they can't really tell which are temp files that can
>safely be ignored.

SuperDuper doesn't say anything. It's software, and Mac
applications aren't sentient yet. But Dave Nanian is correct -
there is no way to know on the fly whether the absence of any
given file is cause for error or not, and it's doing the right
thing by reporting the error.

R.
--
Rich Siegel Mailsmith Maintainer
<sie...@mailsmith.org> <http://www.mailsmith.org/>

blinde

unread,
Sep 29, 2011, 10:10:15 AM9/29/11
to Mailsmith Talk
rich -

any way to termporarily/programmatically disable spotlight? have
superduper ignore lock files?

bruce











On Sep 28, 4:21 pm, Rich Siegel <sie...@mailsmith.org> wrote:

Phil Dobbin

unread,
Sep 29, 2011, 10:16:28 AM9/29/11
to mailsmi...@googlegroups.com
On 29/9/11 at 15:10, bruce...@gmail.com (blinde) wrote:

> any way to termporarily/programmatically disable spotlight? have
> superduper ignore lock files?

<http://osxdaily.com/2009/09/20/disable-spotlight-in-mac-os-x-10-6-snow-leopard/>

HTH,

Cheers,

Phil...
--
Please consider the environment before reading this email...

blinde

unread,
Sep 30, 2011, 12:56:56 PM9/30/11
to Mailsmith Talk
ok... based on the link provided by phil, i created two applescripts,
and configured superduper to run the 'turn spotlight OFF' script
before running, and then run the 'turn spotlight back ON' script when
done with my backups.

i'll let you know how it turns out!

thanks,
bruce




On Sep 29, 7:16 am, Phil Dobbin <phildob...@gmail.com> wrote:
> On 29/9/11 at 15:10, bruce.li...@gmail.com (blinde) wrote:
>
> > any way to termporarily/programmatically disable spotlight? have
> > superduper ignore lock files?
>
> <http://osxdaily.com/2009/09/20/disable-spotlight-in-mac-os-x-10-6-sno...>

blinde

unread,
Oct 2, 2011, 11:13:12 AM10/2/11
to Mailsmith Talk
ok, guys... it didn't work:

| 01:39:44 AM | Error | SDCopy: Error copying /Users/blinde/Mail/
Mailsmith User Data/Mail/** IN MOTION **.messageData/
5394+MailsmithMessageData+BD447FF2-BAB4-44A7-
B31A-9D60115171CA.msgd.lock to /Volumes/lizard_1/Users/blinde/Mail/
Mailsmith User Data/Mail/** IN MOTION **.messageData/
5394+MailsmithMessageData+BD447FF2-BAB4-44A7-
B31A-9D60115171CA.msgd.lock of type 8 due to error 2: No such file or
directory

does this mean that it's NOT spotlight causing the barf?

all my two applescripts do is:


do shell script "sudo mdutil -a -i off"

and then

do shell script "sudo mdutil -a -i on"

comments? suggestions?

thanks, as always,
bruce

Phil Dobbin

unread,
Oct 2, 2011, 11:19:11 AM10/2/11
to mailsmi...@googlegroups.com
On 2/10/11 at 16:13, bruce...@gmail.com (blinde) wrote:

> ok, guys... it didn't work:

[...]

> does this mean that it's NOT spotlight causing the barf?
>
> all my two applescripts do is:
>
>
> do shell script "sudo mdutil -a -i off"
>
> and then
>
> do shell script "sudo mdutil -a -i on"

When you wrote the script what provision did you make for the sudo password?

John Delacour

unread,
Oct 2, 2011, 3:30:10 PM10/2/11
to mailsmi...@googlegroups.com
At 08:13 -0700 2/10/11, blinde wrote:


>ok, guys... it didn't work:
>

>all my two applescripts do is:
>
> do shell script "sudo mdutil -a -i off"


See

<http://developer.apple.com/library/mac/#technotes/tn2065/_index.html>

Look for "administrator privileges".

JD

blinde

unread,
Oct 3, 2011, 12:03:42 PM10/3/11
to Mailsmith Talk
guys -

thanks for the tips... my scripts now read:

do shell script "sudo mdutil -a -i off" user name "it's me" password
"wouldn't you like to know" with administrator privileges

and

do shell script "sudo mdutil -a -i on" user name "it's me" password
"wouldn't you like to know" with administrator privileges

once i verify that they're working, i will save them as run-only apps
so i'm not leaving my password lying around exposed.

by the way, when i first set them up and ran them, i DID get the
following results in script editor:

/Volumes/lizard_1:
Indexing disabled.

or

/Volumes/lizard_1:
Indexing enabled.

etc., which is what led me to believe the scripts would work.

did they work when i ran them manually out of applescript editor but
NOT when superduper ran them... because of the permissions thing?

thanks for trying to teach this old dog new tricks!

let me know,
bruce

blinde

unread,
Oct 8, 2011, 11:17:54 AM10/8/11
to Mailsmith Talk
sorry to report that it's still not working:

| 01:42:58 AM | Error | SDCopy: Error copying /Users/blinde/Mail/
Mailsmith User Data/Mail/Deleted Mail.messageData/
53776+MailsmithMessageData+068D9111-F688-40E5-
B1EF-0A098E5F2D91.msgd.lock to /Volumes/lizard_1/Users/blinde/Mail/
Mailsmith User Data/Mail/Deleted Mail.messageData/
53776+MailsmithMessageData+068D9111-F688-40E5-
B1EF-0A098E5F2D91.msgd.lock of type 8 due to error 2: No such file or
directory

which log would show whether my scripts are firing correctly?
anything else i should try?

signed,
frustrated,
in oakland

Richard Fairbanks

unread,
Oct 8, 2011, 1:39:53 PM10/8/11
to mailsmi...@googlegroups.com
> anything else i should try?

This may not be an acceptable answer, but I have been using
ChronoSync for years and it has the ability to avoid this error.

Blessings!,

Richard Fairbanks


======== Original Message ========
From: blinde [bruce...@gmail.com]
To: Mailsmith Talk [mailsmi...@googlegroups.com]
Sent: 2011.10.8 at 9:17:54AM
Subject: Re: mailsmith breaking superduper backups
–––––––––––––––––––––––––––––––––––

signed,
frustrated,
in oakland

====== End Original Message ======

Phil Dobbin

unread,
Oct 8, 2011, 2:09:55 PM10/8/11
to mailsmi...@googlegroups.com
On 8/10/11 at 18:39, li...@F-P-I.com (Richard Fairbanks) wrote:

>>anything else i should try?
>
>This may not be an acceptable answer, but I have been using
>ChronoSync for years and it has the ability to avoid this error.

You could try manually entering the `mdutil’ command each
night & morning to see if that makes any difference...

Cheers,

Phil.

blinde

unread,
Oct 8, 2011, 8:12:31 PM10/8/11
to Mailsmith Talk
>You could try manually entering the `mdutil’ command each
>night & morning to see if that makes any difference...



certainly worth trying, to see if there's a problem with my
applescripts.

i'm still hoping one of the more tech-enabled here will comment on...
why mailsmith? why would i still get this error if spotlight is indeed
off? and/or, where would i check which logs to see if spotlight was
turned on and off?

thanks, all.

bruce

Charlie Garrison

unread,
Oct 8, 2011, 9:26:01 PM10/8/11
to mailsmi...@googlegroups.com
Good afternoon,

On 8/10/11 at 5:12 PM -0700, blinde <bruce...@gmail.com> wrote:

> where would i check which logs to see if spotlight was
>turned on and off?

Just ask mdutil whether it's on or off:

$ mdutil -s /

Or for more details:

$ man mdutil


Charlie

--
Ꮚ Charlie Garrison ♊ <garr...@zeta.org.au>

O< ascii ribbon campaign - stop html mail - www.asciiribbon.org
http://www.ietf.org/rfc/rfc1855.txt

blinde

unread,
Oct 9, 2011, 11:53:49 AM10/9/11
to Mailsmith Talk
update:

i changed the applescripts from .scpt to .app ... at which point
superduper finally coughed up an error message that said it couldn't
run the shell script set to turn spotlight off. i wasn't getting any
error messages before, except for the 'mailsmith just blew up the
process' ones.

let's review that error message: shell script... not applescript.

doh!

so... i created two .sh files, and tried again... superduper
successfully ran the 'turn it off' .sh file, and is backing things up.

how come none of you brainiacs noticed that i was trying to run
applescripts instead of shell scripts?!?? 8-)

thanks again for all of your help.

signed,
i'm not real smart, but i can lift heavy things
in oakland









On Oct 8, 6:26 pm, Charlie Garrison <garri...@zeta.org.au> wrote:
> Good afternoon,
>
> On 8/10/11 at 5:12 PM -0700, blinde <bruce.li...@gmail.com> wrote:
>
> > where would i check which logs to see if spotlight was
> >turned on and off?
>
> Just ask mdutil whether it's on or off:
>
> $ mdutil -s /
>
> Or for more details:
>
> $ man mdutil
>
> Charlie
>
> --
>    Ꮚ Charlie Garrison ♊ <garri...@zeta.org.au>

Charlie Garrison

unread,
Oct 9, 2011, 8:46:04 PM10/9/11
to mailsmi...@googlegroups.com
Good morning,

On 9/10/11 at 8:53 AM -0700, blinde <bruce...@gmail.com> wrote:

>how come none of you brainiacs noticed that i was trying to run
>applescripts instead of shell scripts?!?? 8-)

I never saw a complete script; just snippets, so that would have involved mind-reading.


Charlie

--
Ꮚ Charlie Garrison ♊ <garr...@zeta.org.au>

blinde

unread,
Oct 10, 2011, 2:25:44 AM10/10/11
to Mailsmith Talk
charlie -

you do know i'm just giving you guys a hard time, yes?

that said, there are more than a couple of posts in this thread that
refer to the applescripts i was trying to run.

so... no mind-reading, just regular reading! 8-)

it was your post, though, that helped me notice that superduper will
run shell scripts before and after... although i don't know why it
didn't throw up any kind of error in the log files when trying to run
applescripts.

either way, thanks again.

bruce














On Oct 9, 5:46 pm, Charlie Garrison <garri...@zeta.org.au> wrote:
> Good morning,
>
> On 9/10/11 at 8:53 AM -0700, blinde <bruce.li...@gmail.com> wrote:
>
> >how come none of you brainiacs noticed that i was trying to run
> >applescripts instead of shell scripts?!??  8-)
>
> I never saw a complete script; just snippets, so that would have involved mind-reading.
>
> Charlie
>
> --
>    Ꮚ Charlie Garrison ♊ <garri...@zeta.org.au>

Charlie Garrison

unread,
Oct 10, 2011, 2:46:05 AM10/10/11
to mailsmi...@googlegroups.com
Good afternoon,

On 9/10/11 at 11:25 PM -0700, blinde <bruce...@gmail.com> wrote:

>you do know i'm just giving you guys a hard time, yes?

I guess I missed that nuance. That happens sometimes with my
late night replies.

>that said, there are more than a couple of posts in this thread that
>refer to the applescripts i was trying to run.

Which didn't show a shebang line so I thought they were just
snippets and not complete scripts. Or that they were compiled
scripts. In any case there wasn't enough enough to know where
the problem was.

>so... no mind-reading, just regular reading! 8-)

Yep, still a bit of mind-reading required.

>it was your post, though, that helped me notice that superduper will
>run shell scripts before and after... although i don't know why it
>didn't throw up any kind of error in the log files when trying to run
>applescripts.

I think that may have been someone else's post; but it any case
I'm glad you've got it sorted.


Charlie

--
Ꮚ Charlie Garrison ♊ <garr...@zeta.org.au>

Reply all
Reply to author
Forward
0 new messages