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.

Nextcloud-ffmpeg issues with cron jobs and missing indexes

Featured Replies

I have my Nextcloud FFMPEG up and running but have two issues. Bearing in mind that I am very much new to Unraid and Linux so using the Terminal and entering commands is something thats new to me hence me struggling.

 

Issue #1 is that I have an error on my nextcloud stating "The database is missing some indexes. Due to the fact that adding indexes on big tables could take some time they were not added automatically. By running "occ db:add-missing-indices" those missing indexes could be added manually while the instance keeps running. Once the indexes are added queries to those tables are usually much faster. Missing optional index "schedulobj_lastmodified_idx" in table "schedulingobjects"." Now I am struggling to find where to run that command and get it to work, I have used the main terminal and entered it and I have also clicked on Nextcloud-FFMpeg in docker and clicked console and entered it there but get "bash: occ: command not found"

 

Issue #2 is I cant get the Cron jobs to work. I have Cron (Recommended) selected and I just see "Last job execution ran 2 days ago. Something seems wrong." at the top. I have tried to download the nextcloud-cronjob app and when I try to download it I just get:

"docker run
  -d
  --name='Nextcloud-cronjob'
  --net='bridge'
  -e TZ="Europe/London"
  -e HOST_OS="Unraid"
  -e HOST_HOSTNAME="NAS"
  -e HOST_CONTAINERNAME="Nextcloud-cronjob"
  -e 'NEXTCLOUD_CONTAINER_NAME'='Nextcloud-ffmpeg'
  -e 'NEXTCLOUD_CRON_MINUTE_INTERVAL'='15'
  -e 'NEXTCLOUD_EXEC_USER'='www-data'
  -e 'NEXTCLOUD_EXEC_SHELL'='bash'
  -l net.unraid.docker.managed=dockerman
  -l net.unraid.docker.icon='https://github.com/kilrah/unraid-docker-templates/raw/main/icons/nextcloud-cronjob.png'
  -v '/var/run/docker.sock':'/var/run/docker.sock':'ro'
  -v '':'/cron-scripts':'ro' 'rcdailey/nextcloud-cronjob'

docker: invalid spec: :/cron-scripts:ro: empty section between colons.
See 'docker run --help'.

The command failed."

 

I am leaving the settings on defaults as to be honest I dont understand it all that much. Does anyone have any info on how I can solve either of these issues? I can provide any info if needed

 

Thanks

  • 2 months later...

you can install unraid user script plugin then create new script below

 

#for nextcloud Cron jobs

docker exec -u 99 Nextcloud php -f /var/www/html/cron.php

 

#for missing indexes

docker exec -u 99 Nextcloud php ./occ db:add-missing-indices

 

you can separate these 2 command for it own schedule 

 

edit if your nextcloud container name Nextcloud-ffmpeg just change Nextcloud to Nextcloud-ffmpeg in script above 

 

Edited by Gvon

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

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.