Hi
New to the forum, and really rather new to hosting my own Linux server but I’m getting the hang of it step by step. I now have a openmediavault running on top of a Armbian/Debian Stretch distro on my mini server (arm). Nextcloud is running in docker as per the guide that @TechnoDadLife has on youtube Nextcloud in OMV docker.
Thank you for that by the way!
Everything with Nextcloud is running smooth but now when I want Nextcloud to act as my familys photo storage/management I really need the preview generator to make it work. I somehow can’t get it to start with the different commands I found in all the guides. The app itself installs through the Nextcloud web interface, but when I want to run the commands I get into trouble.
So if someone could give me a quick step by step guide to run preview generator in my setting with OMV running Nextcloud in a docker container I’d be really thankful. I believe I could use the scheduled jobs tab (cron) to run the initial preview generating and then later the scheduled jobs but I only get long and, for me, incomprehensible error messages. But that could be because of my lack of understanding where the preview generator wants to run - in or outside of the Nextcloud container.
I know that Nextcloud as default uses www-data but I’ve never had any www-data user configured in my system and thought I didn’t need to create one, but I could have misunderstood that. My users are added in www-data group at least.
I've tried with -u www-data php /var/www/nextcloud/occ preview:generate-all in the container but that just gives me an error message "No passwd entry for user ‘www-data’" if trying to su the command and "sudo: unknown user: www-data, sudo: unable to initialize policy plugin" if trying to sudo the command.
Is there need to add a www-data user and group in the OMV web interface for this to work or is there something else I should do?