[details=“Support intro”]
Nextcloud version (eg, 20.0.5): 22.1.0
Operating system and version (eg, Ubuntu 20.04): Debian 11
Apache or nginx version (eg, Apache 2.4.25): nginx/1.18.0
PHP version (eg, 7.4): 7.4.22
The issue you are facing:
Built a Docker stack including Nextcloud, mariaDB, OnlyOffice and ClamAV. ClamAV doesn’t work, despite the container is running:
- socket doesn’t exist
- clamav daemon is not running
The container has been created strictly following the official documentation at https://docs.nextcloud.com/server/latest/admin_manual/configuration_server/antivirus_configuration.html.
Is this the first time you’ve seen this error? Y:
Steps to replicate it:
- Create the Docker container as per the official documentation
- Run all containers
- Try to configure Nextcloud through Administration > Security > File antivirus
The output of your Nextcloud log in Admin > Logging:
Error: stream_socket_client(): unable to connect to unix:///var/run/clamav/clamd.ctl (No such file or directory) at /var/www/html/custom_apps/files_antivirus/lib/Scanner/ExternalClam.php#41
The output of your config.php file in /path/to/nextcloud
(make sure you remove any identifiable information!):
<?php
$CONFIG = array (
'default_phone_region' => 'BE',
'htaccess.RewriteBase' => '/',
'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,
),
),
'instanceid' => 'instance-id',
'passwordsalt' => 'SALT',
'secret' => 'SECRET',
'trusted_domains' =>
array (
0 => '192.168.1.34:8088',
),
'datadirectory' => '/var/www/html/data',
'dbtype' => 'mysql',
'version' => '22.1.0.1',
'overwrite.cli.url' => 'http://192.168.1.34:8088',
'dbname' => 'nextcloud',
'dbhost' => 'mariadb',
'dbport' => '',
'dbtableprefix' => 'oc_',
'mysql.utf8mb4' => true,
'dbuser' => 'db-user',
'dbpassword' => 'db-pwd',
'installed' => true,
'mail_from_address' => 'nextcloud',
'mail_smtpmode' => 'smtp',
'mail_sendmailmode' => 'smtp',
'mail_domain' => 'mydomain.com',
'mail_smtpsecure' => 'ssl',
'mail_smtpauthtype' => 'LOGIN',
'mail_smtpauth' => 1,
'mail_smtphost' => 'smtp-host',
'mail_smtpport' => '465',
'mail_smtpname' => 'smtp-name',
'mail_smtppassword' => 'mail-pwd',
'allow_local_remote_servers' => true,
'app_install_overwrite' =>
array (
0 => 'groupfolders',
),
);
The output of your Apache/nginx/system log in /var/log/____
:
2021/08/26 14:37:18 [notice] 50389#50389: using inherited sockets from "6;7;"
As soon I as try to save AV settings in Nextcloud, I get the message “Cannot connect to “/var/run/clamav/clamd.ctl”: No such file or directory (code 2)”.
Thanks in advance for any help!