clamav-clamonacc.service doesn't start in Mageia9

This forum is dedicated to basic help and support :

Ask here your questions about basic installation and usage of Mageia. For example you may post here all your questions about getting Mageia isos and installing it, configuring your printer, using your word processor etc.

Try to ask your questions in the right sub-forum with as much details as you can gather. the more precise the question will be, the more likely you are to get a useful answer

clamav-clamonacc.service doesn't start in Mageia9

Postby john_gibbe » Mar 27th, '24, 13:45

hello,
I'm running Mageia9 on a computer that has been upgraded from Mageia8
here is the problem:
Code: Select all
[root@PC-JOHN ~]# systemctl start clamav-clamonacc.service
Job for clamav-clamonacc.service failed because a timeout was exceeded.
See "systemctl status clamav-clamonacc.service" and "journalctl -xeu clamav-clamonacc.service" for details.

and the result of journalctl
Code: Select all
mars 27 10:46:59 PC-JOHN systemd[1]: Starting clamav-clamonacc.service...
░░ Subject: L'unité (unit) clamav-clamonacc.service a commencé à démarrer
░░ Defined-By: systemd
░░ Support: https://lists.freedesktop.org/mailman/listinfo/systemd-devel
░░
░░ L'unité (unit) clamav-clamonacc.service a commencé à démarrer.
mars 27 10:48:29 PC-JOHN systemd[1]: clamav-clamonacc.service: start-pre operation timed out. Terminating.
mars 27 10:48:29 PC-JOHN systemd[1]: clamav-clamonacc.service: Control process exited, code=killed, status=15/TERM
░░ Subject: Unit process exited
░░ Defined-By: systemd
░░ Support: https://lists.freedesktop.org/mailman/listinfo/systemd-devel
░░
░░ An ExecStartPre= process belonging to unit clamav-clamonacc.service has exited.
░░
░░ The process' exit code is 'killed' and its exit status is 15.
mars 27 10:48:29 PC-JOHN systemd[1]: clamav-clamonacc.service: Failed with result 'timeout'.
░░ Subject: Unit failed
░░ Defined-By: systemd
░░ Support: https://lists.freedesktop.org/mailman/listinfo/systemd-devel
░░
░░ The unit clamav-clamonacc.service has entered the 'failed' state with result 'timeout'.
mars 27 10:48:29 PC-JOHN systemd[1]: Failed to start clamav-clamonacc.service.
░░ Subject: L'unité (unit) clamav-clamonacc.service a échoué
░░ Defined-By: systemd
░░ Support: https://lists.freedesktop.org/mailman/listinfo/systemd-devel
░░
░░ L'unité (unit) clamav-clamonacc.service a échoué, avec le résultat failed


Code: Select all
[root@PC-JOHN ~]# systemctl status clamav-daemon.service
● clamav-daemon.service - Clam AntiVirus userspace daemon
     Loaded: loaded (/usr/lib/systemd/system/clamav-daemon.service; enabled; preset: disabled)
     Active: active (running) since Wed 2024-03-27 10:17:51 CET; 34min ago
TriggeredBy: ● clamav-daemon.socket
       Docs: man:clamd(8)
             man:clamd.conf(5)
             https://docs.clamav.net/
   Main PID: 272590 (clamd)
      Tasks: 2 (limit: 154471)
     Memory: 1.4G
        CPU: 8.183s
     CGroup: /system.slice/clamav-daemon.service
             └─272590 /usr/sbin/clamd --foreground=true

mars 27 10:18:00 PC-JOHN clamd[272590]: XMLDOCS support enabled.
mars 27 10:18:00 PC-JOHN clamd[272590]: HWP3 support enabled.
mars 27 10:18:00 PC-JOHN clamd[272590]: Self checking every 600 seconds.
mars 27 10:18:00 PC-JOHN clamd[272590]: Listening daemon: PID: 272590
mars 27 10:18:00 PC-JOHN clamd[272590]: WARNING: MaxThreads * MaxRecursion is too high: 1088, open file descriptor limit is: 1024
mars 27 10:18:00 PC-JOHN clamd[272590]: WARNING: MaxQueue value too high, lowering to: 64
mars 27 10:18:00 PC-JOHN clamd[272590]: MaxQueue set to: 64
mars 27 10:28:00 PC-JOHN clamd[272590]: SelfCheck: Database status OK.
mars 27 10:38:00 PC-JOHN clamd[272590]: SelfCheck: Database status OK.
mars 27 10:48:00 PC-JOHN clamd[272590]: SelfCheck: Database status OK.

and as I've seen there's a ExecStartPre in the service which test a file named /run/clamav/clamd.ctl
Code: Select all
[root@PC-JOHN ~]# ls -Alh /run/clamav/
total 8,0K
-rw-r--r-- 1 root root 7 mars  27 10:17 clamd.pid
-rw-r--r-- 1 root root 5 mars  25 14:47 freshclam.pid

so clamav-daemon.service is active and running but there's no file named /run/clamav/clamd.ctl. Anyways clamav-clamonacc.service load after clamav-daemon.
Is it safe to remove ExecStartPre from the clamav-clamonacc service?
john_gibbe
 
Posts: 20
Joined: Jun 5th, '11, 15:22

Return to Basic support

Who is online

Users browsing this forum: No registered users and 1 guest