backup problems?

Discuss and get help with plugins. Share your ideas for future SiT! features.

backup problems?  Topic is solved

Postby luca » Wed Jun 15, 2011 9:03 am

Hello all,

sit is working nicely, but today i noticed the tms_backup scheduler has disabled itself.
I went in the home directory of the installation and found 3 backups for each of the last three days, and two for previous days...

In the log.txt file i see tms_backup ran correctly 2 times on the third it failed as it couldn't create files (check permissions).

Any idea about what went wrong, or what can/should be done for fixing? is it a bug and should be filed?

Thanks, Luca
Luca Benelli
luca
SiT! Regular
SiT! Regular
 
Posts: 42
Joined: Thu Mar 03, 2011 10:51 am

Re: backup problems?

Postby Tomse » Wed Jun 15, 2011 9:16 am

Hello Luca
if you you might want to see if the user auto.php is running as has read/write/execute permissions on the folder you are backing up to

which version of tms_backup are you running ?
Carsten Jensen, da-DK Translator Supporting Windows & Linux/FreeBSD installations, partial SiT developer / hacker / graphician
Live chat/support on IRC in channel #sit on freenode.net
User avatar
Tomse
SiT! Developer
SiT! Developer
 
Posts: 947
Joined: Fri Feb 20, 2009 10:51 am
Location: Somewhere near Copenhagen Denmark

Re: backup problems?

Postby luca » Wed Jun 15, 2011 1:47 pm

it worked until tonight... it made two backups and then failed.

tms_backup version is 2.01.

these are the last backups...

Code: Select all

134   2011-06-10-02-13   /home/sit/2011-06-10-02-13-sit-backup.7z   6.77   yes
135   2011-06-11-02-14   /home/sit/2011-06-11-02-14-sit-backup.7z   6.74   yes
136   2011-06-11-02-15   /home/sit/2011-06-11-02-15-sit-backup.7z   6.77   yes
137   2011-06-11-02-16   /home/sit/2011-06-11-02-16-sit-backup.7z   6.78   yes
138   2011-06-12-02-17   /home/sit/2011-06-12-02-17-sit-backup.7z   6.79   yes
139   2011-06-12-02-18   /home/sit/2011-06-12-02-18-sit-backup.7z   6.75   yes
140   2011-06-13-02-19   /home/sit/2011-06-13-02-19-sit-backup.7z   6.77   yes
141   2011-06-13-02-20   /home/sit/2011-06-13-02-20-sit-backup.7z   6.79   yes
142   2011-06-13-02-21   /home/sit/2011-06-13-02-21-sit-backup.7z   6.79   yes
143   2011-06-14-02-22   /home/sit/2011-06-14-02-22-sit-backup.7z   6.79   yes
144   2011-06-14-02-23   /home/sit/2011-06-14-02-23-sit-backup.7z   6.79   yes
145   2011-06-14-02-24   /home/sit/2011-06-14-02-24-sit-backup.7z   6.79   yes
146   2011-06-15-02-25   /home/sit/2011-06-15-02-25-sit-backup.7z   6.79   yes
147   2011-06-15-02-26   /home/sit/2011-06-15-02-26-sit-backup.7z   6.79   yes
148   2011-06-15-02-28   /home/sit/2011-06-15-02-28-sit-backup.7z   3.13   yes
149   2011-06-15-11-04   /home/sit/2011-06-15-11-04-sit-backup.7z   6.85   yes


last one is today when i reeneabled backups so it looks like it's working again, nbot sure why it was making multiple backups though...

Thanks, Luca
Luca Benelli
luca
SiT! Regular
SiT! Regular
 
Posts: 42
Joined: Thu Mar 03, 2011 10:51 am

Re: backup problems?

Postby Tomse » Wed Jun 15, 2011 2:53 pm

Hello Luca

This seems to be a scheduler problem rather than a plugin.
I thought this problem was already solved in one of the newer sit versions.
which version of SiT are you running ?

I've seen before that the backup runs multiple times if the job doesn't end before the scheduler runs again.
the times I've seen this was also when there was a larger amount of data, where the archiver would take a longer time

if it keeps occuring, try changing archiver to tar
though the compression rate isn't as good, it's faster

let me hear your results/answer

edit: there is already a bug report for it Bug 1408

cheers
Tomse
Carsten Jensen, da-DK Translator Supporting Windows & Linux/FreeBSD installations, partial SiT developer / hacker / graphician
Live chat/support on IRC in channel #sit on freenode.net
User avatar
Tomse
SiT! Developer
SiT! Developer
 
Posts: 947
Joined: Fri Feb 20, 2009 10:51 am
Location: Somewhere near Copenhagen Denmark

Re: backup problems?

Postby Tomse » Wed Jun 15, 2011 4:45 pm

It's been a long time, and I can see that I've upgraded the tms_backup to 2.13
I haven't released this one yet as it seems there is an issue with the autofinding of files like mysqldump and 7z tar etc.

though it should check if it already runs, as a workaround on your problem.

you are more than welcome to test it
https://sitracker.svn.sourceforge.net/s ... ms_backup/
you can download it here.

let me know how it works for you

cheers
Tomse
Carsten Jensen, da-DK Translator Supporting Windows & Linux/FreeBSD installations, partial SiT developer / hacker / graphician
Live chat/support on IRC in channel #sit on freenode.net
User avatar
Tomse
SiT! Developer
SiT! Developer
 
Posts: 947
Joined: Fri Feb 20, 2009 10:51 am
Location: Somewhere near Copenhagen Denmark

Re: backup problems?

Postby luca » Thu Jun 16, 2011 9:20 am

Thanks,
updated to 2.13 (tms_backup.php only is it?)

I'll let you know tomorrow how it works :-)

Luca
Luca Benelli
luca
SiT! Regular
SiT! Regular
 
Posts: 42
Joined: Thu Mar 03, 2011 10:51 am

Re: backup problems?

Postby Tomse » Thu Jun 16, 2011 10:22 am

thanks alot, I don't remember if any of the other files were changed, but if they were they would have been minor bug fixes, display errors mostly.

we're working on branching plugins into 3x and 4x so
you'll find the plugin here from now on : https://sitracker.svn.sourceforge.net/s ... ms_backup/ (for sit v3.6x)
Carsten Jensen, da-DK Translator Supporting Windows & Linux/FreeBSD installations, partial SiT developer / hacker / graphician
Live chat/support on IRC in channel #sit on freenode.net
User avatar
Tomse
SiT! Developer
SiT! Developer
 
Posts: 947
Joined: Fri Feb 20, 2009 10:51 am
Location: Somewhere near Copenhagen Denmark

Re: backup problems?

Postby luca » Fri Jun 17, 2011 10:16 am

i hadn't moved to tar but it still created 3 backups... on monday i'll know if moving to tar reduces the problem..
Luca Benelli
luca
SiT! Regular
SiT! Regular
 
Posts: 42
Joined: Thu Mar 03, 2011 10:51 am

Re: backup problems?

Postby luca » Mon Jun 20, 2011 7:45 am

Tried with tar but it still fails (in a different way)...

2011-06-20T09:41:19+02:00 /home/sit/www/auto.php tms_backup: "/usr/bin/7z" zcf /home/sit/2011-06-20-09-41-sit-backup.tar.gz /home/sit/www/ /home/sit/2011-06-20-09-41-sit-backup.sql
2011-06-20T09:41:19+02:00 /home/sit/www/auto.php tms_backup: Could not create backup files, check permissions


Any other ideas? :-)

Thanks, luca
Luca Benelli
luca
SiT! Regular
SiT! Regular
 
Posts: 42
Joined: Thu Mar 03, 2011 10:51 am

Re: backup problems?

Postby Tomse » Mon Jun 20, 2011 12:46 pm

you need to set the path for tar in the config.
can you confirm it looks correct there ?

I seems you are still using 7zip but with tar parameters

EDIT:
I can see there are a few bugs in the plugin v2.13.
I'll see if I can find time tonight to fix these, this has to do with generating the table being used. and shouldn't affect you..
Carsten Jensen, da-DK Translator Supporting Windows & Linux/FreeBSD installations, partial SiT developer / hacker / graphician
Live chat/support on IRC in channel #sit on freenode.net
User avatar
Tomse
SiT! Developer
SiT! Developer
 
Posts: 947
Joined: Fri Feb 20, 2009 10:51 am
Location: Somewhere near Copenhagen Denmark

Next

Return to Plugins & Extending SiT!

Who is online

Users browsing this forum: No registered users and 2 guests