HowtoForge Forums | HowtoForge - Linux Howtos and Tutorials

HowtoForge Forums | HowtoForge - Linux Howtos and Tutorials (http://www.howtoforge.com/forums/index.php)
-   Installation/Configuration (http://www.howtoforge.com/forums/forumdisplay.php?f=4)
-   -   Clamd.amavisd start error (http://www.howtoforge.com/forums/showthread.php?t=44057)

robertlouwen 12th March 2010 15:32

Clamd.amavisd start error
 
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 )

robertlouwen 12th March 2010 15:41

Update
 
Also I tried this http://www.howtoforge.net/forums/sho...t=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: ERROR:Please define server type ( local and/or tcp )

falko 13th March 2010 14:40

What's the output of
Code:

updatedb
locate clamd.conf

?

What's in /etc/clamd.d/amavisd.conf?

robertlouwen 14th March 2010 06:48

1 Attachment(s)
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

falko 15th March 2010 14:07

Can you change
Code:

User amavis
to
Code:

User amavisd
in /etc/clamd.d/amavisd.conf and restart Clamd?

robertlouwen 19th March 2010 10:03

Hello Falko,

I have changed /etc/clamd/amavisd.conf like you suggested but when I restart clamd.amavisd it gives another error:
Code:

Error: Can't get information about user amavisd. Starting clamd.amavisd failed
Any other ideas ?

falko 21st March 2010 03:42

What's the output of
Code:

grep amavis /etc/passwd
?

robertlouwen 23rd March 2010 01:51

Hello Falko,

Here is the output of grep amavis /etc/passwd:

amavis:x:490:475::/var/spool/amavisd:/sbin/nologin

Have a nice day !

falko 23rd March 2010 18:01

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/
?

robertlouwen 24th March 2010 11:45

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-se...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


All times are GMT +2. The time now is 20:27.

Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2014, vBulletin Solutions, Inc.