nextcloud / files_antivirus

👾 Antivirus app for Nextcloud Files
https://apps.nextcloud.com/apps/files_antivirus
GNU Affero General Public License v3.0
86 stars 36 forks source link

Error files_antivirus RuntimeException: The ClamAV module is not in daemon mode. #293

Closed punkyard closed 1 month ago

punkyard commented 1 year ago

Hi

here is a recursive log I get from ClamAV

Server configuration

Nextcloud version: 27 1 0

Where did you install Nextcloud from:

AiO docker

Nextcloud configuration:

## Server configuration detail

**Operating system:** Linux 5.10.0-23-amd64 #1 SMP Debian 5.10.179-2 (2023-07-14) x86_64

**Webserver:** Apache/2.4.57 (Unix) (fpm-fcgi)

**Database:** pgsql PostgreSQL 15.4 on x86_64-pc-linux-musl, compiled by gcc (Alpine 12.2.1_git20220924-r10) 12.2.1 20220924, 64-bit

**PHP version:** 8.1.23

Modules loaded: Core, date, libxml, openssl, pcre, sqlite3, zlib, ctype, curl, dom, fileinfo, filter, ftp, hash, iconv, json, mbstring, SPL, session, PDO, pdo_sqlite, bz2, posix, readline, Reflection, standard, SimpleXML, tokenizer, xml, xmlreader, xmlwriter, mysqlnd, cgi-fcgi, apcu, bcmath, Phar, exif, gd, gmp, imagick, imap, intl, ldap, memcached, pcntl, pdo_pgsql, pgsql, redis, smbclient, sodium, sysvsem, zip, libsmbclient, Zend OPcache

**Nextcloud version:** 27.1.0 - 27.1.0.7

**Updated from an older Nextcloud/ownCloud or fresh install:** 

**Where did you install Nextcloud from:** unknown

<details><summary>Signing status</summary>

</details>

<details><summary>List of activated apps</summary>

Enabled:

</details>

<details><summary>Configuration (config/config.php)</summary>

{ "memcache.local": "\OC\Memcache\APCu", "apps_paths": [ { "path": "\/var\/www\/html\/apps", "url": "\/apps", "writable": false }, { "path": "\/var\/www\/html\/custom_apps", "url": "\/custom_apps", "writable": true } ], "memcache.distributed": "\OC\Memcache\Redis", "memcache.locking": "\OC\Memcache\Redis", "redis": { "host": "REMOVED SENSITIVE VALUE", "password": "REMOVED SENSITIVE VALUE", "port": 6379 }, "overwriteprotocol": "https", "passwordsalt": "REMOVED SENSITIVE VALUE", "secret": "REMOVED SENSITIVE VALUE", "trusted_domains": [ "localhost", "domain.net", "netland.net" ], "datadirectory": "REMOVED SENSITIVE VALUE", "skeletondirectory": "\/var\/lib\/docker\/volumes\/nextcloud_aio_nextcloud\/data\/skeleton", "dbtype": "pgsql", "version": "27.1.0.7", "dbname": "REMOVED SENSITIVE VALUE", "dbhost": "REMOVED SENSITIVE VALUE", "dbport": "", "dbtableprefix": "oc", "dbuser": "REMOVED SENSITIVE VALUE", "dbpassword": "REMOVED SENSITIVE VALUE", "installed": true, "instanceid": "REMOVED SENSITIVE VALUE", "check_data_directory_permissions": true, "maintenance": false, "loglevel": "2", "log_type": "file", "logfile": "\/var\/www\/html\/data\/nextcloud.log", "log_rotate_size": "10485760", "log.condition": { "apps": [ "admin_audit" ] }, "preview_max_x": "2048", "preview_max_y": "2048", "jpeg_quality": "60", "enabledPreviewProviders": { "1": "OC\Preview\Image", "2": "OC\Preview\MarkDown", "3": "OC\Preview\MP3", "4": "OC\Preview\TXT", "5": "OC\Preview\OpenDocument", "6": "OC\Preview\Movie", "0": "OC\Preview\Imaginary" }, "enable_previews": true, "upgrade.disable-web": true, "trashbin_retention_obligation": "auto, 30", "versions_retention_obligation": "auto, 30", "activity_expire_days": "30", "simpleSignUpLink.shown": false, "share_folder": "\/Shared", "one-click-instance": true, "one-click-instance.user-limit": 100, "one-click-instance.link": "https:\/\/nextcloud.com\/all-in-one\/", "htaccess.RewriteBase": "\/", "files_external_allow_create_new_local": true, "trusted_proxies": "REMOVED SENSITIVE VALUE", "preview_imaginary_url": "http:\/\/nextcloud-aio-imaginary:9000", "default_language": "fr", "default_locale": "fr_FR", "default_phone_region": "FR", "mail_sendmailmode": "smtp", "mail_from_address": "REMOVED SENSITIVE VALUE", "mail_domain": "REMOVED SENSITIVE VALUE", "mail_smtpauthtype": "LOGIN", "mail_smtphost": "REMOVED SENSITIVE VALUE", "mail_smtpport": "465", "mail_smtpauth": 1, "mail_smtpname": "REMOVED SENSITIVE VALUE", "mail_smtppassword": "REMOVED SENSITIVE VALUE", "allow_local_remote_servers": true, "updatedirectory": "\/nc-updater", "overwritehost": "domain.net", "overwrite.cli.url": "https:\/\domain.net\/", "updater.release.channel": "stable", "mail_smtpmode": "smtp", "mail_smtpsecure": "ssl", "upgrade.cli-upgrade-link": "https:\/\/github.com\/nextcloud\/all-in-one\/discussions\/2726", "davstorage.request_timeout": 3600, "dbpersistent": true }

</details>

**Cron Configuration:** Array
(
    [backgroundjobs_mode] => cron
    [lastcron] => 1696284840
)

**External storages:** files_external is disabled

**Encryption:** no

**User-backends:** 
 * OC\User\Database

**Talk configuration:** 

STUN servers
 * 185.252.235.96:443

TURN servers
 * turn:185.252.235.96:3478 - udp,tcp

Signaling servers (mode: default):
 * https://notre.rez0.net/standalone-signaling/ - 12de5a9b71afef06eaf171099712ef0a5f6ca0c4

**Browser:** Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/16.6.1 Safari/605.1.15

Client configuration

safari / brave

Debian

Nextcloud log (data/owncloud.log)

`[files_antivirus] Error: RuntimeException: The ClamAV module is not in daemon mode. at <>

  1. /var/www/html/custom_apps/files_antivirus/lib/Scanner/ScannerBase.php line 85 OCA\Files_Antivirus\Scanner\ExternalClam->initScanner()
  2. /var/www/html/custom_apps/files_antivirus/lib/BackgroundJob/BackgroundScanner.php line 273 OCA\Files_Antivirus\Scanner\ScannerBase->scan(["OCA\Files_Antivirus\Item"])
  3. /var/www/html/custom_apps/files_antivirus/lib/BackgroundJob/BackgroundScanner.php line 144 OCA\Files_Antivirus\BackgroundJob\BackgroundScanner->scanOneFile(["OC\Files\Node\File"])
  4. /var/www/html/custom_apps/files_antivirus/lib/BackgroundJob/BackgroundScanner.php line 129 OCA\Files_Antivirus\BackgroundJob\BackgroundScanner->processFiles(["LimitIterator"])
  5. /var/www/html/custom_apps/files_antivirus/lib/BackgroundJob/BackgroundScanner.php line 80 OCA\Files_Antivirus\BackgroundJob\BackgroundScanner->scan(100)
  6. /var/www/html/lib/public/BackgroundJob/Job.php line 81 OCA\Files_Antivirus\BackgroundJob\BackgroundScanner->run(null)
  7. /var/www/html/lib/public/BackgroundJob/TimedJob.php line 103 OCP\BackgroundJob\Job->start(["OC\BackgroundJob\JobList"])
  8. /var/www/html/lib/public/BackgroundJob/TimedJob.php line 93 OCP\BackgroundJob\TimedJob->start(["OC\BackgroundJob\JobList"])
  9. /var/www/html/cron.php line 152 OCP\BackgroundJob\TimedJob->execute(["OC\BackgroundJob\JobList"], ["OC\Log"])

at 2023-10-02T03:42:59+00:00

francescor commented 1 year ago

same for us (nextcloud 26, on Ubuntu 20.04, with default clamav, connection localhost:3310)

joshtrichards commented 1 month ago

This error state is more descriptive now after #342 so you'll be able to figure out what's going on.