nextcloud / previewgenerator

Nextcloud app to do preview generation in the background.
https://apps.nextcloud.com/apps/previewgenerator
GNU Affero General Public License v3.0
455 stars 57 forks source link

ValueError: Invalid or uninitialized Zip object in /var/www/nextcloud/lib/private/Archive/ZIP.php:154 #253

Closed Germwalker closed 2 years ago

Germwalker commented 2 years ago

Something is stopping the generate-all process :

An unhandled exception has been thrown:
ValueError: Invalid or uninitialized Zip object in /var/www/nextcloud/lib/private/Archive/ZIP.php:154
Stack trace:
#0 /var/www/nextcloud/lib/private/Archive/ZIP.php(154): ZipArchive->getStream()
#1 /var/www/nextcloud/lib/private/Preview/Bundled.php(42): OC\Archive\ZIP->extractFile()
#2 /var/www/nextcloud/lib/private/Preview/OpenDocument.php(44): OC\Preview\Bundled->extractThumbnail()
#3 /var/www/nextcloud/lib/private/Preview/GeneratorHelper.php(62): OC\Preview\OpenDocument->getThumbnail()
#4 /var/www/nextcloud/lib/private/Preview/Generator.php(245): OC\Preview\GeneratorHelper->getThumbnail()
#5 /var/www/nextcloud/lib/private/Preview/Generator.php(140): OC\Preview\Generator->getMaxPreview()
#6 /var/www/nextcloud/lib/private/PreviewManager.php(204): OC\Preview\Generator->generatePreviews()
#7 /var/www/nextcloud/apps/previewgenerator/lib/Command/Generate.php(203): OC\PreviewManager->generatePreviews()
#8 /var/www/nextcloud/apps/previewgenerator/lib/Command/Generate.php(174): OCA\PreviewGenerator\Command\Generate->parseFile()
#9 /var/www/nextcloud/apps/previewgenerator/lib/Command/Generate.php(172): OCA\PreviewGenerator\Command\Generate->parseFolder()
#10 /var/www/nextcloud/apps/previewgenerator/lib/Command/Generate.php(155): OCA\PreviewGenerator\Command\Generate->parseFolder()
#11 /var/www/nextcloud/apps/previewgenerator/lib/Command/Generate.php(123): OCA\PreviewGenerator\Command\Generate->generateUserPreviews()
#12 /var/www/nextcloud/lib/private/User/Manager.php(646): OCA\PreviewGenerator\Command\Generate->OCA\PreviewGenerator\Command\{closure}()
#13 /var/www/nextcloud/apps/previewgenerator/lib/Command/Generate.php(124): OC\User\Manager->callForSeenUsers()
#14 /var/www/nextcloud/3rdparty/symfony/console/Command/Command.php(255): OCA\PreviewGenerator\Command\Generate->execute()
#15 /var/www/nextcloud/3rdparty/symfony/console/Application.php(1009): Symfony\Component\Console\Command\Command->run()
#16 /var/www/nextcloud/3rdparty/symfony/console/Application.php(273): Symfony\Component\Console\Application->doRunCommand()
#17 /var/www/nextcloud/3rdparty/symfony/console/Application.php(149): Symfony\Component\Console\Application->doRun()
#18 /var/www/nextcloud/lib/private/Console/Application.php(209): Symfony\Component\Console\Application->run()
#19 /var/www/nextcloud/console.php(99): OC\Console\Application->run()
#20 /var/www/nextcloud/occ(11): require_once('...')
st3iny commented 2 years ago

I can confirm this report. This error appeared in my server logs after the update to Nextcloud v22. However, the error originates in the core/server preview logic and not in the PreviewGenerator app.

st3iny commented 2 years ago

Closed in favor of https://github.com/nextcloud/server/issues/25340.

c-schulz-rd13 commented 2 years ago

Why is this closed and not fixed and way are all related issues building a circle of closed issues?.... I have the same problem with nc 22.2.3.

st3iny commented 2 years ago

Why is this closed and not fixed and way are all related issues building a circle of closed issues?.... I have the same problem with nc 22.2.3.

It was closed because it is a duplicate. Please refer to the referenced issue.