ClamAV plugin instalation failure

  • Hello,

    I have problem installing clamAv plugin. Latest Debian 9 ,

    latest i-mscp

    i-MSCP 1.5.3

    Build: 20180516

    All fresh install on KVM VPS


    An unexpected error occurred: Plugin::ClamAV::_initClamAVdatabases: Couldn't initialize ClamAV databases: Unknown error



    /etc/init.d/clamav-daemon status


    /etc/init.d/clamav-milter status

    freshclam

    Code
    1. Fri Mar 8 08:36:56 2019 -> ClamAV update process started at Fri Mar 8 08:36:56 2019
    2. Fri Mar 8 08:36:57 2019 -> ^Your ClamAV installation is OUTDATED!
    3. Fri Mar 8 08:36:57 2019 -> ^Local version: 0.100.2 Recommended version: 0.101.1
    4. Fri Mar 8 08:36:57 2019 -> DON'T PANIC! Read https://www.clamav.net/documents/upgrading-clamav
    5. Fri Mar 8 08:36:57 2019 -> main.cvd is up to date (version: 58, sigs: 4566249, f-level: 60, builder: sigmgr)
    6. Fri Mar 8 08:36:57 2019 -> daily.cvd is up to date (version: 25381, sigs: 1504578, f-level: 63, builder: raynman)
    7. Fri Mar 8 08:36:57 2019 -> bytecode.cvd is up to date (version: 328, sigs: 94, f-level: 63, builder: neo)


    Can there be error with clamav version?

    Code
    1. Fri Mar 8 08:36:57 2019 -> ^Local version: 0.100.2 Recommended version: 0.101.1

    Edited 2 times, last by vonline ().

  • Good evening,


    This is a problem with freshclam... When updating database, exit code is always 1 but I don't see relevant error message that could help fixing the problem.

    badge.php?id=1239063037&bid=2518&key=1747635596&format=png&z=547451206

  • If i run "freshclam" i got this message

    Code
    1. Wed Mar 27 20:01:49 2019 -> ClamAV update process started at Wed Mar 27 20:01:49 2019
    2. Wed Mar 27 20:01:49 2019 -> ^Your ClamAV installation is OUTDATED!
    3. Wed Mar 27 20:01:49 2019 -> ^Local version: 0.100.2 Recommended version: 0.101.2
    4. Wed Mar 27 20:01:49 2019 -> DON'T PANIC! Read https://www.clamav.net/documents/upgrading-clamav
    5. Wed Mar 27 20:01:49 2019 -> main.cld is up to date (version: 58, sigs: 4566249, f-level: 60, builder: sigmgr)
    6. Wed Mar 27 20:01:49 2019 -> daily.cld is up to date (version: 25401, sigs: 1532768, f-level: 63, builder: raynman)
    7. Wed Mar 27 20:01:49 2019 -> bytecode.cld is up to date (version: 328, sigs: 94, f-level: 63, builder: neo)


    And the return code is "1"

  • If i run "freshclam" i got this message

    Code
    1. Wed Mar 27 20:01:49 2019 -> ClamAV update process started at Wed Mar 27 20:01:49 2019
    2. Wed Mar 27 20:01:49 2019 -> ^Your ClamAV installation is OUTDATED!
    3. Wed Mar 27 20:01:49 2019 -> ^Local version: 0.100.2 Recommended version: 0.101.2
    4. Wed Mar 27 20:01:49 2019 -> DON'T PANIC! Read https://www.clamav.net/documents/upgrading-clamav
    5. Wed Mar 27 20:01:49 2019 -> main.cld is up to date (version: 58, sigs: 4566249, f-level: 60, builder: sigmgr)
    6. Wed Mar 27 20:01:49 2019 -> daily.cld is up to date (version: 25401, sigs: 1532768, f-level: 63, builder: raynman)
    7. Wed Mar 27 20:01:49 2019 -> bytecode.cld is up to date (version: 328, sigs: 94, f-level: 63, builder: neo)


    And the return code is "1"

    Exactly what I said in my previous post. Problem: There is no relevant message helping us to fix the the issue... If you figure out, you're welcome.

    badge.php?id=1239063037&bid=2518&key=1747635596&format=png&z=547451206

  • Is better to wait for the never version.

    I don't want to compile it myself. To install the plugin i'd edit the file "/var/www/imscp/gui/plugins/ClamAV/backend/ClamAV.pm" after uploading

    Code
    1. 559 #error( sprintf( "Couldn't initialize ClamAV databases: %s", $stderr || 'Unknown error' ) ) if $rs;
    2. 560 $rs=0;

    This works to finish the installation of the plugin.


    It isn't fine but it works :)

  • Is better to wait for the never version.

    I don't want to compile it myself. To install the plugin i'd edit the file "/var/www/imscp/gui/plugins/ClamAV/backend/ClamAV.pm" after uploading

    Code
    1. 559 #error( sprintf( "Couldn't initialize ClamAV databases: %s", $stderr || 'Unknown error' ) ) if $rs;
    2. 560 $rs=0;

    This works to finish the installation of the plugin.


    It isn't fine but it works :)

    That 'is exactly how I've solved the problem temporarily for one of my client... We're sharing the same brain or what?8o

    badge.php?id=1239063037&bid=2518&key=1747635596&format=png&z=547451206

  • I had the exact same problem with a few ClamAV plugin installations on Ubuntu, I found the culprit in AppArmor who blocked the freshclam process from starting correctly, if it helps anyone ...

  • TheCry


    I cannot reproduce on Debian Buster (testing)



    But anyway, I wondering if we need really run freshclam while plugin installation because it seem it is done already on package installation, or at least when the daemon is starting.

    badge.php?id=1239063037&bid=2518&key=1747635596&format=png&z=547451206

  • Normaly it is not needed to it freshclam while installation of the plugin. So - From my site you can remove this in the next version