Skip to content
View in the app

A better way to browse. Learn more.

Unraid

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

Where do I run the preview generator command for Nextcloud and create a cron job to update the previews?

Featured Replies

Hello

 

I cannot see the video preview thumbnails on Nextcloud on my new Unraid server.

 

Sorry, I'm new at unraid and Nextcloud - so I searched the forum and found that I need to run the following commands:

 

"The first time you install this app, before using a cron job, you properly want to generate all previews via: ./occ preview:generate-all -vvv

 

Important: To enable pre-generation of previews you must add php /var/www/nextcloud/occ preview:pre-generate to a system cron job that runs at times of your choosing."

 

Can anyone help me with the following:
Where do I run the preview generator command on Unraid Nextcloud?
and how do I setup the cron job for this?

 

Thank you

  • 1 month later...

Looking for the same thing. Hope some one has some insight.

  • 3 weeks later...

Bumping thread

  • Community Expert

Best bet would be to ask in the existing container support thread (assuming there's one):

 

docker support.JPG

 

 

  • Community Expert
On 12/13/2022 at 2:41 AM, guyola said:

Can anyone help me with the following:
Where do I run the preview generator command on Unraid Nextcloud?

 

Run it from the docker's console

 

Hint: ignore the dot slash and just run

occ preview:generate-all -vvv

 

  • Community Expert

You do not need to use the preview generator, thumbnails are generated on demand anyway, at most it's a bit slow to load the first time.

Video thumbnails require using a container that has ffmpeg installed, and having the relevant preview providers enabled in config.php.

 

 

Edited by Kilrah

  • 1 year later...

Still nobody answer how to edit cron.php

It's a bit shameful that this community did not provide any answers to this in a non-cryptic way, even after years. I really don't understand, why not even the developers themselves care about user problems - because every user might set all this up with tools free of charge instead of buying the insanely expensive unraid licence, so it would be in the dev's own interest to help. Anyway:

 

  • in unraid, nextcloud runs in a docker container. To transfer any command to this docker container, you have to adress this container via the 'docker' command and it's name that's shown in the docker overview in unraid. Mine is called 'nextcloud'. After that, you enter the direct commands to that docker container, in this case the 'occ' part, so the command would be this:
    docker exec -it nextcloud occ preview:generate-all -vvv
  • So, every command injected EXTERNALLY (meaning out of the docker container into the docker container) needs this prefix before the command itself:
    docker exec -it [docker-name] [command to docker container]
  • Regarding the cron.php: i'm sorry i can't help with that.
  • JorgeB locked this topic
Guest
This topic is now closed to further replies.

Account

Navigation

Search

Search

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.