Go Back   HowtoForge Forums | HowtoForge - Linux Howtos and Tutorials > Linux Forums > Server Operation

Do you like HowtoForge? Please consider supporting us by becoming a subscriber.
Reply
 
Thread Tools Display Modes
  #1  
Old 17th April 2007, 09:01
Ovidiu Ovidiu is offline
Senior Member
 
Join Date: Sep 2005
Posts: 1,268
Thanks: 84
Thanked 25 Times in 21 Posts
Default reoback problems on debian 3.1

hello,

I successfully installed and configured reoback. I made a testrun (manually) and everything worked fine. The backup was made, everything ok.
Then I noticed that when reoback ran as cronjob it kind of "hung" - the cronjob was set for 3 o'clock and late i nteh evenign I noticed a high CPU load. I checked and found out tar was still running.
My first idea was that maybe the reason was that I had configured reoback to backup / with just a few exceptions. So I reconfigured and specified each directory separately and did a testrun again. It run fine, a little smoother, basically a full backup took 1 1/2 hours the transfer itsself 30mins... but today I just noticed tar was still running... and reoback.pl and run_reoback.sh are also running.

So here I am - what can I check, how can I enable some logging to find out why it does not run when used with cron?

here is my cronjob: 3 3 * * * /etc/reoback/run_reoback.sh | mail -s "reoback" postmaster@mydomain
Reply With Quote
Sponsored Links
  #2  
Old 18th April 2007, 20:09
falko falko is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 41,701
Thanks: 1,900
Thanked 2,747 Times in 2,578 Posts
Default

What's in /etc/reoback/run_reoback.sh? Did you use full paths for all commands in that script? The PATH variable might be different in a cron job and on the shell.
__________________
Falko
--
Download the ISPConfig 3 Manual! | Check out the ISPConfig 3 Billing Module!

FB: http://www.facebook.com/howtoforge

nginx-Webhosting: Timme Hosting | Follow me on:
Reply With Quote
  #3  
Old 19th April 2007, 00:14
Ovidiu Ovidiu is offline
Senior Member
 
Join Date: Sep 2005
Posts: 1,268
Thanks: 84
Thanked 25 Times in 21 Posts
Default

basically this is its content, except for the shebang...

Quote:
# Location of the configuration file.
config="/etc/reoback/settings.conf"

# Change to reflect where REOBack is installed
reoback="/usr/bin/reoback.pl"

# Do not modify this line.
$reoback $config
I started the manual run like this: reoback.pl /etc/reoback/settings.conf ... maybe I should change the run_reoback.sh from full path to this ?
Reply With Quote
  #4  
Old 19th April 2007, 15:50
falko falko is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 41,701
Thanks: 1,900
Thanked 2,747 Times in 2,578 Posts
Default

You can try and add a PATH variable at the beginning of the run_reoback.sh script (in line 2, right after the shebang), e.g.

Code:
PATH=/sbin:/usr/sbin:/bin:/usr/bin:/usr/local/sbin:/usr/local/bin:/usr/X11R6/bin
__________________
Falko
--
Download the ISPConfig 3 Manual! | Check out the ISPConfig 3 Billing Module!

FB: http://www.facebook.com/howtoforge

nginx-Webhosting: Timme Hosting | Follow me on:
Reply With Quote
  #5  
Old 7th May 2007, 02:16
Ovidiu Ovidiu is offline
Senior Member
 
Join Date: Sep 2005
Posts: 1,268
Thanks: 84
Thanked 25 Times in 21 Posts
Default

the run_reoback.sh look like this now:

Quote:
#!/bin/sh
PATH=/usr/bin
################################################## ##########################
# REOBack - run_reoback.sh
# $Id: run_reoback.sh,v 1.4 2002/03/23 14:45:42 techno91 Exp $
################################################## ##########################
#
I also re-enabled the cronjob so I will report back tomorrow with the result of this modification.
Reply With Quote
  #6  
Old 7th May 2007, 11:51
Ovidiu Ovidiu is offline
Senior Member
 
Join Date: Sep 2005
Posts: 1,268
Thanks: 84
Thanked 25 Times in 21 Posts
Default

first feedback:

Quote:
Performing full backup via FTP
Last full backup: Mon May 7 03:03:01 2007

Archiving in progress...

Working on root_folder...
Archiving root_folder...
Transferring archive: h898552.serverkompetenz.net-root_folder-full--.1.tgz...FAILED! :

Working on bin...
Archiving bin...
Transferring archive: h898552.serverkompetenz.net-bin-full--.1.tgz...FAILED! :

Working on boot...
Archiving boot...
Transferring archive: h898552.serverkompetenz.net-boot-full--.1.tgz...FAILED! :

Working on etc...
Archiving etc...
Transferring archive: h898552.serverkompetenz.net-etc-full--.1.tgz...FAILED! :

Working on home...
Archiving home...
Transferring archive: h898552.serverkompetenz.net-home-full--.1.tgz...FAILED! :

Working on lib...
Archiving lib...
Transferring archive: h898552.serverkompetenz.net-lib-full--.1.tgz...FAILED! :

Working on root...
Archiving root...
Transferring archive: h898552.serverkompetenz.net-root-full--.1.tgz...FAILED! :

Working on sbin...
Archiving sbin...
Transferring archive: h898552.serverkompetenz.net-sbin-full--.1.tgz...FAILED! :

Working on usr...
Archiving usr...
Transferring archive: h898552.serverkompetenz.net-usr-full--.1.tgz...FAILED! :

Working on var...
Archiving var...
Transferring archive: h898552.serverkompetenz.net-var-full--.1.tgz...FAILED! :

All local archives were removed.
Total transfer time: 7.00 seconds(s).
Overall backup time: 4.48 minute(s).
second one :-)

Quote:
- original message -
Subject: Cron <root@h898552> /etc/reoback/run_reoback.sh | mail -s "reoback" postmaster@web-designerz.de
From: root@h898552.serverkompetenz.net (Cron Daemon)
Date: 07.05.2007 01:07

Can't exec "date": No such file or directory at /usr/bin/reoback.pl line 42.
Can't exec "date": No such file or directory at /usr/bin/reoback.pl line 43.
Can't exec "date": No such file or directory at /usr/bin/reoback.pl line 44.
Use of uninitialized value in scalar chomp at /usr/bin/reoback.pl line 407.
Use of uninitialized value in scalar chomp at /usr/bin/reoback.pl line 408.
Use of uninitialized value in scalar chomp at /usr/bin/reoback.pl line 409.
Can't exec "cat": No such file or directory at /usr/bin/reoback.pl line 422.
Use of uninitialized value in split at /usr/bin/reoback.pl line 422.
Use of uninitialized value in addition (+) at /usr/bin/reoback.pl line 425.
Use of uninitialized value in concatenation (.) or string at /usr/bin/reoback.pl line 80.
Use of uninitialized value in concatenation (.) or string at /usr/bin/reoback.pl line 81.
Use of uninitialized value in concatenation (.) or string at /usr/bin/reoback.pl line 82.
Use of uninitialized value in concatenation (.) or string at /usr/bin/reoback.pl line 588.
Use of uninitialized value in concatenation (.) or string at /usr/bin/reoback.pl line 588.
readline() on closed filehandle PROC at /usr/bin/reoback.pl line 199.
Cannot open Local file /var/lib/reoback/backups/h898552.serverkompetenz.net-root_folder-full--.1.tgz: No such file or directory at /usr/bin/reoback.pl line 229
readline() on closed filehandle PROC at /usr/bin/reoback.pl line 857.
Use of uninitialized value in concatenation (.) or string at /usr/bin/reoback.pl line 588.
Use of uninitialized value in concatenation (.) or string at /usr/bin/reoback.pl line 588.
readline() on closed filehandle PROC at /usr/bin/reoback.pl line 199.
Cannot open Local file /var/lib/reoback/backups/h898552.serverkompetenz.net-bin-full--.1.tgz: No such file or directory at /usr/bin/reoback.pl line 229
readline() on closed filehandle PROC at /usr/bin/reoback.pl line 857.
Use of uninitialized value in concatenation (.) or string at /usr/bin/reoback.pl line 588.
Use of uninitialized value in concatenation (.) or string at /usr/bin/reoback.pl line 588.
readline() on closed filehandle PROC at /usr/bin/reoback.pl line 199.
Cannot open Local file /var/lib/reoback/backups/h898552.serverkompetenz.net-boot-full--.1.tgz: No such file or directory at /usr/bin/reoback.pl line 229
readline() on closed filehandle PROC at /usr/bin/reoback.pl line 857.
Use of uninitialized value in concatenation (.) or string at /usr/bin/reoback.pl line 588.
Use of uninitialized value in concatenation (.) or string at /usr/bin/reoback.pl line 588.
readline() on closed filehandle PROC at /usr/bin/reoback.pl line 199.
Cannot open Local file /var/lib/reoback/backups/h898552.serverkompetenz.net-etc-full--.1.tgz: No such file or directory at /usr/bin/reoback.pl line 229
readline() on closed filehandle PROC at /usr/bin/reoback.pl line 857.
Use of uninitialized value in concatenation (.) or string at /usr/bin/reoback.pl line 588.
Use of uninitialized value in concatenation (.) or string at /usr/bin/reoback.pl line 588.
readline() on closed filehandle PROC at /usr/bin/reoback.pl line 199.
Cannot open Local file /var/lib/reoback/backups/h898552.serverkompetenz.net-home-full--.1.tgz: No such file or directory at /usr/bin/reoback.pl line 229
readline() on closed filehandle PROC at /usr/bin/reoback.pl line 857.
Use of uninitialized value in concatenation (.) or string at /usr/bin/reoback.pl line 588.
Use of uninitialized value in concatenation (.) or string at /usr/bin/reoback.pl line 588.
readline() on closed filehandle PROC at /usr/bin/reoback.pl line 199.
Cannot open Local file /var/lib/reoback/backups/h898552.serverkompetenz.net-lib-full--.1.tgz: No such file or directory at /usr/bin/reoback.pl line 229
readline() on closed filehandle PROC at /usr/bin/reoback.pl line 857.
Use of uninitialized value in concatenation (.) or string at /usr/bin/reoback.pl line 588.
Use of uninitialized value in concatenation (.) or string at /usr/bin/reoback.pl line 588.
readline() on closed filehandle PROC at /usr/bin/reoback.pl line 199.
Cannot open Local file /var/lib/reoback/backups/h898552.serverkompetenz.net-root-full--.1.tgz: No such file or directory at /usr/bin/reoback.pl line 229
readline() on closed filehandle PROC at /usr/bin/reoback.pl line 857.
Use of uninitialized value in concatenation (.) or string at /usr/bin/reoback.pl line 588.
Use of uninitialized value in concatenation (.) or string at /usr/bin/reoback.pl line 588.
readline() on closed filehandle PROC at /usr/bin/reoback.pl line 199.
Cannot open Local file /var/lib/reoback/backups/h898552.serverkompetenz.net-sbin-full--.1.tgz: No such file or directory at /usr/bin/reoback.pl line 229
readline() on closed filehandle PROC at /usr/bin/reoback.pl line 857.
Use of uninitialized value in concatenation (.) or string at /usr/bin/reoback.pl line 588.
Use of uninitialized value in concatenation (.) or string at /usr/bin/reoback.pl line 588.
readline() on closed filehandle PROC at /usr/bin/reoback.pl line 199.
Cannot open Local file /var/lib/reoback/backups/h898552.serverkompetenz.net-usr-full--.1.tgz: No such file or directory at /usr/bin/reoback.pl line 229
readline() on closed filehandle PROC at /usr/bin/reoback.pl line 857.
Use of uninitialized value in concatenation (.) or string at /usr/bin/reoback.pl line 588.
Use of uninitialized value in concatenation (.) or string at /usr/bin/reoback.pl line 588.
readline() on closed filehandle PROC at /usr/bin/reoback.pl line 199.
Cannot open Local file /var/lib/reoback/backups/h898552.serverkompetenz.net-var-full--.1.tgz: No such file or directory at /usr/bin/reoback.pl line 229
readline() on closed filehandle PROC at /usr/bin/reoback.pl line 857.
looks like I need to include all the paths falko quoted above, right?
Reply With Quote
  #7  
Old 7th May 2007, 14:21
falko falko is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 41,701
Thanks: 1,900
Thanked 2,747 Times in 2,578 Posts
Default

Quote:
Originally Posted by Tenaka
looks like I need to include all the paths falko quoted above, right?
Yes, correct.
__________________
Falko
--
Download the ISPConfig 3 Manual! | Check out the ISPConfig 3 Billing Module!

FB: http://www.facebook.com/howtoforge

nginx-Webhosting: Timme Hosting | Follow me on:
Reply With Quote
  #8  
Old 8th May 2007, 08:59
Ovidiu Ovidiu is offline
Senior Member
 
Join Date: Sep 2005
Posts: 1,268
Thanks: 84
Thanked 25 Times in 21 Posts
Default

no luck. the cron job started this morning at 3:00 am and is still running.
Reply With Quote
  #9  
Old 8th May 2007, 17:11
falko falko is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 41,701
Thanks: 1,900
Thanked 2,747 Times in 2,578 Posts
Default

Any error messages?
What exactly is in your script now?
__________________
Falko
--
Download the ISPConfig 3 Manual! | Check out the ISPConfig 3 Billing Module!

FB: http://www.facebook.com/howtoforge

nginx-Webhosting: Timme Hosting | Follow me on:
Reply With Quote
  #10  
Old 8th May 2007, 18:28
Ovidiu Ovidiu is offline
Senior Member
 
Join Date: Sep 2005
Posts: 1,268
Thanks: 84
Thanked 25 Times in 21 Posts
 
Default

I put the whole path into it like you quoted above. there were no error messages, as I had to kill the still runnign scripts. they were consuming too much cpu-time

you also have details regarding this in a PM
Reply With Quote
Reply

Bookmarks

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
The Perfect Setup - Debian Sarge (3.1) problems bbking HOWTO-Related Questions 8 20th January 2008 20:58
Problems installing Zimbra on Debian 3.1 sender HOWTO-Related Questions 11 29th March 2007 00:00
Problems with saslauthd - Debian Perfekt setup 3.1 + ISPConfig r12dk Installation/Configuration 6 14th April 2006 01:07
ISP install problems Debian sarge 3.1 lerra Installation/Configuration 1 5th January 2006 17:37
e-mail problem!!! Debian 3.1 maroonworks Installation/Configuration 18 6th December 2005 15:42


All times are GMT +2. The time now is 06:04.


Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2014, vBulletin Solutions, Inc.