Jump to content
Froxlor Forum
  • 0

[solved] Froxlor Cronjob wird nicht ausgef?hrt


Lars

Question

Hallo!

 

Ich habe auf einem Debian 6 vServer (hosteurope) Froxlor installiert mit apt-get in der Standardkonfiguration. In Froxlor habe ich alle Dienste eingerichtet, auch den Cronjob erstellt, allerdings werden jegliche ?nderungen am System nicht automatisch ?bernommen. Erst wenn ich via Console die froxlor_master_cronjob.php ausf?hre, werden die ?nderungen ausgef?hrt. Wie kann ich das beheben ?

 

Ich habe mal etwas in den logfiles gest?bert und folgende Auff?lligkeiten entdeckt, bringt mich aber nicht weiter:

 

syslog Auszug

Jul 11 23:20:01 $SERVER /USR/SBIN/CRON[29798]: (root) CMD (/usr/bin/php5 -q /var/www/froxlor/scripts/froxlor_master_cronjob.php^M)
Jul 11 23:20:01 $SERVER /USR/SBIN/CRON[29797]: (CRON) error (grandchild #29798 failed with exit status 1)
Jul 11 23:23:01 $SERVER /USR/SBIN/CRON[3096]: (root) CMD (cd / && run-parts --report /etc/cron.hourly)
Jul 11 23:25:01 $SERVER /USR/SBIN/CRON[5252]: (root) CMD (/usr/bin/php5 -q /var/www/froxlor/scripts/froxlor_master_cronjob.php^M)
Jul 11 23:25:01 $SERVER /USR/SBIN/CRON[5251]: (CRON) error (grandchild #5252 failed with exit status 1)
Jul 11 23:30:01 $SERVER /USR/SBIN/CRON[11895]: (root) CMD (/usr/bin/php5 -q /var/www/froxlor/scripts/froxlor_master_cronjob.php^M)
Jul 11 23:30:01 $SERVER /USR/SBIN/CRON[11898]: (www-data) CMD ([ -x /usr/share/awstats/tools/update.sh ] && /usr/share/awstats/tools/update.sh)
Jul 11 23:30:01 $SERVER /USR/SBIN/CRON[11892]: (CRON) error (grandchild #11895 failed with exit status 1)
Jul 11 23:35:01 $SERVER /USR/SBIN/CRON[20359]: (root) CMD (/usr/bin/php5 -q /var/www/froxlor/scripts/froxlor_master_cronjob.php^M)
Jul 11 23:35:01 $SERVER /USR/SBIN/CRON[20356]: (CRON) error (grandchild #20359 failed with exit status 1)
Jul 11 23:39:01 $SERVER /USR/SBIN/CRON[27676]: (root) CMD (  [ -x /usr/lib/php5/maxlifetime ] && [ -d /var/lib/php5 ] && find /var/lib/php5/ -type f -cmin +$(/usr/lib/php5/maxlifetime) -delete)
Jul 11 23:40:01 $SERVER /USR/SBIN/CRON[28281]: (www-data) CMD ([ -x /usr/share/awstats/tools/update.sh ] && /usr/share/awstats/tools/update.sh)
Jul 11 23:40:01 $SERVER /USR/SBIN/CRON[28283]: (root) CMD (/usr/bin/php5 -q /var/www/froxlor/scripts/froxlor_master_cronjob.php^M)
Jul 11 23:40:01 $SERVER /USR/SBIN/CRON[28282]: (CRON) error (grandchild #28283 failed with exit status 1)
Jul 11 23:45:01 $SERVER /USR/SBIN/CRON[3364]: (root) CMD (/usr/bin/php5 -q /var/www/froxlor/scripts/froxlor_master_cronjob.php^M)
Jul 11 23:45:01 $SERVER /USR/SBIN/CRON[3362]: (CRON) error (grandchild #3364 failed with exit status 1)
Jul 11 23:49:17 $SERVER /usr/sbin/cron[9589]: (CRON) INFO (pidfile fd = 3)
Jul 11 23:49:17 $SERVER /usr/sbin/cron[9590]: (CRON) STARTUP (fork ok)
Jul 11 23:49:17 $SERVER /usr/sbin/cron[9590]: (*system*froxlor) WRONG INODE INFO (/etc/cron.d/froxlor)
Jul 11 23:49:17 $SERVER /usr/sbin/cron[9590]: (CRON) INFO (Skipping @reboot jobs -- not system startup)
Jul 11 23:50:01 $SERVER /USR/SBIN/CRON[10049]: (www-data) CMD ([ -x /usr/share/awstats/tools/update.sh ] && /usr/share/awstats/tools/update.sh)
Jul 11 23:50:22 $SERVER named[17935]: received control channel command 'reload'
Jul 11 23:50:22 $SERVER named[17935]: loading configuration from '/etc/bind/named.conf'
Jul 11 23:50:22 $SERVER named[17935]: reading built-in trusted keys from file '/etc/bind/bind.keys'
Jul 11 23:50:22 $SERVER named[17935]: using default UDP/IPv4 port range: [1024, 65535]
Jul 11 23:50:22 $SERVER named[17935]: using default UDP/IPv6 port range: [1024, 65535]

 

xconsole log Auszug

Jul 10 19:50:01 lvps83-169-41-76 /USR/SBIN/CRON[24176]: (root) CMD (/usr/bin/php5 -q /var/www/froxlor/scripts/froxlor_master_cronjob.php^M)
Jul 10 19:50:01 lvps83-169-41-76 /USR/SBIN/CRON[24174]: (CRON) error (grandchild #24176 failed with exit status 1)

 

/etc/cron.d/froxlor

#
# Set PATH, otherwise restart-scripts won't find start-stop-daemon
#
PATH=/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin
#
# Regular cron jobs for the froxlor package
#
*/5 * * * *	root	/usr/bin/php5 -q /var/www/froxlor/scripts/froxlor_master_cronjob.php

 

Gru?,

 

Lars

Link to comment
Share on other sites

4 answers to this question

Recommended Posts

Keine Ahnung, hab ich mich auch schon gefragt. Ich hab die Datei froxlor in cron.d auch schon mal in einem Editor angeschaut und neu angelegt.. da ist nur ein CR und LF hinter, die ascii Zeichen f?r den Zeilenumbruch.

 

Grad nochmal in die logs geschaut: Anscheinend wird der cronjob gar nicht ausgef?hrt?

 

So sieht der syslog aus, wie man sieht wird da nicht alle 5min der froxlor cronjob gestartet, der awstats cronjob aber schon (?)

 

Jul 13 02:00:01 $SERVER /USR/SBIN/CRON[24268]: (www-data) CMD ([ -x /usr/share/awstats/tools/update.sh ] && /usr/share/awstats/tools/update.sh)
Jul 13 02:09:01 $SERVER /USR/SBIN/CRON[7465]: (root) CMD (  [ -x /usr/lib/php5/maxlifetime ] && [ -d /var/lib/php5 ] && find /var/lib/php5/ -type f -cmin +$(/usr/lib/php5/maxlifetime) -delete)
Jul 13 02:10:01 $SERVER /USR/SBIN/CRON[9610]: (www-data) CMD ([ -x /usr/share/awstats/tools/update.sh ] && /usr/share/awstats/tools/update.sh)
Jul 13 02:20:01 $SERVER /USR/SBIN/CRON[25683]: (www-data) CMD ([ -x /usr/share/awstats/tools/update.sh ] && /usr/share/awstats/tools/update.sh)
Jul 13 02:23:01 $SERVER /USR/SBIN/CRON[30550]: (root) CMD (cd / && run-parts --report /etc/cron.hourly)
Jul 13 02:30:01 $SERVER /USR/SBIN/CRON[12081]: (www-data) CMD ([ -x /usr/share/awstats/tools/update.sh ] && /usr/share/awstats/tools/update.sh)
Jul 13 02:39:01 $SERVER /USR/SBIN/CRON[29788]: (root) CMD (  [ -x /usr/lib/php5/maxlifetime ] && [ -d /var/lib/php5 ] && find /var/lib/php5/ -type f -cmin +$(/usr/lib/php5/maxlifetime) -delete)
Jul 13 02:40:01 $SERVER /USR/SBIN/CRON[31871]: (www-data) CMD ([ -x /usr/share/awstats/tools/update.sh ] && /usr/share/awstats/tools/update.sh)
Jul 13 02:50:01 $SERVER /USR/SBIN/CRON[14220]: (www-data) CMD ([ -x /usr/share/awstats/tools/update.sh ] && /usr/share/awstats/tools/update.sh)
Jul 13 03:00:01 $SERVER /USR/SBIN/CRON[28605]: (www-data) CMD ([ -x /usr/share/awstats/tools/update.sh ] && /usr/share/awstats/tools/update.sh)
Jul 13 03:09:01 $SERVER /USR/SBIN/CRON[14013]: (root) CMD (  [ -x /usr/lib/php5/maxlifetime ] && [ -d /var/lib/php5 ] && find /var/lib/php5/ -type f -cmin +$(/usr/lib/php5/maxlifetime) -delete)
Jul 13 03:10:01 $SERVER /USR/SBIN/CRON[15764]: (www-data) CMD ([ -x /usr/share/awstats/tools/update.sh ] && /usr/share/awstats/tools/update.sh)
Jul 13 03:20:01 $SERVER /USR/SBIN/CRON[30242]: (www-data) CMD ([ -x /usr/share/awstats/tools/update.sh ] && /usr/share/awstats/tools/update.sh)
Jul 13 03:23:01 $SERVER /USR/SBIN/CRON[3618]: (root) CMD (cd / && run-parts --report /etc/cron.hourly)
Jul 13 03:30:01 $SERVER /USR/SBIN/CRON[13551]: (www-data) CMD ([ -x /usr/share/awstats/tools/update.sh ] && /usr/share/awstats/tools/update.sh)
Jul 13 03:39:01 $SERVER /USR/SBIN/CRON[28306]: (root) CMD (  [ -x /usr/lib/php5/maxlifetime ] && [ -d /var/lib/php5 ] && find /var/lib/php5/ -type f -cmin +$(/usr/lib/php5/maxlifetime) -delete)

Link to comment
Share on other sites

Beim Herumprobieren hat folgendes zur L?sung gef?hrt: Ich hab' zum debuggen die Befehle des awstats cronjobs und von froxlor in eine Datei gepackt und nach dem Froxlor Eintrag noch einen weiteren hinzugef?gt. So wie gezeigt funktioniert alles einwandfrei o_O

 

Beim Testen ist mir auch noch aufgefallen, dass der cron-daemon jede Datei ignoriert, die nicht ein LF am Ende einer Datei hat. Mit anderen Worten, unbedingt eine Leerzeile am Ende lassen!

 


*/60 * * * * www-data [ -x /usr/share/awstats/tools/update.sh ] && /usr/share/awstats/tools/update.sh

# Generate static reports:
10 03 * * * www-data [ -x /usr/share/awstats/tools/buildstatic.sh ] && /usr/share/awstats/tools/buildstatic.sh

#
# Regular cron jobs for the froxlor package
#

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

*/1 * * * *	root	/usr/bin/php5 /var/www/froxlor/scripts/froxlor_master_cronjob.php
*/1 * * * *	root	echo "Froxlor, do something!" >> /home/testuser/test.txt

Link to comment
Share on other sites

Archived

This topic is now archived and is closed to further replies.



×
×
  • Create New...