files_antivirus icon indicating copy to clipboard operation
files_antivirus copied to clipboard

[Bug]: preview generator problem with files_antivirus blocking occ preview:generate-all -vvv

Open Netmees opened this issue 1 year ago • 3 comments

⚠️ This issue respects the following points: ⚠️

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

  1. Enable previewgenerator
  2. enable files_antivirus
  3. 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

Netmees avatar Oct 17 '24 10:10 Netmees

after i disable files_antivirus the generation of previews have no issues...

Netmees avatar Oct 17 '24 10:10 Netmees

Error starting process

Means: clamscan cannot be executed on your system to scan the file.

kesselb avatar Oct 17 '24 11:10 kesselb

  1. 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

joshtrichards avatar Oct 17 '24 13:10 joshtrichards

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.

PseudoMortus avatar May 26 '25 20:05 PseudoMortus