Antivirus Installation Fail

  • Hi,
    I had just install OMV5. After install the Antivirus plogin, trying to click "Apply", but it came out below message. Can some expert assist me to this. TQVM.


    Click detail:
    Error #0:OMV\ExecException: Failed to execute command 'export PATH=/bin:/sbin:/usr/bin:/usr/sbin:/usr/local/bin:/usr/local/sbin; export LANG=C.UTF-8; omv-salt deploy run clamav 2>&1' with exit code '1': /usr/lib/python3/dist-packages/salt/utils/decorators/signature.py:31: DeprecationWarning: `formatargspec` is deprecated since Python 3.5. Use `signature` and the `Signature` object directly *salt.utils.args.get_function_argspec(original_function)/usr/lib/python3/dist-packages/salt/utils/decorators/signature.py:31: DeprecationWarning: `formatargspec` is deprecated since Python 3.5. Use `signature` and the `Signature` object directly *salt.utils.args.get_function_argspec(original_function)/usr/lib/python3/dist-packages/salt/utils/oset.py:47: DeprecationWarning: Using or importing the ABCs from 'collections' instead of from 'collections.abc' is deprecated, and in 3.8 it will stop working class OrderedSet(collections.MutableSet):debian:---------- ID: remove_clamav_clamdscan_cron Function: file.absent Name: /etc/cron.d/openmediavault-clamdscan Result: True Comment: File /etc/cron.d/openmediavault-clamdscan is not present Started: 08:05:39.410494 Duration: 0.321 ms Changes:---------- ID: remove_clamav_clamdscan_cron_scripts Function: module.run Result: True Comment: file.find: [] Started: 08:05:39.411237 Duration: 3.921 ms Changes: ---------- file.find:---------- ID: remove_clamav_daemon_logrotate Function: file.absent Name: /etc/logrotate.d/clamav-daemon Result: True Comment: File /etc/logrotate.d/clamav-daemon is not present Started: 08:05:39.415229 Duration: 0.259 ms Changes:---------- ID: remove_clamav_freshclam_logrotate Function: file.absent Name: /etc/logrotate.d/clamav-freshclam Result: True Comment: File /etc/logrotate.d/clamav-freshclam is not present Started: 08:05:39.415571 Duration: 0.174 ms Changes:---------- ID: configure_clamav_freshclam Function: file.managed Name: /etc/clamav/freshclam.conf Result: True Comment: File /etc/clamav/freshclam.conf is in the correct state Started: 08:05:39.415800 Duration: 45.73 ms Changes:---------- ID: stop_clamav_freshclam_service_to_force_db_download Function: service.dead Name: clamav-freshclam Result: True Comment: The service clamav-freshclam is already dead Started: 08:05:39.467572 Duration: 3192.267 ms Changes:---------- ID: start_clamav_freshclam_service Function: service.running Name: clamav-freshclam Result: True Comment: Service clamav-freshclam has been enabled, and is running Started: 08:05:42.660332 Duration: 1187.898 ms Changes: ---------- clamav-freshclam: True---------- ID: wait_for_clamav_freshclam_db_download Function: file.exists Name: /var/lib/clamav/main.cvd Result: False Comment: Attempt 1: Returned a result of "False", with the following comment: "Specified path /var/lib/clamav/main.cvd does not exist" Specified path /var/lib/clamav/main.cvd does not exist Started: 08:05:43.848403 Duration: 30000.886 ms Changes:---------- ID: configure_clamav_freshclam_logrotate Function: file.managed Name: /etc/logrotate.d/clamav-freshclam Result: True Comment: File /etc/logrotate.d/clamav-freshclam updated Started: 08:06:13.870052 Duration: 1.843 ms Changes: ---------- diff: New file mode: 0644 user: clamav---------- ID: configure_clamav_daemon Function: file.managed Name: /etc/clamav/clamd.conf Result: True Comment: File /etc/clamav/clamd.conf is in the correct state Started: 08:06:13.871965 Duration: 87.109 ms Changes:---------- ID: start_clamav_daemon_service Function: service.running Name: clamav-daemon Result: False Comment: Service clamav-daemon has been enabled, and is dead Started: 08:06:13.959414 Duration: 468.267 ms Changes: ---------- clamav-daemon: True---------- ID: configure_clamav_clamdscan_cron Function: file.managed Name: /etc/cron.d/openmediavault-clamdscan Result: True Comment: File /etc/cron.d/openmediavault-clamdscan updated Started: 08:06:14.427861 Duration: 14.273 ms Changes: ---------- diff: New file mode: 0644---------- ID: configure_clamav_daemon_logrotate Function: file.managed Name: /etc/logrotate.d/clamav-daemon Result: True Comment: File /etc/logrotate.d/clamav-daemon updated Started: 08:06:14.442218 Duration: 1.285 ms Changes: ---------- diff: New file mode: 0644 user: clamavSummary for debian-------------Succeeded: 11 (changed=6)Failed: 2-------------Total states run: 13Total run time: 35.004 s in /usr/share/php/openmediavault/system/process.inc:182Stack trace:#0 /usr/share/php/openmediavault/engine/module/serviceabstract.inc(60): OMV\System\Process->execute()#1 /usr/share/openmediavault/engined/rpc/config.inc(167): OMV\Engine\Module\ServiceAbstract->deploy()#2 [internal function]: Engined\Rpc\Config->applyChanges(Array, Array)#3 /usr/share/php/openmediavault/rpc/serviceabstract.inc(123): call_user_func_array(Array, Array)#4 /usr/share/php/openmediavault/rpc/serviceabstract.inc(149): OMV\Rpc\ServiceAbstract->callMethod('applyChanges', Array, Array)#5 /usr/share/php/openmediavault/rpc/serviceabstract.inc(588): OMV\Rpc\ServiceAbstract->OMV\Rpc\{closure}('/tmp/bgstatusd7...', '/tmp/bgoutputMf...')#6 /usr/share/php/openmediavault/rpc/serviceabstract.inc(159): OMV\Rpc\ServiceAbstract->execBgProc(Object(Closure))#7 /usr/share/openmediavault/engined/rpc/config.inc(189): OMV\Rpc\ServiceAbstract->callMethodBg('applyChanges', Array, Array)#8 [internal function]: Engined\Rpc\Config->applyChangesBg(Array, Array)#9 /usr/share/php/openmediavault/rpc/serviceabstract.inc(123): call_user_func_array(Array, Array)#10 /usr/share/php/openmediavault/rpc/rpc.inc(86): OMV\Rpc\ServiceAbstract->callMethod('applyChangesBg', Array, Array)#11 /usr/sbin/omv-engined(537): OMV\Rpc\Rpc::call('Config', 'applyChangesBg', Array, Array, 1)#12 {main}

    • Offizieller Beitrag

    Disabling and re-enabling the service in the WebUI should solve the issue. The problem is that the database is not downloaded automatically when you enable the service the first time. The configuration script realizes that the virus database does not exist and waits for 5 minutes to download it. After that time the script fails. In your case it seems it took more time to download the files. In the meanwhile the file should be downloaded when you disable/re-enable the service.


    You can also do that from CLI: omv-salt deploy run clamav

  • votdev

    Nachdem ich Deinen obigen Tip angewandt habe konnte ich endlich ClamAV installieren.


    Ich habe jedoch nunmehr folgendes Problem.


    Sobald ich in dem Reiter OnAccessScan oder Geplante Aufgaben Eingaben mache und speichere wird mir folgende Fehlermeldung angezeigt


    Tue Mar 24 21:48:16 2020 -> LOCAL: Removing stale socket file /run/clamav/clamd.ctl

    Tue Mar 24 21:48:16 2020 -> ERROR: LOCAL: Socket file /run/clamav/clamd.ctl could not be removed: Permission denied


    Danach schaltet sich der Dienst aus.


    Ich habe versucht im Netz diverse Hilfestellungen zu finden. Alle Hinweise sind jedoch fehlgeschlagen. Vielleicht könntest Du mir einen Hinweis geben. Da ich kein Experte in Sachen Linux bin hoffe ich auf Deine Hilfe.


    Vielen Dank im Voraus


    Django43

  • votdev


    Der Befehl /run/clamav/clamd.ctl führt zu einer Fehlermeldung KEINE BERECHTIGUNG


    Insoweit hat sich leider keine Änderung ergeben.


    Ich könnte natürlich die Datei clamd.ctl auch manuell löschen. Wäre dieses ein gangbarer Weg?


    Vielen Dank im Voraus für Dein Feedback.


    Django43

  • votdev


    Vielen Dank für Deine Geduld.


    Also ich habe nun die Datei gelöscht. Kein Problem


    Danach habe ich den Reiter "Geplante Aufgaben" geöffnet und dort eine Aufgabe eingegeben.


    Prompt bekomme ich wieder diverse Fehlermeldungen.


    U.a. im Antivir Log


    Wed Mar 25 13:50:16 2020 -> ERROR: LOCAL: Socket file /run/clamav/clamd.ctl could not be bound: Permission denied


    und im Syslog


    Mar 25 13:49:01 Freenas cron[697]: (*system*openmediavault-clamdscan) RELOAD (/etc/cron.d/openmediavault-clamdscan)

    Mar 25 13:50:06 Freenas systemd[1]: Starting Clam AntiVirus userspace daemon...

    Mar 25 13:50:06 Freenas mkdir[8851]: /bin/mkdir: das Verzeichnis „/run/clamav“ kann nicht angelegt werden: Die Datei existiert bereits

    Mar 25 13:50:06 Freenas systemd[1]: Started Clam AntiVirus userspace daemon.

    Mar 25 13:50:16 Freenas clamd[8853]: Wed Mar 25 13:50:16 2020 -> !LOCAL: Socket file /run/clamav/clamd.ctl could not be bound: Permission denied

    Mar 25 13:50:17 Freenas systemd[1]: clamav-daemon.service: Main process exited, code=exited, status=1/FAILURE

    Mar 25 13:50:17 Freenas systemd[1]: clamav-daemon.service: Failed with result 'exit-code'.



    Ich bin ein wenig ratlos was ich jetzt machen kann/soll.


    Wenn die Datei clamd.ctl vorhanden ist, soll sie gelöscht werden, was jedoch nicht funktioniert. Ist die Datei gelöscht wird sie jedoch wieder benötigt.


    Also ich habe ursprünglich von OMV4 auf OMV5 geupdatet. In OMV4 lief ClamAV - im Wesentlichen - ohne Probleme. Irgendwelche Änderungen, außer das ich vor dem Update das Plugin deinstalliert habe, habe ich eigentlich nicht vorgenommen. Ggfls. könntest Du mir vielleicht noch einmal helfen.


    Vielen Dank im Voraus.



    Django 43

  • Hi everybody,


    I don't know why but everytime I reboot my OMV, I have a problem with Clamav.

    I have an Odroid HC2

    Here's what I have:

    sudo service clamav-daemon status

    ● clamav-daemon.service - Clam AntiVirus userspace daemon

    Loaded: loaded (/lib/systemd/system/clamav-daemon.service; enabled; vendor preset: enabled)

    Drop-In: /etc/systemd/system/clamav-daemon.service.d

    └─extend.conf

    Active: failed (Result: exit-code) since Wed 2020-04-01 09:50:09 CEST; 5s ago

    Docs: man:clamd(8)

    man:clamd.conf(5)

    https://www.clamav.net/documents/

    Process: 10761 ExecStartPre=/bin/mkdir /run/clamav (code=exited, status=1/FAILURE)

    Process: 10762 ExecStartPre=/bin/chown clamav /run/clamav (code=exited, status=0/SUCCESS)

    Process: 10763 ExecStart=/usr/sbin/clamd --foreground=true (code=exited, status=1/FAILURE)

    Main PID: 10763 (code=exited, status=1/FAILURE)


    Apr 01 09:50:09 odroidxu4 systemd[1]: Starting Clam AntiVirus userspace daemon...

    Apr 01 09:50:09 odroidxu4 mkdir[10761]: /bin/mkdir: cannot create directory ‘/run/clamav’: File exists

    Apr 01 09:50:09 odroidxu4 systemd[1]: Started Clam AntiVirus userspace daemon.

    Apr 01 09:50:09 odroidxu4 clamd[10763]: ERROR: Can't initialize the internal logger

    Apr 01 09:50:09 odroidxu4 clamd[10763]: ERROR: Can't open /var/log/clamav/clamav.log in append mode (check permissions!).

    Apr 01 09:50:09 odroidxu4 systemd[1]: clamav-daemon.service: Main process exited, code=exited, status=1/FAILURE

    Apr 01 09:50:09 odroidxu4 systemd[1]: clamav-daemon.service: Failed with result 'exit-code'.



    The only solution I found for now is to uninstall Clamav from the WebGUI.

    Then I do "sudo rm -rf /run/clamav" from the CLI.

    Then I (re)install clamav from the WebGUI.

    Something I find weird, in the log, is that everytime the service starts, it tries to create the clamav forlder.

    Well, I'll wait untill the next time I have to reboot my system to do the same thing... :rolleyes:

Jetzt mitmachen!

Sie haben noch kein Benutzerkonto auf unserer Seite? Registrieren Sie sich kostenlos und nehmen Sie an unserer Community teil!