Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Unable to connect to ClamAV server #33

Open
sanitghosh opened this issue May 16, 2024 · 2 comments
Open

Unable to connect to ClamAV server #33

sanitghosh opened this issue May 16, 2024 · 2 comments

Comments

@sanitghosh
Copy link

I am using a Linux server on IONOS. I followed the installation procedure through Composer and created a file to execute. But getting this error while trying to scan a file while uploading.

PHP Fatal error: Uncaught RuntimeException: Unable to connect to ClamAV server in /var/www/vhosts/networksfortraining.org/sandbox-app-three.networksfortraining.org/wp-content/plugins/wp-s3-user-upload/vendor/appwrite/php-clamav/src/ClamAV/Network.php:66
Stack trace:
#0 /var/www/vhosts/networksfortraining.org/sandbox-app-three.networksfortraining.org/wp-content/plugins/wp-s3-user-upload/vendor/appwrite/php-clamav/src/ClamAV/ClamAV.php(36): Appwrite\ClamAV\Network->getSocket()
#1 /var/www/vhosts/networksfortraining.org/sandbox-app-three.networksfortraining.org/wp-content/plugins/wp-s3-user-upload/vendor/appwrite/php-clamav/src/ClamAV/ClamAV.php(52): Appwrite\ClamAV\ClamAV->sendCommand()
#2 /var/www/vhosts/networksfortraining.org/sandbox-app-three.networksfortraining.org/wp-content/plugins/wp-s3-user-upload/inc/ucua-functions.php(371): Appwrite\ClamAV\ClamAV->ping()
#3 /var/www/vhosts/networksfortraining.org/sandbox-app-three.networksfortraining.org/wp-includes/class-wp-hook.php(324): aws_s3_upload_process()
#4 /var/www/vhosts/networksfortraining.org/sandbox-app-three.networksfortraining.org/wp-includes/class-wp-hook.php(348): WP_Hook->apply_filters()
#5 /var/www/vhosts/networksfortraining.org/sandbox-app-three.networksfortraining.org/wp-includes/plugin.php(517): WP_Hook->do_action()
#6 /var/www/vhosts/networksfortraining.org/sandbox-app-three.networksfortraining.org/wp-admin/admin-ajax.php(192): do_action()
#7 {main}
thrown in /var/www/vhosts/networksfortraining.org/sandbox-app-three.networksfortraining.org/wp-content/plugins/wp-s3-user-upload/vendor/appwrite/php-clamav/src/ClamAV/Network.php on line 66

@moshOntong-IT
Copy link

The issue might be related on this
image

You can found this when you are try to log the appwrite/clamav container

@teian
Copy link

teian commented Oct 28, 2024

This looks like it's not a bug in the package rather your server cannot download the daily.cvd database

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants