files_antivirus icon indicating copy to clipboard operation
files_antivirus copied to clipboard

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

Open punkyard opened this issue 2 years ago • 1 comments

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:

  • activity: 2.19.0
  • admin_audit: 1.17.0
  • auto_groups: 1.5.2
  • bruteforcesettings: 2.7.0
  • calendar: 4.5.2
  • circles: 27.0.1
  • cloud_federation_api: 1.10.0
  • collectives: 2.8.1
  • comments: 1.17.0
  • contacts: 5.4.2
  • dashboard: 7.7.0
  • dav: 1.27.0
  • deck: 1.11.0
  • event_update_notification: 2.2.0
  • external: 5.2.1
  • federatedfilesharing: 1.17.0
  • files: 1.22.0
  • files_antivirus: 5.2.2
  • files_mindmap: 0.0.29
  • files_pdfviewer: 2.8.0
  • files_reminders: 1.0.0
  • files_sharing: 1.19.0
  • files_trashbin: 1.17.0
  • files_versions: 1.20.0
  • files_zip: 1.4.0
  • forms: 3.3.1
  • gestion: 2.4.1
  • group_default_quota: 0.1.7
  • groupfolders: 15.3.1
  • impersonate: 1.14.0
  • logreader: 2.12.0
  • lookup_server_connector: 1.15.0
  • mail: 3.4.0
  • money: 0.20.0
  • nextcloud-aio: 0.4.0
  • nextcloud_announcements: 1.16.0
  • notifications: 2.15.0
  • notify_push: 0.6.3
  • oauth2: 1.15.1
  • onlyoffice: 8.2.0
  • password_policy: 1.17.0
  • photos: 2.3.0
  • polls: 5.3.2
  • provisioning_api: 1.17.0
  • quota_warning: 1.17.0
  • registration: 2.2.0
  • settings: 1.9.0
  • sharebymail: 1.17.0
  • side_menu: 3.10.3
  • spreed: 17.1.1
  • support: 1.10.0
  • suspicious_login: 5.0.0
  • tasks: 0.15.0
  • terms_of_service: 2.3.1
  • text: 3.8.0
  • theming: 2.2.0
  • twofactor_backupcodes: 1.16.0
  • unroundedcorners: 1.1.1
  • user_status: 1.7.0
  • viewer: 2.1.0
  • welcome: 1.0.10
  • workflowengine: 2.9.0 Disabled:
  • contactsinteraction: 1.6.0
  • encryption
  • federation: 1.17.0
  • files_external
  • files_rightclick: 1.5.0
  • firstrunwizard: 2.14.0
  • privacy: 1.10.0
  • recommendations: 1.4.0
  • related_resources: 1.1.0-alpha1
  • serverinfo: 1.16.0
  • survey_client: 1.13.0
  • systemtags: 1.16.0
  • twofactor_totp: 7.0.0
  • user_ldap
  • weather_status: 1.5.0
</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

punkyard avatar Oct 02 '23 22:10 punkyard

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

francescor avatar Oct 09 '23 06:10 francescor

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

joshtrichards avatar Sep 18 '24 21:09 joshtrichards