CentOS 7 Clamav

Issues related to applications and software problems
Post Reply
User avatar
apach
Posts: 5
Joined: 2011/07/21 19:29:58
Location: Ukraine/Lviv

CentOS 7 Clamav

Post by apach » 2014/07/12 08:07:20

Dear Team.

When Clamav installed work fine but after reboot cannot start.

Code: Select all

[root@DKM ~]# systemctl status clamd.service
clamd.service - SYSV: Clam AntiVirus Daemon is a TCP/IP or socket protocol server.
   Loaded: loaded (/etc/rc.d/init.d/clamd)
   Active: failed (Result: exit-code) since Sat 2014-07-12 10:44:33 EEST; 47s ago
  Process: 885 ExecStart=/etc/rc.d/init.d/clamd start (code=exited, status=1/FAILURE)

Jul 12 10:44:33 DKM clamd[891]: TCP: Bound to address 127.0.0.1 on port 3310
Jul 12 10:44:33 DKM clamd[891]: TCP: Setting connection queue length to 30
Jul 12 10:44:33 DKM clamd[891]: LOCAL: Socket file /var/run/clamav/clamd.sock could not be bound: No such file or directory
Jul 12 10:44:33 DKM clamd[891]: Can't unlink the socket file /var/run/clamav/clamd.sock
Jul 12 10:44:33 DKM clamd[885]: ERROR: LOCAL: Socket file /var/run/clamav/clamd.sock could not be bound: No such file or directory
Jul 12 10:44:33 DKM clamd[885]: ERROR: Can't unlink the socket file /var/run/clamav/clamd.sock
Jul 12 10:44:33 DKM clamd[885]: [FAILED]
Jul 12 10:44:33 DKM systemd[1]: clamd.service: control process exited, code=exited status=1
Jul 12 10:44:33 DKM systemd[1]: Failed to start SYSV: Clam AntiVirus Daemon is a TCP/IP or socket protocol server..
Jul 12 10:44:33 DKM systemd[1]: Unit clamd.service entered failed state.
If I create a directory manually, clamav work until next reboot.

Code: Select all

[root@DKM ~]# mkdir /var/run/clamav
[root@DKM ~]# chown -R clamav:clamav /var/run/clamav
[root@DKM ~]# chmod -R 700 /var/run/clamav
[root@DKM ~]# 
[root@DKM ~]# systemctl start clamd.service
[root@DKM ~]# 
[root@DKM ~]# systemctl status clamd.service
clamd.service - SYSV: Clam AntiVirus Daemon is a TCP/IP or socket protocol server.
   Loaded: loaded (/etc/rc.d/init.d/clamd)
   Active: active (running) since Sat 2014-07-12 10:56:57 EEST; 9s ago
  Process: 996 ExecStart=/etc/rc.d/init.d/clamd start (code=exited, status=0/SUCCESS)
 Main PID: 999 (clamd)
   CGroup: /system.slice/clamd.service
           └─999 clamd

Jul 12 10:56:56 DKM clamd[999]: ELF support enabled.
Jul 12 10:56:56 DKM clamd[999]: Detection of broken executables enabled.
Jul 12 10:56:56 DKM clamd[999]: Mail files support enabled.
Jul 12 10:56:56 DKM clamd[999]: OLE2 support enabled.
Jul 12 10:56:56 DKM clamd[999]: PDF support enabled.
Jul 12 10:56:56 DKM clamd[999]: SWF support enabled.
Jul 12 10:56:56 DKM clamd[999]: HTML support enabled.
Jul 12 10:56:56 DKM clamd[999]: Self checking every 600 seconds.
Jul 12 10:56:57 DKM clamd[996]: [  OK  ]
Jul 12 10:56:57 DKM systemd[1]: Started SYSV: Clam AntiVirus Daemon is a TCP/IP or socket protocol server..

Code: Select all

[root@DKM ~]# Linux DKM 3.10.0-123.4.2.el7.x86_64 #1 SMP Mon Jun 30 16:09:14 UTC 2014 x86_64 x86_64 x86_64 GNU/Linux 

Code: Select all

Clamav ver: clamav-0.98.4-1.el7.rf.x86_64.rpm  clamav-db-0.98.4-1.el7.rf.x86_64.rpm  clamd-0.98.4-1.el7.rf.x86_64.rpm
Could any one had such problems and how to solve them?

Thanks.

anderson_thomas
Posts: 96
Joined: 2011/11/21 10:19:41

Re: CentOS 7 Clamav

Post by anderson_thomas » 2014/07/12 09:37:22

Hi,

which ClamAV rpm?, did you installed, (repoforge, EPEL-beta)?

Thank you
Thomas.

User avatar
apach
Posts: 5
Joined: 2011/07/21 19:29:58
Location: Ukraine/Lviv

Re: CentOS 7 Clamav

Post by apach » 2014/07/12 11:25:31

Hi Tomas.

Yes installed from rpmforge repo but didn't work.

Code: Select all

=================================================================================================
 Package              Arch                Version                   Repository           Size
=================================================================================================
Installing:
 clamav                x86_64             0.98.4-1.el7.rf          rpmforge               2.7 M
 clamav-db             x86_64             0.98.4-1.el7.rf          rpmforge               34 M
 clamd                 x86_64             0.98.4-1.el7.rf          rpmforge               158 k
Any ideas about?

anderson_thomas
Posts: 96
Joined: 2011/11/21 10:19:41

Re: CentOS 7 Clamav

Post by anderson_thomas » 2014/07/12 11:44:54

Hi apach,

try to use EPEL7-Beta if the packages available, but actually they did NOT, sorry?

(https://ftp-stud.hs-esslingen.de/Mirror ... /7/x86_64/)

Thomas.

Post Reply

Return to “CentOS 7 - Software Support”