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.

[Case 82549] clamav / freshclam cron errors after 11.40 upgrade

Discussion in 'General Discussion' started by sneader, Dec 5, 2013.

  1. sneader

    sneader Well-Known Member

    Joined:
    Aug 21, 2003
    Messages:
    1,126
    Likes Received:
    21
    Trophy Points:
    38
    Location:
    La Crosse, WI
    cPanel Access Level:
    Root Administrator
    After I received the auto-update to 11.40 Stable, I am getting nightly emails from all upgraded servers that say:

    Subject: Cron <root@hostname> /usr/local/cpanel/3rdparty/bin/freshclam --quiet --no-warnings
    Body: ERROR: Can't create temporary directory /usr/local/cpanel/3rdparty/share/clamav/clamav-f71fc59af56332934ef9ef55768bd6bc.tmp

    The /usr/local/cpanel/3rdparty/share/clamav/ directory exists with 755 permissions, owned by root. So, if freshclam is running as clamav, then I can see why it can't create files/folders.

    Known issue? Should I open a ticket? Should I just change permissions or ownership to let clamav write?

    - Scott
     
  2. domhandy

    domhandy Member

    Joined:
    Nov 3, 2008
    Messages:
    7
    Likes Received:
    0
    Trophy Points:
    1
    Location:
    United Kingdom
    cPanel Access Level:
    Root Administrator
    Apparently, this is a known issue which should be fixed at the next update, but in the meantime you can just run this command to solve it.

    chown clamav:clamav /usr/local/cpanel/3rdparty/share/clamav
     
  3. cPanelMichael

    cPanelMichael Forums Analyst
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    30,854
    Likes Received:
    676
    Trophy Points:
    113
    cPanel Access Level:
    Root Administrator
    Hello :)

    There is an internal case open to address this issue. For reference, the case number is 82549. The temporary workaround is to update the ownership of the directory via:

    Code:
    chown clamav:clamav /usr/local/cpanel/3rdparty/share/clamav
    Please monitor our Change Log for this case number to see when a resolution has been pushed out.

    Thank you.
     
  4. sneader

    sneader Well-Known Member

    Joined:
    Aug 21, 2003
    Messages:
    1,126
    Likes Received:
    21
    Trophy Points:
    38
    Location:
    La Crosse, WI
    cPanel Access Level:
    Root Administrator
    Thanks! Always amazes me that these things get through Edge, Release and Current, and make it to my Stable releases. :)

    - Scott
     
  5. Kent Brockman

    Kent Brockman Well-Known Member

    Joined:
    Jan 20, 2008
    Messages:
    1,130
    Likes Received:
    3
    Trophy Points:
    38
    Location:
    Buenos Aires, Argentina
    cPanel Access Level:
    Root Administrator
    Twitter:
    Hi. Same here. It looks like this chown solution reduced the high load in the server.

    BTW, I wanted to ask a question regarding clamd services: In the Service Manager I see an entry for clamd, and at the bottom of page, under Additional Services, there is another one: clamd.rpmorig
    I checked the options to enable and monitor, both options. Is that ok? should I disable one of them?

    I'm also running WHM 11.40.0 (build 26) "STABLE"

    Thanks!
     
  6. cPanelMichael

    cPanelMichael Forums Analyst
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    30,854
    Likes Received:
    676
    Trophy Points:
    113
    cPanel Access Level:
    Root Administrator
    It's better to post separate issues to new threads so they are handled individually. I have copied your last post to a new thread at:

    "clamd.rpmorig" and "clamd.rpmsave" service

    Thank you.
     
  7. Frank Broughton

    Frank Broughton Active Member

    Joined:
    Feb 8, 2006
    Messages:
    32
    Likes Received:
    0
    Trophy Points:
    6
    Thanks Michael... quick search and issue solved. I like it when as issue is easily solved (as we all do eh?).
     
  8. Trane Francks

    Trane Francks Well-Known Member

    Joined:
    Jun 19, 2012
    Messages:
    56
    Likes Received:
    1
    Trophy Points:
    8
    Location:
    Machida, Tokyo, Japan
    cPanel Access Level:
    Root Administrator
    Yep, gotta agree with that one. You'd think that something as simple as that would be sorted by the time Stable gets updated. Apparently not. (That's kinda the whole idea behind being ON Stable in the first place.)
     
  9. nibb

    nibb Well-Known Member

    Joined:
    Mar 22, 2008
    Messages:
    301
    Likes Received:
    1
    Trophy Points:
    18
    It also amazes me how this things get trough several beta and edge versions before going into stable. Also, cPanel is pretty much standarized now with just supporting a single OS, RHEL/CENTOS so how exactly are this things not popping up in your lab testing?

    I´m just curious how some of this bugs are found when versions go live.
     
    #9 nibb, Dec 20, 2013
    Last edited: Dec 20, 2013
  10. manokiss

    manokiss Well-Known Member

    Joined:
    Mar 31, 2002
    Messages:
    571
    Likes Received:
    0
    Trophy Points:
    16
    We had the same problem, chowned the directory and ran freshclam to update the dbase...but again after it if we try to scan a directory it keeps saying the following at the beginning of the scan:

    LibClamAV Warning: **************************************************
    LibClamAV Warning: *** The virus database is older than 7 days! ***
    LibClamAV Warning: *** Please update it as soon as possible. ***
    LibClamAV Warning: **************************************************

    Any idea what is going on? we are on 11.40.0 build 31

    Thanx in advance!
     
  11. cPanelMichael

    cPanelMichael Forums Analyst
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    30,854
    Likes Received:
    676
    Trophy Points:
    113
    cPanel Access Level:
    Root Administrator
    Please update cPanel to the latest version available on your build tier. Currently, all build tiers are at cPanel version 11.40.1.9.

    Thank you.
     
  12. manokiss

    manokiss Well-Known Member

    Joined:
    Mar 31, 2002
    Messages:
    571
    Likes Received:
    0
    Trophy Points:
    16
    Thanx Michael, but that did not fix the problem. I did open a ticket and looks like on 11.40 update there was a bug with the symlinks. Here is the tech reply/fix in case someone else have the same problem.

    ---
    # which clamscan
    /usr/bin/clamscan

    # mv /usr/bin/clamscan{,.old}
    # ln -s /usr/local/cpanel/3rdparty/bin/clamscan /usr/bin/clamscan
    ---

    Thanx!
     
Loading...

Share This Page