Community Forums
Connect with us on LinkedIn
+ Reply to Thread
Results 1 to 11 of 11
  1. #1
    Member
    Join Date
    Apr 2008
    Posts
    35

    Default getfile: Can't write 1448 bytes to /usr/share/clamav/clamav-917a563483a6171fe02eac005

    Hello ,

    I can't update Clamav .

    Code:
    root@constan [~]# freshclam
    sda1: write failed, user block limit reached.
    ClamAV update process started at Sun Jul 26 15:56:52 2009
    WARNING: Your ClamAV installation is OUTDATED!
    WARNING: Local version: 0.95.1 Recommended version: 0.95.2
    DON'T PANIC! Read http://www.clamav.net/support/faq
    ERROR: chdir_tmp: Can't create directory ./clamav-1cb832b46c1c20fe798628ebf3ddf422
    WARNING: Incremental update failed, trying to download main.cvd
    getfile: Can't write 1448 bytes to /usr/share/clamav/clamav-917a563483a6171fe02eac0059852cbe
    WARNING: Can't download main.cvd from database.clamav.net

    Please Advise.

  2. #2
    Technical Product Specialist cPanelDavidG's Avatar
    Join Date
    Nov 2006
    Location
    Houston, TX
    Posts
    11,189
    cPanel/Enkompass Access Level

    Root Administrator

    Default

    Are you able to write data to /usr/share/clamav/ yourself (e.g. touching a file that doesn't yet exist)?

  3. #3
    Member
    Join Date
    Apr 2008
    Posts
    35

    Default

    Yes. I can .

    Code:
    root@constan [/usr/share/clamav]# touch test.v
    root@constan [/usr/share/clamav]# ls
    ./  ../  daily.cvd  main.cvd  test.v

  4. #4
    Member
    Join Date
    Jun 2007
    Posts
    138

    Default Clamav ownership/permissions

    It could be due to /usr/share/clamav having incorrect ownership/permissions.

    Make sure /usr/share/clamav/ is owned by the right user . If it is owned by user "qscand" then try to change it to user "clamav"

    And in the file freshclam.conf change DatabaseOwner to clamav

    -----
    DatabaseOwner clamav
    -----
    LogicSupport.com - Support That Makes Sense!
    Quality Server Management & Web Hosting Support

  5. #5
    Member
    Join Date
    Apr 2008
    Posts
    35

    Unhappy I have problem yet !

    Tank you for your help but all these setting was OK !


    Code:
    # ls -l
    total 18836
    drwxrwxr-x  2 clamav clamav     4096 Jul 29 14:12 ./
    drwxr-xr-x 77 root   root       4096 May  9 22:08 ../
    -rw-rw-r--  1 clamav clamav   778749 Apr  3 13:49 daily.cvd
    -rw-rw-r--  1 clamav clamav 18462921 Apr  3 13:49 main.cvd
    -rw-r--r--  1 root   root          0 Jul 27 19:08 test.v
    Also ownership of clamav folder is clamav !

    and DatabaseOwner is clamav in freshclam.conf

  6. #6
    Member
    Join Date
    Jun 2007
    Posts
    138

    Default Try re-installing

    Through WHM's Plugin try uninstalling and then re-installing Clamav by unchecking the "ClamAV Connector" and save it then go back to that page and check it to re-install ClamAV.
    LogicSupport.com - Support That Makes Sense!
    Quality Server Management & Web Hosting Support

  7. #7
    Member
    Join Date
    Apr 2008
    Posts
    35

    Default

    Quote Originally Posted by logicsupport View Post
    Through WHM's Plugin try uninstalling and then re-installing Clamav by unchecking the "ClamAV Connector" and save it then go back to that page and check it to re-install ClamAV.
    Thank you for your reply

    I already did it .
    Also I try to install it manually by source . When the installation completed , I see the same error again for update clamav with freshclam !!!

  8. #8
    Member
    Join Date
    Jun 2007
    Posts
    138

    Default Check quota

    see if you've exceeded your quota also do you have enough disk space?

    Check all the disk quotas with:

    repquota -av
    LogicSupport.com - Support That Makes Sense!
    Quality Server Management & Web Hosting Support

  9. #9
    Member
    Join Date
    Apr 2008
    Posts
    35

    Default

    Quote Originally Posted by logicsupport View Post
    see if you've exceeded your quota also do you have enough disk space?

    Check all the disk quotas with:

    repquota -av
    Yes . It seem clamav has limited space usage !
    How can I resolve it ?
    Code:
    # repquota -av | grep clamav
    clamav    +-   40348    5120    5120   none      12     0     0
    Here is tables of quota :
    Block limits File limits
    User used soft hard grace used soft hard grace
    ----------------------------------------------------------------------

  10. #10
    Member
    Join Date
    Jun 2007
    Posts
    138

    Default

    This can be done with edquota command

    To change quota of user clamav
    # edquota clamav
    LogicSupport.com - Support That Makes Sense!
    Quality Server Management & Web Hosting Support

  11. #11
    Member
    Join Date
    Apr 2008
    Posts
    35

    Default

    Quote Originally Posted by logicsupport View Post
    This can be done with edquota command

    To change quota of user clamav
    # edquota clamav

    YES ! problem Solves .

    Thank you

Similar Threads & Tags
Similar threads

  1. Clamav /usr/sbin/clamd (Permission denied)
    By anasb in forum E-mail Discussions
    Replies: 1
    Last Post: 05-31-2010, 02:32 PM
  2. Path to clamAV /usr/bin/??????
    By jefferyw18 in forum cPanel and WHM Discussions
    Replies: 2
    Last Post: 10-21-2005, 12:28 PM
  3. /usr/local/cpanel/whostmgr/share
    By anup123 in forum cPanel and WHM Discussions
    Replies: 0
    Last Post: 05-29-2005, 04:04 PM
  4. Is this directory needed? /usr/share/doc
    By CamronFry in forum cPanel and WHM Discussions
    Replies: 1
    Last Post: 01-05-2005, 10:04 AM
  5. Update ClamAV to ClamAV 0.80rc3
    By equens in forum cPanel Developers
    Replies: 3
    Last Post: 10-11-2004, 12:42 PM
Linkedin       Facebook       Twitter       RSS       Flickr       YouTube