Failed to execute command 'export PATH=/bin:/sbin:/usr/bin:/usr/sbin:/usr/local/bin:/usr/local/sbin; export LANG=C.UTF-8; export LANGUAGE=; 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: Removed file /etc/cron.d/openmediavault-clamdscan
Started: 23:51:23.061831
Duration: 22.665 ms
Changes:
----------
removed:
/etc/cron.d/openmediavault-clamdscan
----------
ID: remove_clamav_clamdscan_cron_scripts
Function: module.run
Result: True
Comment: file.find: ['/var/lib/openmediavault/cron.d/clamdscan-eaaf8c94-729f-4c3d-86d8-9f516617977e']
Started: 23:51:23.087657
Duration: 7.888 ms
Changes:
----------
file.find:
- /var/lib/openmediavault/cron.d/clamdscan-eaaf8c94-729f-4c3d-86d8-9f516617977e
----------
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: 23:51:23.096144
Duration: 3.357 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: 23:51:23.100083
Duration: 3.271 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: 23:51:23.103929
Duration: 22.67 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 13 lines
Started: 23:51:23.127200
Duration: 24.08 ms
Changes:
----------
diff:
---
+++
@@ -0,0 +1,13 @@
+# 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,
+
+# Allow user clamav to access log files at /var/log/clamav
+capability chown,
----------
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: 23:51:23.156855
Duration: 6198.559 ms
Changes:
----------
ID: configure_clamav_freshclam
Function: file.managed
Name: /etc/clamav/freshclam.conf
Result: True
Comment: File /etc/clamav/freshclam.conf updated
Started: 23:51:29.356361
Duration: 857.681 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
@@ -21,7 +22,5 @@
CompressLocalDatabase no
Bytecode true
NotifyClamd /etc/clamav/clamd.conf
-# Check for new database 24 times a day
Checks 24
-DatabaseMirror db.local.clamav.net
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: The service clamav-freshclam is already dead
Started: 23:51:30.214692
Duration: 222.602 ms
Changes:
----------
ID: start_clamav_freshclam_service
Function: service.running
Name: clamav-freshclam
Result: True
Comment: Service clamav-freshclam is already enabled, and is running
Started: 23:51:30.440292
Duration: 343.653 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"
Attempt 2: Returned a result of "False", with the following comment: "Specified path /var/lib/clamav/main.cvd does not exist"
Attempt 3: Returned a result of "False", with the following comment: "Specified path /var/lib/clamav/main.cvd does not exist"
Attempt 4: Returned a result of "False", with the following comment: "Specified path /var/lib/clamav/main.cvd does not exist"
Attempt 5: Returned a result of "False", with the following comment: "Specified path /var/lib/clamav/main.cvd does not exist"
Attempt 6: Returned a result of "False", with the following comment: "Specified path /var/lib/clamav/main.cvd does not exist"
Attempt 7: Returned a result of "False", with the following comment: "Specified path /var/lib/clamav/main.cvd does not exist"
Attempt 8: Returned a result of "False", with the following comment: "Specified path /var/lib/clamav/main.cvd does not exist"
Attempt 9: Returned a result of "False", with the following comment: "Specified path /var/lib/clamav/main.cvd does not exist"
Attempt 10: Returned a result of "False", with the following comment: "Specified path /var/lib/clamav/main.cvd does not exist"
Attempt 11: Returned a result of "False", with the following comment: "Specified path /var/lib/clamav/main.cvd does not exist"
Attempt 12: Returned a result of "False", with the following comment: "Specified path /var/lib/clamav/main.cvd does not exist"
Attempt 13: Returned a result of "False", with the following comment: "Specified path /var/lib/clamav/main.cvd does not exist"
Attempt 14: Returned a result of "False", with the following comment: "Specified path /var/lib/clamav/main.cvd does not exist"
Attempt 15: Returned a result of "False", with the following comment: "Specified path /var/lib/clamav/main.cvd does not exist"
Attempt 16: Returned a result of "False", with the following comment: "Specified path /var/lib/clamav/main.cvd does not exist"
Attempt 17: Returned a result of "False", with the following comment: "Specified path /var/lib/clamav/main.cvd does not exist"
Attempt 18: Returned a result of "False", with the following comment: "Specified path /var/lib/clamav/main.cvd does not exist"
Attempt 19: Returned a result of "False", with the following comment: "Specified path /var/lib/clamav/main.cvd does not exist"
Attempt 20: Returned a result of "False", with the following comment: "Specified path /var/lib/clamav/main.cvd does not exist"
Attempt 21: Returned a result of "False", with the following comment: "Specified path /var/lib/clamav/main.cvd does not exist"
Attempt 22: Returned a result of "False", with the following comment: "Specified path /var/lib/clamav/main.cvd does not exist"
Attempt 23: Returned a result of "False", with the following comment: "Specified path /var/lib/clamav/main.cvd does not exist"
Attempt 24: Returned a result of "False", with the following comment: "Specified path /var/lib/clamav/main.cvd does not exist"
Attempt 25: Returned a result of "False", with the following comment: "Specified path /var/lib/clamav/main.cvd does not exist"
Attempt 26: Returned a result of "False", with the following comment: "Specified path /var/lib/clamav/main.cvd does not exist"
Attempt 27: Returned a result of "False", with the following comment: "Specified path /var/lib/clamav/main.cvd does not exist"
Attempt 28: Returned a result of "False", with the following comment: "Specified path /var/lib/clamav/main.cvd does not exist"
Attempt 29: Returned a result of "False", with the following comment: "Specified path /var/lib/clamav/main.cvd does not exist"
Attempt 30: Returned a result of "False", with the following comment: "Specified path /var/lib/clamav/main.cvd does not exist"
Attempt 31: Returned a result of "False", with the following comment: "Specified path /var/lib/clamav/main.cvd does not exist"
Attempt 32: Returned a result of "False", with the following comment: "Specified path /var/lib/clamav/main.cvd does not exist"
Attempt 33: Returned a result of "False", with the following comment: "Specified path /var/lib/clamav/main.cvd does not exist"
Attempt 34: Returned a result of "False", with the following comment: "Specified path /var/lib/clamav/main.cvd does not exist"
Attempt 35: Returned a result of "False", with the following comment: "Specified path /var/lib/clamav/main.cvd does not exist"
Attempt 36: Returned a result of "False", with the following comment: "Specified path /var/lib/clamav/main.cvd does not exist"
Attempt 37: Returned a result of "False", with the following comment: "Specified path /var/lib/clamav/main.cvd does not exist"
Attempt 38: Returned a result of "False", with the following comment: "Specified path /var/lib/clamav/main.cvd does not exist"
Attempt 39: Returned a result of "False", with the following comment: "Specified path /var/lib/clamav/main.cvd does not exist"
Attempt 40: Returned a result of "False", with the following comment: "Specified path /var/lib/clamav/main.cvd does not exist"
Attempt 41: Returned a result of "False", with the following comment: "Specified path /var/lib/clamav/main.cvd does not exist"
Attempt 42: Returned a result of "False", with the following comment: "Specified path /var/lib/clamav/main.cvd does not exist"
Attempt 43: Returned a result of "False", with the following comment: "Specified path /var/lib/clamav/main.cvd does not exist"
Attempt 44: Returned a result of "False", with the following comment: "Specified path /var/lib/clamav/main.cvd does not exist"
Attempt 45: Returned a result of "False", with the following comment: "Specified path /var/lib/clamav/main.cvd does not exist"
Attempt 46: Returned a result of "False", with the following comment: "Specified path /var/lib/clamav/main.cvd does not exist"
Attempt 47: Returned a result of "False", with the following comment: "Specified path /var/lib/clamav/main.cvd does not exist"
Attempt 48: Returned a result of "False", with the following comment: "Specified path /var/lib/clamav/main.cvd does not exist"
Attempt 49: Returned a result of "False", with the following comment: "Specified path /var/lib/clamav/main.cvd does not exist"
Attempt 50: Returned a result of "False", with the following comment: "Specified path /var/lib/clamav/main.cvd does not exist"
Attempt 51: Returned a result of "False", with the following comment: "Specified path /var/lib/clamav/main.cvd does not exist"
Attempt 52: Returned a result of "False", with the following comment: "Specified path /var/lib/clamav/main.cvd does not exist"
Attempt 53: Returned a result of "False", with the following comment: "Specified path /var/lib/clamav/main.cvd does not exist"
Attempt 54: Returned a result of "False", with the following comment: "Specified path /var/lib/clamav/main.cvd does not exist"
Attempt 55: Returned a result of "False", with the following comment: "Specified path /var/lib/clamav/main.cvd does not exist"
Attempt 56: Returned a result of "False", with the following comment: "Specified path /var/lib/clamav/main.cvd does not exist"
Attempt 57: Returned a result of "False", with the following comment: "Specified path /var/lib/clamav/main.cvd does not exist"
Attempt 58: Returned a result of "False", with the following comment: "Specified path /var/lib/clamav/main.cvd does not exist"
Attempt 59: 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: 23:51:30.784883
Duration: 300522.156 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: 23:56:31.636048
Duration: 13.966 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 updated
Started: 23:56:31.650715
Duration: 1467.313 ms
Changes:
----------
diff:
---
+++
@@ -1,69 +1,64 @@
-#Automatically Generated by clamav-daemon postinst
-#To reconfigure clamd run #dpkg-reconfigure clamav-daemon
-#Please read /usr/share/doc/clamav-daemon/README.Debian.gz for details
-LocalSocket /var/run/clamav/clamd.ctl
+# This file is auto-generated by openmediavault (https://www.openmediavault.org)
+# WARNING: Do not edit this file, your changes will get lost.
+
+LocalSocket /run/clamav/clamd.ctl
FixStaleSocket true
LocalSocketGroup clamav
LocalSocketMode 666
-# TemporaryDirectory is not set to its default /tmp here to make overriding
-# the default with environment variables TMPDIR/TMP/TEMP possible
-User clamav
-ScanMail true
-ScanArchive true
-ArchiveBlockEncrypted false
+AlertEncrypted false
+AlertEncryptedArchive false
+AlertEncryptedDoc false
MaxDirectoryRecursion 15
-FollowDirectorySymlinks false
-FollowFileSymlinks false
-ReadTimeout 180
+FollowDirectorySymlinks False
+FollowFileSymlinks False
+ReadTimeout 120
MaxThreads 12
MaxConnectionQueueLength 15
LogSyslog false
-LogRotate true
+LogRotate false
LogFacility LOG_LOCAL6
-LogClean false
+LogClean True
LogVerbose false
-PreludeEnable no
-PreludeAnalyzerName ClamAV
DatabaseDirectory /var/lib/clamav
-OfficialDatabaseOnly false
SelfCheck 3600
Foreground false
Debug false
-ScanPE true
+ScanPE True
MaxEmbeddedPE 10M
-ScanOLE2 true
-ScanPDF true
-ScanHTML true
+ScanOLE2 True
+ScanPDF True
+ScanHTML True
MaxHTMLNormalize 10M
MaxHTMLNoTags 2M
MaxScriptNormalize 5M
MaxZipTypeRcg 1M
ScanSWF true
+ScanELF True
+ScanArchive True
+ScanMail false
+AlertBrokenExecutables False
ExitOnOOM false
LeaveTemporaryFiles false
-AlgorithmicDetection true
-ScanELF true
+HeuristicAlerts True
IdleTimeout 30
-CrossFilesystems true
PhishingSignatures true
-PhishingScanURLs true
-PhishingAlwaysBlockSSLMismatch false
-PhishingAlwaysBlockCloak false
-PartitionIntersection false
-DetectPUA false
+PhishingScanURLs false
+AlertPhishingSSLMismatch false
+AlertPhishingCloak false
+AlertPartitionIntersection false
+DetectPUA False
ScanPartialMessages false
HeuristicScanPrecedence false
StructuredDataDetection false
CommandReadTimeout 30
-SendBufTimeout 200
+SendBufTimeout 500
MaxQueue 100
ExtendedDetectionInfo true
-OLE2BlockMacros false
+AlertOLE2Macros false
AllowAllMatchScan true
ForceToDisk false
DisableCertCheck false
DisableCache false
-MaxScanTime 120000
MaxScanSize 100M
MaxFileSize 25M
MaxRecursion 16
@@ -84,4 +79,15 @@
Bytecode true
BytecodeSecurity TrustSigned
BytecodeTimeout 60000
-OnAccessMaxFileSize 5M
+OfficialDatabaseOnly false
+CrossFilesystems true
+VirusEvent /bin/run-parts --lsbsysinit -- /etc/clamav/virusevent.d/
+User clamav
+OnAccessMaxFileSize 100M
+OnAccessMaxThreads 5
+OnAccessDisableDDD false
+OnAccessPrevention true
+OnAccessExtraScanning true
+OnAccessExcludeUname clamav
+OnAccessRetryAttempts 3
+OnAccessIncludePath /srv/dev-disk-by-uuid-58ce13b5-7d51-448f-a1e8-cff10fca8786/abc/
----------
ID: start_clamav_daemon_service
Function: service.running
Name: clamav-daemon
Result: True
Comment: Service started
Started: 23:56:33.411092
Duration: 213.364 ms
Changes:
----------
clamav-daemon:
True
----------
ID: start_clamav_onaccess_service
Function: service.running
Name: clamav-onaccess
Result: False
Comment: A dependency job for clamav-onaccess.service failed. See 'journalctl -xe' for details.
Started: 23:56:33.625439
Duration: 222.383 ms
Changes:
----------
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: 23:56:33.848924
Duration: 607.801 ms
Changes:
----------
diff:
New file
mode:
0644
----------
ID: configure_clamav_clamdscan_cron_script_eaaf8c94-729f-4c3d-86d8-9f516617977e
Function: file.managed
Name: /var/lib/openmediavault/cron.d/clamdscan-eaaf8c94-729f-4c3d-86d8-9f516617977e
Result: True
Comment: File /var/lib/openmediavault/cron.d/clamdscan-eaaf8c94-729f-4c3d-86d8-9f516617977e updated
Started: 23:56:34.457354
Duration: 682.075 ms
Changes:
----------
diff:
New file
mode:
0750
----------
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: 23:56:35.140072
Duration: 11.841 ms
Changes:
----------
diff:
New file
mode:
0644
user:
clamav
Summary for debian
-------------
Succeeded: 16 (changed=14)
Failed: 2
-------------
Total states run: 18
Total run time: 311.447 s
[ERROR ] Specified path /var/lib/clamav/main.cvd does not exist
[ERROR ] Specified path /var/lib/clamav/main.cvd does not exist
[ERROR ] Specified path /var/lib/clamav/main.cvd does not exist
[ERROR ] Specified path /var/lib/clamav/main.cvd does not exist
[ERROR ] Specified path /var/lib/clamav/main.cvd does not exist
[ERROR ] Specified path /var/lib/clamav/main.cvd does not exist
[ERROR ] Specified path /var/lib/clamav/main.cvd does not exist
[ERROR ] Specified path /var/lib/clamav/main.cvd does not exist
[ERROR ] Specified path /var/lib/clamav/main.cvd does not exist
[ERROR ] Specified path /var/lib/clamav/main.cvd does not exist
[ERROR ] Specified path /var/lib/clamav/main.cvd does not exist
[ERROR ] Specified path /var/lib/clamav/main.cvd does not exist
[ERROR ] Specified path /var/lib/clamav/main.cvd does not exist
[ERROR ] Specified path /var/lib/clamav/main.cvd does not exist
[ERROR ] Specified path /var/lib/clamav/main.cvd does not exist
[ERROR ] Specified path /var/lib/clamav/main.cvd does not exist
[ERROR ] Specified path /var/lib/clamav/main.cvd does not exist
[ERROR ] Specified path /var/lib/clamav/main.cvd does not exist
[ERROR ] Specified path /var/lib/clamav/main.cvd does not exist
[ERROR ] Specified path /var/lib/clamav/main.cvd does not exist
[ERROR ] Specified path /var/lib/clamav/main.cvd does not exist
[ERROR ] Specified path /var/lib/clamav/main.cvd does not exist
[ERROR ] Specified path /var/lib/clamav/main.cvd does not exist
[ERROR ] Specified path /var/lib/clamav/main.cvd does not exist
[ERROR ] Specified path /var/lib/clamav/main.cvd does not exist
[ERROR ] Specified path /var/lib/clamav/main.cvd does not exist
[ERROR ] Specified path /var/lib/clamav/main.cvd does not exist
[ERROR ] Specified path /var/lib/clamav/main.cvd does not exist
[ERROR ] Specified path /var/lib/clamav/main.cvd does not exist
[ERROR ] Specified path /var/lib/clamav/main.cvd does not exist
[ERROR ] Specified path /var/lib/clamav/main.cvd does not exist
[ERROR ] Specified path /var/lib/clamav/main.cvd does not exist
[ERROR ] Specified path /var/lib/clamav/main.cvd does not exist
[ERROR ] Specified path /var/lib/clamav/main.cvd does not exist
[ERROR ] Specified path /var/lib/clamav/main.cvd does not exist
[ERROR ] Specified path /var/lib/clamav/main.cvd does not exist
[ERROR ] Specified path /var/lib/clamav/main.cvd does not exist
[ERROR ] Specified path /var/lib/clamav/main.cvd does not exist
[ERROR ] Specified path /var/lib/clamav/main.cvd does not exist
[ERROR ] Specified path /var/lib/clamav/main.cvd does not exist
[ERROR ] Specified path /var/lib/clamav/main.cvd does not exist
[ERROR ] Specified path /var/lib/clamav/main.cvd does not exist
[ERROR ] Specified path /var/lib/clamav/main.cvd does not exist
[ERROR ] Specified path /var/lib/clamav/main.cvd does not exist
[ERROR ] Specified path /var/lib/clamav/main.cvd does not exist
[ERROR ] Specified path /var/lib/clamav/main.cvd does not exist
[ERROR ] Specified path /var/lib/clamav/main.cvd does not exist
[ERROR ] Specified path /var/lib/clamav/main.cvd does not exist
[ERROR ] Specified path /var/lib/clamav/main.cvd does not exist
[ERROR ] Specified path /var/lib/clamav/main.cvd does not exist
[ERROR ] Specified path /var/lib/clamav/main.cvd does not exist
[ERROR ] Specified path /var/lib/clamav/main.cvd does not exist
[ERROR ] Specified path /var/lib/clamav/main.cvd does not exist
[ERROR ] Specified path /var/lib/clamav/main.cvd does not exist
[ERROR ] Specified path /var/lib/clamav/main.cvd does not exist
[ERROR ] Specified path /var/lib/clamav/main.cvd does not exist
[ERROR ] Specified path /var/lib/clamav/main.cvd does not exist
[ERROR ] Specified path /var/lib/clamav/main.cvd does not exist
[ERROR ] Specified path /var/lib/clamav/main.cvd does not exist
[ERROR ] Specified path /var/lib/clamav/main.cvd does not exist
[ERROR ] Service clamav-daemon is already enabled, and is dead
[ERROR ] Command '/bin/systemd-run' failed with return code: 1
[ERROR ] stderr: Running scope as unit: run-r6ccafc994ac34ca78ca677b5d4b1599c.scope
A dependency job for clamav-onaccess.service failed. See 'journalctl -xe' for details.
[ERROR ] retcode: 1
[ERROR ] A dependency job for clamav-onaccess.service failed. See 'journalctl -xe' for details.
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; export LANGUAGE=; 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: Removed file /etc/cron.d/openmediavault-clamdscan
Started: 23:51:23.061831
Duration: 22.665 ms
Changes:
----------
removed:
/etc/cron.d/openmediavault-clamdscan
----------
ID: remove_clamav_clamdscan_cron_scripts
Function: module.run
Result: True
Comment: file.find: ['/var/lib/openmediavault/cron.d/clamdscan-eaaf8c94-729f-4c3d-86d8-9f516617977e']
Started: 23:51:23.087657
Duration: 7.888 ms
Changes:
----------
file.find:
- /var/lib/openmediavault/cron.d/clamdscan-eaaf8c94-729f-4c3d-86d8-9f516617977e
----------
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: 23:51:23.096144
Duration: 3.357 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: 23:51:23.100083
Duration: 3.271 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: 23:51:23.103929
Duration: 22.67 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 13 lines
Started: 23:51:23.127200
Duration: 24.08 ms
Changes:
----------
diff:
---
+++
@@ -0,0 +1,13 @@
+# 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,
+
+# Allow user clamav to access log files at /var/log/clamav
+capability chown,
----------
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: 23:51:23.156855
Duration: 6198.559 ms
Changes:
----------
ID: configure_clamav_freshclam
Function: file.managed
Name: /etc/clamav/freshclam.conf
Result: True
Comment: File /etc/clamav/freshclam.conf updated
Started: 23:51:29.356361
Duration: 857.681 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
@@ -21,7 +22,5 @@
CompressLocalDatabase no
Bytecode true
NotifyClamd /etc/clamav/clamd.conf
-# Check for new database 24 times a day
Checks 24
-DatabaseMirror db.local.clamav.net
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: The service clamav-freshclam is already dead
Started: 23:51:30.214692
Duration: 222.602 ms
Changes:
----------
ID: start_clamav_freshclam_service
Function: service.running
Name: clamav-freshclam
Result: True
Comment: Service clamav-freshclam is already enabled, and is running
Started: 23:51:30.440292
Duration: 343.653 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"
Attempt 2: Returned a result of "False", with the following comment: "Specified path /var/lib/clamav/main.cvd does not exist"
Attempt 3: Returned a result of "False", with the following comment: "Specified path /var/lib/clamav/main.cvd does not exist"
Attempt 4: Returned a result of "False", with the following comment: "Specified path /var/lib/clamav/main.cvd does not exist"
Attempt 5: Returned a result of "False", with the following comment: "Specified path /var/lib/clamav/main.cvd does not exist"
Attempt 6: Returned a result of "False", with the following comment: "Specified path /var/lib/clamav/main.cvd does not exist"
Attempt 7: Returned a result of "False", with the following comment: "Specified path /var/lib/clamav/main.cvd does not exist"
Attempt 8: Returned a result of "False", with the following comment: "Specified path /var/lib/clamav/main.cvd does not exist"
Attempt 9: Returned a result of "False", with the following comment: "Specified path /var/lib/clamav/main.cvd does not exist"
Attempt 10: Returned a result of "False", with the following comment: "Specified path /var/lib/clamav/main.cvd does not exist"
Attempt 11: Returned a result of "False", with the following comment: "Specified path /var/lib/clamav/main.cvd does not exist"
Attempt 12: Returned a result of "False", with the following comment: "Specified path /var/lib/clamav/main.cvd does not exist"
Attempt 13: Returned a result of "False", with the following comment: "Specified path /var/lib/clamav/main.cvd does not exist"
Attempt 14: Returned a result of "False", with the following comment: "Specified path /var/lib/clamav/main.cvd does not exist"
Attempt 15: Returned a result of "False", with the following comment: "Specified path /var/lib/clamav/main.cvd does not exist"
Attempt 16: Returned a result of "False", with the following comment: "Specified path /var/lib/clamav/main.cvd does not exist"
Attempt 17: Returned a result of "False", with the following comment: "Specified path /var/lib/clamav/main.cvd does not exist"
Attempt 18: Returned a result of "False", with the following comment: "Specified path /var/lib/clamav/main.cvd does not exist"
Attempt 19: Returned a result of "False", with the following comment: "Specified path /var/lib/clamav/main.cvd does not exist"
Attempt 20: Returned a result of "False", with the following comment: "Specified path /var/lib/clamav/main.cvd does not exist"
Attempt 21: Returned a result of "False", with the following comment: "Specified path /var/lib/clamav/main.cvd does not exist"
Attempt 22: Returned a result of "False", with the following comment: "Specified path /var/lib/clamav/main.cvd does not exist"
Attempt 23: Returned a result of "False", with the following comment: "Specified path /var/lib/clamav/main.cvd does not exist"
Attempt 24: Returned a result of "False", with the following comment: "Specified path /var/lib/clamav/main.cvd does not exist"
Attempt 25: Returned a result of "False", with the following comment: "Specified path /var/lib/clamav/main.cvd does not exist"
Attempt 26: Returned a result of "False", with the following comment: "Specified path /var/lib/clamav/main.cvd does not exist"
Attempt 27: Returned a result of "False", with the following comment: "Specified path /var/lib/clamav/main.cvd does not exist"
Attempt 28: Returned a result of "False", with the following comment: "Specified path /var/lib/clamav/main.cvd does not exist"
Attempt 29: Returned a result of "False", with the following comment: "Specified path /var/lib/clamav/main.cvd does not exist"
Attempt 30: Returned a result of "False", with the following comment: "Specified path /var/lib/clamav/main.cvd does not exist"
Attempt 31: Returned a result of "False", with the following comment: "Specified path /var/lib/clamav/main.cvd does not exist"
Attempt 32: Returned a result of "False", with the following comment: "Specified path /var/lib/clamav/main.cvd does not exist"
Attempt 33: Returned a result of "False", with the following comment: "Specified path /var/lib/clamav/main.cvd does not exist"
Attempt 34: Returned a result of "False", with the following comment: "Specified path /var/lib/clamav/main.cvd does not exist"
Attempt 35: Returned a result of "False", with the following comment: "Specified path /var/lib/clamav/main.cvd does not exist"
Attempt 36: Returned a result of "False", with the following comment: "Specified path /var/lib/clamav/main.cvd does not exist"
Attempt 37: Returned a result of "False", with the following comment: "Specified path /var/lib/clamav/main.cvd does not exist"
Attempt 38: Returned a result of "False", with the following comment: "Specified path /var/lib/clamav/main.cvd does not exist"
Attempt 39: Returned a result of "False", with the following comment: "Specified path /var/lib/clamav/main.cvd does not exist"
Attempt 40: Returned a result of "False", with the following comment: "Specified path /var/lib/clamav/main.cvd does not exist"
Attempt 41: Returned a result of "False", with the following comment: "Specified path /var/lib/clamav/main.cvd does not exist"
Attempt 42: Returned a result of "False", with the following comment: "Specified path /var/lib/clamav/main.cvd does not exist"
Attempt 43: Returned a result of "False", with the following comment: "Specified path /var/lib/clamav/main.cvd does not exist"
Attempt 44: Returned a result of "False", with the following comment: "Specified path /var/lib/clamav/main.cvd does not exist"
Attempt 45: Returned a result of "False", with the following comment: "Specified path /var/lib/clamav/main.cvd does not exist"
Attempt 46: Returned a result of "False", with the following comment: "Specified path /var/lib/clamav/main.cvd does not exist"
Attempt 47: Returned a result of "False", with the following comment: "Specified path /var/lib/clamav/main.cvd does not exist"
Attempt 48: Returned a result of "False", with the following comment: "Specified path /var/lib/clamav/main.cvd does not exist"
Attempt 49: Returned a result of "False", with the following comment: "Specified path /var/lib/clamav/main.cvd does not exist"
Attempt 50: Returned a result of "False", with the following comment: "Specified path /var/lib/clamav/main.cvd does not exist"
Attempt 51: Returned a result of "False", with the following comment: "Specified path /var/lib/clamav/main.cvd does not exist"
Attempt 52: Returned a result of "False", with the following comment: "Specified path /var/lib/clamav/main.cvd does not exist"
Attempt 53: Returned a result of "False", with the following comment: "Specified path /var/lib/clamav/main.cvd does not exist"
Attempt 54: Returned a result of "False", with the following comment: "Specified path /var/lib/clamav/main.cvd does not exist"
Attempt 55: Returned a result of "False", with the following comment: "Specified path /var/lib/clamav/main.cvd does not exist"
Attempt 56: Returned a result of "False", with the following comment: "Specified path /var/lib/clamav/main.cvd does not exist"
Attempt 57: Returned a result of "False", with the following comment: "Specified path /var/lib/clamav/main.cvd does not exist"
Attempt 58: Returned a result of "False", with the following comment: "Specified path /var/lib/clamav/main.cvd does not exist"
Attempt 59: 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: 23:51:30.784883
Duration: 300522.156 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: 23:56:31.636048
Duration: 13.966 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 updated
Started: 23:56:31.650715
Duration: 1467.313 ms
Changes:
----------
diff:
---
+++
@@ -1,69 +1,64 @@
-#Automatically Generated by clamav-daemon postinst
-#To reconfigure clamd run #dpkg-reconfigure clamav-daemon
-#Please read /usr/share/doc/clamav-daemon/README.Debian.gz for details
-LocalSocket /var/run/clamav/clamd.ctl
+# This file is auto-generated by openmediavault (https://www.openmediavault.org)
+# WARNING: Do not edit this file, your changes will get lost.
+
+LocalSocket /run/clamav/clamd.ctl
FixStaleSocket true
LocalSocketGroup clamav
LocalSocketMode 666
-# TemporaryDirectory is not set to its default /tmp here to make overriding
-# the default with environment variables TMPDIR/TMP/TEMP possible
-User clamav
-ScanMail true
-ScanArchive true
-ArchiveBlockEncrypted false
+AlertEncrypted false
+AlertEncryptedArchive false
+AlertEncryptedDoc false
MaxDirectoryRecursion 15
-FollowDirectorySymlinks false
-FollowFileSymlinks false
-ReadTimeout 180
+FollowDirectorySymlinks False
+FollowFileSymlinks False
+ReadTimeout 120
MaxThreads 12
MaxConnectionQueueLength 15
LogSyslog false
-LogRotate true
+LogRotate false
LogFacility LOG_LOCAL6
-LogClean false
+LogClean True
LogVerbose false
-PreludeEnable no
-PreludeAnalyzerName ClamAV
DatabaseDirectory /var/lib/clamav
-OfficialDatabaseOnly false
SelfCheck 3600
Foreground false
Debug false
-ScanPE true
+ScanPE True
MaxEmbeddedPE 10M
-ScanOLE2 true
-ScanPDF true
-ScanHTML true
+ScanOLE2 True
+ScanPDF True
+ScanHTML True
MaxHTMLNormalize 10M
MaxHTMLNoTags 2M
MaxScriptNormalize 5M
MaxZipTypeRcg 1M
ScanSWF true
+ScanELF True
+ScanArchive True
+ScanMail false
+AlertBrokenExecutables False
ExitOnOOM false
LeaveTemporaryFiles false
-AlgorithmicDetection true
-ScanELF true
+HeuristicAlerts True
IdleTimeout 30
-CrossFilesystems true
PhishingSignatures true
-PhishingScanURLs true
-PhishingAlwaysBlockSSLMismatch false
-PhishingAlwaysBlockCloak false
-PartitionIntersection false
-DetectPUA false
+PhishingScanURLs false
+AlertPhishingSSLMismatch false
+AlertPhishingCloak false
+AlertPartitionIntersection false
+DetectPUA False
ScanPartialMessages false
HeuristicScanPrecedence false
StructuredDataDetection false
CommandReadTimeout 30
-SendBufTimeout 200
+SendBufTimeout 500
MaxQueue 100
ExtendedDetectionInfo true
-OLE2BlockMacros false
+AlertOLE2Macros false
AllowAllMatchScan true
ForceToDisk false
DisableCertCheck false
DisableCache false
-MaxScanTime 120000
MaxScanSize 100M
MaxFileSize 25M
MaxRecursion 16
@@ -84,4 +79,15 @@
Bytecode true
BytecodeSecurity TrustSigned
BytecodeTimeout 60000
-OnAccessMaxFileSize 5M
+OfficialDatabaseOnly false
+CrossFilesystems true
+VirusEvent /bin/run-parts --lsbsysinit -- /etc/clamav/virusevent.d/
+User clamav
+OnAccessMaxFileSize 100M
+OnAccessMaxThreads 5
+OnAccessDisableDDD false
+OnAccessPrevention true
+OnAccessExtraScanning true
+OnAccessExcludeUname clamav
+OnAccessRetryAttempts 3
+OnAccessIncludePath /srv/dev-disk-by-uuid-58ce13b5-7d51-448f-a1e8-cff10fca8786/abc/
----------
ID: start_clamav_daemon_service
Function: service.running
Name: clamav-daemon
Result: True
Comment: Service started
Started: 23:56:33.411092
Duration: 213.364 ms
Changes:
----------
clamav-daemon:
True
----------
ID: start_clamav_onaccess_service
Function: service.running
Name: clamav-onaccess
Result: False
Comment: A dependency job for clamav-onaccess.service failed. See 'journalctl -xe' for details.
Started: 23:56:33.625439
Duration: 222.383 ms
Changes:
----------
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: 23:56:33.848924
Duration: 607.801 ms
Changes:
----------
diff:
New file
mode:
0644
----------
ID: configure_clamav_clamdscan_cron_script_eaaf8c94-729f-4c3d-86d8-9f516617977e
Function: file.managed
Name: /var/lib/openmediavault/cron.d/clamdscan-eaaf8c94-729f-4c3d-86d8-9f516617977e
Result: True
Comment: File /var/lib/openmediavault/cron.d/clamdscan-eaaf8c94-729f-4c3d-86d8-9f516617977e updated
Started: 23:56:34.457354
Duration: 682.075 ms
Changes:
----------
diff:
New file
mode:
0750
----------
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: 23:56:35.140072
Duration: 11.841 ms
Changes:
----------
diff:
New file
mode:
0644
user:
clamav
Summary for debian
-------------
Succeeded: 16 (changed=14)
Failed: 2
-------------
Total states run: 18
Total run time: 311.447 s
[ERROR ] Specified path /var/lib/clamav/main.cvd does not exist
[ERROR ] Specified path /var/lib/clamav/main.cvd does not exist
[ERROR ] Specified path /var/lib/clamav/main.cvd does not exist
[ERROR ] Specified path /var/lib/clamav/main.cvd does not exist
[ERROR ] Specified path /var/lib/clamav/main.cvd does not exist
[ERROR ] Specified path /var/lib/clamav/main.cvd does not exist
[ERROR ] Specified path /var/lib/clamav/main.cvd does not exist
[ERROR ] Specified path /var/lib/clamav/main.cvd does not exist
[ERROR ] Specified path /var/lib/clamav/main.cvd does not exist
[ERROR ] Specified path /var/lib/clamav/main.cvd does not exist
[ERROR ] Specified path /var/lib/clamav/main.cvd does not exist
[ERROR ] Specified path /var/lib/clamav/main.cvd does not exist
[ERROR ] Specified path /var/lib/clamav/main.cvd does not exist
[ERROR ] Specified path /var/lib/clamav/main.cvd does not exist
[ERROR ] Specified path /var/lib/clamav/main.cvd does not exist
[ERROR ] Specified path /var/lib/clamav/main.cvd does not exist
[ERROR ] Specified path /var/lib/clamav/main.cvd does not exist
[ERROR ] Specified path /var/lib/clamav/main.cvd does not exist
[ERROR ] Specified path /var/lib/clamav/main.cvd does not exist
[ERROR ] Specified path /var/lib/clamav/main.cvd does not exist
[ERROR ] Specified path /var/lib/clamav/main.cvd does not exist
[ERROR ] Specified path /var/lib/clamav/main.cvd does not exist
[ERROR ] Specified path /var/lib/clamav/main.cvd does not exist
[ERROR ] Specified path /var/lib/clamav/main.cvd does not exist
[ERROR ] Specified path /var/lib/clamav/main.cvd does not exist
[ERROR ] Specified path /var/lib/clamav/main.cvd does not exist
[ERROR ] Specified path /var/lib/clamav/main.cvd does not exist
[ERROR ] Specified path /var/lib/clamav/main.cvd does not exist
[ERROR ] Specified path /var/lib/clamav/main.cvd does not exist
[ERROR ] Specified path /var/lib/clamav/main.cvd does not exist
[ERROR ] Specified path /var/lib/clamav/main.cvd does not exist
[ERROR ] Specified path /var/lib/clamav/main.cvd does not exist
[ERROR ] Specified path /var/lib/clamav/main.cvd does not exist
[ERROR ] Specified path /var/lib/clamav/main.cvd does not exist
[ERROR ] Specified path /var/lib/clamav/main.cvd does not exist
[ERROR ] Specified path /var/lib/clamav/main.cvd does not exist
[ERROR ] Specified path /var/lib/clamav/main.cvd does not exist
[ERROR ] Specified path /var/lib/clamav/main.cvd does not exist
[ERROR ] Specified path /var/lib/clamav/main.cvd does not exist
[ERROR ] Specified path /var/lib/clamav/main.cvd does not exist
[ERROR ] Specified path /var/lib/clamav/main.cvd does not exist
[ERROR ] Specified path /var/lib/clamav/main.cvd does not exist
[ERROR ] Specified path /var/lib/clamav/main.cvd does not exist
[ERROR ] Specified path /var/lib/clamav/main.cvd does not exist
[ERROR ] Specified path /var/lib/clamav/main.cvd does not exist
[ERROR ] Specified path /var/lib/clamav/main.cvd does not exist
[ERROR ] Specified path /var/lib/clamav/main.cvd does not exist
[ERROR ] Specified path /var/lib/clamav/main.cvd does not exist
[ERROR ] Specified path /var/lib/clamav/main.cvd does not exist
[ERROR ] Specified path /var/lib/clamav/main.cvd does not exist
[ERROR ] Specified path /var/lib/clamav/main.cvd does not exist
[ERROR ] Specified path /var/lib/clamav/main.cvd does not exist
[ERROR ] Specified path /var/lib/clamav/main.cvd does not exist
[ERROR ] Specified path /var/lib/clamav/main.cvd does not exist
[ERROR ] Specified path /var/lib/clamav/main.cvd does not exist
[ERROR ] Specified path /var/lib/clamav/main.cvd does not exist
[ERROR ] Specified path /var/lib/clamav/main.cvd does not exist
[ERROR ] Specified path /var/lib/clamav/main.cvd does not exist
[ERROR ] Specified path /var/lib/clamav/main.cvd does not exist
[ERROR ] Specified path /var/lib/clamav/main.cvd does not exist
[ERROR ] Service clamav-daemon is already enabled, and is dead
[ERROR ] Command '/bin/systemd-run' failed with return code: 1
[ERROR ] stderr: Running scope as unit: run-r6ccafc994ac34ca78ca677b5d4b1599c.scope
A dependency job for clamav-onaccess.service failed. See 'journalctl -xe' for details.
[ERROR ] retcode: 1
[ERROR ] A dependency job for clamav-onaccess.service failed. See 'journalctl -xe' for details. in /usr/share/php/openmediavault/system/process.inc:242
Stack trace:
#0 /usr/share/php/openmediavault/engine/module/serviceabstract.inc(62): OMV\System\Process->execute()
#1 /usr/share/openmediavault/engined/rpc/config.inc(178): 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(620): OMV\Rpc\ServiceAbstract->OMV\Rpc\{closure}('/tmp/bgstatusac...', '/tmp/bgoutput77...')
#6 /usr/share/php/openmediavault/rpc/serviceabstract.inc(159): OMV\Rpc\ServiceAbstract->execBgProc(Object(Closure))
#7 /usr/share/openmediavault/engined/rpc/config.inc(199): 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}
搜索错误:ERROR: /var/log/clamav/freshclam.log is locked by another process ERROR: Problem with internal logger (UpdateLogFile = /var/log/clamav/freshclam.log). ERROR: initialize: libfreshclam init failed. ERROR: Initialization error!
参考:malware - clamav - ERROR: /var/log/clamav/freshclam.log is locked by another process? - Ask Ubuntu
之前的命令:
10 systemctl daemon-reload
11 omv-salt deploy run clamav
12 exit
13 systemctl daemon-reload
14 omv-salt deploy run clamav
15 sudo freshclam
还是报错
运行了以下命令:
16 freshclam
17 chmod 775 /var/lib/clamav/main.cvd
18 sudo apt-get remove clamav
19 sudo apt-get install clamav
20 freshclam
21 sudo systemctl stop clamav-freshclam.service
22 sudo pkill -15 -x freshclam
23 sudo freshclam
openmediavault-clamav 6.0.7-2插件启动正常