robertu Posted May 16, 2011 Share Posted May 16, 2011 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 More sharing options...
giants Posted May 16, 2011 Share Posted May 16, 2011 cron auch neu gestartet ? /etc/init.d/cron restart Link to comment Share on other sites More sharing options...
robertu Posted May 16, 2011 Author Share Posted May 16, 2011 Hallo! /etc/init.d/cron restart habe ich auch ausgef?hrt Link to comment Share on other sites More sharing options...
giants Posted May 16, 2011 Share Posted May 16, 2011 was sagen die log auf den Server ? Link to comment Share on other sites More sharing options...
robertu Posted May 16, 2011 Author Share Posted May 16, 2011 Wo finde ich diese Logfiles? Bin ein Linux-Anf?nger..... :-( Link to comment Share on other sites More sharing options...
giants Posted May 16, 2011 Share Posted May 16, 2011 /var/log/cron.log Link to comment Share on other sites More sharing options...
robertu Posted May 16, 2011 Author Share Posted May 16, 2011 Dabe in diesem Verzeichniss zwar die logfiles, aber die cron.log fehlt. Link to comment Share on other sites More sharing options...
Scarya Posted May 16, 2011 Share Posted May 16, 2011 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 More sharing options...
robertu Posted May 16, 2011 Author Share Posted May 16, 2011 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 More sharing options...
Scarya Posted May 16, 2011 Share Posted May 16, 2011 Starte mal den Cronjob von Hand in der Console: /usr/bin/php -q /var/www/froxlor/scripts/froxlor_master_cronjob.php Link to comment Share on other sites More sharing options...
robertu Posted May 16, 2011 Author Share Posted May 16, 2011 Jetzt habe ich ihn von Hand gestartet. Die Lister der Ausstehenden Cron-Aufgaben ist jetzt leer. Link to comment Share on other sites More sharing options...
ddjjmm Posted May 16, 2011 Share Posted May 16, 2011 Hat das gleiche Problem. Bei mir konnte nichtmal der Cronjob per Hand gestartet werden da er die /usr/bin/php5 nicht auffinden konnte. Folgendes hat gefehlt: sudo apt-get install php5-cli Link to comment Share on other sites More sharing options...
robertu Posted May 16, 2011 Author Share Posted May 16, 2011 Danke f?r Eure Hilfe! Habe soeben kontrolliert ob die php5-cli vorhanden ist. Sie war schon vorhanden und zwar die neueste version. Die Liste der Cronaufgaben ist immer noch voll. :-( Link to comment Share on other sites More sharing options...
ddjjmm Posted May 16, 2011 Share Posted May 16, 2011 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 More sharing options...
xocii Posted May 16, 2011 Share Posted May 16, 2011 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 More sharing options...
robertu Posted May 17, 2011 Author Share Posted May 17, 2011 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 More sharing options...
d00p Posted May 17, 2011 Share Posted May 17, 2011 nimm doch mal das "-q" f?r "quiet" aus der befehlszeile, vllt spuckt dir der cron ja dann was in die log Link to comment Share on other sites More sharing options...
robertu Posted May 17, 2011 Author Share Posted May 17, 2011 Hallo d00p, habe jetzt das -q bei /etc/cron.d/froxlor entfernt. Mal schauen was passiert. Sollte der Cronjob alle 5 min ausgef?hrt werden, m?sste etwas im Verzeichniss /var/log/ stehen. richtig? Link to comment Share on other sites More sharing options...
d00p Posted May 18, 2011 Share Posted May 18, 2011 ich nehm an, es funktioniert immer noch nicht? Irgendwas stimmt mit deinem crond nicht Link to comment Share on other sites More sharing options...
FoTo50 Posted November 30, 2014 Share Posted November 30, 2014 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 More sharing options...
robertu Posted May 18, 2011 Author Share Posted May 18, 2011 Habe soeben kontrolliert. Cron ist nicht gestartet. :-( Link to comment Share on other sites More sharing options...
arnoldB Posted May 18, 2011 Share Posted May 18, 2011 Was zeigt den ls -l /var/customers/webs/ ? Link to comment Share on other sites More sharing options...
Ithariel Posted December 1, 2014 Share Posted December 1, 2014 EDIT: Mann sollte immer pr?fen obs auch ne zweite Seite von nem Thread gibt >.> Link to comment Share on other sites More sharing options...
robertu Posted May 18, 2011 Author Share Posted May 18, 2011 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 More sharing options...
arnoldB Posted May 18, 2011 Share Posted May 18, 2011 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 More sharing options...
robertu Posted May 18, 2011 Author Share Posted May 18, 2011 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 More sharing options...
Question
robertu
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
29 answers to this question
Recommended Posts
Archived
This topic is now archived and is closed to further replies.