Erreurs lors de l'exécution de cron ... ?

Saluts,

Je vais au but …



 ################### Logwatch 7.3.6 (05/19/07) ####################
       Processing Initiated: Mon Aug 15 21:03:50 2011
  

(...) 

 --------------------- Cron Begin ------------------------

 Errors when running cron:
   grandchild #10062 failed with exit status 1: 1 Time(s)
   grandchild #10173 failed with exit status 1: 1 Time(s)
   grandchild #11000 failed with exit status 1: 2 Time(s)
   grandchild #11086 failed with exit status 62: 1 Time(s)
   grandchild #11096 failed with exit status 127: 2 Time(s)
   grandchild #11192 failed with exit status 1: 1 Time(s)
   grandchild #11232 failed with exit status 1: 2 Time(s)
   grandchild #11273 failed with exit status 127: 1 Time(s)
   grandchild #11535 failed with exit status 1: 1 Time(s)
   grandchild #12524 failed with exit status 1: 2 Time(s)
   grandchild #12620 failed with exit status 127: 2 Time(s)
   grandchild #12720 failed with exit status 62: 1 Time(s)
   grandchild #12897 failed with exit status 1: 1 Time(s)
   grandchild #13034 failed with exit status 127: 1 Time(s)
   grandchild #14046 failed with exit status 1: 2 Time(s)
   grandchild #14053 failed with exit status 1: 1 Time(s)
   grandchild #14142 failed with exit status 127: 2 Time(s)
   grandchild #15340 failed with exit status 1: 1 Time(s)
   grandchild #15568 failed with exit status 1: 2 Time(s)
   grandchild #15664 failed with exit status 127: 2 Time(s)
   grandchild #15675 failed with exit status 62: 1 Time(s)
   grandchild #15775 failed with exit status 1: 1 Time(s)
   grandchild #15800 failed with exit status 1: 2 Time(s)
   grandchild #17092 failed with exit status 1: 2 Time(s)
   grandchild #17188 failed with exit status 127: 2 Time(s)
   grandchild #18577 failed with exit status 127: 1 Time(s)
   grandchild #19055 failed with exit status 1: 2 Time(s)
   grandchild #1953 failed with exit status 1: 1 Time(s)
   grandchild #20491 failed with exit status 1: 1 Time(s)
   grandchild #2051 failed with exit status 127: 1 Time(s)
   grandchild #20598 failed with exit status 1: 1 Time(s)
   grandchild #20762 failed with exit status 1: 1 Time(s)
   grandchild #22094 failed with exit status 1: 1 Time(s)
   grandchild #22201 failed with exit status 1: 1 Time(s)
   grandchild #24695 failed with exit status 1: 1 Time(s)
   grandchild #24778 failed with exit status 127: 1 Time(s)
   grandchild #24890 failed with exit status 1: 1 Time(s)
   grandchild #24962 failed with exit status 1: 1 Time(s)
   grandchild #25121 failed with exit status 1: 1 Time(s)
   grandchild #26570 failed with exit status 1: 1 Time(s)
   grandchild #28816 failed with exit status 1: 1 Time(s)
   grandchild #28969 failed with exit status 127: 1 Time(s)
   grandchild #31579 failed with exit status 1: 1 Time(s)
   grandchild #31692 failed with exit status 127: 1 Time(s)
   grandchild #3555 failed with exit status 1: 1 Time(s)
   grandchild #4862 failed with exit status 1: 1 Time(s)
   grandchild #4957 failed with exit status 1: 1 Time(s)
   grandchild #6528 failed with exit status 127: 2 Time(s)
   grandchild #6563 failed with exit status 1: 1 Time(s)
   grandchild #6664 failed with exit status 1: 2 Time(s)
   grandchild #6695 failed with exit status 1: 1 Time(s)
   grandchild #7956 failed with exit status 1: 2 Time(s)
   grandchild #8052 failed with exit status 127: 2 Time(s)
   grandchild #8342 failed with exit status 1: 1 Time(s)
   grandchild #8456 failed with exit status 1: 1 Time(s)
   grandchild #8627 failed with exit status 1: 1 Time(s)
   grandchild #9478 failed with exit status 1: 2 Time(s)
   grandchild #9574 failed with exit status 127: 2 Time(s)
   grandchild #9681 failed with exit status 127: 1 Time(s)
   grandchild #9682 failed with exit status 127: 1 Time(s)

 **Unmatched Entries**
 ERROR (Syntax error, this crontab file will be ignored)
 ERROR (Syntax error, this crontab file will be ignored)
 ERROR (Syntax error, this crontab file will be ignored)

 ---------------------- Cron End -------------------------

/var/log !!!

[quote]ug 15 21:00:01 Debian-pc-1 sSMTP[16542]: Creating SSL connection to host
Aug 15 21:00:01 Debian-pc-1 sSMTP[16542]: SSL connection using RSA_ARCFOUR_SHA1

Aug 15 21:00:01 Debian-pc-1 /USR/SBIN/CRON[16516]: (CRON) error (grandchild #16517 failed with exit status 1)

Aug 15 21:00:01 Debian-pc-1 sSMTP[16542]: Creating SSL connection to host
Aug 15 21:00:01 Debian-pc-1 sSMTP[16542]: SSL connection using RSA_ARCFOUR_SHA1
Aug 15 21:00:04 Debian-pc-1 sSMTP[16542]: Sent mail for root@ (221 2.0.0 closing connection l7sm3836015wed.17) uid=0 username=root outbytes=698
Aug 15 21:00:04 Debian-pc-1 sSMTP[16542]: Sent mail for root@ (221 2.0.0 closing connection l7sm3836015wed.17) uid=0 username=root outbytes=698
[/quote]

Bon jusque là ! :whistle: Pas de souci !

J’ai bien compris qu’il s’agit de cron, faudrait vraiment … :shhh: … le temps.

Je passes en revues les tâches, (annuel … journalière), j’ai crûs comprendre qu’il s’agit de syntaxe (?) …

Mais bon, la syntaxe et moi …

Je ne sais plus ou chercher ! (?) :083

Une petite piste … (?) :083

Quelle version + branche de Debian ?

Salut,

Squeeze 6.0.2

une idée ?

Peut être là :
linux-archive.org/debian-use … s-1-a.html

Salut,

Et si tu nous donnais la tâche cron en question, ça aiderait un peu, non ?

Salut,

Justement j’épluchais syslog … :083

Et j’ai remarqué quand commentant (vers 18h45-19h) /etc/crontab les erreurs étaient moindres !

[code]root@Debian-pc-1:/home/pc-1-loreleil# 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

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

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

##00 10 * * * /usr/sbin/ntpdate pool.ntp.org >/dev/null
##0 6 * * * root (cd /usr/sbin/chkrootkit 2>&1 | mail root -s “Résultats de chkrootkit”)

##13 * * * * root /usr/bin/surveille
##23 * * * * root /usr/local/bin/complet

##0 * * * * root /usr/local/bin/regarde

root@Debian-pc-1:/home/pc-1-loreleil#
[/code]

[quote]Aug 16 17:45:01 Debian-pc-1 /USR/SBIN/CRON[20900]: (CRON) error (grandchild #20903 failed with exit status 1)

Aug 16 18:00:01 Debian-pc-1 /USR/SBIN/CRON[20981]: (CRON) error (grandchild #20982 failed with exit status 1)

Aug 16 18:22:01 Debian-pc-1 cron[1847]: Error: bad username; while reading /etc/crontab
Aug 16 18:22:01 Debian-pc-1 /usr/sbin/cron[1847]: (system) ERROR (Syntax error, this crontab file will be ignored)

Aug 16 18:27:01 Debian-pc-1 /usr/sbin/cron[1847]: (system) ERROR (Syntax error, this crontab file will be ignored)

Aug 16 18:28:01 Debian-pc-1 cron[1847]: Error: bad username; while reading /etc/crontab
Aug 16 18:28:01 Debian-pc-1 /usr/sbin/cron[1847]: (system) ERROR (Syntax error, this crontab file will be ignored)
Aug 16 18:28:01 Debian-pc-1 cron[1847]: Error: bad username; while reading /etc/cron.d/anacron
Aug 16 18:28:01 Debian-pc-1 /usr/sbin/cron[1847]: (systemanacron) ERROR (Syntax error, this crontab file will be ignored)

Aug 16 18:32:01 Debian-pc-1 cron[1847]: Error: bad username; while reading /etc/crontab
Aug 16 18:32:01 Debian-pc-1 /usr/sbin/cron[1847]: (system) ERROR (Syntax error, this crontab file will be ignored)
Aug 16 18:32:01 Debian-pc-1 cron[1847]: Error: bad username; while reading /etc/cron.d/anacron
Aug 16 18:32:01 Debian-pc-1 /usr/sbin/cron[1847]: (systemanacron) ERROR (Syntax error, this crontab file will be ignored)
Aug 16 18:32:01 Debian-pc-1 cron[1847]: Error: bad username; while reading /etc/cron.d/cron-apt
Aug 16 18:32:01 Debian-pc-1 /usr/sbin/cron[1847]: (systemcron-apt) ERROR (Syntax error, this crontab file will be ignored)

Aug 16 18:33:01 Debian-pc-1 cron[1847]: Error: bad username; while reading /etc/crontab
Aug 16 18:33:01 Debian-pc-1 /usr/sbin/cron[1847]: (system) ERROR (Syntax error, this crontab file will be ignored)
Aug 16 18:33:01 Debian-pc-1 cron[1847]: Error: bad username; while reading /etc/cron.d/anacron
Aug 16 18:33:01 Debian-pc-1 /usr/sbin/cron[1847]: (systemanacron) ERROR (Syntax error, this crontab file will be ignored)
Aug 16 18:33:01 Debian-pc-1 cron[1847]: Error: bad username; while reading /etc/cron.d/cron-apt
Aug 16 18:33:01 Debian-pc-1 /usr/sbin/cron[1847]: (systemcron-apt) ERROR (Syntax error, this crontab file will be ignored)
Aug 16 18:33:01 Debian-pc-1 cron[1847]: Error: bad username; while reading /etc/cron.d/metche
Aug 16 18:33:01 Debian-pc-1 /usr/sbin/cron[1847]: (systemmetche) ERROR (Syntax error, this crontab file will be

Aug 16 18:34:01 Debian-pc-1 cron[1847]: Error: bad username; while reading /etc/crontab
Aug 16 18:34:01 Debian-pc-1 /usr/sbin/cron[1847]: (system) ERROR (Syntax error, this crontab file will be ignored)
Aug 16 18:34:01 Debian-pc-1 cron[1847]: Error: bad username; while reading /etc/cron.d/php5
Aug 16 18:34:01 Debian-pc-1 /usr/sbin/cron[1847]: (systemphp5) ERROR (Syntax error, this crontab file will be ignored)
Aug 16 18:34:01 Debian-pc-1 cron[1847]: Error: bad username; while reading /etc/cron.d/anacron
Aug 16 18:34:01 Debian-pc-1 /usr/sbin/cron[1847]: (systemanacron) ERROR (Syntax error, this crontab file will be ignored)
Aug 16 18:34:01 Debian-pc-1 cron[1847]: Error: bad username; while reading /etc/cron.d/cron-apt
Aug 16 18:34:01 Debian-pc-1 /usr/sbin/cron[1847]: (systemcron-apt) ERROR (Syntax error, this crontab file will be ignored)
Aug 16 18:34:01 Debian-pc-1 cron[1847]: Error: bad username; while reading /etc/cron.d/metche
Aug 16 18:34:01 Debian-pc-1 /usr/sbin/cron[1847]: (systemmetche) ERROR (Syntax error, this crontab file will be ignored)

Aug 16 18:45:01 Debian-pc-1 /USR/SBIN/CRON[22878]: (CRON) error (grandchild #22879 failed with exit status 1)

Aug 16 19:00:01 Debian-pc-1 /USR/SBIN/CRON[22898]: (CRON) error (grandchild #22899 failed with exit status 1)

Aug 16 19:45:01 Debian-pc-1 /USR/SBIN/CRON[24164]: (root) CMD (test -x /usr/sbin/metche && /usr/sbin/metche cron)
Aug 16 19:45:01 Debian-pc-1 /USR/SBIN/CRON[24168]: (root) CMD (command -v debian-sa1 > /dev/null && debian-sa1 1 1)
Aug 16 19:45:01 Debian-pc-1 /USR/SBIN/CRON[24169]: (clamav) CMD ([ -x /usr/sbin/clamav-unofficial-sigs ] && /usr/sbin/clamav-unofficial-sigs)

Aug 16 19:45:01 Debian-pc-1 /USR/SBIN/CRON[24162]: (CRON) error (grandchild #24169 failed with exit status 1)

Aug 16 19:50:01 Debian-pc-1 /USR/SBIN/CRON[24571]: (root) CMD (test -x /usr/sbin/metche && /usr/sbin/metche cron)

Aug 16 19:55:01 Debian-pc-1 /USR/SBIN/CRON[25741]: (root) CMD (test -x /usr/sbin/metche && /usr/sbin/metche cron)
Aug 16 19:55:01 Debian-pc-1 /USR/SBIN/CRON[25742]: (root) CMD (command -v debian-sa1 > /dev/null && debian-sa1 1 1)

Aug 16 20:00:01 Debian-pc-1 /USR/SBIN/CRON[25772]: (root) CMD (/usr/sbin/logcheck)
Aug 16 20:00:01 Debian-pc-1 /USR/SBIN/CRON[25773]: (root) CMD (/etc/init.d/denyhosts restart)
Aug 16 20:00:01 Debian-pc-1 /USR/SBIN/CRON[25774]: (root) CMD ( test -x /usr/sbin/cron-apt && /usr/sbin/cron-apt)
Aug 16 20:00:01 Debian-pc-1 /USR/SBIN/CRON[25775]: (root) CMD (test -x /usr/sbin/metche && /usr/sbin/metche cron)

Aug 16 20:00:01 Debian-pc-1 /USR/SBIN/CRON[25771]: (CRON) error (grandchild #25772 failed with exit status 1)

Aug 16 20:05:01 Debian-pc-1 /USR/SBIN/CRON[25828]: (root) CMD (test -x /usr/sbin/metche && /usr/sbin/metche cron)
Aug 16 20:05:01 Debian-pc-1 /USR/SBIN/CRON[25829]: (root) CMD (command -v debian-sa1 > /dev/null && debian-sa1 1 1)

Aug 16 20:09:01 Debian-pc-1 /USR/SBIN/CRON[25865]: (root) CMD ( [ -x /usr/lib/php5/maxlifetime ] && [ -d /var/lib/php5 ] && find /var/lib/php5/ -type f -cmin +$(/usr/lib/php5/maxlifetime) -delete)

Aug 16 20:10:01 Debian-pc-1 /USR/SBIN/CRON[25872]: (root) CMD (test -x /usr/sbin/metche && /usr/sbin/metche cron)

Aug 16 20:15:01 Debian-pc-1 /USR/SBIN/CRON[26278]: (root) CMD (command -v debian-sa1 > /dev/null && debian-sa1 1 1)
Aug 16 20:15:01 Debian-pc-1 /USR/SBIN/CRON[26279]: (root) CMD (test -x /usr/sbin/metche && /usr/sbin/metche cron)

Aug 16 20:20:01 Debian-pc-1 /USR/SBIN/CRON[26307]: (root) CMD (/etc/init.d/denyhosts restart)
Aug 16 20:20:01 Debian-pc-1 /USR/SBIN/CRON[26308]: (root) CMD (test -x /usr/sbin/metche && /usr/sbin/metche cron)

Aug 16 20:24:01 Debian-pc-1 /USR/SBIN/CRON[26347]: (logcheck) CMD ( if [ -x /usr/sbin/logcheck ]; then nice -n10 /usr/sbin/logcheck; fi)

Aug 16 20:25:01 Debian-pc-1 /USR/SBIN/CRON[27497]: (root) CMD (test -x /usr/sbin/metche && /usr/sbin/metche cron)
Aug 16 20:25:01 Debian-pc-1 /USR/SBIN/CRON[27498]: (root) CMD (command -v debian-sa1 > /dev/null && debian-sa1 1 1)

Aug 16 20:30:01 Debian-pc-1 /USR/SBIN/CRON[27533]: (root) CMD (/usr/bin/freshclam)
Aug 16 20:30:01 Debian-pc-1 /USR/SBIN/CRON[27534]: (root) CMD (test -x /usr/sbin/metche && /usr/sbin/metche cron)

Aug 16 20:35:01 Debian-pc-1 /USR/SBIN/CRON[27560]: (root) CMD (test -x /usr/sbin/metche && /usr/sbin/metche cron)
Aug 16 20:35:01 Debian-pc-1 /USR/SBIN/CRON[27561]: (root) CMD (command -v debian-sa1 > /dev/null && debian-sa1 1 1)

Aug 16 20:39:01 Debian-pc-1 /USR/SBIN/CRON[27674]: (root) CMD ( [ -x /usr/lib/php5/maxlifetime ] && [ -d /var/lib/php5 ] && find /var/lib/php5/ -type f -cmin +$(/usr/lib/php5/maxlifetime) -delete)

Aug 16 20:40:01 Debian-pc-1 /USR/SBIN/CRON[27682]: (root) CMD (test -x /usr/sbin/metche && /usr/sbin/metche cron)
Aug 16 20:40:01 Debian-pc-1 /USR/SBIN/CRON[27683]: (root) CMD (/etc/init.d/denyhosts restart)

ug 16 20:45:01 Debian-pc-1 /USR/SBIN/CRON[27728]: (root) CMD (test -x /usr/sbin/metche && /usr/sbin/metche cron)
Aug 16 20:45:01 Debian-pc-1 /USR/SBIN/CRON[27732]: (clamav) CMD ([ -x /usr/sbin/clamav-unofficial-sigs ] && /usr/sbin/clamav-unofficial-sigs)
Aug 16 20:45:01 Debian-pc-1 /USR/SBIN/CRON[27726]: (CRON) error (grandchild #27732 failed with exit status 1)
Aug 16 20:45:01 Debian-pc-1 /USR/SBIN/CRON[27734]: (root) CMD (command -v debian-sa1 > /dev/null && debian-sa1 1 1)

Aug 16 20:50:01 Debian-pc-1 /USR/SBIN/CRON[27763]: (root) CMD (test -x /usr/sbin/metche && /usr/sbin/metche cron)

Aug 16 20:55:01 Debian-pc-1 /USR/SBIN/CRON[27794]: (root) CMD (test -x /usr/sbin/metche && /usr/sbin/metche cron)
Aug 16 20:55:01 Debian-pc-1 /USR/SBIN/CRON[27796]: (root) CMD (command -v debian-sa1 > /dev/null && debian-sa1 1 1)

Aug 16 21:00:01 Debian-pc-1 /USR/SBIN/CRON[27878]: (root) CMD (/usr/sbin/logcheck)
Aug 16 21:00:01 Debian-pc-1 /USR/SBIN/CRON[27879]: (root) CMD (/etc/init.d/denyhosts restart)
Aug 16 21:00:01 Debian-pc-1 /USR/SBIN/CRON[27880]: (root) CMD (test -x /usr/sbin/metche && /usr/sbin/metche cron)
Aug 16 21:00:01 Debian-pc-1 /USR/SBIN/CRON[27877]: (CRON) error (grandchild #27878 failed with exit status 1)
[/quote]

ps: merci pour ton lien Cluxter, j’ai bien peur d’en avoir fait le tour ces derniers jours sur google et seeks … :wink:

Salut,
Et les autres ?

cat /etc/cron.d/anacron cat /etc/cron.d/cron-apt cat /etc/cron.d/metche

Le souci étant que je n’ai aucun souvenir d"avoir modifier quoique soit !!!

[code]:~$ cat /etc/cron.d/anacron

/etc/cron.d/anacron: crontab entries for the anacron package

SHELL=/bin/sh
PATH=/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin

30 7 * * * root test -x /etc/init.d/anacron && /usr/sbin/invoke-rc.d anacron start >/dev/null
:~$

:~$ cat /etc/cron.d/cron-apt

Regular cron jobs for the cron-apt package

Every night at 4 o’clock.

#0 9 * * * root test -x /usr/sbin/cron-apt && /usr/sbin/cron-apt

Every hour.

0 * * * * root test -x /usr/sbin/cron-apt && /usr/sbin/cron-apt /etc/cron-apt/config2

Every five minutes.

*/5 * * * * root test -x /usr/sbin/cron-apt && /usr/sbin/cron-apt /etc/cron-apt/config2

Mise à jour de sécuriter journalière

0 9 * * * root test -x /usr/sbin/cron-apt && /usr/sbin/cron-apt
0 12 * * * root test -x /usr/sbin/cron-apt && /usr/sbin/cron-apt
0 16 * * * root test -x /usr/sbin/cron-apt && /usr/sbin/cron-apt
0 20 * * * root test -x /usr/sbin/cron-apt && /usr/sbin/cron-apt
0 22 * * * root test -x /usr/sbin/cron-apt && /usr/sbin/cron-apt

:~$ cat /etc/cron.d/metche

0-59/5 * * * * root test -x /usr/sbin/metche && /usr/sbin/metche cron

:~$

[/code]

n’est ce pas “root” intégrer dans les crons, j’ai lu quelques chose la dessus ici (fran.b) … ?

Salut,

Supprime tous ce que tu as dans tes tâches Cron, remet les lignes une par une, et teste jusqu’à ce que tu trouve ce qui coince…

Salut,

Je vais peut être chipoté sur le mot “supprime” que tu as employé, commenter l’ensemble des lignes dans mon cas : crontab -e ; /etc/crontab ; /etc/cron.daily était suffisant, ceci fait, rétablir chronologiquement et fonction des horaires des crons, de la patience, de l’observation et le tour et jouer. :023

Avec l’observation, on retrouve ensuite (après compréhension des mécanismes) aisément dans cron.log et syslog les fauteurs de troubles … :033

quelques exemples …

[quote]Aug 18 12:10:01 Debian-pc-1 /USR/SBIN/CRON[4404]: (root) CMD (root^I/usr/bin/freshclam --quiet )
Aug 18 12:10:01 Debian-pc-1 /USR/SBIN/CRON[4405]: (root) CMD (/usr/sbin/ntpdate pool.ntp.org >/dev/null)
Aug 18 12:10:01 Debian-pc-1 /USR/SBIN/CRON[4406]: (root) CMD (test -x /usr/sbin/metche && /usr/sbin/metche cron)
Aug 18 12:10:01 Debian-pc-1 /USR/SBIN/CRON[4403]: (CRON) error (grandchild #4404 failed with exit status 127)
Aug 18 12:10:01 Debian-pc-1 /USR/SBIN/CRON[4401]: (CRON) error (grandchild #4405 failed with exit status 1)
Aug 18 12:11:01 Debian-pc-1 /USR/SBIN/CRON[4439]: (root) CMD (root^I/usr/bin/freshclam )
Aug 18 12:11:01 Debian-pc-1 /USR/SBIN/CRON[4438]: (CRON) error (grandchild #4439 failed with exit status 127)[/quote]

Me restes à sanctionner les fauteurs, avec les bons appels et syntaxes … :083

Ceci dit, coche verte … :023

Merci lol … :wink: