Current time: 05-21-2024, 10:07 PM Hello There, Guest! (LoginRegister)


Post Reply 
Fehler mit cron
Author Message
undercover Offline
Junior Member
*

Posts: 14
Joined: Jun 2009
Reputation: 0
Post: #1
Fehler mit cron
Hallo,
Seit ein paar Tagen gehen bei mir die Backups nicht mehr.
System Debian Lenny
Ispcp 1.0.3-1
ispcp-backup-all-mngr.log
ispcp-backup-ispcp-mngr.log
ispcp-dsk-quota.log
zb sind vom 31.01.10
ispcp_daemon-stdout.log
ispcp-dmn-mngr.log
zb sind aktuell

solche Einträge habe ich in der syslog:
/USR/SBIN/CRON[4668]: (www-data) CMD ([ -x /usr/lib/cgi-bin/awstats.pl -a -f /etc/awstats/awstats.conf -a -r /var/log/apache/access.log ] && /usr/lib/cgi-bin/awstats.pl -config=awstats -update >/dev/null)

/USR/SBIN/CRON[4730]: (root) CMD ( [ -x /usr/lib/php5/maxlifetime ] && [ -d /var/lib/php5 ] && find /var/lib/php5/ -type f -cmin +$(/usr/lib/php5/maxlifetime) -print0 | xargs -n 200 -r -0 rm)

/USR/SBIN/CRON[5013]: (root) CMD ( cd / && run-parts --report /etc/cron.hourly)
Der traffic wird auch berechnet, nur halt die Backups nicht.
/etc/cron.d/ispcp:
Quote:# delayed tasks START.

# Quota
@daily root /var/www/ispcp/engine/quota/ispcp-dsk-quota &>/var/log/ispcp/ispcp-dsk-quota.log

# Traffic
0,30 * * * * root /var/www/ispcp/engine/traffic/ispcp-srv-traff &>/var/log/ispcp/ispcp-srv-traff.log
0,30 * * * * root /var/www/ispcp/engine/traffic/ispcp-vrl-traff &>/var/log/ispcp/ispcp-vrl-traff.log
15,45 * * * * root /var/www/ispcp/engine/traffic/ispcp-vrl-traff-correction &>/var/log/ispcp/ispcp-vrl-traff-correction.log

# customer logs
@daily root /var/www/ispcp/engine/tools/ispcp-httpd-logs-mngr &>/var/log/ispcp/ispcp-httpd-logs-mngr.log

# Backup
@daily root /var/www/ispcp/engine/backup/ispcp-backup-all yes &>/var/log/ispcp/ispcp-backup-all-mngr.log
@daily root /var/www/ispcp/engine/backup/ispcp-backup-ispcp noreport &>/var/log/ispcp/ispcp-backup-ispcp-mngr.log

# Remove config backups older than seven days
@daily root find /etc/ispcp/*/backup/* -maxdepth 0 -type f -mtime +7 -print | egrep '.*\.[0-9]+$' | xargs -r /bin/rm

# Remove Daemon Logs older than 14 days (except .gz files)
@daily root find /var/log/ispcp/* -maxdepth 1 -type f -mtime +14 -print | egrep '.*\.gz$' | xargs -r /bin/rm

# AWStats
15 */6 * * * root /var/www/ispcp/engine/awstats/awstats_updateall.pl now -awstatsprog=/usr/lib/cgi-bin/awstats.pl >/dev/null 2>&1

# Rootkit Hunter
0 */12 * * * root /usr/bin/rkhunter --cronjob --createlogfile /var/log/rkhunter.log.root --display-logfile 1>/var/log/rkhunter.log 2>/dev/null

# Chkrootkit
0 */12 * * * root /usr/sbin/chkrootkit &> /var/log/chkrootkit.log

# Look for and purge old sessions every 30 minutes
0,30 * * * * root /var/www/ispcp/engine/tools/ispcpphptemp.sh >/dev/null 2>&1

# ispCP - Domain Disk and Traffic Usage Report
0 0 * * 1 /var/www/ispcp/engine/ispcp-domainreport.pl | mail -s

# [{DMN_NAME}] backup task START.
# [{DMN_NAME}] backup task END.

# [{DMN_NAME}]:{CRONJOB_ID} custom task START.
# [{DMN_NAME}]:{CRONJOB_ID} custom task END.

# [{DMN_NAME}] AWStats static tasks START.
# [{DMN_NAME}] AWStats static tasks END.

# delayed tasks END.
/etc/ispcp/cron.d/ispcp:
Quote:# delayed tasks START.

# Quota
@daily root /var/www/ispcp/engine/quota/ispcp-dsk-quota &>/var/log/ispcp/ispcp-dsk-quota.log

# Traffic
0,30 * * * * root /var/www/ispcp/engine/traffic/ispcp-srv-traff &>/var/log/ispcp/ispcp-srv-traff.log
0,30 * * * * root /var/www/ispcp/engine/traffic/ispcp-vrl-traff &>/var/log/ispcp/ispcp-vrl-traff.log
15,45 * * * * root /var/www/ispcp/engine/traffic/ispcp-vrl-traff-correction &>/var/log/ispcp/ispcp-vrl-traff-correction.log

# customer logs
@daily root /var/www/ispcp/engine/tools/ispcp-httpd-logs-mngr &>/var/log/ispcp/ispcp-httpd-logs-mngr.log

# Backup
@daily root /var/www/ispcp/engine/backup/ispcp-backup-all yes &>/var/log/ispcp/ispcp-backup-all-mngr.log
@daily root /var/www/ispcp/engine/backup/ispcp-backup-ispcp noreport &>/var/log/ispcp/ispcp-backup-ispcp-mngr.log

# Remove config backups older than seven days
@daily root find /etc/ispcp/*/backup/* -maxdepth 0 -type f -mtime +7 -print | egrep '.*\.[0-9]+$' | xargs -r /bin/rm

# Remove Daemon Logs older than 14 days (except .gz files)
@daily root find /var/log/ispcp/* -maxdepth 1 -type f -mtime +14 -print | egrep '.*\.gz$' | xargs -r /bin/rm

# AWStats
15 */6 * * * root /var/www/ispcp/engine/awstats/awstats_updateall.pl now -awstatsprog=/usr/lib/cgi-bin/awstats.pl >/dev/null 2>&1

# Rootkit Hunter
0 */12 * * * root /usr/bin/rkhunter --check-deleted --cronjob --createlogfile /var/log/rkhunter.log >/dev/null 2>&1

# Chkrootkit
0 */12 * * * root /usr/sbin/chkrootkit &> /var/log/chkrootkit.log

# Look for and purge old sessions every 30 minutes
0,30 * * * * root /var/www/ispcp/engine/tools/ispcpphptemp.sh >/dev/null 2>&1

# [{DMN_NAME}] backup task START.
# [{DMN_NAME}] backup task END.

# [{DMN_NAME}]:{CRONJOB_ID} custom task START.
# [{DMN_NAME}]:{CRONJOB_ID} custom task END.

# [{DMN_NAME}] AWStats static tasks START.
# [{DMN_NAME}] AWStats static tasks END.

# delayed tasks END.
/etc/ispcp/cron.d/working/ispcp ist identisch mit der oben.
/etc/crontab:
Quote:# /etc/crontab: system-wide crontab
# Unlike any other crontab you don't have to run the `crontab'
# command to install the new version when you edit this file
# and files in /etc/cron.d. These files also have username fields,
# that none of the other crontabs do.

SHELL=/bin/sh
PATH=/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin

# m h dom mon dow user command
17 * * * * root cd / && run-parts --report /etc/cron.hourly
25 6 * * * root test -x /usr/sbin/anacron || ( cd / && run-parts --report /etc/cron.daily )
47 6 * * 7 root test -x /usr/sbin/anacron || ( cd / && run-parts --report /etc/cron.weekly )
52 6 1 * * root test -x /usr/sbin/anacron || ( cd / && run-parts --report /etc/cron.monthly )
#
Ein neustart mit /etc/init.d/cron restart blieb auch ohne erfolg.
Würde mich freuen wenn mir hioer einer auf die sprünge helfen könnte und den Fehler beseitiegen.
Bin (mal wieder) etwas ratlos.
Hoffe auch das ich alle Infos gepostet habe die benötigt werden.
(This post was last modified: 02-15-2010 08:54 PM by undercover.)
02-06-2010 07:54 PM
Find all posts by this user Quote this message in a reply
BeNe Offline
Moderator
*****
Moderators

Posts: 5,899
Joined: Jan 2007
Reputation: 68
Post: #2
RE: Fehler mit cron
Prüfe mal dein /tmp Verzeichniss ob da eine .lock Datei vom Backupsystem drin liegt. Diese dann löschen.
Solange die .lock Datei existiert geht das System aus das noch ein Backup läuft (ob wohl es nicht mehr läuft)

Greez BeNe
02-08-2010 04:59 PM
Visit this user's website Find all posts by this user Quote this message in a reply
undercover Offline
Junior Member
*

Posts: 14
Joined: Jun 2009
Reputation: 0
Post: #3
RE: Fehler mit cron
Danke für die Antwort.
Aber auch Fehlanzeige.
Läuft immer noch nicht.
Werde mal weitersuchen
02-15-2010 09:02 PM
Find all posts by this user Quote this message in a reply
BeNe Offline
Moderator
*****
Moderators

Posts: 5,899
Joined: Jan 2007
Reputation: 68
Post: #4
RE: Fehler mit cron
Was passiert denn wenn Du das Backup mal manuell aufrufst ?
Code:
/var/www/ispcp/engine/backup/ispcp-backup-all yes
/var/www/ispcp/engine/backup/ispcp-backup-ispcp

Und steht was in den Logs ?
Code:
/var/log/ispcp/ispcp-backup-all-mngr.log
/var/log/ispcp/ispcp-backup-ispcp-mngr.log

Greez BeNe
02-16-2010 05:07 PM
Visit this user's website Find all posts by this user Quote this message in a reply
undercover Offline
Junior Member
*

Posts: 14
Joined: Jun 2009
Reputation: 0
Post: #5
RE: Fehler mit cron
Hallo BeNe,
wenn ich es manuell aufrufe läuft alles sauber durch.
So mache ich es halt seit Tagen.
In den Logs steht auch das drinn was drinn stehen sollte.
Auszug:
DEBUG: push_el() sub_name: sys_command('/bin/tar --create --directory=/var/www/virtual/xxxx.de --bzip2 --file=/var/www/virtual/xxxx.de/xxxx.de-backup-2010.02.12-005807.tar.bz2 --exclude=logs --exclude=phptmp --exclude=backups --exclude=xxxx.de-backup-2010.02.12-005807.tar.bz2 --exclude=xxxx.de-backup-2010.02.12-005807.tar.bz2.log . 2> /var/www/virtual/xxxx.de/xxxx.de-backup-2010.02.12-005807.tar.bz2.log'), msg: Ending...
DEBUG: push_el() sub_name: sys_command(), msg: Starting...
DEBUG: push_el() sub_name: sys_command('/bin/rm -rf /var/www/virtual/xxxx.de/xxxx.de-backup-2010.02.12-005807.tar.bz2.log'), msg: Ending...
DEBUG: push_el() sub_name: sys_command(), msg: Starting...
DEBUG: push_el() sub_name: sys_command('/bin/rm -rf /var/www/virtual/xxxx.de/backups/xxxx.de-*.tar.*'), msg: Ending...
DEBUG: push_el() sub_name: sys_command(), msg: Starting...
DEBUG: push_el() sub_name: sys_command('/bin/mv -f /var/www/virtual/xxxx.de/xxxx.de-backup-2010.02.12-005807.tar.bz2 /var/www/virtual/xxxx.de/backups'), msg: Ending...
DEBUG: push_el() sub_name: setfmode(), msg: Starting...
DEBUG: push_el() sub_name: setfmode(), msg: Ending...
DEBUG: push_el() sub_name: backup_all_engine(), msg: Ending...
DEBUG: push_el() sub_name: backup_all_shut_down(), msg: Starting...
DEBUG: push_el() sub_name: unlock_backup_all_system(), msg: Starting...
DEBUG: push_el() sub_name: del_file(), msg: Starting...
DEBUG: push_el() sub_name: del_file(), msg: Ending...
DEBUG: push_el() sub_name: unlock_backup_all_system(), msg: Ending...
DEBUG: push_el() sub_name: backup_all_shut_down(), msg: Ending...
Das mit allen Doms.

Oh glaube habe was gefunden:-)
in
/var/log/ispcp/ispcp-backup-ispcp-mngr.log
kommt ein
./ispcp: line 17: @daily: command not found
Verstehen tu ich das aber auch nicht:-(
(This post was last modified: 02-18-2010 08:39 PM by undercover.)
02-18-2010 08:02 PM
Find all posts by this user Quote this message in a reply
Post Reply 


Forum Jump:


User(s) browsing this thread: 1 Guest(s)