nextcloud / server

☁️ Nextcloud server, a safe home for all your data
https://nextcloud.com
GNU Affero General Public License v3.0
27.16k stars 4.03k forks source link

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

Open Netmees opened 2 hours ago

Netmees commented 2 hours ago

⚠️ 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]] [--] [...] 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?

Configuration report

No response

List of activated Apps

No response

Nextcloud Signing status

No response

Nextcloud Logs

No response

Additional info

No response

Netmees commented 2 hours ago

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

kesselb commented 50 minutes ago

Error starting process

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