Hello, based on previous things on the old forums, I modified a command to run as a Cron Job which can be added from the GUI to run as root and trigger the Preview Generator App for Nextcloud (from the official TrueNAS catalog):
I am posting because I had this problem and I found no working solution so maybe this will help someone, if you have a more elegant solution, I’d be glad to see something smarter.
I was looking to somehow leverage the cronjob container that from what I noticed is used only to run var/www/html/cron.php
Maybe cron.php could be modified to also run Preview Generator.
Yes, indeed, I also have that. But Preview Generator is used to preemptively create thumbnails before you actually try to go look at the photos/videos so it does not stutter/fail to load thumbnails when you do.
Basically, in TrueNAS you go to System Settings - Advanced - Cron Jobs and you define a new cron job that issues a command inside the nextcloud pod as the user www-data every x minutes/hours. In the current version my command is:
The problem I have is that I think this isn’t quite that elegant because to issue the command in the right pod, you need to exclude the others and the names of the pods can change from version to version and this nextcloud implementation already has cronjob functionality.