Hello all, Today I installed a perfect server Fedora 12 with ISPConfig 3.02 on i686 box. After installing amavisd-new and clamav you run this command: /etc/init.d/clamd.amavisd start and this gives an error. clamd.amavisd Local: Socket file /var/spool/amavisd/clamd.sock is in use by another process. What to do now ? Output of ls -l: /var/run/clamav/clamd.sock: cannot access /var/spool/amavisd/clamd.sock: No such file or directory Output of ls -la /var/run/: drwxr-xr-x 2 amavisd amavisd 4096 2010-03-12 15:30 amavisd ( No other amavisd or clamd or clamd.amavisd in this output )
Update Also I tried this http://www.howtoforge.net/forums/showthread.php?t=34559&highlight=clamd.sock#6 The file www mentioned does not exists on my server so I edited /etc/clamd.d/amavisd.conf But that gives an other error: ERRORlease define server type ( local and/or tcp )
Hello Falko, The output of locate clamd.conf: /user/share/doc/clamav-server-0.95.3/clamd.conf /user/share/man/man5/clamd.conf.5.gz I attached the amavisd.conf file. Have a nice day
Can you change Code: User amavis to Code: User amavis[B][COLOR="Red"]d[/COLOR][/B] in /etc/clamd.d/amavisd.conf and restart Clamd?
Hello Falko, I have changed /etc/clamd/amavisd.conf like you suggested but when I restart clamd.amavisd it gives another error: Code: [B]Error: Can't get information about user amavisd. Starting clamd.amavisd failed[/B] Any other ideas ?
Hello Falko, Here is the output of grep amavis /etc/passwd: amavis:x:490:475::/var/spool/amavisd:/sbin/nologin Have a nice day !
Ok, then Code: User amavis is correct in /etc/clamd.d/amavisd.conf, but /var/spool/amavisd/ should be owned by amavis, not amavisd. Can you run Code: chown -R amavis:amavis /var/spool/amavisd/ ?
Thanks again Falko, that did the trick ! In my humble opinion, does the tutorial "perfect server F12" need a little update at chapter 15 page 5 ? ( http://www.howtoforge.net/perfect-server-fedora-12-x86_64-ispconfig-3-p5 ). Now there is this: Code: chown amavis /var/run/amavisd /var/spool/amavisd /var/spool/amavisd/tmp /var/spool/amavisd/db and maybe this: Code: chown -R amavis:amavis /var/spool/amavisd/ can / must be added ? Thank you for your time and have a nice day
After updating to ISPConfig v3.0.2.1 I have this problem back again. Code: [root@obelix /]# /etc/init.d/clamd.amavisd restart Stopping clamd.amavisd: [FAILED] Starting clamd.amavisd: ERROR: LOCAL: Socket file /var/spool/amavisd/clamd.sock is in use by another process. [FAILED] [root@obelix /]# grep amavis /etc/passwd Code: [root@obelix /]# grep amavis /etc/passwd amavis:x:492:477::/var/spool/amavisd:/sbin/nologin [root@obelix /]# locate clamd.conf Code: [root@obelix /]# updatedb [root@obelix /]# locate clamd.conf /usr/share/doc/clamav-server-0.95.3/clamd.conf /usr/share/man/man5/clamd.conf.5.gz [root@obelix /]# /etc/clamd.d/amavisd.conf Code: # Use system logger. LogSyslog yes # Specify the type of syslog messages - please refer to 'man syslog' # for facility names. LogFacility LOG_MAIL # This option allows you to save a process identifier of the listening # daemon (main thread). PidFile /var/run/amavisd/clamd.pid # Remove stale socket after unclean shutdown. # Default: disabled FixStaleSocket yes # Run as a selected user (clamd must be started by root). User amavis # Path to a local socket file the daemon will listen on. LocalSocket /var/spool/amavisd/clamd.sock
Output of ls -la /var/spool/amavisd/: Code: [root@obelix ~]# ls -la /var/spool/amavisd/ total 28 drwx------ 7 amavis amavis 4096 2010-04-05 04:53 . drwxr-xr-x 16 root root 4096 2010-04-01 00:44 .. srwxr-x--- 1 amavis amavis 0 2010-04-05 04:53 amavisd.sock srwxrwxrwx 1 amavis amavis 0 2010-04-05 01:14 clamd.sock drwx------ 2 amavis amavis 4096 2010-04-05 04:53 db drwx------ 2 amavis amavis 4096 2009-08-10 22:26 quarantine drwxr-x--- 2 amavis amavis 4096 2010-04-05 06:18 .razor drwx------ 2 amavis amavis 4096 2010-04-05 16:09 .spamassassin drwx------ 3 amavis amavis 4096 2010-04-05 21:16 tmp The "0" in front of amavisd.sock and clamd.sock should be "4096" just as the others, isn't it ?
chkconfig --list Code: [root@obelix ~]# chkconfig --list NetworkManager 0:off 1:off 2:off 3:off 4:off 5:off 6:off SystemEmail 0:off 1:off 2:off 3:on 4:off 5:off 6:off acpid 0:off 1:off 2:on 3:on 4:on 5:on 6:off amavisd 0:off 1:off 2:on 3:on 4:off 5:on 6:off atd 0:off 1:off 2:off 3:on 4:on 5:on 6:off auditd 0:off 1:off 2:on 3:on 4:on 5:on 6:off avahi-daemon 0:off 1:off 2:off 3:on 4:on 5:on 6:off backuppc 0:off 1:off 2:off 3:off 4:off 5:off 6:off clamd.amavisd 0:off 1:off 2:on 3:on 4:off 5:on 6:off courier-authlib 0:off 1:off 2:on 3:on 4:on 5:on 6:off courier-imap 0:off 1:off 2:on 3:on 4:on 5:on 6:off cpuspeed 0:off 1:on 2:on 3:on 4:on 5:on 6:off crond 0:off 1:off 2:on 3:on 4:on 5:on 6:off cups 0:off 1:off 2:on 3:on 4:on 5:on 6:off dc_client 0:off 1:off 2:off 3:off 4:off 5:off 6:off dc_server 0:off 1:off 2:off 3:off 4:off 5:off 6:off dnsmasq 0:off 1:off 2:off 3:off 4:off 5:off 6:off fail2ban 0:off 1:off 2:on 3:on 4:off 5:on 6:off firstboot 0:off 1:off 2:off 3:off 4:off 5:off 6:off gpm 0:off 1:off 2:on 3:on 4:on 5:on 6:off haldaemon 0:off 1:off 2:off 3:on 4:on 5:on 6:off httpd 0:off 1:off 2:on 3:on 4:off 5:on 6:off ip6tables 0:off 1:off 2:on 3:on 4:on 5:on 6:off iptables 0:off 1:off 2:on 3:on 4:on 5:on 6:off irda 0:off 1:off 2:off 3:off 4:off 5:off 6:off irqbalance 0:off 1:off 2:off 3:on 4:on 5:on 6:off lm_sensors 0:off 1:off 2:off 3:off 4:off 5:off 6:off lvm2-monitor 0:off 1:on 2:on 3:on 4:on 5:on 6:off mdmonitor 0:off 1:off 2:on 3:on 4:on 5:on 6:off messagebus 0:off 1:off 2:on 3:on 4:on 5:on 6:off microcode_ctl 0:off 1:off 2:on 3:on 4:on 5:on 6:off monit 0:off 1:off 2:on 3:on 4:off 5:on 6:off multipathd 0:off 1:off 2:off 3:off 4:off 5:off 6:off munin-node 0:off 1:off 2:on 3:on 4:off 5:on 6:off mydns 0:off 1:off 2:on 3:on 4:off 5:on 6:off mysqld 0:off 1:off 2:on 3:on 4:off 5:on 6:off netconsole 0:off 1:off 2:off 3:off 4:off 5:off 6:off netfs 0:off 1:off 2:off 3:on 4:on 5:on 6:off netplugd 0:off 1:off 2:off 3:off 4:off 5:off 6:off network 0:off 1:off 2:off 3:on 4:off 5:on 6:off nfs 0:off 1:off 2:off 3:off 4:off 5:off 6:off nfslock 0:off 1:off 2:off 3:on 4:on 5:on 6:off nmb 0:off 1:off 2:off 3:off 4:off 5:off 6:off nscd 0:off 1:off 2:off 3:off 4:off 5:off 6:off ntpd 0:off 1:off 2:off 3:on 4:off 5:off 6:off ntpdate 0:off 1:off 2:off 3:on 4:off 5:off 6:off openvpn 0:off 1:off 2:off 3:off 4:off 5:off 6:off pcscd 0:off 1:off 2:on 3:on 4:on 5:on 6:off portreserve 0:off 1:off 2:on 3:on 4:on 5:on 6:off postfix 0:off 1:off 2:on 3:on 4:off 5:on 6:off psacct 0:off 1:off 2:off 3:off 4:off 5:off 6:off pure-ftpd 0:off 1:off 2:on 3:on 4:off 5:on 6:off racoon 0:off 1:off 2:off 3:off 4:off 5:off 6:off rdisc 0:off 1:off 2:off 3:off 4:off 5:off 6:off restorecond 0:off 1:off 2:off 3:off 4:off 5:off 6:off rpcbind 0:off 1:off 2:on 3:on 4:on 5:on 6:off rpcgssd 0:off 1:off 2:off 3:on 4:on 5:on 6:off rpcidmapd 0:off 1:off 2:off 3:on 4:on 5:on 6:off rpcsvcgssd 0:off 1:off 2:off 3:off 4:off 5:off 6:off rsyslog 0:off 1:off 2:on 3:on 4:on 5:on 6:off saslauthd 0:off 1:off 2:on 3:on 4:off 5:on 6:off sendmail 0:off 1:off 2:off 3:off 4:off 5:off 6:off shorewall 0:off 1:off 2:off 3:off 4:off 5:off 6:off slapd 0:off 1:off 2:off 3:off 4:off 5:off 6:off smartd 0:off 1:off 2:off 3:off 4:off 5:off 6:off smb 0:off 1:off 2:off 3:off 4:off 5:off 6:off snmpd 0:off 1:off 2:off 3:off 4:off 5:off 6:off snmptrapd 0:off 1:off 2:off 3:off 4:off 5:off 6:off spamassassin 0:off 1:off 2:off 3:off 4:off 5:off 6:off squid 0:off 1:off 2:off 3:off 4:off 5:off 6:off sshd 0:off 1:off 2:on 3:on 4:on 5:on 6:off sysstat 0:off 1:on 2:on 3:on 4:on 5:on 6:off udev-post 0:off 1:on 2:on 3:on 4:on 5:on 6:off vsftpd 0:off 1:off 2:off 3:off 4:off 5:off 6:off wpa_supplicant 0:off 1:off 2:off 3:off 4:off 5:off 6:off ypbind 0:off 1:off 2:off 3:off 4:off 5:off 6:off
Can you kill all existing clamd.amavisd processes, delete /var/spool/amavisd/clamd.sock and restart clamd.amavisd?
Solved - again Here is what I did: Code: [root@obelix ~]# ps aux | grep clamd.amavisd amavis 1489 0.0 9.1 129324 93464 ? Ssl Apr05 0:22 clamd.amavisd -c /etc/clamd.d/amavisd.conf --pid /var/run/clamd.amavisd/clamd.pid root 18947 0.0 0.0 4208 736 pts/0 S+ 19:14 0:00 grep clamd.amavisd to get the PID numbers. Then Code: kill -9 1489 and Code: kill -9 18947 -bash: kill: (18947) - No such process. Ignoring this I went on with Code: rm -f /var/spool/amavisd/clamd.sock and Code: /etc/init.d/clamd.amavisd start and clamd.amavisd started without errors. What will happen when I reboot my box ? Thank you for your help.
Today I had to reboot ... And after that I had to do as you mentioned in post #17. I can live with this, just for your information Nice weekend