Log inUsernamePassword
Log me on automatically each visit    
Register
Register
Log in to check your private messages
Log in to check your private messages
SMS Forum Index » SMS User Support

Post new topic   Reply to topic
Problem with freshclam
View previous topic :: View next topic  
Author Message
toothandnail
Member


Joined: 17 Mar 2011
Posts: 63
Location: Oxfordshire, UK

PostPosted: Tue Dec 17, 2013 4:45 pm    Post subject: Problem with freshclam Reply with quote

I've only just noticed this (had to restart the server due to installing a new KVM, got messages complaining that the clamav database is out of date).

After the server restarted, I tried checking that freshclam was running, but couldn't find any sign of it. So I tried to start it using the same command that is found in /etc/rc.d/rc.clamd:

Code:
root@sms:/etc/rc.d#  /usr/bin/freshclam -d -l /var/log/freshclam.log


When I ran that, I got the following errors:

Code:
ERROR: Can't open /var/log/freshclam.log in append mode (check permissions!).
ERROR: Problem with internal logger (UpdateLogFile = /var/log/freshclam.log).


Looking at /var/log, all the permissions seem to be root:root, which seems fairly normal. One thing I did notice is that there was a freshclam.log.1 which had a number of entries regarding the log file having exceeded maximum allowed size. I've also noticed a few odd errors in /var/log/messages:

Code:
Dec 15 04:40:07 sms syslogd 1.5.0: restart (remote reception).
Dec 15 04:40:07 sms logrotate: ALERT - exited abnormally.


I'm not sure how to trouble shoot this problem. What permissions should be set to allow freshclam to write to its log file? Also, what should I be looking for to track the abnormal exit of the logrotate process?

Paul.
Back to top
View user's profile Send private message
gerasimos_h
Site Admin


Joined: 09 Aug 2007
Posts: 1757
Location: Greece

PostPosted: Tue Dec 17, 2013 6:44 pm    Post subject: Reply with quote

Those are the permissions, although you can view process in /var/log/maillog

Code:
chown clamav:clamav /var/log/freshclam.log
chmod 660 /var/log/freshclam.log


Also the startup script is /etc/rc.d/rc.clamav

gerasimos_h

_________________
Superb! Mini Server Project Manager
http://sms.it-ccs.com
Back to top
View user's profile Send private message Visit poster's website
toothandnail
Member


Joined: 17 Mar 2011
Posts: 63
Location: Oxfordshire, UK

PostPosted: Wed Dec 18, 2013 10:40 pm    Post subject: Reply with quote

Thanks. That sorted it out. Not sure what could have caused the problem in the first place, but I'll keep an eye on it in future.

I notice that /var/log/messages on several SMS installations has warnings from logrotate about the process terminating abnormally. Is there anything I should be looking at there?

Paul.
Back to top
View user's profile Send private message
keopp
Senior Member


Joined: 08 Nov 2008
Posts: 166
Location: Romania

PostPosted: Thu Dec 19, 2013 6:57 pm    Post subject: Reply with quote

One of the reasons could be the missing of
Quote:
/var/log/dansguardian/access.log

owned by nobody.nobody

Try to create it than see if error persist.
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    SMS Forum Index » SMS User Support All times are GMT + 2 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You can attach files in this forum
You can download files in this forum

SMS - Superb! Mini Server Project © 2016
Powered by phpBB © 2001, 2002 phpBB Group
iCGstation v1.0 Template By Ray © 2003, 2004 iOptional