Cron Problem mit Webalizer.

Apache, Lighttpd, nginx, Cherokee
Post Reply
tws
Posts: 4
Joined: 2006-06-04 02:53
 

Cron Problem mit Webalizer.

Post 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.
[nix]pepe
Userprojekt
Userprojekt
Posts: 244
Joined: 2003-04-08 19:36
 

Re: Cron Problem mit Webalizer.

Post by [nix]pepe »

/var/log/messages?
wie sieht es aus mit dem script davor? läuft das einwandfrei durch?
tws
Posts: 4
Joined: 2006-06-04 02:53
 

Re: Cron Problem mit Webalizer.

Post 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).
User avatar
daemotron
Administrator
Administrator
Posts: 2641
Joined: 2004-01-21 17:44
Contact:
 

Re: Cron Problem mit Webalizer.

Post by daemotron »

Poste doch mal die relevanten Einträge Deiner Crontab - vielleicht verhagelt's da was, so dass crond bei der Verarbeitung aussteigt...
duergner
Posts: 923
Joined: 2003-08-20 11:30
Location: Pittsburgh, PA, USA
 

Re: Cron Problem mit Webalizer.

Post by duergner »

Oder /var/log/syslog noch dazu. Unter Debian (und unter diversen anderen Distris auch) sollte Cron dort loggen.
User avatar
Joe User
Project Manager
Project Manager
Posts: 11191
Joined: 2003-02-27 01:00
Location: Hamburg
Contact:
 

Re: Cron Problem mit Webalizer.

Post by Joe User »

Code: Select all

grep -ri cron /var/log
PayPal.Me/JoeUserFreeBSD Remote Installation
Wings for LifeWings for Life World Run

„If there’s more than one possible outcome of a job or task, and one
of those outcomes will result in disaster or an undesirable consequence,
then somebody will do it that way.“ -- Edward Aloysius Murphy Jr.
tws
Posts: 4
Joined: 2006-06-04 02:53
 

Re: Cron Problem mit Webalizer.

Post 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)".
athlux
Posts: 61
Joined: 2004-08-20 13:53
 

Re: Cron Problem mit Webalizer.

Post 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.
tws
Posts: 4
Joined: 2006-06-04 02:53
 

Re: Cron Problem mit Webalizer.

Post 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.
Post Reply