Problem on starting Clamav-daemon

Discussion in 'Server Operation' started by satimis, May 10, 2009.

  1. satimis

    satimis New Member

    Hi folks,


    OpenVZ
    guest(VE) - OS, Ubuntu 8.04
    Clamav-daemon


    On running;

    [email protected]:/# /etc/init.d/clamav-daemon start
    Code:
     * Starting ClamAV daemon clamd                                                  
    LibClamAV Warning: ***********************************************************
    LibClamAV Warning: ***  This version of the ClamAV engine is outdated.     ***
    LibClamAV Warning: *** DON'T PANIC! Read http://www.clamav.net/support/faq ***
    LibClamAV Warning: ***********************************************************
    LibClamAV Error: cli_realloc(): Can't re-allocate memory to 19784 bytes.
    realloc_problem: Cannot allocate memory
    LibClamAV Error: cli_ac_addpatt: Can't realloc ac_pattable
    LibClamAV Error: cli_parse_add(): Problem adding signature (1).
    LibClamAV Error: Problem parsing database at line 56181
    Segmentation fault			[fail]
    
    [email protected]:/# ls /tmp/
    Code:
    clamav-a0d562c1d717bbd7eddc575952c444a4
    
    [email protected]:/# ls /tmp/clamav-a0d562c1d717bbd7eddc575952c444a4/
    Code:
    COPYING  main.db  main.fp  main.hdb  main.info  main.mdb  main.ndb  main.zmd
    

    [email protected]:/# cat /etc/apt/sources.list
    Code:
    deb [url]http://archive.ubuntu.com/ubuntu[/url] hardy main restricted
    deb-src [url]http://archive.ubuntu.com/ubuntu/[/url] hardy main restricted
    
    deb [url]http://archive.canonical.com/ubuntu[/url] hardy partner
    deb-src [url]http://archive.canonical.com/ubuntu[/url] hardy partner
    
    deb [url]http://security.ubuntu.com/ubuntu[/url] hardy-security main restricted
    deb-src [url]http://security.ubuntu.com/ubuntu[/url] hardy-security main restricted
    
    deb [url]http://archive.ubuntu.com/ubuntu/[/url] hardy-backports main restricted universe multiverse
    deb-src [url]http://archive.ubuntu.com/ubuntu/[/url] hardy-backports main restricted universe multiverse
    
    #deb [url]http://archive.ubuntu.com/ubuntu/[/url] main restricted universe multiverse
    #deb-src [url]http://archive.ubuntu.com/ubuntu/[/url] main restricted universe multiverse
    
    deb [url]http://archive.ubuntu.com/ubuntu/[/url] hardy universe  #
    deb-src [url]http://archive.ubuntu.com/ubuntu/[/url] hardy universe  #
    
    Please advice how to fix the problem? TIA


    B.R.
    satimis
     
  2. falko

    falko Super Moderator ISPConfig Developer

    What's the output of
    Code:
    cat /proc/user_beancounters
    in the guest?
     
  3. satimis

    satimis New Member

    [email protected]:~$ sudo vzctl exec 102 cat /proc/user_beancounters
    Code:
    Version: 2.5
           uid  resource           held    maxheld    barrier      limit    failcnt
          102:  kmemsize        4183349    4677774   11055923   11377049          0
                lockedpages           0          0        256        256          0
                privvmpages       61316      61875      65536      69632       3070
                shmpages             31         31      21504      21504          0
                dummy                 0          0          0          0          0
                numproc              45         51        240        240          0
                physpages         29898      30060          0 2147483647          0
                vmguarpages           0          0      33792 2147483647          0
                oomguarpages      29898      30060      26112 2147483647          0
                numtcpsock           12         12        360        360          0
                numflock             11         12        188        206          0
                numpty                0          0         16         16          0
                numsiginfo            0          1        256        256          0
                tcpsndbuf        107520     107520    1720320    2703360          0
                tcprcvbuf        196608     196608    1720320    2703360          0
                othersockbuf     165056     167168    1126080    2097152          0
                dgramrcvbuf           0          0     262144     262144          0
                numothersock        118        121        360        360          0
                dcachesize       293116     300736    3409920    3624960          0
                numfile            1129       1209       9312       9312          0
                dummy                 0          0          0          0          0
                dummy                 0          0          0          0          0
                dummy                 0          0          0          0          0
                numiptent            10         10        128        128          0
    

    satimis
     
  4. falko

    falko Super Moderator ISPConfig Developer

    You must raise the value for privvmpages for that container.
     
  5. satimis

    satimis New Member

    Hi falko,


    Whether to double its output value and run;
    Code:
    # vzctl set 102 --privvmpages 131072:139264 --save
    
    131072=barrier
    139264=limit

    Then run following command to validate it
    Code:
    # vzcfgvalidate /etc/vz/102.conf
    

    # locate 102.conf
    Code:
    /etc/vz/conf/102.conf
    

    Thanks


    B.R.
    satimis
     

Share This Page