ISPsystem.com Forums

ISPsystem.com Forums (http://forum.ispsystem.com//index.php)
-   Troubleshooting (http://forum.ispsystem.com//forumdisplay.php?f=11)
-   -   Backup stopped suddenly (http://forum.ispsystem.com//showthread.php?t=2179)

mariusfv 03-28-2014 10:54 AM

Backup stopped suddenly
 
Hi,

Now I see that on 22 March my backup plan stopped suddenly.
I've checked usr/local/ispmgr/var/pbackup.log
And no log after 21 March, the end of 21 March log appear normally:
Code:

Mar 21 16:33:08 [12974:0] ^[[1;32mINFO Deleting outdated archives...^[[0m
Mar 21 16:33:08 [12974:0] ^[[1;32mINFO found 6 daily archives, limit 6^[[0m
Mar 21 16:33:08 [12974:0] ^[[1;32mINFO found 3 weekly archives, limit 3^[[0m
Mar 21 16:33:08 [12974:0] ^[[1;32mINFO found 3 monthly archives, limit 3^[[0m
Mar 21 16:33:08 [12974:0] ^[[1;32mINFO Deleting /usr/local/ispmgr/var/.backup/root/1_Mybackups-2014-03-14.lst^[[0m
Mar 21 16:33:08 [12974:0] ^[[1;32mINFO Deleting /usr/local/ispmgr/var/.backup/root/1_Mybackups-2014-03-14.dir^[[0m
Mar 21 16:33:08 [12974:0] ^[[1;32mINFO Removing temporary directory: /tmp/pbkp_12974/^[[0m
Mar 21 16:33:08 [12974:0] ^[[1;32mINFO Finishing [root] ...^[[0m

So today I've start a new backup plan management to can check eventually errors:
Code:

Mar 28 08:28:37 [    0:0] ^[[1;32mINFO Lookup log level for '/usr/local/ispmgr/var/pbackup.log' in 'etc/pbackup.debug'^[[0m
Mar 28 08:28:37 [13317:0] ^[[1;32mINFO /usr/local/ispmgr/sbin/pbackup scheck local /home/backups/ ^[[0m
Mar 28 08:28:37 [13317:0] ^[[1;32mINFO [Starting] planned backup system: 2014-03-28 08:28:37^[[0m
Mar 28 08:28:37 [13317:0] ^[[1;32mINFO User: root^[[0m
Mar 28 08:28:37 [13317:0] ^[[1;32mINFO Checking local storage /home/backups/ ...^[[0m
Mar 28 08:28:37 [13317:0] ^[[1;32mINFO Rootdir: /^[[0m
Mar 28 08:28:37 [13317:0] ^[[1;36mEXTINFO Execute (/bin/touch /home/backups/pbkp_check) return=0 exited^[[0m
Mar 28 08:28:37 [13317:0] ^[[1;32mINFO Finishing [root] ...^[[0m

In the last year since I use ISPmanager is first time when this is happening.
Can someone help me please to solve this problem?
ISPmanager-Lite 4.4.10.22
Thanks in advance.

usaafko 03-30-2014 03:18 AM

Hello, please check you cron settings
do
ps axu|grep cron
crontab -l

mariusfv 03-31-2014 09:16 AM

Code:

[root@server1 /]# ps axu|grep cron
root    23225  0.0  0.0  5504  740 pts/0    S+  08:40  0:00 grep cron

Crontab not installed.

In: ISPmanager/Management Tools/Sheduler(cron): /usr/local/ispmgr/sbin/pbackup backup - appear to have correctly settings.

Manual backup from ISPmanager working, I've tested.

I've add logwatch as cron in ISPmnager: /usr/sbin/logwatch - to see if i get emails and with this occasion to check the ISPmanager cron module and via root the command: /usr/sbin/logwatch send me instant email with the log selected by me and via ISPmanager Sheduler(cron) no email in the last 3 days and interval is @daily in Sheduler(cron) of ISPmanager.

In the log of backup usr/local/ispmgr/var/pbackup.log is present only the last log when I made manually the last backup:
Code:

Mar 28 14:57:43 [14869:0] ^[[1;32mINFO [Starting] planned backup system: 2014-03-28 14:57:43^[[0m
Mar 28 14:57:43 [14869:0] ^[[1;32mINFO User: mfvbn^[[0m
Mar 28 14:57:43 [14869:0] ^[[1;32mINFO Loading plan's info from ISPmanager...^[[0m
Mar 28 14:57:43 [14869:0] ^[[1;32mINFO Plan: 2^[[0m
Mar 28 14:57:43 [14869:0] ^[[1;32mINFO Plan name: BackupMarius^[[0m
Mar 28 14:57:43 [14869:0] ^[[1;32mINFO Archiver: tgz^[[0m
Mar 28 14:57:43 [14869:0] ^[[1;32mINFO Storage: local^[[0m
Mar 28 14:57:43 [14869:0] ^[[1;32mINFO Storage path: /home/backups^[[0m
Mar 28 14:57:43 [14869:0] ^[[1;32mINFO Checking user's access to admin mode ...^[[0m
Mar 28 14:57:43 [14869:0] ^[[1;32mINFO ... access granted^[[0m
Mar 28 14:57:43 [14869:0] ^[[1;32mINFO Downloading archive ...^[[0m
Mar 28 15:05:01 [14869:0] ^[[1;36mEXTINFO Execute (/bin/cat /home/backups/mfvbn/admin-2_full-2014-03-28.tar.gz) return=0 exited^[[0m
Mar 28 15:05:01 [14869:0] ^[[1;32mINFO Finishing [mfvbn] ...^[[0m

So without an error log I'm stuck to solve my problem why Sheduler(cron) of ISPmanager and my backups are stopped suddenly?

Please some help.

mariusfv 04-03-2014 11:57 AM

Problem and solution
 
I found the problem and the solution.

The problem is that on Centos 6 the minimal install doesn't include "crontab" services by default, so you must to install and enable them.

If you are on Centos 6 and ISPmanager to solve your issue:

Code:

#yum install vixie-cron

Enable the package on boot and start
# /sbin/chkconfig crond on

# /etc/init.d/crond start

#killall ispmgr

Now you can schedule a new backup and everything will work great, you can check your ISPmanager log with your favorite editor in:
Code:

/usr/local/ispmgr/var/pbackup.log
I bet that others users of ISPmanager with Centos 6 with minimal install have stopped their backups after they upgrade to ISPmanager-Lite 4.4.10.22.
I've analysed the log and I see "ispmanager" returned 0(excited) because after the upgrade in someway is not part of group root.

@ Solved


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

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