Kilrah Posted December 13, 2022 Author Share Posted December 13, 2022 Hmm maybe try to disable and fully reinstall the app? Could maybe be that you have wrong permissions on your nextcloud folders too... Quote Link to comment
Alpha.Ars Posted December 13, 2022 Share Posted December 13, 2022 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 ? 1 Quote Link to comment
Kilrah Posted December 13, 2022 Author Share Posted December 13, 2022 (edited) What's the owner of your nextcloud appdata folder and contents? Should be user/group 33, shows up as sshd on current unraid Edited December 13, 2022 by Kilrah Quote Link to comment
Alpha.Ars Posted December 13, 2022 Share Posted December 13, 2022 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 right now it is nobody users Should I: chown -R user:33 ? Quote Link to comment
Kilrah Posted December 13, 2022 Author Share Posted December 13, 2022 chown -R 33:33 yes Quote Link to comment
Alpha.Ars Posted December 13, 2022 Share Posted December 13, 2022 hmmm well: Di I have to edit my data dir too ? Quote Link to comment
Alpha.Ars Posted December 13, 2022 Share Posted December 13, 2022 uhm wait. I tried it like tat and looks like it's working docker exec -u root nextcloud chown -R 33:33 * But I can't access the website Quote Link to comment
Alpha.Ars Posted December 13, 2022 Share Posted December 13, 2022 docker exec -u root nextcloud chown -R 33:users * was the correct command. Thanks for you help! 2 1 Quote Link to comment
bluepoet Posted December 13, 2022 Share Posted December 13, 2022 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. Quote Link to comment
Kilrah Posted December 13, 2022 Author Share Posted December 13, 2022 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... Quote Link to comment
bluepoet Posted December 13, 2022 Share Posted December 13, 2022 I can try that - guessing using the same command structure you have on the top of this - can't hurt to try - thank you. Quote Link to comment
TuxWolfgang Posted December 14, 2022 Share Posted December 14, 2022 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! 1 Quote Link to comment
Kilrah Posted December 16, 2022 Author Share Posted December 16, 2022 Added info about using Redis caching for performance improvements in 2nd post Quote Link to comment
relink Posted December 22, 2022 Share Posted December 22, 2022 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. Quote Link to comment
Kilrah Posted December 22, 2022 Author Share Posted December 22, 2022 (edited) Looks like what you were answered in https://github.com/nextcloud/all-in-one/discussions/1525 also applies here, ffmpeg on debian not being built with nvenc support either. Edited December 22, 2022 by Kilrah Quote Link to comment
relink Posted December 22, 2022 Share Posted December 22, 2022 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. Quote Link to comment
Kilrah Posted December 22, 2022 Author Share Posted December 22, 2022 (edited) 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 December 22, 2022 by Kilrah Quote Link to comment
Alpha.Ars Posted December 24, 2022 Share Posted December 24, 2022 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 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) 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 ? Quote Link to comment
Kilrah Posted December 26, 2022 Author Share Posted December 26, 2022 Hmm could be not just the owner but also the r/w permissions? Quote Link to comment
Nick.L Posted January 12, 2023 Share Posted January 12, 2023 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? Quote Link to comment
Kilrah Posted January 12, 2023 Author Share Posted January 12, 2023 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) Quote Link to comment
Xerazal Posted January 24, 2023 Share Posted January 24, 2023 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 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) 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. Quote Link to comment
Kilrah Posted January 24, 2023 Author Share Posted January 24, 2023 (edited) 2 options: 1) Change the user in the advanced settings of the cronjob container to 99: 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 January 24, 2023 by Kilrah Quote Link to comment
Xerazal Posted January 24, 2023 Share Posted January 24, 2023 6 hours ago, Kilrah said: 2 options: 1) Change the user in the advanced settings of the cronjob container to 99: 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 Quote Link to comment
senaxios Posted February 25, 2023 Share Posted February 25, 2023 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! Quote Link to comment
Recommended Posts
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.