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:
    44
    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,602
    Likes Received:
    51
    Trophy Points:
    203
    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:
    547
    Likes Received:
    75
    Trophy Points:
    153
    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:
    44
    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:
    36,294
    Likes Received:
    1,209
    Trophy Points:
    363
    cPanel Access Level:
    Root Administrator
    Hello :)

    I am happy to see the issue is now resolved. Thank you for updating us with the outcome.
     
Loading...

Share This Page