Multisite scheduled backup is only running for one site


(Brahn) #1

I have 3 sites in a standalone multisite setup and recently noticed that only one of them is actually performing the scheduled backup.
There does not appear to be anything in the logs about the other sites failing to backup. The unicorn.stdout.log shows only the one site being backed up. A manual backup of all sites works fine.
It seems to have stopped working around the time I updated from 1.4 to 1.5 (on 1.6 now but no change).

Any ideas on how to diagnose this?


(Brahn) #2

Could the issue be connected to this fix?

The cancel_scheduled_job call in ScheduleBackup is different to the others I found in that it doesn’t supply any args.

My WAG is that perhaps each RailsMultisite iteration in the base scheduler is cancelling the previous scheduled backup leaving only the last one to run?!


(RĂ©gis Hanol) #3

While the issue was not related to that commit (the bug was present before), it got me to the right point: we were indeed canceling jobs for all the sites on a multisite install… :expressionless:


(Brahn) #4

That’s awesome news, thanks!
I’m tracking the stable branch so I assume I will need to wait until v1.7 before I see this fix?


(Sam Saffron) #5

Yes, in general we only backport egregious bugs and security fixes into stable.

If you are going to be stuck on stable you can always look at adding a cron job to backup your sites.


(Brahn) #6

Thanks @sam, understood.

BTW, when I marked the earlier post a the solution it seems to have removed the preview of the link. Is that supposed to happen?


(Sam Saffron) #7

That is some weird bug…


(Brahn) #8

Oh, its back now anyway.


(Sam Saffron) #9

Yeah I rebuilt the html