clamav log errors

Discussion in 'Server Operation' started by Heeter, May 31, 2014.

  1. Heeter

    Heeter Member

    Hi all,

    I cannot this service started: I have tried creating the file, changing to 755 permissions, and others, but cannot get it to work:

    Code:
    [email protected]:/var/log# service clamav-daemon restart
     * Stopping ClamAV daemon clamd                                          [ OK ] 
     * Starting ClamAV daemon clamd                                                 ERROR: Can't open /var/log/clamav/clamav.log in append mode (check permissions!).
    ERROR: Can't initialize the internal logger
                                                                             [fail]
    [email protected]:/var/log# cd clamav
    [email protected]:/var/log/clamav# ls -a
    .  ..  clamav.log
    [email protected]:/var/log/clamav#
    
    And when I run freshclam:
    Code:
    [email protected]:/var/lib/clamav# freshclam
    ERROR: Can't create temporary directory /var/lib/clamav/clamav-cce2d91944502fc2c3357a5558deadf3.tmp
    Hint: The database directory must be writable for UID 110 or GID 119
    [email protected]:/var/lib/clamav# chown root:root /var/log/clamav/
    [email protected]:/var/lib/clamav# freshclam
    ERROR: Can't create temporary directory /var/lib/clamav/clamav-213b130a07ab6031cdf79ef696688403.tmp
    Hint: The database directory must be writable for UID 110 or GID 119
    [email protected]:/var/lib/clamav# chown root:root /var/lib/clamav/ && chmod 666 /var/lib/clamav
    [email protected]:/var/lib/clamav# freshclam
    ERROR: Can't change dir to /var/lib/clamav
    [email protected]:/var/lib/clamav# 
    
    Thanks
    Heeter
     
    Last edited: May 31, 2014

Share This Page