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:
    root@mail:/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]
    root@mail:/var/log# cd clamav
    root@mail:/var/log/clamav# ls -a
    .  ..  clamav.log
    root@mail:/var/log/clamav#
    
    And when I run freshclam:
    Code:
    root@mail:/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
    root@mail:/var/lib/clamav# chown root:root /var/log/clamav/
    root@mail:/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
    root@mail:/var/lib/clamav# chown root:root /var/lib/clamav/ && chmod 666 /var/lib/clamav
    root@mail:/var/lib/clamav# freshclam
    ERROR: Can't change dir to /var/lib/clamav
    root@mail:/var/lib/clamav# 
    
    Thanks
    Heeter
     
    Last edited: May 31, 2014

Share This Page