Getting errors from files_antivirus app

Support intro

Sorry to hear you’re facing problems :slightly_frowning_face:

help.nextcloud.com is for home/non-enterprise users. If you’re running a business, paid support can be accessed via portal.nextcloud.com where we can ensure your business keeps running smoothly.

In order to help you as quickly as possible, before clicking Create Topic please provide as much of the below as you can. Feel free to use a pastebin service for logs, otherwise either indent short log examples with four spaces:

example

Or for longer, use three backticks above and below the code snippet:

longer
example
here

Some or all of the below information will be requested if it isn’t supplied; for fastest response please provide as much as you can :heart:

Nextcloud version (eg, 20.0.5): 28.0.5
Operating system and version (eg, Ubuntu 20.04): Linux 5.10.60-qnap x86_64Apache or nginx version _(eg, Apache 2.4.25)_: I don’t knowPHP version _(eg, 7.4)_: 8.2.18`

The issue you are facing:
Error message from files_antivirus: files_antivirus
Not Checked. Socket timed out while scanning File

Is this the first time you’ve seen this error? (Y/N):Y

Steps to replicate it:

  1. Visit log reader
  2. Every few minutes will have this error message.

The output of your Nextcloud log in Admin > Logging:

[files_antivirus] Error: Not Checked. Socket timed out while scanning File: 118008 Account: admin Path: /admin/files/Downloads/*****6_release.exe
	from ? by -- at 9 May 2024, 8:35:12 pm

The output of your config.php file in /path/to/nextcloud (make sure you remove any identifiable information!):

<?php
$CONFIG = array (
  'one-click-instance' => true,
  'one-click-instance.user-limit' => 100,
  'memcache.local' => '\\OC\\Memcache\\APCu',
  'apps_paths' => 
  array (
    0 => 
    array (
      'path' => '/var/www/html/apps',
      'url' => '/apps',
      'writable' => false,
    ),
    1 => 
    array (
      'path' => '/var/www/html/custom_apps',
      'url' => '/custom_apps',
      'writable' => true,
    ),
  ),
  'appsallowlist' => false,
  'check_data_directory_permissions' => false,
  'memcache.distributed' => '\\OC\\Memcache\\Redis',
  'memcache.locking' => '\\OC\\Memcache\\Redis',
  'redis' => 
  array (
    'host' => 'nextcloud-aio-redis',
    'password' => '************',
    'port' => 6379,
  ),
  'overwritehost' => '******.com',
  'overwriteprotocol' => 'https',
  'passwordsalt' => '****************',
  'secret' => '***********************',
  'trusted_domains' => 
  array (
    0 => 'localhost',
    1 => '**************.com',
  ),
  'datadirectory' => '/mnt/ncdata',
  'dbtype' => 'pgsql',
  'version' => '28.0.5.1',
  'overwrite.cli.url' => 'https://****************.com/',
  'dbname' => 'nextcloud_database',
  'dbhost' => 'nextcloud-aio-database',
  'dbport' => '',
  'dbtableprefix' => 'oc_',
  'dbuser' => 'oc_nextcloud',
  'dbpassword' => '********************4ff',
  'installed' => true,
  'instanceid' => 'oc3jh**********',
  'maintenance' => false,
  'loglevel' => '2',
  'log_type' => 'file',
  'logfile' => '/var/www/html/data/nextcloud.log',
  'log_rotate_size' => '10485760',
  'log.condition' => 
  array (
    'apps' => 
    array (
      0 => 'admin_audit',
    ),
  ),
  'preview_max_x' => 2048,
  'preview_max_y' => 2048,
  'jpeg_quality' => 60,
  'enabledPreviewProviders' => 
  array (
    1 => 'OC\\Preview\\Image',
    2 => 'OC\\Preview\\MarkDown',
    3 => 'OC\\Preview\\MP3',
    4 => 'OC\\Preview\\TXT',
    5 => 'OC\\Preview\\OpenDocument',
    6 => 'OC\\Preview\\Movie',
    7 => 'OC\\Preview\\Krita',
    0 => 'OC\\Preview\\Imaginary',
  ),
  'enable_previews' => true,
  'upgrade.disable-web' => true,
  'mail_smtpmode' => 'smtp',
  'trashbin_retention_obligation' => 'auto, 30',
  'versions_retention_obligation' => 'auto, 30',
  'activity_expire_days' => '30',
  'simpleSignUpLink.shown' => false,
  'share_folder' => '/Shared',
  'one-click-instance.link' => 'https://nextcloud.com/all-in-one/',
  'upgrade.cli-upgrade-link' => 'https://github.com/nextcloud/all-in-one/discussions/2726',
  'updatedirectory' => '/nc-updater',
  'maintenance_window_start' => 100,
  'allow_local_remote_servers' => true,
  'davstorage.request_timeout' => 3600,
  'htaccess.RewriteBase' => '/',
  'dbpersistent' => false,
  'files_external_allow_create_new_local' => false,
  'trusted_proxies' => 
  array (
    0 => '127.0.0.1',
    1 => '::1',
    10 => '172.29.4.1/32',
  ),
  'preview_imaginary_url' => 'http://nextcloud-aio-imaginary:9000',
  'preview_imaginary_key' => '8b90****************',
  'mail_sendmailmode' => 'smtp',
  'mail_from_address' => '************',
  'mail_domain' => 'outlook.com',
  'mail_smtphost' => 'smtp-mail.outlook.com',
  'mail_smtpport' => '587',
  'mail_smtpauth' => 1,
  'mail_smtpname' => '***********com',
  'mail_smtppassword' => '***********',
  'app_install_overwrite' => 
  array (
    0 => 'occweb',
  ),
  'twofactor_enforced' => 'true',
  'twofactor_enforced_groups' => 
  array (
  ),
  'twofactor_enforced_excluded_groups' => 
  array (
  ),
  'memories.db.triggers.fcu' => true,
  'memories.exiftool' => '/var/www/html/custom_apps/memories/bin-ext/exiftool-amd64-musl',
  'memories.vod.path' => '/var/www/html/custom_apps/memories/bin-ext/go-vod-amd64',
  'memories.vod.ffmpeg' => '/usr/bin/ffmpeg',
  'memories.vod.ffprobe' => '/usr/bin/ffprobe',
  'memories.vod.disable' => false,
  'auth.bruteforce.protection.enabled' => true,
  'ratelimit.protection.enabled' => true,
);

The output of your Apache/nginx/system log in /var/log/____:

I am new to home self-hosting; everything is just self-learning from Google. Don't know what this is.....

PASTE HERE


Output errors in nextcloud.log in /var/www/ or as admin user in top right menu, filtering for errors. Use a pastebin service if necessary.

PASTE HERE

Is the ClamAV container enabled/running?

Yes, it’s running. Here’s the log:

‘’’
Thu May 9 14:23:45 2024 → SelfCheck: Database status OK.
Received signal: wake up
ClamAV update process started at Thu May 9 14:26:57 2024
daily database available for update (local version: 27268, remote version: 27269)
Testing database: ‘/var/lib/clamav/tmp.522ab1b2b6/clamav-6876eb13f41e02d074fb3bf3fc5aa12c.tmp-daily.cld’ …
Database test passed.
daily.cld updated (version: 27269, sigs: 2060780, f-level: 90, builder: raynman)
main.cvd database is up-to-date (version: 62, sigs: 6647427, f-level: 90, builder: sigmgr)
bytecode.cvd database is up-to-date (version: 335, sigs: 86, f-level: 90, builder: raynman)
Clamd successfully notified about the update.
Thu May 9 14:27:09 2024 → Reading databases from /var/lib/clamav
Thu May 9 14:27:39 2024 → Database correctly reloaded (8692610 signatures)
Thu May 9 14:27:39 2024 → Activating the newly loaded database…
Thu May 9 14:33:48 2024 → SelfCheck: Database status OK.
Thu May 9 14:43:51 2024 → SelfCheck: Database status OK.
Thu May 9 14:53:53 2024 → SelfCheck: Database status OK.
Thu May 9 15:03:56 2024 → SelfCheck: Database status OK.
‘’’

I am noticing the same error. Repeats with one folder. Files that it fails on are all zip files.

This is now fixed with v9.0.0 Beta. Testing and feedback is welcome! See https://github.com/nextcloud/all-in-one#how-to-switch-the-channel

1 Like