-
Notifications
You must be signed in to change notification settings - Fork 57
Description
How to use GitHub
- Please use the 👍 reaction to show that you are affected by the same issue.
- Please don't comment if you have no relevant information to add. It's just extra noise for everyone subscribed to this issue.
- Subscribe to receive notifications on status change and new comments.
Steps to reproduce
- I don't know
Expected behaviour
When executing a command for preview generation the previews to be successfully generated:
Commands used.
sudo -u www-data php occ preview:generate-all -vvv
sudo -u www-data php occ preview:generate-all [username]
Actual behaviour
Command execution stops almost immediately with "An unhandled exception has been thrown"
2025-10-16T14:13:49+00:00 Scanning folder /fhnt/files/Applications/TS10/ORG
2025-10-16T14:13:49+00:00 Generating previews for /fhnt/files/Applications/TS10/ORG/Subaru White Logo HD PNG - 1920x1080.png
An unhandled exception has been thrown:
TypeError: OC\Preview\Generator::generatePreviews(): Return value must be of type OCP\Files\SimpleFS\ISimpleFile, null returned in /var/www/nextcloud_vss/lib/private/Preview/Generator.php:190
Stack trace:
#0 /var/www/nextcloud_vss/lib/private/PreviewManager.php(182): OC\Preview\Generator->generatePreviews()
#1 /var/www/nextcloud_vss/apps/previewgenerator/lib/Command/Generate.php(210): OC\PreviewManager->generatePreviews()
#2 /var/www/nextcloud_vss/apps/previewgenerator/lib/Command/Generate.php(192): OCA\PreviewGenerator\Command\Generate->parseFile()
#3 /var/www/nextcloud_vss/apps/previewgenerator/lib/Command/Generate.php(190): OCA\PreviewGenerator\Command\Generate->parseFolder()
#4 /var/www/nextcloud_vss/apps/previewgenerator/lib/Command/Generate.php(190): OCA\PreviewGenerator\Command\Generate->parseFolder()
#5 /var/www/nextcloud_vss/apps/previewgenerator/lib/Command/Generate.php(190): OCA\PreviewGenerator\Command\Generate->parseFolder()
#6 /var/www/nextcloud_vss/apps/previewgenerator/lib/Command/Generate.php(170): OCA\PreviewGenerator\Command\Generate->parseFolder()
#7 /var/www/nextcloud_vss/apps/previewgenerator/lib/Command/Generate.php(116): OCA\PreviewGenerator\Command\Generate->generateUserPreviews()
#8 /var/www/nextcloud_vss/lib/private/User/Manager.php(629): OCA\PreviewGenerator\Command\Generate->OCA\PreviewGenerator\Command{closure}()
#9 /var/www/nextcloud_vss/apps/previewgenerator/lib/Command/Generate.php(115): OC\User\Manager->callForSeenUsers()
#10 /var/www/nextcloud_vss/3rdparty/symfony/console/Command/Command.php(326): OCA\PreviewGenerator\Command\Generate->execute()
#11 /var/www/nextcloud_vss/3rdparty/symfony/console/Application.php(1078): Symfony\Component\Console\Command\Command->run()
#12 /var/www/nextcloud_vss/3rdparty/symfony/console/Application.php(324): Symfony\Component\Console\Application->doRunCommand()
#13 /var/www/nextcloud_vss/3rdparty/symfony/console/Application.php(175): Symfony\Component\Console\Application->doRun()
#14 /var/www/nextcloud_vss/lib/private/Console/Application.php(187): Symfony\Component\Console\Application->run()
#15 /var/www/nextcloud_vss/console.php(90): OC\Console\Application->run()
#16 /var/www/nextcloud_vss/occ(33): require_once('...')
What I've done and tested so far:
- Checked folder's permissions - OK
- Executed preview generation for a single files like this:
sudo -u www-data php occ preview:generate "/fhnt/files/Applications/TS10/ORG/Subaru White Logo HD PNG - 1920x1080.png"
and get "preview generated" with and no errors. - Reinstalled the app - no effect
- Reset/regenerate the previews as explained in the "I want to reset/regenerate all previews" section of the readme - no effect.
- Tested with single preview providers - no effect.
Server configuration
Web server: Apache/Nginx
Nginx
The webserver stays behind Nginx Proxy Manager.
Database: MySQL/Maria/SQLite/PostgreSQL
MariaDB
PHP version: 8.2/8.3/8.4
8.3
Nextcloud version: (see Nextcloud admin page)
32.0.0, but I've noticed this behavior even before the update. For example 31.0.x
List of activated apps
If you have access to your command line run e.g.:
sudo -u www-data php occ app:list
from within your Nextcloud installation folder
Nextcloud configuration
If you have access to your command line run e.g.:
sudo -u www-data php occ config:list system
from within your Nextcloud installation folder
Browser
Browser name: Firefox/Chrome/Safari/…
Firefox
Browser version: 124/125/…
144.0
Operating system: Windows/Ubuntu/Mac/…
Windows 11
Browser log
Insert your browser log here, this could for example include:
a) The javascript console log
b) The network log
c) ...