
12th March 2010, 15:32
|
|
Senior Member
|
|
Join Date: Apr 2009
Location: Brielle, Netherlands
Posts: 141
Thanks: 20
Thanked 3 Times in 2 Posts
|
|
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 )
__________________
With Respect, Robert ------------------------------------------------ Fedora 15 - ISPConfig v3.0.3.3 On Dell Optiplex GX270, Pentium 4, 2.8 GHz, 1024 Mb
|

12th March 2010, 15:41
|
|
Senior Member
|
|
Join Date: Apr 2009
Location: Brielle, Netherlands
Posts: 141
Thanks: 20
Thanked 3 Times in 2 Posts
|
|
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 )
__________________
With Respect, Robert ------------------------------------------------ Fedora 15 - ISPConfig v3.0.3.3 On Dell Optiplex GX270, Pentium 4, 2.8 GHz, 1024 Mb
|

13th March 2010, 14:40
|
|
Super Moderator
|
|
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 41,665
Thanks: 1,896
Thanked 2,593 Times in 2,444 Posts
|
|
What's the output of
Code:
updatedb
locate clamd.conf
?
What's in /etc/clamd.d/amavisd.conf?
|

14th March 2010, 06:48
|
|
Senior Member
|
|
Join Date: Apr 2009
Location: Brielle, Netherlands
Posts: 141
Thanks: 20
Thanked 3 Times in 2 Posts
|
|
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
__________________
With Respect, Robert ------------------------------------------------ Fedora 15 - ISPConfig v3.0.3.3 On Dell Optiplex GX270, Pentium 4, 2.8 GHz, 1024 Mb
|

15th March 2010, 14:07
|
|
Super Moderator
|
|
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 41,665
Thanks: 1,896
Thanked 2,593 Times in 2,444 Posts
|
|
Can you change
to
in /etc/clamd.d/amavisd.conf and restart Clamd?
|

19th March 2010, 10:03
|
|
Senior Member
|
|
Join Date: Apr 2009
Location: Brielle, Netherlands
Posts: 141
Thanks: 20
Thanked 3 Times in 2 Posts
|
|
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 ?
__________________
With Respect, Robert ------------------------------------------------ Fedora 15 - ISPConfig v3.0.3.3 On Dell Optiplex GX270, Pentium 4, 2.8 GHz, 1024 Mb
|

21st March 2010, 03:42
|
|
Super Moderator
|
|
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 41,665
Thanks: 1,896
Thanked 2,593 Times in 2,444 Posts
|
|
What's the output of
Code:
grep amavis /etc/passwd
?
|

23rd March 2010, 01:51
|
|
Senior Member
|
|
Join Date: Apr 2009
Location: Brielle, Netherlands
Posts: 141
Thanks: 20
Thanked 3 Times in 2 Posts
|
|
Hello Falko,
Here is the output of grep amavis /etc/passwd:
amavis:x:490:475::/var/spool/amavisd:/sbin/nologin
Have a nice day !
__________________
With Respect, Robert ------------------------------------------------ Fedora 15 - ISPConfig v3.0.3.3 On Dell Optiplex GX270, Pentium 4, 2.8 GHz, 1024 Mb
|

23rd March 2010, 18:01
|
|
Super Moderator
|
|
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 41,665
Thanks: 1,896
Thanked 2,593 Times in 2,444 Posts
|
|
Ok, then
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/
?
|
|
The Following User Says Thank You to falko For This Useful Post:
|
|

24th March 2010, 11:45
|
|
Senior Member
|
|
Join Date: Apr 2009
Location: Brielle, Netherlands
Posts: 141
Thanks: 20
Thanked 3 Times in 2 Posts
|
|
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
__________________
With Respect, Robert ------------------------------------------------ Fedora 15 - ISPConfig v3.0.3.3 On Dell Optiplex GX270, Pentium 4, 2.8 GHz, 1024 Mb
|
| Thread Tools |
|
|
| Display Modes |
Linear Mode
|
Posting Rules
|
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is Off
|
|
|
All times are GMT +2. The time now is 17:35.
|
Recent comments
11 hours 47 min ago
18 hours 28 min ago
22 hours 19 min ago
23 hours 57 min ago
1 day 8 hours ago
1 day 17 hours ago
1 day 18 hours ago
1 day 22 hours ago
2 days 2 hours ago
2 days 2 hours ago