Please whitelist cPanel in your adblocker so that you’re able to see our version release promotions, thanks!

The Community Forums

Interact with an entire community of cPanel & WHM users!

Problem with internal logger

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

  1. Erik Ellsinger

    Erik Ellsinger Well-Known Member

    Joined:
    Sep 25, 2015
    Messages:
    51
    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,678
    Likes Received:
    71
    Trophy Points:
    203
    Location:
    SLC
    cPanel Access Level:
    DataCenter Provider
    edit your /etc/logrotate.conf
    and remove the /var/log/clamav/freshclam.log entry
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  3. Jcats

    Jcats Well-Known Member

    Joined:
    May 25, 2011
    Messages:
    714
    Likes Received:
    120
    Trophy Points:
    168
    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
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  4. Erik Ellsinger

    Erik Ellsinger Well-Known Member

    Joined:
    Sep 25, 2015
    Messages:
    51
    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:
    43,885
    Likes Received:
    1,814
    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.
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
Loading...

Share This Page

  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice