[Bug]: preview generator problem with files_antivirus blocking occ preview:generate-all -vvv
⚠️ This issue respects the following points: ⚠️
- [x] This is a bug, not a question or a configuration/webserver/proxy issue.
- [x] This issue is not already reported on Github OR Nextcloud Community Forum (I've searched it).
- [x] Nextcloud Server is up to date. See Maintenance and Release Schedule for supported versions.
- [x] I agree to follow Nextcloud's Code of Conduct.
Bug description
October 17, 2024 09:50:03 Generating previews for /demo/files/Photos/6RfGq1DaAeE.jpg
October 17, 2024 09:50:03
October 17, 2024 09:50:03 In LocalClam.php line 57:
October 17, 2024 09:50:03
October 17, 2024 09:50:03 [RuntimeException]
October 17, 2024 09:50:03 Error starting process
October 17, 2024 09:50:03
October 17, 2024 09:50:03
October 17, 2024 09:50:03 Exception trace:
October 17, 2024 09:50:03 at /home/nextclou/public_html/apps/files_antivirus/lib/Scanner/LocalClam.php:57
October 17, 2024 09:50:03 OCA\Files_Antivirus\Scanner\LocalClam->initScanner() at /home/nextclou/public_html/apps/files_antivirus/lib/AvirWrapper.php:147
October 17, 2024 09:50:03 OCA\Files_Antivirus\AvirWrapper->file_put_contents() at /home/nextclou/public_html/lib/private/Files/Storage/Wrapper/Wrapper.php:240
October 17, 2024 09:50:03 OC\Files\Storage\Wrapper\Wrapper->file_put_contents() at /home/nextclou/public_html/lib/private/Files/View.php:1134
October 17, 2024 09:50:03 OC\Files\View->basicOperation() at /home/nextclou/public_html/lib/private/Files/View.php:644
October 17, 2024 09:50:03 OC\Files\View->file_put_contents() at /home/nextclou/public_html/lib/private/Files/Node/Folder.php:167
October 17, 2024 09:50:03 OC\Files\Node\Folder->newFile() at /home/nextclou/public_html/lib/private/Files/SimpleFS/NewSimpleFile.php:103
October 17, 2024 09:50:03 OC\Files\SimpleFS\NewSimpleFile->putContent() at /home/nextclou/public_html/lib/private/Preview/Generator.php:352
October 17, 2024 09:50:03 OC\Preview\Generator->generateProviderPreview() at /home/nextclou/public_html/lib/private/Preview/Generator.php:313
October 17, 2024 09:50:03 OC\Preview\Generator->getMaxPreview() at /home/nextclou/public_html/lib/private/Preview/Generator.php:119
October 17, 2024 09:50:03 OC\Preview\Generator->generatePreviews() at /home/nextclou/public_html/lib/private/PreviewManager.php:188
October 17, 2024 09:50:03 OC\PreviewManager->generatePreviews() at /home/nextclou/public_html/apps/previewgenerator/lib/Command/Generate.php:232
October 17, 2024 09:50:03 OCA\PreviewGenerator\Command\Generate->parseFile() at /home/nextclou/public_html/apps/previewgenerator/lib/Command/Generate.php:214
October 17, 2024 09:50:03 OCA\PreviewGenerator\Command\Generate->parseFolder() at /home/nextclou/public_html/apps/previewgenerator/lib/Command/Generate.php:212
October 17, 2024 09:50:03 OCA\PreviewGenerator\Command\Generate->parseFolder() at /home/nextclou/public_html/apps/previewgenerator/lib/Command/Generate.php:192
October 17, 2024 09:50:03 OCA\PreviewGenerator\Command\Generate->generateUserPreviews() at /home/nextclou/public_html/apps/previewgenerator/lib/Command/Generate.php:138
October 17, 2024 09:50:03 OCA\PreviewGenerator\Command\Generate->OCA\PreviewGenerator\Command{closure}() at /home/nextclou/public_html/lib/private/User/Manager.php:631
October 17, 2024 09:50:03 OC\User\Manager->callForSeenUsers() at /home/nextclou/public_html/apps/previewgenerator/lib/Command/Generate.php:139
October 17, 2024 09:50:03 OCA\PreviewGenerator\Command\Generate->execute() at /home/nextclou/public_html/3rdparty/symfony/console/Command/Command.php:298
October 17, 2024 09:50:03 Symfony\Component\Console\Command\Command->run() at /home/nextclou/public_html/3rdparty/symfony/console/Application.php:1040
October 17, 2024 09:50:03 Symfony\Component\Console\Application->doRunCommand() at /home/nextclou/public_html/3rdparty/symfony/console/Application.php:301
October 17, 2024 09:50:03 Symfony\Component\Console\Application->doRun() at /home/nextclou/public_html/3rdparty/symfony/console/Application.php:171
October 17, 2024 09:50:03 Symfony\Component\Console\Application->run() at /home/nextclou/public_html/lib/private/Console/Application.php:183
October 17, 2024 09:50:03 OC\Console\Application->run() at /home/nextclou/public_html/console.php:87
October 17, 2024 09:50:03 require_once() at /home/nextclou/public_html/occ:11
October 17, 2024 09:50:03
October 17, 2024 09:50:03 preview:generate-all [-p|--path [PATH]] [--] [<user_id>...]
October 17, 2024 09:50:03
Steps to reproduce
- Enable previewgenerator
- enable files_antivirus
- execute occ preview:generate-all -vvv
Expected behavior
generate thumbnails
Nextcloud Server version
30
Operating system
None
PHP engine version
PHP 8.2
Web server
Apache (supported)
Database engine version
MariaDB
Is this bug present after an update or on a fresh install?
None
Are you using the Nextcloud Server Encryption module?
None
What user-backends are you using?
- [x] Default user-backend (database)
- [ ] LDAP/ Active Directory
- [ ] SSO - SAML
- [ ] Other
Configuration report
No response
List of activated Apps
No response
Nextcloud Signing status
No response
Nextcloud Logs
No response
Additional info
No response
after i disable files_antivirus the generation of previews have no issues...
Error starting process
Means: clamscan cannot be executed on your system to scan the file.
- enable files_antivirus
Did you configure the antivirus scanner after that? Did you install and setup the dependencies required?
https://docs.nextcloud.com/server/latest/admin_manual/configuration_server/antivirus_configuration.html
Tacking onto this, after having followed the Daemon portion of the instructions and verifying the antivirus is properly going through (at least according to the logs), and previewing still seems to be malfunctioning.