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!

[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,155
    Likes Received:
    39
    Trophy Points:
    178
    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
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  2. domhandy

    domhandy Member

    Joined:
    Nov 3, 2008
    Messages:
    7
    Likes Received:
    0
    Trophy Points:
    51
    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 Technical Support Community Manager
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    44,803
    Likes Received:
    1,898
    Trophy Points:
    363
    cPanel Access Level:
    Root Administrator
    Twitter:
    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.
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  4. sneader

    sneader Well-Known Member

    Joined:
    Aug 21, 2003
    Messages:
    1,155
    Likes Received:
    39
    Trophy Points:
    178
    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
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  5. Kent Brockman

    Kent Brockman Well-Known Member

    Joined:
    Jan 20, 2008
    Messages:
    1,187
    Likes Received:
    8
    Trophy Points:
    168
    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!
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  6. cPanelMichael

    cPanelMichael Technical Support Community Manager
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    44,803
    Likes Received:
    1,898
    Trophy Points:
    363
    cPanel Access Level:
    Root Administrator
    Twitter:
    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.
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  7. Frank Broughton

    Frank Broughton Active Member

    Joined:
    Feb 8, 2006
    Messages:
    32
    Likes Received:
    0
    Trophy Points:
    156
    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:
    88
    Likes Received:
    6
    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:
    313
    Likes Received:
    2
    Trophy Points:
    68
    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:
    575
    Likes Received:
    0
    Trophy Points:
    316
    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 Technical Support Community Manager
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    44,803
    Likes Received:
    1,898
    Trophy Points:
    363
    cPanel Access Level:
    Root Administrator
    Twitter:
    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.
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  12. manokiss

    manokiss Well-Known Member

    Joined:
    Mar 31, 2002
    Messages:
    575
    Likes Received:
    0
    Trophy Points:
    316
    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

  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