Page 1 of 2 12 LastLast
Results 1 to 15 of 27

Thread: [Case 40055] freshclam not found / ClamAV install runs out memory on 64-bit OS

  1. #1
    Member
    Join Date
    May 2008
    Posts
    37

    Question [Case 40055] freshclam not found / ClamAV install runs out memory on 64-bit OS

    Hello

    I'm receiving from cpanel the following email:


    /bin/sh: /usr/bin/freshclam: No such file or directory

    then i logged in and make some searching:

    ls -l /usr/bin
    Nothing like freshclam is found.

    And if i do:

    # locate freshclam
    /etc/freshclam.conf
    /usr/local/bin/freshclam
    Then:
    ls -l /usr/local/bin
    lrwxrwxrwx 1 root root 19 Sep 2 2009 freshclam -> ../../bin/freshclam
    That is a symlink pointing to /usr/bin (which, has nothing like freshclam there)

    I've tried unistalling and reinstalling clamav but i got the same issue.
    Hope you guys can help me, thanks.

  2. #2
    Member
    Join Date
    May 2008
    Posts
    37

    Default :/

    Wow, it seems nobody knows about this...

  3. #3
    Member
    Join Date
    Jan 2004
    Location
    Prague, CZ
    Posts
    10

    Default

    I have same problem on a fresh cPanel 11.25.0-R46156 CENTOS 5.5.

    ClamAV was installed via WHM, but the freshclam command is missing and cron is complaining every night.

    Any ideas please?

  4. #4
    Member
    Join Date
    May 2008
    Posts
    37

    Default

    Wow, not even the cpanel staff answers this... and it seems it's not just me.

  5. #5
    Zaf
    Zaf is offline
    Member
    Join Date
    Aug 2005
    Posts
    119

    Default

    Seeing this issue in newly setup boxes only, not on older boxes that are updated.

  6. #6
    cPanel Staff cPanelJared's Avatar
    Join Date
    Feb 2010
    Location
    Houston, TX
    Posts
    1,475
    cPanel/WHM Access Level

    Root Administrator

    Default

    I checked on a test server, and as you mentioned, /usr/local/bin/freshclam was a symlink to /usr/bin/freshclam:

    Code:
    $ which freshclam
    /usr/local/bin/freshclam
    $ ls -alh /usr/local/bin/freshclam 
    lrwxrwxrwx 1 root root 19 Aug 12  2008 /usr/local/bin/freshclam -> ../../bin/freshclam*
    $ ls -alh /usr/bin/freshclam 
    -rwxr-xr-x 1 root root 248K May 28 22:19 /usr/bin/freshclam*
    Since you said /usr/bin/freshclam does not exist, and reinstalling ClamAV using the Manage Plugins interface in the WebHost Manager did not fix it, please submit a ticket so that we may investigate the problem on your server directly.
    For hands-on assistance, please reference our new support information page: Where should I go for support?
    cPResources: Support Options - Submit a ticket here - Additional Support Options - Forums Search - Mailing Lists(Alt) - Documentation - Find cPanel hosting


    -- Jared Ryan, Technical Analyst, cPanel Technical Support

  7. #7
    Member
    Join Date
    Jan 2008
    Posts
    6

    Default Same problem for me

    Please tell me how to fix this too! I have the same exact problem as the topic starter had!

    Thanks!

  8. #8
    Zaf
    Zaf is offline
    Member
    Join Date
    Aug 2005
    Posts
    119

    Default

    Quote Originally Posted by cPanelJared View Post
    I checked on a test server, and as you mentioned, /usr/local/bin/freshclam was a symlink to /usr/bin/freshclam:
    I tried this on one more box, but was unable to replicate. I think the difference might be 64 bit v/s 32 bit OS, since the box where it won't work is a 64 bit CentOS.

    I will submit a ticket, if you want me to do so.

  9. #9
    Member
    Join Date
    Jan 2008
    Posts
    6

    Default

    Yes, please submit the ticket! Thanks so much. Ya, my server is running on 64bit OS!

  10. #10
    Member ManojB's Avatar
    Join Date
    Mar 2005
    Location
    pune
    Posts
    80

    Default

    It seems that clamav installation is getting failed. Please check it if the zlib is installed properly. You can install this using the following steps :

    wget http://zlib.net/zlib-1.2.5.tar.gz
    tar -xvzf zlib-1.2.5.tar.gz
    cd zlib-1.2.5
    ./configure
    make
    make install
    After this is remove clamav from WHM also using the following steps :

    /bin/rm -Rfv /usr/bin/clam*
    /bin/rm -Rfv /usr/sbin/clam*
    /bin/rm -Rfv /usr/lib/libclam*
    /bin/rm -Rfv /usr/share/clam*
    /bin/rm -Rfv /usr/include/clam*
    /bin/rm -Rfv /usr/bin/freshclam*
    /bin/rm -Rfv /usr/etc/clamav*
    /bin/rm -Rfv /usr/local/bin/clam*
    /bin/rm -Rfv /usr/local/sbin/clam*
    /bin/rm -Rfv /usr/local/lib/libclam*
    /bin/rm -Rfv /usr/local/share/clam*
    /bin/rm -Rfv /usr/local/include/clam*
    /bin/rm -Rfv /usr/local/bin/freshclam*
    /bin/rm -Rfv /usr/local/etc/clamav*
    And not install clamav via WHM ... hope this will solve your problem.
    Regards,
    ManojB.

  11. #11
    Registered User
    Join Date
    Aug 2010
    Posts
    1

    Default /bin/sh: /usr/bin/freshclam: No such file or directory

    Hi,

    I am receiving emails saying, /bin/sh: /usr/bin/freshclam: No such file or directory

    I installed this via WHM. I would really appreciate if anyone could help me to fix this issue...

    Thanks in advance.

    K

  12. #12
    Member
    Join Date
    May 2004
    Posts
    10

    Default

    The same problem here on a fresh intalled VPS three days ago:

    CentOS 5.5 x86_64
    cPanel 11.25.0-R46156
    WHM 11.25.0
    X 3.9
    clamavconnector 0.96.1-2.4

  13. #13
    Member
    Join Date
    May 2004
    Posts
    10

    Default

    Quote Originally Posted by Xisco View Post
    The same problem here on a fresh intalled VPS three days ago:
    I solved it this way.

  14. #14
    Member
    Join Date
    Nov 2008
    Posts
    187

    Default

    Could someone from support confirm if this issue has been raised in an official support ticket or not, as I will submit a ticket if necessary.

  15. #15
    cPanel Staff cPanelJared's Avatar
    Join Date
    Feb 2010
    Location
    Houston, TX
    Posts
    1,475
    cPanel/WHM Access Level

    Root Administrator

    Default Check maxmem

    Check the value of maxmem in /var/cpanel/cpanel.config:

    Code:
    # grep maxmem /var/cpanel/cpanel.config
    maxmem=512
    If this value is 256, it needs to be raised, and I recommend raising it to at least 512. If you edit the file directly, remember to run the following command afterward:

    Code:
    # /usr/local/cpanel/whostmgr/bin/whostmgr2 --updatetweaksettings
    Note that editing /var/cpanel/cpanel.config and running the command above is the same as editing the value for The maximum memory a cPanel process can use before it is killed off (in megabytes) in Main >> Server Configuration >> Tweak Settings.

    If the memory limit was 256 or less, and you raised it, try uninstalling and reinstalling ClamAV once more. There is a known issue that causes ClamAV to not install if the maxmem value is too low. A fix for this has been developed and is currently going through the QA process, but at this time there is no timeframe for when it will be released in public builds.
    For hands-on assistance, please reference our new support information page: Where should I go for support?
    cPResources: Support Options - Submit a ticket here - Additional Support Options - Forums Search - Mailing Lists(Alt) - Documentation - Find cPanel hosting


    -- Jared Ryan, Technical Analyst, cPanel Technical Support

Page 1 of 2 12 LastLast

Similar Threads

  1. clamav memory usage
    By blargman in forum cPanel & WHM Discussions
    Replies: 1
    Last Post: 09-25-2008, 03:36 PM
  2. Awstats runs out of memory with high traffic site
    By fikse in forum cPanel & WHM Discussions
    Replies: 3
    Last Post: 11-26-2006, 06:15 PM
  3. ClamAV / Freshclam Installation Outdated Problem
    By spinnenkop in forum cPanel & WHM Discussions
    Replies: 6
    Last Post: 10-28-2004, 08:42 AM
  4. ClamAV 0.80 update with freshclam errors!
    By kmsd in forum cPanel Developers
    Replies: 0
    Last Post: 10-25-2004, 02:53 AM