Dies ist eine mobil optimierte Seite, die schnell lädt. Wenn Sie die Seite ohne Optimierung laden möchten, dann klicken Sie auf diesen Text.

gelöst cron tab Problem

    Nobody is reading this thread right now.

Tutenchamun1

Stamm User
Registriert
11. November 2013
Beiträge
1.062
Lösungen
3
Reaktionspunkte
322
Punkte
263
Ort
Afrika
Hi

Mir ist aufgefallen das die crontab nicht richtig ausgeführt wird. ich habe mein Igel UD5 server neuaufgesetzt. diesmal mit ubuntu 18.04. und das neueste IPC 11.6

Eigentlich sollte oscam jeden dienstag um 4:00 neustarten. Das macht er aber nicht. habe schon die Rechte der crontab auf 0755 geändert. trotzdem funktioniert es nicht.

hier meine 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
MAILTO=""

# * * * * * Benutzer Befehl
# | | | | |
# | | | | +---- Wochentag (0-7) (Sonntag =0 oder =7)
# | | | +------ Monat (1-12)
# | | +-------- Tag (1-31)
# | +---------- Stunde (0-23)
# +------------ Minute (0-59)

# 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 )


#Zeitabgleich -> benoetigt [apt-get install ntpdate]
0 8 * * * root ntpdate -s pool.ntp.org #Zeitabgleich (Taeglich um 08:00 Uhr)

#IPC
#0 4 * * 5 root /var/emu/script/ipc-backup.sh full l 30 #Backup - Full (Woechentlich um 04:00, Freitag)
#0 2 * * * root /var/emu/script/ipc-backup.sh conf l 14 #Backup - Konfiguration (Taeglich um 02:00)
#0 6 * * * root /var/emu/script/ipc-set.sh #Rechte setzen (Taeglich um 06:00)

#CCcam
#* * * * * root /var/emu/script/cccam-watchdog.sh #CCcam - Teste ob CCcam laeuft (jede Minute)
#30 4 * * * root /var/emu/script/cccam restart #CCcam - EMU Neustart (Taeglich um 04:30)
#0 5 * * * root /var/emu/script/cccam-cfgnl.sh #CCcam - Lade neue Konfiguration (Taeglich um 05:00)
#01 5 * * * root /bin/cccam softkey && /bin/cccam restart #CCcam EMU Keys updaten+restart (Taeglich um 05:01)

#CCcamInfoPHP (Update,Ping,Online)
#*/2 * * * * www-data wget -q --spider #CCcamInfoPHP - Update alle 2 Minuten
#58 * * * * www-data wget -q --spider #CCcamInfoPHP - PING jede Stunde
#59 * * * * www-data wget -q --spider #CCcamInfoPHP - Online jede Stunde

#OScam
* * * * * root /var/emu/script/oscam-watchdog.sh #OScam - Teste ob OScam laeuft (jede Minute)
0 4 * * 2 root /var/emu/script/oscam restart #OScam - EMU Neustart (woechentlich um 04:00 Dienstag)

#OSEmu
#* * * * * root /var/emu/script/osemu-watchdog.sh #Teste ob OSEmu laeuft (jede Minute)
#0 4 * * 2 root /var/emu/script/osemu restart #OSEmu - EMU Neustart (woechentlich um 04:00 Dienstag)

#NewCS
#* * * * * root /var/emu/script/newcs-watchdog.sh #NewCS - Teste ob NewCS laeuft (jede Minute)

#Camd3
#* * * * * root /var/emu/script/camd3-watchdog.sh #Teste ob Camd3 laeuft (jede Minute)
#01 5 * * * root /bin/camd3 softkey && /bin/camd3 restart #Camd3 EMU Keys updaten+restart (Taeglich um 05:01)

#sBox
#* * * * * root /var/emu/script/sbox-watchdog.sh #Teste ob sBox laeuft (jede Minute)

#gbox
#* * * * * root /var/emu/script/gbox-watchdog.sh #Teste ob gbox laeuft (jede Minute)

#DynDNS Static Update -> benoetigt [apt-get install ddclient]
#6 6 * * 1 root /usr/sbin/ddclient -force > /var/log/ipc/dyndns_update.log #Static DynDNS Update (Woechentlich um 06:06, Montag)

#DDNSupdater.sh
#@reboot root /var/emu/script/DDNSupdater.sh auto #DDNSupdater.sh bei System boot/reboot starten
#0 6 * * 1 root /var/emu/script/DDNSupdater.sh now #DDNSupdater.sh Static-IP Update erzwingen (Woechentlich um 06:00,Montag)

#DDNSupdater2.sh
#@reboot root /var/emu/script/DDNSupdater2.sh auto #DDNSupdater2.sh bei System boot/reboot starten
#0 6 * * 1 root /var/emu/script/DDNSupdater2.sh now #DDNSupdater2.sh Static-IP Update erzwingen (Woechentlich um 06:00, Montag)

#apache2
@reboot root /var/emu/script/apache2-watchdog.sh >/dev/null 2>&1
* * * * * root /var/emu/script/apache2-watchdog.sh >/dev/null 2>&1

#Auf Updates fuer IPC pruefen
0 20 * * * root php /var/www/ipc/page/update-check.php >/dev/null 2>&1 #Update-Check (Taeglich um 20:00)

und das kommt wenn ich von hand die crontab ausführe

/etc/crontab
/etc/crontab: Zeile 20: 17: Befehl nicht gefunden
/etc/crontab: Zeile 21: 25: Befehl nicht gefunden
/etc/crontab: Zeile 22: 47: Befehl nicht gefunden
/etc/crontab: Zeile 23: 52: Befehl nicht gefunden
/etc/crontab: Zeile 27: 0: Befehl nicht gefunden
/etc/crontab: Zeile 46: *: Befehl nicht gefunden
/etc/crontab: Zeile 47: 31: Befehl nicht gefunden

i syslog
Sys-Log - Abbrechen mit [Strg]+[C] 16.02.2021 14:34
===============================================================================

Feb 16 14:32:01 titan CRON[2271]: (root) CMD (/var/emu/script/oscam-watchdog.sh #OScam - Teste ob OScam laeuft (jede Minute))
Feb 16 14:32:01 titan CRON[2271]: (root) CMD (/var/emu/script/oscam-watchdog.sh #OScam - Teste ob OScam laeuft (jede Minute))
Feb 16 14:33:01 titan CRON[2441]: (root) CMD (/var/emu/script/apache2-watchdog.sh >/dev/null 2>&1)
Feb 16 14:33:01 titan CRON[2441]: (root) CMD (/var/emu/script/apache2-watchdog.sh >/dev/null 2>&1)
Feb 16 14:33:01 titan CRON[2442]: (root) CMD (/var/emu/script/oscam-watchdog.sh #OScam - Teste ob OScam laeuft (jede Minute))
Feb 16 14:33:01 titan CRON[2442]: (root) CMD (/var/emu/script/oscam-watchdog.sh #OScam - Teste ob OScam laeuft (jede Minute))
Feb 16 14:34:02 titan CRON[2680]: (root) CMD (/var/emu/script/apache2-watchdog.sh >/dev/null 2>&1)
Feb 16 14:34:02 titan CRON[2680]: (root) CMD (/var/emu/script/apache2-watchdog.sh >/dev/null 2>&1)
Feb 16 14:34:02 titan CRON[2681]: (root) CMD (/var/emu/script/oscam-watchdog.sh #OScam - Teste ob OScam laeuft (jede Minute))
Feb 16 14:34:02 titan CRON[2681]: (root) CMD (/var/emu/script/oscam-watchdog.sh #OScam - Teste ob OScam laeuft (jede Minute))
Feb 16 14:35:01 titan CRON[2915]: (root) CMD (/var/emu/script/apache2-watchdog.sh >/dev/null 2>&1)
Feb 16 14:35:01 titan CRON[2915]: (root) CMD (/var/emu/script/apache2-watchdog.sh >/dev/null 2>&1)
Feb 16 14:35:01 titan CRON[2916]: (root) CMD (/var/emu/script/oscam-watchdog.sh #OScam - Teste ob OScam laeuft (jede Minute))
Feb 16 14:35:01 titan CRON[2916]: (root) CMD (/var/emu/script/oscam-watchdog.sh #OScam - Teste ob OScam laeuft (jede Minute))


Versteh nicht was ich falsch gemacht habe.
 
Du kannst /etc/crontab nicht direkt ausführen, das ist kein Script.

Ich würde dir empfehlen die Cronjobs unter /etc/cron.d/* anzulegen.
z.b. /etc/cron.d/emus und dort deine emu watchdogs und restarts eintragen.
Zum testen könntest du in die emus - Datei z.b.

Code:
* *   * * *  root echo "1" >> /var/log/crontest.log

Die Datei sollte nach 1min in /var/log vorhanden sein
 
Was steht denn ganz am Anfang von /etc/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.

Von dem her kein IPC-Problem
 
Hm. Also ich bin davon ausgegangen das wenn ich IPC und oscam installiere, das die crontab dann passt und man nur durch weglöschen der jeweiligen Raute die einzelnen Punkte quasi aktiviert. Warum sind die Pfade denn nicht richtig? IPC fügt doch diesen Inhalt in die crontab. warum ist dieser dann von Verweisen her nicht korrekt?
 
ok verstanden. dann mache ich das nicht mehr.

das reicht also dann doch aus eine Raute wegzumachen in der crontab? das habe ich ja gemacht. aber der wöchentliche neustart funktioniert nicht.
 
Ja Raute entfernen und gut. Vom Syntax her sieht das gut aus, wobei das bei OScam normalerweise nicht mehr notwendig ist.
Was steht den zum besagten Zeitpunkt im Syslog?
 
Fragt mich nicht warum es auf einmal funktioniert. ich habe gerade eine neue Uhrzeit eingestellt und siehe da, es funktioniert. Verstehe nicht wieso. aber egal hauptsache es klappt jetzt wieder.

trotzdem hier noch mein syslogauszug

Feb 16 16:33:03 titan CRON[3571]: (root) CMD (/var/emu/script/oscam restart #OScam - EMU Neustart (woechentlich um 04:00 Dienstag))
Feb 16 16:33:03 titan CRON[3571]: (root) CMD (/var/emu/script/oscam restart #OScam - EMU Neustart (woechentlich um 04:00 Dienstag))
Feb 16 16:33:03 titan CRON[3572]: (root) CMD (/var/emu/script/apache2-watchdog.sh >/dev/null 2>&1)
Feb 16 16:33:03 titan CRON[3572]: (root) CMD (/var/emu/script/apache2-watchdog.sh >/dev/null 2>&1)
Feb 16 16:33:03 titan CRON[3573]: (root) CMD (/var/emu/script/oscam-watchdog.sh #OScam - Teste ob OScam laeuft (jede Minute))
Feb 16 16:33:03 titan CRON[3573]: (root) CMD (/var/emu/script/oscam-watchdog.sh #OScam - Teste ob OScam laeuft (jede Minute))
 
Hi,

Du musst angemeldet sein, um Bilder zu sehen.

?..?

Gruß

Gesendet von meinem POCOPHONE F1 mit Tapatalk
 
Ich meinte natürlich den Syslogauszug Dienstag früh um 4 Uhr. Nur da kann man ja sehen ob er den Job macht, oder net
 
Keine Ahnung soweit kann ich nicht zurücksehen. Vermutlich weil ich auch schon zwischenzeitlich neugestartet hatte.


Woran könnte es liegen das diese Fehlermeldung "Feb 16 16:50:01 ***** cron[411]: (*system*) INSECURE MODE (group/other writable) (/etc/crontab)" in der syslog kommt?

Feb 16 16:40:07 ***** ntpd[810]: Listen and drop on 1 v6wildcard :: UDP 123
Feb 16 16:40:07 ***** ntpd[810]: Listen normally on 2 lo 127.0.0.1 UDP 123
Feb 16 16:40:07 ***** ntpd[810]: Listen normally on 3 eth0 ***.***.***.*** UDP 123
Feb 16 16:40:07 ***** ntpd[810]: Listen normally on 4 lo ::1 UDP 123
Feb 16 16:40:07 ***** ntpd[810]: Listen normally on 5 eth0 fe80::2e0:c5ff:fe3e:b0bb UDP 123
Feb 16 16:40:07 ***** ntpd[810]: peers refreshed
Feb 16 16:40:07 ***** ntpd[810]: Listening on routing socket on fd #22 for interface updates
Feb 16 16:50:01 ***** cron[411]: (*system*) INSECURE MODE (group/other writable) (/etc/crontab)
Feb 16 16:58:19 ***** kernel: [ 1149.331654] ip_tables: (C) 2000-2006 Netfilter Core Team
Feb 16 17:09:01 ***** CRON[7795]: (root) CMD ( [ -x /usr/lib/php5/sessionclean ] && /usr/lib/php5/sessionclean)
 
Zuletzt bearbeitet von einem Moderator:
Steht doch da:
INSECURE MODE (group/other writable) (/etc/crontab)
Die Datei /etc/crontab ist wohl auch für andere Gruppen/Benutzer bearbeitbar. Bevor du fragst:
 
Ach scheisse falsch herauskopiert, diesen meine ich:

Feb 16 16:39:22 ****** apache2[418]: Starting web server: apache2.
Feb 16 16:39:22 ****** systemd[1]: Failed to start /etc/rc.local Compatibility.
Feb 16 16:39:22 ****** systemd[1]: Unit rc-local.service entered failed state
 
Hi,



Gruß

Gesendet von meinem POCOPHONE F1 mit Tapatalk[/URL]
 
Dann hast du in /etc/rc.local oder auch i as irgendwas drinstehen, was er net mag
 
Für die Nutzung dieser Website sind Cookies erforderlich. Du musst diese akzeptieren, um die Website weiter nutzen zu können. Erfahre mehr…