Jump to content
Froxlor Forum
  • 0

[solved] Ausstehende Cron-Aufgaben


robertu

Question

Hallo,

ich habe ein kleines Problem.

Heute habe ich mir auf meinen Debian Squeeze die aktuelle Froxlorversion raufgespielt.

Die Installation ?ber apt-get install hat einwandfrei funktioniert.

Nacher habe ich ?ber Server --> Konfiguration ..... das Cronscript konfiguriert.

Ich habe jetzt aber folgendes Problem

Bei der ?bersicht bei den "Ausstehende Cron-Aufgaben" steht einige Cron-Aufgaben. Sie werden nicht ausgef?hrt.

 

Kann mir bitte jemand einen Tip geben?

 

Danke

 

Robert

Link to comment
Share on other sites

Recommended Posts

Hast du den Cronjob auch eingerichtet?

 

# cat /etc/cron.d/froxlor
#
# Set PATH, otherwise restart-scripts won't find start-stop-daemon
#
PATH=/sbin:/bin:/usr/sbin:/usr/bin
#
# Regular cron jobs for the froxlor package
#
# Please check that all following paths are correct
#
*/5 * * * *     root    /usr/lib/php5/bin/php -q /var/www/froxlor/scripts/froxlor_master_cronjob.php

Link to comment
Share on other sites

Habe ihn so eingerichtet:

 

root@srv:~# cat /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

root@srv:~#

 

So m?sste es ja stimmen. Nacher habe ich den Befehl "/etc/init.d/cron restart" durchgef?hrt.

Link to comment
Share on other sites

Wenn ich die cronjobs manuell starte klappt es bei mir, aber nicht alle 5min?!

 

/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

/etc/crontab

# /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
19 * * * * root cd / && run-parts --report /etc/cron.hourly
27 1 * * * root test -x /usr/sbin/anacron || ( cd / && run-parts --report /etc/cron.daily )
27 0 * * 7 root test -x /usr/sbin/anacron || ( cd / && run-parts --report /etc/cron.weekly )
40 0 18 * * root test -x /usr/sbin/anacron || ( cd / && run-parts --report /etc/cron.monthly )
#

Jemand ne Idee woran das liegen kann?

 

Ich wollte cron neustarten, bekomme jedoch dauernd eine Fehlermeldung:

root@lvps-ip:~# /etc/init.d/cron restart
Rather than invoking init scripts through /etc/init.d, use the service(8)
utility, e.g. service cron restart

Since the script you are attempting to invoke has been converted to an
Upstart job, you may also use the restart(8) utility, e.g. restart cron
cron start/running, process 17642
root@lvps-ip:~# ^C
root@lvps-ip:~# cron restart
cron: can't lock /var/run/crond.pid, otherpid may be 17642: Resource temporarily unavailable
root@lvps-ip:~# service cron restart
cron start/running, process 17680
root@lvps-ip:~# restart cron
cron start/running, process 17685
root@lvps-ip:~# service restart cron
restart: unrecognized service
root@lvps-ip:~#

Manno man :)

Link to comment
Share on other sites

Das ist keine Fehlermeldung sondern eine Information.

man braucht nicht mehr /etc/init.d/[soft] zu machen sondern man kann nun "service [soft] " machen. Ist beides das Gleiche ;).

Also:

service cron restart

 

 

Bei mir sieht die cron datei so aus ;)

 

#...
# m h dom mon dow user  command
00 00 * * * root    /usr/own/update_froxlor.sh > /dev/null
*/30 * * * * root   [ -x /usr/lib/php5/maxlifetime ] && [ -d /var/lib/php5 ] && find /var/lib/php5/ -type f -cmin $
*/1 * * * * root   /usr/bin/php5 -q /var/www/froxlor/scripts/froxlor_master_cronjob.php > /dev/null
#...

Link to comment
Share on other sites

Wo k?nnte denn der Fehler bei mir liegen?

Die Datei /etc/cron.d/froxlor m?sste richtig sein

Wenn ich /usr/bin/php -q /var/www/froxlor/scripts/froxlor_master_cronjob.php manuell starte funktioniert der cronjob

...nur wird er nicht alle 5 min automatisch durchgef?hrt. :-(

Link to comment
Share on other sites

Hi

 

Das Topic ist zwar bereits auf [solved] gestellt, aber da ich mit selben Problem aber anderer Ursache dank Google auch hier gelandet bin, k?nnte folgendes dem einen oder anderen vielleicht auch weiterhelfen:

 

Nach den Update von 0.9.31 auf 0.9.32 war in den Cronjob-Einstellungen wieder

 

/usr/bin/nice -n 5 /usr/bin/php5 -q

 

anstatt wie es bei mir notwendig w?re

 

/usr/bin/nice -n 5 /usr/bin/php -q (ich k?nnte schw?ren ich habs vorher umgestellt, is ja auch vorher alles gelaufen)

 

... den "unwesentlichen" 5er hab ich in der /var/log/messages einfach ?bersehen und mich gewundert, warum der Cron zwar gestartet wird, die ausstehenden Aufgaben aber nicht erledigt werden ;)

Ein einfaches ?ndern in den Einstellungen ist da zuwenig, weil Froxlor ja mit dem (zumindest bei mir nicht vorhandenen) php5 versucht, das zu aktualisieren ... da muss man schon die /etc/cron.d/froxlor manuell korrigieren und crond neu starten

 

Hoffe das erspart dem einen oder anderen etwas Fehlersuche :)

Link to comment
Share on other sites

Das Verzeichniss wurde angelegt, als ich den cron manuell gestartet habe.

 

root@srv:~# ls -l /var/customers/webs/
total 4
drwxr-xr-x 3 10000 10000 4096 May 16 13:24 web1
root@srv:~#

 

Im moment stehen bei dei Aufgaben folgende punkte:

* Neuerstellung der Webserver-Konfiguration

* Neuerstellung der Bind-Konfiguration

* Erstelle Verzeichnis f?r neuen FTP-Benutzer

* Erstelle Verzeichnis f?r neuen FTP-Benutzer

Link to comment
Share on other sites

Jetzt aber ganz schnell libnss einrichten ;)

 

Konfiguration => <DISTRI> ? Sonstige (System) ? libnss (system login with mysql)

 

Erstell am besten einen weiteren Kunden, damit du pr?fen kannst ob der Cronjob immer noch fehlerhaft oder gar nicht ausgef?hrt wird.

Link to comment
Share on other sites

Diese Schritte habe ich schon ausgef?hrt. Habe die generierte Config einfach rein kopiert und das mysql pasword ausgetauscht.

W?re eventuell besser gewesen die inhalt der drei dateien zu l?schen und dann nur den code rein kopieren?

 

Welche Rechte sollten diese 3 Dateien haben? Stimmen diese so?

nss-mysql.conf & nss-mysql-root.conf 0600

nsswitch.conf 0644

Link to comment
Share on other sites

Archived

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



×
×
  • Create New...