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.

[Support] kilrah/nextcloud-ffmpeg with pdlib

Featured Replies

  • Author

Hmm maybe try to disable and fully reinstall the app? 

Could maybe be that you have wrong permissions on your nextcloud folders too...

  • Replies 327
  • Views 52.1k
  • Created
  • Last Reply

Top Posters In This Topic

Most Popular Posts

  • docker exec -u root nextcloud chown -R 33:users *  was the correct command. Thanks for you help!

  • Update. The value should be set in ".htaccess" not ".user.ini" And it should be set like this Find the solution by assisted by ChatGPT 🤣

  • chown -R 33:33 /mnt/user/appdata/nextcloud-ffmpeg (adapt as needed) and same on your storage directory if any should get you going

Posted Images

I'm having a permission problem. In the logs of nextcloud-cronjob I get this feedback

 

Cannot write into "config" directory!
This can usually be fixed by giving the web server write access to the config directory.

But, if you prefer to keep config.php file read only, set the option "config_is_read_only" to true in it.
See https://docs.nextcloud.com/server/25/go.php?to=admin-config

 

Can someone guide me here ?

  • Author

What's the owner of your nextcloud appdata folder and contents? Should be user/group 33, shows up as sshd on current unraid

 

image.png.ab3bb64c842280dc1f8db2d1b67a6b66.png

Edited by Kilrah

6 minutes ago, Kilrah said:

What's the owner of your nextcloud appdata folder and contents? Should be user/group 33, shows up as sshd on current unraid

 

image.png.ab3bb64c842280dc1f8db2d1b67a6b66.png


right now it is  nobody users image.png.75de7d6beaa5e41d2d3976095adbccd9.png

 

Should I:  chown -R user:33 ?

 

  • Author

chown -R 33:33 yes

hmmm well:
 image.png.09be0d49e5c28feb1e1ea8604a15e7b5.pngimage.thumb.png.06b7029480c032e72e9cedb5f36dc718.png

 

Di I have to edit my data dir too ?

 

uhm wait. I tried it like tat and looks like it's working

docker exec -u root nextcloud chown -R 33:33 *

image.png.4f0f0467499c4d32bfcfe7d4d7e20044.png

But I can't access the website

image.png.7ab3bc6c72c8434a9a77629ae17e6166.png

docker exec -u root nextcloud chown -R 33:users * 
was the correct command. Thanks for you help!

Issue 2:  Picture files are very slow to load up, any way to speed that up?

 

If you're talking of generating the previews not really, if they're large images that's a lot of processing. There's a "preview generator" app in nextcloud apps that you can use to pre-generate them, might help.

 

----

I installed the preview generator and it says that I have to add this to a cron job "php /var/www/nextcloud/occ preview:pre-generate"  can i add this to the cron job docker that I downloaded for Nextcloud itself and if so do you know how I might be able to do that?  Sorry I am new to all of this. 

 

  • Author

Maybe try to generate them once initially and see if that's helping you with speed, if so you can move on to making a custom cron script...

I can try that - guessing using the same command structure you have on the top of this - can't hurt to try - thank you. 

 

15 hours ago, Kilrah said:

Hmm maybe try to disable and fully reinstall the app? 

Could maybe be that you have wrong permissions on your nextcloud folders too...

Reinstalling (two times) helped. It seems that Node.js binary was not downloaded completely or could not be decompressed. Thank you very much!

  • Author

Added info about using Redis caching for performance improvements in 2nd post

I'm surprised I didn't see this mentioned yet, but is it possible to expose a GPU to this container? I'm desperately trying to find a way to expose my Quadro P400 to Nextcloud so I can enable hardware trasncoding in Memories.

 

 

2 hours ago, Kilrah said:

ffmpeg on debian not being built with nvenc support either.

I didnt know that, but now that I think about it Debian is one of the 100% Foss distros so that makes sense.

 

2 hours ago, Kilrah said:

Looks like what you were answered in  https://github.com/nextcloud/all-in-one/discussions/1525

Thanks for pointing that out, I actually hadn't seen the latest reply yet.

 

So unless I'm missing something, it looks like my only option is a VM if I want HW transcoding, especially nvenc. I cant think of a single Docker image I haven't tried in the last 2 weeks.

  • Author

Most likely. Since it is one app from a third-party developer I doubt nextcloud themselves are going to go through the rabbit hole of adding a lot of dependencies to enable that to their containers...

Edited by Kilrah

I'm realy struggeling with the permissions for the Nextcloud cron.
Can't run with the nextcloud basic config. When I run this command "docker exec -u root nextcloud chown -R 33:users * "
the cron works... but then I'm unable to access nextcloud  

 

Unable to write to the "config" directory!

This problem is usually solved by giving the web server write access to the configuration directory. Or, if you prefer to keep the config.php file read-only, set the "config_is_read_only" option to true. See https://docs.nextcloud.com/server/25/go.php?to=admin-config

image.png.49f92c7e6f1b38d3c2b77e59fe6eba08.png

 

when I run: "docker exec -u root nextcloud chown -R 99:users * "

I do have access on nextcloud but the script can't access (just like in the begining)

image.png.4b6254ab78eac6868da9b0b58d31027f.png

 

I was able to fix it once in the past but then I had no access to the nextcloud appstore.

 

Do you have any hint ?

 

  • Author

Hmm could be not just the owner but also the r/w permissions?

 

image.thumb.png.614938823ec3551c0775e5072aa2c69b.png

  • 3 weeks later...
On 12/10/2022 at 1:52 AM, darkangelus said:

Hi, how would I go about fixing:

 

> Running Script: ./run-cron-php.sh
Cannot write into "config" directory!
This can usually be fixed by giving the web server write access to the config directory.

 

Thanks.

i have the same issue, anyone know how to fix it?

  • Author

Have you checked the answer? 

This is an issue on the nextcloud side, not cronjob (and the cron job should be ran fine despite the warning)

  • 2 weeks later...
On 12/24/2022 at 6:45 PM, Alpha.Ars said:

I'm realy struggeling with the permissions for the Nextcloud cron.
Can't run with the nextcloud basic config. When I run this command "docker exec -u root nextcloud chown -R 33:users * "
the cron works... but then I'm unable to access nextcloud  

 

Unable to write to the "config" directory!

This problem is usually solved by giving the web server write access to the configuration directory. Or, if you prefer to keep the config.php file read-only, set the "config_is_read_only" option to true. See https://docs.nextcloud.com/server/25/go.php?to=admin-config

image.png.49f92c7e6f1b38d3c2b77e59fe6eba08.png

 

when I run: "docker exec -u root nextcloud chown -R 99:users * "

I do have access on nextcloud but the script can't access (just like in the begining)

image.png.4b6254ab78eac6868da9b0b58d31027f.png

 

I was able to fix it once in the past but then I had no access to the nextcloud appstore.

 

Do you have any hint ?

 

Having this same exact issue. Using knex666's docker image of nextcloud. 

 

Setting permissions to 33:users lets the cron docker image run the script, but then the nextcloud container can't access anything. Switching permissions back to 99 gives nextcloud access, but then the cron docker image doesn't work.

  • Author

2 options:

1) Change the user in the advanced settings of the cronjob container to 99:

 

image.png.64f9bad9c2437eaccbb50f34f83bd7e4.png

 

2) remove the --user 99:100 in Extra Parameters of the knex666 template, then on unraid terminal 

chown -R 33:33 /mnt/user/appdata/nextcloud/ (or your folder)

 

It should then work fine. 

 

Edited by Kilrah

6 hours ago, Kilrah said:

2 options:

1) Change the user in the advanced settings of the cronjob container to 99:

 

image.png.64f9bad9c2437eaccbb50f34f83bd7e4.png

 

2) remove the --user 99:100 in Extra Parameters of the knex666 template, then on unraid terminal 

chown -R 33:33 /mnt/user/appdata/nextcloud/ (or your folder)

 

It should then work fine. 

 

Did option 1. Had to change the perms for the data folder & contents to 99 since, for whatever reason, it was set to 33. Works now. 

 

Thanks

  • 1 month later...

First of all, thank you for providing such an excellent project.

Now I facing an tricky issue which may need your help. I want to modify the max upload file size. I have tried to modify it in both Nextcloud/.user.ini and php.ini, but it doesn't work. Can you tell me how to modify the max upload file size in your project please? Thank you!

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.