The Community Forums

Interact with an entire community of cPanel & WHM users!
  1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Problem with internal logger

Discussion in 'General Discussion' started by Erik Ellsinger, Sep 27, 2015.

  1. Erik Ellsinger

    Erik Ellsinger Active Member

    Joined:
    Sep 25, 2015
    Messages:
    37
    Likes Received:
    0
    Trophy Points:
    6
    Location:
    Sweden
    cPanel Access Level:
    Root Administrator
    I'm receiving these cron emails about what I'm guessing is clamav not able to update the freshclam.log file:

    /etc/cron.daily/logrotate:
    [Sun Sep 27 04:22:04 2015] [warn] NameVirtualHost *:443 has no VirtualHosts
    ERROR: Problem with internal logger (UpdateLogFile = /var/log/clamav/freshclam.log).

    When I look in /var/log the folder clamav doesn't even exist.

    Anyone have a suggestion on how to solve this?
     
  2. dalem

    dalem Well-Known Member
    PartnerNOC

    Joined:
    Oct 24, 2003
    Messages:
    2,577
    Likes Received:
    40
    Trophy Points:
    48
    Location:
    SLC
    cPanel Access Level:
    DataCenter Provider
    edit your /etc/logrotate.conf
    and remove the /var/log/clamav/freshclam.log entry
     
  3. Jcats

    Jcats Well-Known Member

    Joined:
    May 25, 2011
    Messages:
    275
    Likes Received:
    31
    Trophy Points:
    28
    Location:
    New Jersey
    cPanel Access Level:
    DataCenter Provider
    Well that, or you can just create that location, its owned by 'clam' which is why it cannot create itself.
    Code:
    mkdir /var/log/clamav ; chown clam: /var/log/clamav
     
  4. Erik Ellsinger

    Erik Ellsinger Active Member

    Joined:
    Sep 25, 2015
    Messages:
    37
    Likes Received:
    0
    Trophy Points:
    6
    Location:
    Sweden
    cPanel Access Level:
    Root Administrator
    Thanks! I created the folder but the user that was needed was clamav.
     
  5. cPanelMichael

    cPanelMichael Forums Analyst
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    30,724
    Likes Received:
    660
    Trophy Points:
    113
    cPanel Access Level:
    Root Administrator
Loading...

Share This Page