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

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

Open
5 of 8 tasks
Netmees opened this issue Oct 17, 2024 · 3 comments
Open
5 of 8 tasks

Comments

@Netmees
Copy link

Netmees commented Oct 17, 2024

⚠️ 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?

  • 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
Copy link
Author

Netmees commented Oct 17, 2024

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

@kesselb
Copy link
Contributor

kesselb commented Oct 17, 2024

Error starting process

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

@joshtrichards
Copy link
Member

  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

@susnux susnux transferred this issue from nextcloud/server Oct 18, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants