Author Topic: clamd is stopped....  (Read 518 times)

0 Members and 1 Guest are viewing this topic.

Offline
*
clamd is stopped....
« on: April 27, 2017, 02:41:47 PM »
Hello,

Just installed CWP on a test server with Centos 6.9 and from the postfix_manager menu did a mail server rebuild with the ClamAV, Amavis & Spamassassin option. The rebuild seem to be stuck in a infinite loop. opened CWP Dashboard in a different window and found the following service had stopped:
ClamAV (red dot) clamd is stopped
Clamd for Amavisd  (red dot) clamd.amavisd (pid 9744) is running...

Restart Clam and get the following error:

Stopping Clam AntiVirus Daemon: [FAILED]
Starting Clam AntiVirus Daemon: ERROR: Can't get information about user clamav. [FAILED]

Has anyone had the same issue?

Offline
*
Re: clamd is stopped....
« Reply #1 on: August 16, 2017, 04:04:33 AM »
Seems clamd is trying to restart in a infinite loop.
Maybe is clashing with amavis trying to restart clamd too.
My solution was to stops clamd service at Dashboard.
Unfortunately, rebooting the server, needs to stops manually the clamd process.

Seeking the logs:
Aug 16 00:56:14 painel clamd[3342]: LOCAL: Socket file /var/run/clamd.amavisd/clamd.sock is in use by another process.
Aug 16 00:56:14 painel clamd[3360]: Received 0 file descriptor(s) from systemd.
Aug 16 00:56:14 painel clamd[3360]: clamd daemon 0.99.2 (OS: linux-gnu, ARCH: x86_64, CPU: x86_64)
Aug 16 00:56:14 painel clamd[3360]: Running as user amavis (UID 990, GID 989)
Aug 16 00:56:14 painel clamd[3360]: Log file size limited to 1048576 bytes.
Aug 16 00:56:14 painel clamd[3360]: Reading databases from /var/lib/clamav
Aug 16 00:56:14 painel clamd[3360]: Not loading PUA signatures.
Aug 16 00:56:14 painel clamd[3360]: Bytecode: Security mode set to "TrustSigned".
Aug 16 00:56:19 painel clamd[3360]: Loaded 6321412 signatures.
Aug 16 00:56:20 painel clamd[3360]: LOCAL: Socket file /var/run/clamd.amavisd/clamd.sock is in use by another process.
Aug 16 00:56:21 painel clamd[3491]: Received 0 file descriptor(s) from systemd.
Aug 16 00:56:21 painel clamd[3491]: clamd daemon 0.99.2 (OS: linux-gnu, ARCH: x86_64, CPU: x86_64)
Aug 16 00:56:21 painel clamd[3491]: Running as user amavis (UID 990, GID 989)
Aug 16 00:56:21 painel clamd[3491]: Log file size limited to 1048576 bytes.
Aug 16 00:56:21 painel clamd[3491]: Reading databases from /var/lib/clamav
Aug 16 00:56:21 painel clamd[3491]: Not loading PUA signatures.
Aug 16 00:56:21 painel clamd[3491]: Bytecode: Security mode set to "TrustSigned".
Aug 16 00:56:25 painel clamd[3491]: Loaded 6321412 signatures.
Aug 16 00:56:27 painel clamd[3491]: LOCAL: Socket file /var/run/clamd.amavisd/clamd.sock is in use by another process.
(...)

Offline
*****
Re: clamd is stopped....
« Reply #2 on: August 16, 2017, 03:26:47 PM »
what is the server virtualization type and kernel version ?

Offline
*
Re: clamd is stopped....
« Reply #3 on: August 17, 2017, 02:21:57 AM »
same here, clamd uses 100% cpu every start and fail.

Offline
*
Re: clamd is stopped....
« Reply #4 on: September 21, 2017, 08:34:47 AM »
- same here - clamd is hammering away on close to 100%



Ok - found a solution here in the forum -  it solved the problem:

service clamd stop
rm -f /var/run/clamd.amavisd/clamd.sock
service clamd start
« Last Edit: September 21, 2017, 08:47:30 AM by muscator »