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.

Need help with Nexcloud Cron Job on Unraid

Featured Replies

I’m having trouble with the cron job execution on an Unraid server for Nextcloud.

I used the "User Script" plugin, and put in the follow cron jobimage.thumb.png.b352d3d4fb0de962ec91c4ee09a7fb70.png:

somehow there was one successful run of the cron job, yet I am not sure through which method.

image.thumb.png.318c938b6e896a4cdd2fe27a1a74ddb8.pngimage.thumb.png.08e83d7e9b45da3fdebfa892df60307b.png

If I click on the "run script" button on the cron job tab, it doesn't give any response and doesn't exit/finish either.

I also tried to type out the comman in consle, and no response:

image.png.57af5ebdd7b87d152957f148364e6cd8.png

 

 

##### Update:

I waited a while before check back on the server, it seems like it had another successful run, yet the status of the other jobs stayed unchanged.

image.png.0c25ba99a9611004bc3292e1efc9b91e.png

image.thumb.png.a37c599eb17f9c1c390b5f5e6e33ab73.png

 

Edited by Laxdal

  • Community Expert

better asked on the nextcloud forum...

https://help.nextcloud.com/

cron may not be installed and enabled in the docker linux environment...

  • 2 months later...

Did you ever figure this out @Laxdal?

I am having the same issue.

  • Community Expert
4 hours ago, not-a-teletubby said:

Did you ever figure this out @Laxdal?

I am having the same issue.

...

again:
 

Quote

better asked on the nextcloud forum...

https://help.nextcloud.com/

cron may not be installed and enabled in the docker linux environment...


You may be forced to use Ajax here... as cron may not be instaled and running in teh docker linux envrioment..

  • Author

@not-a-teletubby this is how my cron job is set up:
image.thumb.png.81bba33d126f325b2fe9cb8d76f3e783.png

 

image.thumb.png.b9f8669bd7c5f058bdc82cb1b9e77734.png

 

And it seems like its working with cron. Not too sure how it worked out, but this is my set up
image.thumb.png.ba9f2eb58eafc9f2e5b9ed89fd70cf2a.png

  • 2 months later...

In case it's useful for anyone else:

  • Switching from AJAX to Cron solved the admin Web interface just locking up completely for however many minutes (never saw this resolve otherwise).
  • The user script line that's worked for me so far is `docker exec -u 99:users Nextcloud php -f ./cron.php`
  • Task is currently running, but occasionally stating "Fontconfig error: No writable cache directories".  Will update again later when I know more.

 

Edit: ran with `--verbose`.  Bunch of UpdateSingleMetadata and a ScanFiles job ran.  11-12 seconds each for the 13 runs of UpdateSingleMetadata.  Then ~46 minutes of ScanFiles.  No further "Fontconfig" error messages.

Edited by outertrace

  • Community Expert

untested... in theory as its a issue of cron not being in the docker container... and pulling unriads host cron from user script plugin ....

as seen with other dockers, we can use a "docker mod"

Docker template extra parameter:

-e DOCKER_MODS=linuxserver/mods:cron

Which should install the cron application in the docker...

Don't know the netcloud AIO. I left Nextcloud for many reasons and Don't recommend them... They are not secure and safety driven at the start... many other applications, systems and tools exist in a easier configuration as well to meet the same needs...

what does nextcloud offer you that another application does better?

nextcloud is a pain to properly secure, mange and use. Update cycles and build changes even more so...

36 minutes ago, bmartino1 said:

... I left Nextcloud for many reasons and Don't recommend them... They are not secure and safety driven at the start... many other applications, systems and tools exist in a easier configuration as well to meet the same needs...

what does nextcloud offer you that another application does better?

nextcloud is a pain to properly secure, mange and use. Update cycles and build changes even more so...

What would you recommend for:

  1. A Dropbox-esque file store and share, making it easy to share files with expiring / password-protected links?
  2. Photo backup from a phone, and management?  (I've seen Immich recommended for this; haven't tried it yet.)

(If either of those are something you use alternatives for.)

  • Community Expert

if your using nextcloud for phots storage then your using nextcloud wrong...

Nextloud use is for a entire google drive like experiences.

Webstie data sahreing to the bublic. (webdav/ftp/etc etc..)
Rejeto HFS. npm base web server... Nginx (what nextcloud is built off of) etc... simple searches will get you the results...

There even a drobox, photom drive docker and many other ways to have web based file shairing...

 

for dropbox like:

https://www.rejetto.com/hfs/

https://github.com/rejetto/hfs/discussions


I helped rejetto port a template over for unraid:

image.thumb.png.1091fdfdd44b0ccd32d6de6d4ac8ccf3.png


https://raw.githubusercontent.com/bmartino1/unraid-docker-templates/refs/heads/main/Guides/Quick Start Guide For Rejeto HFS.txt

 

I may have to make some small updates and bring it out of beta small notes if using rejeto hfs on unraid...
 

For Photos, 100% immich...


Yes Immich... There's photprism and many other photo base docker strictly for photos... simalr to rejto and other web based storage upload download solutions... Safe and secure by default, very little messing around and configuration needed...

 

I made a guide just for Immich due to this confusion...

 

I personally use immich for iPhone and android devices for photo, video auto backup with their free app mobile app...
I even used unraid Template with tailscale plugin(host not configured) using tailscale funnel and have immich world accessible(no port mess or fuss bypass cgnat)... more secure then nextcloud by far for photo access sharing and management...

also extra ai like tools and features for photos alone... Something a nextcloud plugin might exist and due, due but not do well needing other junk and configuration edits...

SO!
What does nextcloud do that you could do better with another application...

 

As Its all on how you want to interact and use it... Nexcloud is not friendly, not secure, and breaks to dam often! ...

I ran it for many years and left due to the constant breaking build changes (docker updates could make or break the entire sytem)... Its also what version of next cloud there are like 5 divions of the nextcloud setups...

Nextcloud AIO is not the same as another nexcloud suit build...
https://help.nextcloud.com/t/nextcloud-or-nextcloud-all-in-one/196479

 

unraid is just the platform where the container runs and is the storage medium... Nextcloud has its own forum for support if your having issue with nextcloud your better of asking on nextcloud forum...

the fact that the AIO docker is even missing linux application to begin with is just one of many examples of why I left nextcloud... Workarounds upon workarounds...

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.