Project

General

Profile

Tâche #15924

Scénario #15678: Faire fonctionner le test diagnose Anti-virus sur EOLE 2.6

Le démarrage de freshclam sur 2.5.2 engendre un message d'erreur dans les logs

Added by Joël Cuissinat over 3 years ago. Updated over 3 years ago.

Status:
Fermé
Priority:
Normal
Assigned To:
Start date:
04/18/2016
Due date:
% Done:

100%

Estimated time:
2.00 h
Spent time:
Remaining (hours):
0.0

Description

Constaté sur 2.5.2

root@amon:~# service clamav-freshclam restart
 * Stopping ClamAV virus database updater freshclam                                                                                                                                                          [ OK ] 
 * Starting ClamAV virus database updater freshclam                                                                                                                                                          [ OK ] 
root@amon:~# tail -fn2 /var/log/syslog
2016-04-18T11:24:34.450042+02:00 amon.etb1.lan freshclam[8430]: Can't save PID to file /var/run/clamav/freshclam.pid: Permission denied
2016-04-18T11:24:37.879076+02:00 amon.etb1.lan freshclam[8641]: Can't save PID to file /var/run/clamav/freshclam.pid: Permission denied

Associated revisions

Revision 2cf6de43 (diff)
Added by Joël Cuissinat over 3 years ago

Désactivation du PID pour freshclam (inutile avec systemd)

Ref: #15924 @30m

History

#1 Updated by Gérald Schwartzmann over 3 years ago

  • Subject changed from Le démarrage de freshclam engendre un message d'erreur dans les logs to Le démarrage de freshclam sur 2.5.2 engendre un message d'erreur dans les logs

#2 Updated by Joël Cuissinat over 3 years ago

  • Tracker changed from Demande to Tâche
  • Estimated time set to 2.00 h
  • Parent task set to #15678
  • Remaining (hours) set to 2.0

Sur nos modules, clamd tourne en root et freshclam en clamav.

Visiblement freshclam n'a pas les droits suffisants...

#3 Updated by Joël Cuissinat over 3 years ago

  • Status changed from Nouveau to En cours
  • Assigned To set to Joël Cuissinat

D'après https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=804132 :

While running under systemd, clamd doesn't need to create a PID file, because systemd keeps track of the running service.
A simpler fix is to remove the PidFile entry from clamd.conf/freshclam.conf.

#4 Updated by Joël Cuissinat over 3 years ago

  • % Done changed from 0 to 100
  • Remaining (hours) changed from 2.0 to 0.25

#5 Updated by Joël Cuissinat over 3 years ago

Corrigé 2.5.2 et 2.6.0

#6 Updated by Scrum Master over 3 years ago

  • Status changed from En cours to Résolu

#7 Updated by Joël Cuissinat over 3 years ago

  • Status changed from Résolu to Fermé
  • Remaining (hours) changed from 0.25 to 0.0

Also available in: Atom PDF