Page 1 of 1

Cron Problem mit Webalizer.

Posted: 2006-06-04 02:57
by tws
Hallo.

Ich habe folgendes Problem:

Mein cron.daily wird ausgeführt. Alle Script laufen einwandfrei durch bis zum Updatescript von Webalizer, welches nicht mehr ausgeführt wird.
Wenn ich es aber manuell ausführe geht es in sekundenschnelle und fehlerfrei.

Ich habe nicht wirklich eine Ahnung woran das liegen könnte bzw. wie man dem Fehler auf den Grund gehen könnte.

Wo logt webalizer / der crond hin? Danke im Vorraus.

Re: Cron Problem mit Webalizer.

Posted: 2006-06-04 03:12
by [nix]pepe
/var/log/messages?
wie sieht es aus mit dem script davor? läuft das einwandfrei durch?

Re: Cron Problem mit Webalizer.

Posted: 2006-06-05 21:29
by tws
in /var/log/messages steht nichts ausser massenweise "Jun 5 18:34:11 h122280 -- MARK --" alle 20 minuten.

und ja, das script davor läuft. (ich habe vor und nach dem webalizer script je ein dummyscript, das davor geht, das danach halt nicht mehr).

Re: Cron Problem mit Webalizer.

Posted: 2006-06-05 22:40
by daemotron
Poste doch mal die relevanten Einträge Deiner Crontab - vielleicht verhagelt's da was, so dass crond bei der Verarbeitung aussteigt...

Re: Cron Problem mit Webalizer.

Posted: 2006-06-06 00:30
by duergner
Oder /var/log/syslog noch dazu. Unter Debian (und unter diversen anderen Distris auch) sollte Cron dort loggen.

Re: Cron Problem mit Webalizer.

Posted: 2006-06-06 00:44
by Joe User

Code: Select all

grep -ri cron /var/log

Re: Cron Problem mit Webalizer.

Posted: 2006-06-08 02:42
by tws
Danke für die Hilfe.

Also, Crontab ist noch immer wie es per standard installierr wurde:

Code: Select all

h122280:~# cat /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.
# This file also has a username field, that none of the other crontabs do.

SHELL=/bin/sh
PATH=/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin
MAILTO=root@localhost

# m h dom mon dow user  command
17 *    * * *   root    run-parts --report /etc/cron.hourly
25 6    * * *   root    test -x /usr/sbin/anacron || run-parts --report /etc/cron.daily
47 6    * * 7   root    test -x /usr/sbin/anacron || run-parts --report /etc/cron.weekly
52 6    1 * *   root    test -x /usr/sbin/anacron || run-parts --report /etc/cron.monthly
#


h122280:~#

Code: Select all

h122280:~# ll /etc/cron.daily/
insgesamt 64K
drwxr-xr-x   2 root root 4,0K 2006-06-08 02:40 .
drwxr-xr-x  59 root root 4,0K 2006-06-05 21:36 ..
-rwxr-xr-x   1 root root  502 2002-07-04 23:13 bsdmainutils
-rwxr-xr-x   1 root root  814 2005-05-27 10:10 exim4-base
-rwxr-xr-x   1 root root  419 2005-03-20 10:48 find
-rwxr-xr-x   1 root root   89 2005-05-25 11:49 logrotate
-rwxr-xr-x   1 root root  946 2005-01-05 17:30 man-db
-rwxr-xr-x   1 root root   86 2001-09-27 15:42 modutils
-rwxr-xr-x   1 root root 1,3K 2005-12-09 13:51 mysql-server-41
-rwxr-xr-x   1 root root  495 2001-11-18 23:29 netkit-inetd
-rw-r--r--   1 root root  102 2004-07-28 22:44 .placeholder
-rwxr-xr-x   1 root root 2,6K 2004-07-28 22:44 standard
-rwxr-xr-x   1 root root 1,3K 2005-05-25 20:21 sysklogd
-rwxr-xr-x   1 root root   34 2006-06-04 02:58 webalizer.aaatest
-rwxr-xr-x   1 root root 1,1K 2005-12-09 11:24 webalizer.shax
-rwxr-xr-x   1 root root 1,1K 2006-04-20 05:05 webalizer.shax.temp
h122280:~#
Bis auf die webalizer scripts alles standard Zeug. (.aaatest ist das dummy script welches erfolgreich durchläuft).


Im syslog (diese war es, danke duergner & Joe User) steht nichts ausser dem start "Jun 7 06:25:01 h122280 /USR/SBIN/CRON[10255]: (root) CMD (test -x /usr/sbin/anacron || run-parts --report /etc/cron.daily)".

Re: Cron Problem mit Webalizer.

Posted: 2006-06-08 21:08
by athlux
tws wrote:[/code]

Code: Select all

-rwxr-xr-x   1 root root   34 2006-06-04 02:58 webalizer.aaatest
-rwxr-xr-x   1 root root 1,1K 2005-12-09 11:24 webalizer.shax
-rwxr-xr-x   1 root root 1,1K 2006-04-20 05:05 webalizer.shax.temp
h122280:~#
Ersetz mal die Punkte durch ein anderes Zeichen. Also webalizer-aaatest zum Beispiel.

Ich erinnere mich nämlich das es Probleme gibt wenn die Dateien Punkte als Trennzeichen enthalten.

Re: Cron Problem mit Webalizer.

Posted: 2006-06-11 08:17
by tws
Hey hat funktioniert. Bin bissel überrascht, da ich die Script bereits seit langem mit den Punkten im Namen da drin hab. :)

Danke vielmals euch allen.