Jump to content
View in the app

A better way to browse. Learn more.

Froxlor Forum

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

[solved] Cron Problem

Featured Replies

Hallo,

 

habe eben eine neue Subdomain anlegen wollen und musste dann feststellen, dass nach 10min immer noch "Neuerstellung der Webserver-Konfiguration" im Panel stand. Ich habe dann also geschaut, warum der Cron nicht l?uft (Dienst war jedoch gestartet). So habe ich auch den Cron neugestartet, geschaut ob in den libnss-configs alles passt und auch ob der Cronjob /etc/cron.d/froxlor passt.

 

Meiner sah wie folgt aus:

 

PATH=/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin
#
*/5 * * * * root /usr/bin/nice -n 5 /usr/bin/php5 -q /var/www/froxlor/scripts/froxlor_master_cronjob.php --tasks 1> /dev/null
0 0 * * * root /usr/bin/nice -n 5 /usr/bin/php5 -q /var/www/froxlor/scripts/froxlor_master_cronjob.php --traffic 1> /dev/null
5 0 * * * root /usr/bin/nice -n 5 /usr/bin/php5 -q /var/www/froxlor/scripts/froxlor_master_cronjob.php --used_tickets_reset 1> /dev/null
7 0 1 * * root /usr/bin/nice -n 5 /usr/bin/php5 -q /var/www/froxlor/scripts/froxlor_master_cronjob.php --ticketarchive 1> /dev/null
10 0 * * * root /usr/bin/nice -n 5 /usr/bin/php5 -q /var/www/froxlor/scripts/froxlor_master_cronjob.php --usage_report 1> /dev/null
0 */6 * * * root /usr/bin/nice -n 5 /usr/bin/php5 -q /var/www/froxlor/scripts/froxlor_master_cronjob.php --mailboxsize 1> /dev/null

 

Nun habe ich im Panel unter Konfiguration geschaut und festgestellt, dass dort nur folgendes steht was eingetragen werden soll:

 

PATH=/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin
#
*/5 * * * * root /usr/bin/nice -n 5 /usr/bin/php5 -q /var/www/froxlor/scripts/froxlor_master_cronjob.php

 

Meine Frage: Warum? Ich habe die 0.9.32er Version schon immer auf der Kiste drauf, daher wundert mich das stark...

 

Der Cron l?uft jetzt allerdings immer noch nicht... Hat jemand einen Ansatz f?r mich? Im Syslog finde ich leider keine Informationen...

 

Das letzte, was ich gemacht habe war ein apt-get upgrade, davor lief die ganze Sache immer...

 

EDIT: wenn ich den Cronjob h?ndisch ausf?hre:

root@www1 /var/customers/webs # php5 -q /var/www/froxlor/scripts/froxlor_master_cronjob.php --tasks
There is already a Cronjob in progress. Exiting...
Take a look into the contents of /var/run/froxlor_froxlor_master_cronjob-tasks.lock-* for more information!

 

Inhalt dieser lock-Datei:

Setting Lockfile to /var/run/froxlor_froxlor_master_cronjob-tasks.lock-31246
Setting Froxlor installation path to /var/www/froxlor
Userdatas included
Table definitions included



 

1) der cronjob ist korrekt so, bei der installation legst du den so an wie in unseren konfigurations-schritten gezeigt, danach erstellt froxlor selbst seine cron.d/froxlor datei anhand der intevall-einstellungen im Panel, also nicht anfassen :)

2) manuell mit "--tasks" ist nicht gern gesehen, f?r das "forcieren" der neuerstellung von configs gibt es den Parameter "--force" (der erstellt auch die cron.d/froxlor datei neu!)

3) lock-file l?schen, dann l?uft der cronjob auch wieder durch

  • Author

Super, das hat geholfen danke!

 

Hast du eine Vermutung, woher das Problem kam?

Kann alles M?gliche sein...hat sich wohl "verschluckt" (wie auch immer) und das Lockfile ist geblieben...

Archived

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

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.