Page Index Toggle Pages: 1
Topic Tools
Normal Topic Backup Issues (Read 559 times)
JonB
YaBB Administrator
YaBB Next Team
Operations Team
Beta Testers
Support Team
*****
Offline



Posts: 4,036
Location: Land of the Blazing Sun!

YaBB 2.6.1
Backup Issues
Mar 19th, 2014 at 7:41pm
Post Tools
I have not completed testing -

This is a problem I have had more than once.

Linux Server. - I set the backup method to Tar > tar.gz., saved settings.

Code (Perl)
Select All
###############################################################################
# Backup Settings                                                             #
###############################################################################

@backup_paths = qw(src bo lan mem mes temp var html upld);
$backupprogusr = '';
$backupprogbin = '/usr/bin';
$backupmethod = '/tar';
$compressmethod = '/usr/bin/gzip';
$backupdir = '/opt/yabbforum.beta/server/cgi-bin/community/Backups';
$lastbackup = 0;
$backupsettingsloaded = 1;

1; 



The paths to tar & gzip is known to be correct (default).

Code
Select All
[root@localhost /]# ls -l /bin/tar
-rwxr-xr-x. 1 root root 320968 Sep 26  2011 /bin/tar
[root@localhost /]# ls -l /usr/bin/gzip
lrwxrwxrwx. 1 root root 14 Sep 11  2013 /usr/bin/gzip -> ../../bin/gzip
[root@localhost /]# 



It seems random (although I have a new working (untested) theory.

Sometimes instead of Backup.pm creating a (backup_string).tar.gz file, it will instead create an uncompressed (backup_string).tar file.

EVERY time this happens two other things happen (as far as I can tell)

1. I will get a 504 Gateway Timeout error.

2. When I get back to AdminIndex > YaBB Backup, there will ONLY be an option to run a Full Backup, the Incremental Backup Option is not displayed. (this one I'm quite sure I know why) - Although YaBB shows the backup, YaBB does not actually KNOW it completed (as the session timed out) ONE issue psuedo-resolved. YaBB displays the backup because it enumerated the folder, and the backup fits a file pattern.

NOTE to all - IF you get a 504, DO NOT REFRESH - the URL is still the action-script URL, YaBB will run another backup.  Shocked

This just occurred on the Test Server. I do have a working theory on this, so no need to test until I 'trial balloon' my theory.

« Last Edit: Mar 19th, 2014 at 9:49pm by JonB »  

forked_backup.jpeg (Attachment deleted)

I find your lack of faith disturbing.
Back to top
IP Logged
 
JonB
YaBB Administrator
YaBB Next Team
Operations Team
Beta Testers
Support Team
*****
Offline



Posts: 4,036
Location: Land of the Blazing Sun!

YaBB 2.6.1
Re: Backup Issues
Reply #1 - Mar 19th, 2014 at 11:14pm
Post Tools
More Weirder-er -

OK, I tested all the other methods on Admin Test (which is running the exact same Linux install as its big brother) - All the methods 504'ed. some produced tarballs, some produced nothing at all.

Tested Bzip2 - it created a standard tarball (option should not have been displayed AFAIK it turns out)

-------- * JonB is getting a migraine ------------

I'll do the tests again on Beta.



  

forked_backups-2.jpeg (Attachment deleted)

I find your lack of faith disturbing.
Back to top
IP Logged
 
Xonder
Jr. Developer
Development Team
***
Offline



Posts: 729
Location: @ustria

YaBB 2.6.1
Re: Backup Issues
Reply #2 - Mar 20th, 2014 at 8:14am
Post Tools
Hello

JonB wrote on Mar 19th, 2014 at 11:14pm:
OK, I tested all the other methods on Admin Test (which is running the exact same Linux install as its big brother) - All the methods 504'ed. some produced tarballs, some produced nothing at all.

You must break the Server Timeout and split the Backup produce ....
Like this small free script (sorry it's a german script) take a look of the variable $durchlauf

lg XTC
« Last Edit: Mar 20th, 2014 at 8:16am by Xonder »  

Back to top
WWW  
IP Logged
 
JonB
YaBB Administrator
YaBB Next Team
Operations Team
Beta Testers
Support Team
*****
Offline



Posts: 4,036
Location: Land of the Blazing Sun!

YaBB 2.6.1
Re: Backup Issues
Reply #3 - Mar 20th, 2014 at 9:17am
Post Tools
Xonder - Thanks

Quote:
You must break the Server Timeout and split the Backup produce ....



I actually know that, we had the problem before with these scripts when Deti & Jet Li wrote YaBB Backup for YaBB 2.4. That (splitting the jobs up) was was done to solve the problem.
 
When the scripts were revised to make improvements, they weren't using big enough data-sets to run into the problem - BUT I also think these's a different problem on Admin Test. I think It might be that AdvancedSettings is not saving the changes when I change compression methods.

The 'Rebuild Notifications' has that - but it seems to be in an infinite loop.

arrggh

Smiley
  

I find your lack of faith disturbing.
Back to top
IP Logged
 
JonB
YaBB Administrator
YaBB Next Team
Operations Team
Beta Testers
Support Team
*****
Offline



Posts: 4,036
Location: Land of the Blazing Sun!

YaBB 2.6.1
Re: Backup Issues
Reply #4 - Mar 21st, 2014 at 5:38pm
Post Tools
OK I have done some extensive backup testing on both installations of 2.6.0 using the 1450 build.

Conclusions:

A. The Backup settings you save work as described, but there is a lot to know about how and what you are going to get as a result.

B. The Backup process itself works correctly almost 99% of the time. that should be read 'you will get a good backup as described' - although YOU may not know it at the time.  Just let it run in that window, and DO NOT CLOSE OR RELOAD the page the backup job is running on.  For YaBB Backup to work correctly, it must be able to continuously update the URL in that browser window, period.  As soon as you change the URL, the backup is toast. (I have a workaround for monitoring it)

C. Depending om the method chosen, the time required for a backup to run can differ in the 100's of percents. like up to 8 or 9 times as long from fastest to slowest. The size of the backups can differ almost 2 or 3x as well.

D. Whether the 'timing' script for the Backup Window itself works right, works half-assed or CGI-time-outs on you is a function of the browser used and how well it handles the Javascriplet that does that function. SO you may be 'in the know', 'poorly informed and curious', or 'in a freaking panic'.

E. THE WORKAROUD!
1.  Chose What to backup and the backup method - Make your choices, Save the settings.
2.  Click EITHER Run Full Backup OR Run Incremental Backup
3.  NO MATTER WHAT HAPPENS (OR DOESN'T) Leave it alone (see above).
4.  To Monitor the backup -
     -- Move your mouse up to 'Return to Admin Center'
     -- Right Click > Select Open in New Window or Open in New Tab
     -- Move to the new Window/Tab
     -- Click on YaBB Backup in the New Window
     -- You will see the current size of your new job that is running
     -- You CAN safely refresh this page to monitor the job..
     -- When the Backup stops growing, return to the original page.
     -- At the top you will see how many seconds the job took to run.
         (If you got a 504 Gateway Timeout - close the original window)
         (If you refresh the original window manually, you will likely create
           a new backup job.)

And that is it folks -
Wink

- where to click
- beta-backup-on-xeon
- beta-backup-on-HP
  

backup-navigate.png (Attachment deleted)
standard-beta-backup-tests.png (Attachment deleted)
YaBB_Chat_and_Support_Community_Admin_Center-_YaBB_Backup.png (Attachment deleted)

I find your lack of faith disturbing.
Back to top
IP Logged
 
Page Index Toggle Pages: 1
Topic Tools