Hi,
I cannot get clamav to work on my fresh install off omv5. When I try to enable it gives me this error part 1:
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 --no-color clamav 2>&1' with exit code '1': 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: 09:15:48.564611
Duration: 0.736 ms
Changes:
----------
ID: remove_clamav_clamdscan_cron_scripts
Function: module.run
Result: True
Comment: file.find: []
Started: 09:15:48.566043
Duration: 8.403 ms
Changes:
----------
file.find:
----------
ID: remove_clamav_daemon_logrotate
Function: file.absent
Name: /etc/logrotate.d/clamav-daemon
Result: True
Comment: Removed file /etc/logrotate.d/clamav-daemon
Started: 09:15:48.574611
Duration: 1.428 ms
Changes:
----------
removed:
/etc/logrotate.d/clamav-daemon
----------
ID: remove_clamav_freshclam_logrotate
Function: file.absent
Name: /etc/logrotate.d/clamav-freshclam
Result: True
Comment: Removed file /etc/logrotate.d/clamav-freshclam
Started: 09:15:48.576156
Duration: 0.571 ms
Changes:
----------
removed:
/etc/logrotate.d/clamav-freshclam
----------
ID: configure_clamd_apparmor_profile
Function: file.replace
Name: /etc/apparmor.d/usr.sbin.clamd
Result: True
Comment: Changes were made
Started: 09:15:48.576840
Duration: 6.417 ms
Changes:
----------
diff:
---
+++
@@ -57,5 +57,5 @@
@{HOME}/** r,
# Site-specific additions and overrides. See local/README for details.
- #include <local/usr.sbin.clamd>
+ include <local/usr.sbin.clamd>
}
----------
ID: configure_clamd_apparmor_local_profile
Function: file.append
Name: /etc/apparmor.d/local/usr.sbin.clamd
Result: True
Comment: Appended 10 lines
Started: 09:15:48.583468
Duration: 7.287 ms
Changes:
----------
diff:
---
+++
@@ -0,0 +1,10 @@
+# Allow mount dirs to be scanned. Need write access to be able to
+# move/delete malicious files.
+/srv/** krw,
+/media/** krw,
+
+# Allow an action to perform when clamav detects a malicious file.
+# The scripts located in /etc/clamav/virusevent.d/ may require
+# complex privileges, because of that we use the unconfined
+# execute mode.
+/usr/bin/dash muxr,
----------
ID: reload_clamd_apparmor_profile
Function: cmd.run
Name: apparmor_parser -r /etc/apparmor.d/usr.sbin.clamd
Result: True
Comment: onlyif condition is false
Started: 09:15:48.592241
Duration: 1577.469 ms
Changes:
----------
ID: configure_clamav_freshclam
Function: file.managed
Name: /etc/clamav/freshclam.conf
Result: True
Comment: File /etc/clamav/freshclam.conf updated
Started: 09:15:50.170029
Duration: 63.545 ms
Changes:
----------
diff:
---
+++
@@ -1,5 +1,6 @@
-# Automatically created by the clamav-freshclam postinst
-# Comments will get lost when you reconfigure the clamav-freshclam package
+# This file is auto-generated by openmediavault (https://www.openmediavault.org)
+# WARNING: Do not edit this file, your changes will get lost.
+
DatabaseOwner clamav
UpdateLogFile /var/log/clamav/freshclam.log
@@ -7,7 +8,7 @@
LogSyslog false
LogFacility LOG_LOCAL6
LogFileMaxSize 0
-LogRotate true
+LogRotate false
LogTime true
Foreground false
Debug false
@@ -19,9 +20,8 @@
TestDatabases yes
ScriptedUpdates yes
CompressLocalDatabase no
+SafeBrowsing false
Bytecode true
NotifyClamd /etc/clamav/clamd.conf
-# Check for new database 24 times a day
-Checks 24
-DatabaseMirror db.local.clamav.net
+Checks 4
DatabaseMirror database.clamav.net
group:
root
mode:
0644
user:
root
----------
ID: stop_clamav_freshclam_service_to_force_db_download
Function: service.dead
Name: clamav-freshclam
Result: True
Comment: Service clamav-freshclam was killed
Started: 09:15:50.233745
Duration: 110.454 ms
Changes:
----------
clamav-freshclam:
False
----------
ID: start_clamav_freshclam_service
Function: service.running
Name: clamav-freshclam
Result: True
Comment: Service clamav-freshclam is already enabled, and is running
Started: 09:15:50.345107
Duration: 92.414 ms
Changes:
----------
clamav-freshclam:
True
----------
ID: wait_for_clamav_freshclam_db_download
Function: file.exists
Name: /var/lib/clamav/main.cvd
Result: False
Alles anzeigen
Tried:
- toggle enable on/off/on, same error message after 5 min
- when I set database check to 0 I still get an error but much sooner and less long
- added apparmor=0 to grub file. Reboot en reinstall plugin. Same error
- tried to remove /run/clamav/clamd.ctl. Not present.
- removed etc/clamav. reboot en reinstall. Same error
- did a purge with apt-get purge clamav freshclam. Same error after install plugin
- via putty as root did apt-get install clamav-base clamav-daemon clamav-freshclam clamdscan libclamav9. The output did mention installing additional packages like omv clamav stuff I think... No Icon in gui afterwards.
- omv-salt deploy run clamav. Same error
I am doing a test run in virtualbox. Same problems there.
Can someone help me?
Thank you