Shirt Pocket Discussions

Shirt Pocket Discussions (https://www.shirt-pocket.com/forums/index.php)
-   General (https://www.shirt-pocket.com/forums/forumdisplay.php?f=6)
-   -   Problems with schedules randomly not working (https://www.shirt-pocket.com/forums/showthread.php?t=4717)

Trium Shockwave 10-31-2008 01:33 PM

Problems with schedules randomly not working
 
I'm a Mac IT consultant, and I have a number of customers using SuperDuper for scheduled backups. I also use it myself at home to back up my server. On every machine I try it on, I seem to have an issue where at some point the schedules will just stop executing. The machines are set not to sleep and not to spin down the hard drives, but it doesn't seem to help. The fix, once I realize it's happened, is to delete and recreate the schedule. I've also noticed that using the Copy Now button on the Scheduled Copies window will almost certainly break it. This problem has been observed on the following versions of OS X on a number of different machines:

10.4.x Client PPC
10.4.x Client Intel
10.5.x Client
10.5.x Server

My own server is a dual 867mhz Power Mac G4 (Mirrored Drive Doors) running OS X Server 10.5.4. It's backing up both its internal boot drive to another internal drive, and a Firewire attached data drive to another Firewire drive (on the other port). I've experienced the problem with both of these backup sets.

dnanian 10-31-2008 01:40 PM

If you set these schedules to run 'a few minutes from now', when they're in this state, do they run? I'm not aware of anything that would mysteriously stop all your users' schedules like this, save for things like erasing the externals outside of SD! or something like that.

Trium Shockwave 10-31-2008 02:41 PM

It is a pretty strange problem. Some of it may be users who aren't listening to what I tell them and either shutting the machines down or logging out. My server though I can verify that's not happening since it runs 24/7 and has very little direct user interaction.

What is it that triggers the automatic copies in SD? Does it install a daemon that launches it, or is there a launchd job set up, or what? Maybe I can narrow down the problem if I know what it is that's supposed to make these schedules happen.

dnanian 10-31-2008 04:33 PM

It uses cron, and a user-specific crontab.

Trium Shockwave 10-31-2008 04:56 PM

The first time I looked at crontab -l it was blank. I deleted and recreated the schedules in SuperDuper, then got then did crontab -l again and got following (dummy host name substituted)

0 2 * * 0 open file:///Network/Servers/server.example.com/Volumes/Data/Network\%20Homes/download/Library/Application\%20Support/SuperDuper\%21/Scheduled\%20Copies/Smart\%20Update\%20Server\%20HD\%20Backup\%20from\ %20Server\%20HD.sdsp/Copy\%20Job.app
0 3 * * * open file:///Network/Servers/server.example.com/Volumes/Data/Network\%20Homes/download/Library/Application\%20Support/SuperDuper\%21/Scheduled\%20Copies/Smart\%20Update\%20Data\%20Backup\%20from\%20Data. sdsp/Copy\%20Job.app

So, it seems like SD! is creating little custom app bundles that are stored in ~/Library/Application Support/SuperDuper/Scheduled Copies. I checked and those were present (at least after I had recreated the schedules). The question is, why was the crontab blank? If that's getting dumped for some reason, it would explain why the schedules stop.

dnanian 10-31-2008 05:18 PM

I don't know: no 'standard' part of OSX deletes the crontab, but perhaps something else you're installing, that's common between you and your clients, is doing so?

Trium Shockwave 11-05-2008 10:49 AM

The only thing I can think of is that with my server it's a problem related to the account being an Open Directory account. Maybe since it's not a local user account, the crontab is flushed whenever it logs out or the server is rebooted. I've set it up so SuperDuper is running from the local admin account (which was usually not logged in). If that solves the problem, my suspicion will be that my users are having trouble because they aren't following directions. They may be shutting the machine down, putting it to sleep, logging out, or something.

Along those lines, are there any plans to get SuperDuper's automated backups to run as a daemon so they will execute even if the user that configured them isn't logged in? This is pretty easy to do using a launchd job placed in /Library/LaunchDaemons. All you'd need is a headless version of SuperDuper to call with that job and make the backup.

dnanian 11-05-2008 11:37 AM

A daemon version is something we're considering for the future, yes. But, everything is 'easy to do' when you don't have to actually do it. ;)

Trium Shockwave 11-05-2008 11:39 AM

True enough. I'm sure Chernobyl looked great on paper.

NovaScotian 11-05-2008 01:15 PM

Having the same problem.
 
Because I've been having the same problem on a PM dual-core G5/2.3 (10.5.5) of backups not always happening, I wrote a script to check:

Code:

set tLog to alias (((path to application support from user domain) as text) & "SuperDuper!:Scheduled Copies:Smart Update ACB-500_Bkup from ACB-G5_Leopard 1.sdsp:Logs:")

tell application "Finder"
        set LogFiles to (files of tLog)
        set tLast to name of last item of LogFiles
        set tid to AppleScript's text item delimiters
        set AppleScript's text item delimiters to "-"
        set tParts to text items of tLast
        set item 3 of tParts to first word of item 3 of tParts
        set DP to items 1 thru 3 of tParts
        set AppleScript's text item delimiters to "/"
        set tDate to DP as text
        set AppleScript's text item delimiters to tid
        display alert "Last Logged Backup on " & tDate giving up after 2
end tell

The script confirms that I am occasionally missing backups. My solution is the same as the OP in this thread -- cancel the scheduled backup and recreate it. After than, things work normally for a while and then die again.

dnanian 11-05-2008 01:45 PM

You might want to just use Growl to notify on backups instead of writing a special script.

But: when it fails, you get no errors? Does "Copy Now" in the scheduled copies window work? What about setting the backup time to 'a few minutes from now' on the schedule that seems to be failing/not running?

NovaScotian 11-06-2008 08:49 PM

I'll switch the setting in Growl -- had missed that that it was an option to tell me the copy succeeded (wish it would do either succeed or fail). SuperDuper! is enabled in the Growl Pref Pane.

Copy works perfectly normally. I don't get any errors (or a growl notification) when a scheduled backup fails, it just doesn't happen.

dnanian 11-06-2008 09:51 PM

OK, so... next time it does this, please try editing the time for the backup to see if that runs...

NovaScotian 11-11-2008 09:56 AM

If I set it for 5 minutes later, it works. There are a number of warnings of the type:

Quote:

11/11/08 10:27:04 AM SuperDuper![19765] .scriptSuite warning for attribute 'boundsAsQDRect' of class 'NSWindow' in suite 'NSCoreSuite': 'NSData<QDRect>' is not a valid type name.
11/11/08 10:27:04 AM SuperDuper![19765] .scriptSuite warning for type 'NSTextStorage' attribute 'name' of class 'NSApplication' in suite 'NSCoreSuite': AppleScript name references may not work for this property because its type is not NSString-derived.
11/11/08 10:27:04 AM SuperDuper![19765] .scriptSuite warning for type 'NSTextStorage' attribute 'lastComponentOfFileName' of class 'NSDocument' in suite 'NSCoreSuite': AppleScript name references may not work for this property because its type is not NSString-derived.
11/11/08 10:27:04 AM SuperDuper![19765] .scriptSuite warning for attribute 'boundsAsQDRect' of class 'NSWindow' in suite 'NSCoreSuite': 'NSData<QDRect>' is not a valid type name.
11/11/08 10:27:04 AM SuperDuper![19765] .scriptSuite warning for type 'NSTextStorage' attribute 'title' of class 'NSWindow' in suite 'NSCoreSuite': AppleScript name references may not work for this property because its type is not NSString-derived.
11/11/08 10:27:04 AM SuperDuper![19765] .scriptSuite warning for superclass of class 'NSAttachmentTextStorage' in suite 'NSTextSuite': 'NSString' is not a valid class name.
11/11/08 10:35:03 AM SuperDuper![19812] .scriptSuite warning for attribute 'boundsAsQDRect' of class 'NSWindow' in suite 'NSCoreSuite': 'NSData<QDRect>' is not a valid type name.
11/11/08 10:35:03 AM SuperDuper![19812] .scriptSuite warning for type 'NSTextStorage' attribute 'name' of class 'NSApplication' in suite 'NSCoreSuite': AppleScript name references may not work for this property because its type is not NSString-derived.
11/11/08 10:35:03 AM SuperDuper![19812] .scriptSuite warning for type 'NSTextStorage' attribute 'lastComponentOfFileName' of class 'NSDocument' in suite 'NSCoreSuite': AppleScript name references may not work for this property because its type is not NSString-derived.
11/11/08 10:35:03 AM SuperDuper![19812] .scriptSuite warning for attribute 'boundsAsQDRect' of class 'NSWindow' in suite 'NSCoreSuite': 'NSData<QDRect>' is not a valid type name.
11/11/08 10:35:03 AM SuperDuper![19812] .scriptSuite warning for type 'NSTextStorage' attribute 'title' of class 'NSWindow' in suite 'NSCoreSuite': AppleScript name references may not work for this property because its type is not NSString-derived.
11/11/08 10:35:03 AM SuperDuper![19812] .scriptSuite warning for superclass of class 'NSAttachmentTextStorage' in suite 'NSTextSuite': 'NSString' is not a valid class name.
11/11/08 10:51:10 AM SuperDuper![20072] .scriptSuite warning for attribute 'boundsAsQDRect' of class 'NSWindow' in suite 'NSCoreSuite': 'NSData<QDRect>' is not a valid type name.
11/11/08 10:51:10 AM SuperDuper![20072] .scriptSuite warning for type 'NSTextStorage' attribute 'name' of class 'NSApplication' in suite 'NSCoreSuite': AppleScript name references may not work for this property because its type is not NSString-derived.
11/11/08 10:51:10 AM SuperDuper![20072] .scriptSuite warning for type 'NSTextStorage' attribute 'lastComponentOfFileName' of class 'NSDocument' in suite 'NSCoreSuite': AppleScript name references may not work for this property because its type is not NSString-derived.
11/11/08 10:51:10 AM SuperDuper![20072] .scriptSuite warning for attribute 'boundsAsQDRect' of class 'NSWindow' in suite 'NSCoreSuite': 'NSData<QDRect>' is not a valid type name.
11/11/08 10:51:10 AM SuperDuper![20072] .scriptSuite warning for type 'NSTextStorage' attribute 'title' of class 'NSWindow' in suite 'NSCoreSuite': AppleScript name references may not work for this property because its type is not NSString-derived.
11/11/08 10:51:10 AM SuperDuper![20072] .scriptSuite warning for superclass of class 'NSAttachmentTextStorage' in suite 'NSTextSuite': 'NSString' is not a valid class name.
but the backup seems to be fine. This time, I erased ALL previous schedule lines, closed the schedule window, re-opened it to get a new schedule sheet, and entered a new schedule to the blank page. The previous ones always said that the last backup was back in May. Now the new one has it right.

There was also this message in the System Log (might be related):

Quote:

Nov 11 10:35:00 ACB-G5-2 com.apple.launchd[1] (0x10e790.cron[19803]): Could not setup Mach task special port 9: (os/kern) no access

Trium Shockwave 11-11-2008 10:06 AM

So far since moving SD!'s schedules to the local user account, it hasn't stopped, though sometimes it takes several weeks before the problem arises. I am hopeful this solved it though.


All times are GMT -4. The time now is 12:16 AM.

Powered by vBulletin® Version 3.8.9
Copyright ©2000 - 2024, vBulletin Solutions, Inc.