PDA

View Full Version : clamd challenges | The Perfect Server-CentOS 5.7 x86_64 [ISPConfig 3]-Pg 4


ehudson3
6th January 2012, 11:29
We were moving along rather nicely in getting our new server prepared to install ISPConfig3 until we ran into the following error:

[root@webserver ~]# sa-update
[root@webserver ~]# chkconfig --levels 235 amavisd on
[root@webserver ~]# chkconfig --levels 235 clamd on
error reading information on service clamd: No such file or directory

I followed what I thought was the solution:
#mkdir /var/run/clamd

No problem here (except after a reboot, the directory no longer exists) :eek:

Then I tried to understand the following command:
#chown root:<same group name that clamd runs as> /var/run/clamd

(I have no clue as to what 'same group name that clamd runs as'. Please explain)

I do not want to go any further in the prep work until I can get clamd to function properly. Please advise - thanx in advance!

falko
7th January 2012, 11:23
Do you use CentOS 5.x, or is it 6.x?

the_matrix
9th January 2012, 16:54
Please verify:

I've found that service 'clamd' is now called 'clamd.amavisd'.

I've upgraded my spamassassin on my ISPconfig 3 last Friday and it removed the amavis-new so I had no mails on mailboxes until I found this.

Regards.

ehudson3
10th January 2012, 01:20
Do you use CentOS 5.x, or is it 6.x?

We're running CentOS 5.7

ehudson3
10th January 2012, 01:23
Please verify:

I've found that service 'clamd' is now called 'clamd.amavisd'.

I've upgraded my spamassassin on my ISPconfig 3 last Friday and it removed the amavis-new so I had no mails on mailboxes until I found this.

Regards.
I am unsure what to verify because I do not understand why the directory was not created; and whether or not I should create the directory, remove then start from scratch or something else. Please advise.

falko
10th January 2012, 17:08
What are the outputs of ls -la /var/run/
and uname -a?

ehudson3
21st January 2012, 19:08
Sorry it took so long to reply...you know, changing priorities. But I'm back now. Here's the response...Thanks!

What are the outputs of ls -la /var/run/

[webdev@webserver ~]$ ls -la /var/run/
total 388
drwxr-xr-x 29 root root 4096 Jan 21 12:18 .
drwxr-xr-x 28 root root 4096 Jan 6 02:54 ..
srw-rw-rw- 1 root root 0 Jan 6 04:18 acpid.socket
drwxr-xr-x 2 amavis root 4096 Jan 6 03:09 amavisd
-rw-r--r-- 1 root root 5 Jan 6 04:18 atd.pid
srw-r----- 1 root root 0 Jan 6 04:18 audispd_events
-rw-r--r-- 1 root root 5 Jan 6 04:18 auditd.pid
prw------- 1 root root 0 Jan 6 04:18 autofs.fifo-misc
prw------- 1 root root 0 Jan 6 04:18 autofs.fifo-net
drwxr-xr-x 2 avahi avahi 4096 Jan 6 04:18 avahi-daemon
-rw-r--r-- 1 root root 5 Jan 6 04:18 brcm_iscsiuio.pid
drwxr-xr-x 2 clam clam 4096 Dec 13 19:02 clamav
drwxr-xr-x 2 root root 4096 Jan 6 03:23clamd
drwxr-xr-x 2 root root 4096 Nov 1 2010 console
-rw-r--r-- 1 root root 5 Jan 6 04:18 crond.pid
drwxr-xr-x 3 root lp 4096 Jan 6 04:18 cups
-rw-r--r-- 1 root root 5 Jan 6 04:18 cupsd.pid
drwxr-xr-x 2 root root 4096 Jan 6 04:18 dbus
drwxr-xr-x 3 root dovecot 4096 Jan 6 04:18 dovecot
-rw-r--r-- 1 root root 5 Jan 6 04:18 gdm.pid
-rw-r--r-- 1 root root 5 Jan 6 04:18 gpm.pid
-rw-r--r-- 1 root root 5 Jan 6 04:18 haldaemon.pid
-rw-r--r-- 1 root root 5 Jan 6 04:18 hpiod.pid
-rw-r--r-- 1 root root 5 Jan 6 04:18 hpiod.port
-rw-r--r-- 1 root root 5 Jan 6 04:18 hpssd.pid
-rw-r--r-- 1 root root 5 Jan 6 04:18 hpssd.port
-rw-r--r-- 1 root root 5 Jan 15 04:02 httpd.pid
-rw------- 1 root root 5 Jan 6 04:18 iscsid.pid
-rw------- 1 root root 5 Jan 6 04:18 klogd.pid
drwx------ 2 root root 4096 Sep 2 12:21 lvm
drwx------ 2 root root 4096 Jan 26 2010 mdadm
drwx------ 2 root root 4096 Jan 26 2010 mdmpd
-rw-r--r-- 1 root root 5 Jan 6 04:18 messagebus.pid
drwxr-xr-x 2 mysql mysql 4096 Jan 6 04:18 mysqld
drwxrwx--- 2 named named 4096 Nov 17 17:22 named
drwxrwxr-x 2 root root 4096 Aug 19 11:31 netreport
drwxr-xr-x 2 root root 4096 Jul 21 2011 NetworkManager
drwxr-x--- 2 news news 4096 Jan 26 2010 news
drwxr-xr-x 2 root root 4096 Nov 28 10:44 nscd
-rw-r--r-- 1 root root 4 Jan 6 04:18 ntpd.pid
srwxrwxrwx 1 root root 0 Jan 6 04:18 pcscd.comm
-rw-r--r-- 1 root root 4 Jan 6 04:18 pcscd.pid
-rw-r--r-- 1 root root 65537 Jan 6 04:18 pcscd.pub
drwxr-xr-x 2 root root 4096 Jan 22 2009 pm
drwxr-xr-x 2 root root 4096 Jan 20 2009 ppp
-rw-r--r-- 1 rpcuser rpcuser 5 Jan 6 04:18 rpc.statd.pid
drwxr-xr-x 2 root root 4096 Mar 17 2010 saslauthd
srw-rw-rw- 1 root root 0 Jan 6 04:18 sdp
drwxr-xr-x 2 root root 4096 Dec 13 11:01 setrans
drwxr-xr-x 2 root root 4096 Dec 16 11:23 setroubleshoot
drwxr-xr-x 2 root root 4096 Aug 29 20:04 snmpd
drwxr-xr-x 2 root root 4096 Jul 21 2011 spamassassin
-rw-r--r-- 1 root root 5 Jan 6 04:18 sshd.pid
drwx------ 5 root root 4096 Oct 4 12:06 sudo
-rw------- 1 root root 5 Jan 6 04:18 syslogd.pid
-rw-rw-r-- 1 root utmp 4608 Jan 21 12:26 utmp
drwxr-xr-x 2 root root 4096 Aug 29 19:47 winbindd
drwxr-xr-x 2 root root 4096 Mar 31 2010 wpa_supplicant
-rw-r--r-- 1 root root 6 Jan 6 04:18 xfs.pid
-rw-r--r-- 1 root root 5 Jan 6 04:18 xinetd.pid

and uname -a

[webdev@webserver ~]$ uname -a
Linux webserver.pawinc.org 2.6.18-274.12.1.el5 #1 SMP Tue Nov 29 13:37:46 EST 2011 x86_64 x86_64 x86_64 GNU/Linux

If you need anything else, please let me know.

ehudson3
31st January 2012, 06:32
Is there a knowledgeable individual willing to provide insight to help me solve my challenge with clamAV?

falko
1st February 2012, 16:45
The impression I get is that you have a CentOS 6 system with a kernel from CentOS 5. Can you check your OS version in /etc/redhat-release or /etc/centos-release?

ehudson3
1st February 2012, 23:52
The impression I get is that you have a CentOS 6 system with a kernel from CentOS 5. Can you check your OS version in /etc/redhat-release or /etc/centos-release?
Here's the log:
[webdev@webserver ~]$ sudo vi /etc/redhat-release
[sudo] password for webdev:
"/etc/redhat-release"
"/etc/redhat-release" 1L, 27CCentOS release 5.7 (Final)
~ ~ :q
[webdev@webserver ~]$ logout

It still looks like it's CentOS 5.7
It's a virgin server, so I can do whatever is required since there's no websites on it yet.

falko
2nd February 2012, 19:40
Can you check your repo files (in /etc/yum.repos.d/)? Maybe you are using the repos for CentOS 6.

ehudson3
2nd February 2012, 21:14
Can you check your repo files (in /etc/yum.repos.d/)? Maybe you are using the repos for CentOS 6.
Is this what you're looking for?

[webdev@webserver ~]$ sudo ls -l /etc/yum.repos.d/
[sudo] password for webdev:
total 92
-rw-r--r-- 1 root root 650 Jan 5 21:36 atrpms.repo
-rw-r--r-- 1 root root 1978 Dec 29 15:54 CentOS-Base.repo
-rw-r--r-- 1 root root 631 Aug 29 07:00 CentOS-Debuginfo.repo
-rw-r--r-- 1 root root 626 Aug 29 07:00 CentOS-Media.repo
-rw-r--r-- 1 root root 5390 Aug 29 07:00 CentOS-Vault.repo
-rw-r--r-- 1 root root 954 Aug 11 2010 epel.repo
-rw-r--r-- 1 root root 1054 Aug 11 2010 epel-testing.repo
-rw-r--r-- 1 root root 1069 Jul 13 2011 ius-dev.repo
-rw-r--r-- 1 root root 1010 Jul 13 2011 ius.repo
-rw-r--r-- 1 root root 1087 Jul 13 2011 ius-testing.repo
-rw-r--r-- 1 root root 739 Nov 12 2010 mirrors-rpmforge
-rw-r--r-- 1 root root 717 Nov 12 2010 mirrors-rpmforge-extras
-rw-r--r-- 1 root root 728 Nov 12 2010 mirrors-rpmforge-testing
-rw-r--r-- 1 root root 1113 Nov 12 2010 rpmforge.repo

If this is not the answer, let me know (and clarify what it is you'd like for me to do :-)

falko
3rd February 2012, 12:43
Is this what you're looking for?


Yes. Please check the contents of these files to make sure they use CentOS 5 repositories, not CentOS 6 repos.