Author Topic: ClamAV will not start - keeps disabling  (Read 226 times)

0 Members and 1 Guest are viewing this topic.

Offline
*
ClamAV will not start - keeps disabling
« on: September 30, 2024, 11:53:22 AM »
Hi Guys, having a slight issue with my ClamAV, everytime I start it it disables each time, I clicked the report issue and got this..

Unable to find service file: /usr/local/cwpsrv/htdocs/resources/admin/include/ai_robot/services/ai_service_clamd.php"

and in the status i have..
clamd.service - clamd scanner () daemon
   Loaded: loaded (/usr/lib/systemd/system/clamd.service; disabled; vendor preset: disabled)
   Active: failed (Result: exit-code) since Mon 2024-09-30 11:36:29 UTC; 13min ago
     Docs: man:clamd(8)
           man:clamd.conf(5)
           https://www.clamav.net/documents/
 Main PID: 6841 (code=exited, status=1/FAILURE)

this is the second fresh install of both almalinux8 and CWP, and still have the issue.

can someone point me in the right direction please..
Richard

Offline
***
Re: ClamAV will not start - keeps disabling
« Reply #1 on: September 30, 2024, 12:23:26 PM »
1. Open CWP admin and go to "Email" --> "MailServer Manager", make sure "ClamAV, Amavis & Spamassassin, Requires 2Gb+ RAM" is checked (enable other options if necessary) then "Rebuild Mail server" (button at the bottom section of the page).

2. Wait some time and check the output to make sure all services are installed and run successfully.

If ClamAV doesn't work then access the server as root over SSH and try:

Code: [Select]
systemctl enable clamd
service clamd start

Pay attention to free RAM of your VPS/server because Clamd likes to eat RAM a lot :)

Offline
*
Re: ClamAV will not start - keeps disabling
« Reply #2 on: September 30, 2024, 12:32:44 PM »
Thank you my friend, that seems to have done the trick, nice one

Richard