How to modify application configuration when using TrueCharts NextCloud

chan1600

Cadet
Joined
Oct 21, 2022
Messages
5
Hi all, I am new to kubernetes and TrueNAS.
I have successfully set up my NextCloud server using TrueCharts NextCloud 24.0.6_15.3.32
However, the server always crashes when it tries to load the PDF list with Preview.

Code:
2022-12-29 13:03:01.739157+00:00Config value max_chunk_size for app files set to 31457280
2022-12-29 13:03:01.747294+00:00Error installing notify_push already seems to be installed...
2022-12-29 13:03:01.747317+00:00Error installing previewgenerator already seems to be installed...
2022-12-29 13:03:01.823815+00:00[29-Dec-2022 05:03:01] NOTICE: fpm is running, pid 1
2022-12-29 13:03:01.825189+00:00[29-Dec-2022 05:03:01] NOTICE: ready to handle connections
2022-12-29 13:04:02.113656+00:00127.0.0.1 -  29/Dec/2022:05:04:02 -0800 "PROPFIND /remote.php" 207
2022-12-29 13:04:02.122815+00:00127.0.0.1 -  29/Dec/2022:05:04:02 -0800 "GET /ocs/v2.php" 200
2022-12-29 13:04:02.483324+00:00127.0.0.1 -  29/Dec/2022:05:04:02 -0800 "PUT /index.php" 200
2022-12-29 13:04:05.888873+00:00[29-Dec-2022 05:04:05] WARNING: [pool www] server reached pm.max_children setting (5), consider raising it
2022-12-29 13:04:53.327629+00:00[29-Dec-2022 05:04:53] NOTICE: Finishing ...
2022-12-29 13:04:53.338317+00:00[29-Dec-2022 05:04:53] NOTICE: exiting, bye-bye!


I found that it could related to the WARNING message.
On StackExchange, some posts suggest to change the /usr/local/etc/php-fpm.d/www.conf /usr/local/etc/php-fpm.d/www.conf.default to following
pm = dynamic
pm.max_children = 25
pm.start_servers = 10
pm.min_spare_servers = 5
pm.max_spare_servers = 20
pm.max_requests = 500

When I tried to edit in the Pod Shell, it shows those files are not writable.
How do I modify the config file when using the NextCloud Application from TrueCharts Nextcloud image? Thanks.
I checked the "Edit" option of the application, I do not find a way to modify those setting as well.
 

gorrunyo

Dabbler
Joined
Sep 12, 2022
Messages
17
Hi all, I am new to kubernetes and TrueNAS.
I have successfully set up my NextCloud server using TrueCharts NextCloud 24.0.6_15.3.32
However, the server always crashes when it tries to load the PDF list with Preview.

Code:
2022-12-29 13:03:01.739157+00:00Config value max_chunk_size for app files set to 31457280
2022-12-29 13:03:01.747294+00:00Error installing notify_push already seems to be installed...
2022-12-29 13:03:01.747317+00:00Error installing previewgenerator already seems to be installed...
2022-12-29 13:03:01.823815+00:00[29-Dec-2022 05:03:01] NOTICE: fpm is running, pid 1
2022-12-29 13:03:01.825189+00:00[29-Dec-2022 05:03:01] NOTICE: ready to handle connections
2022-12-29 13:04:02.113656+00:00127.0.0.1 -  29/Dec/2022:05:04:02 -0800 "PROPFIND /remote.php" 207
2022-12-29 13:04:02.122815+00:00127.0.0.1 -  29/Dec/2022:05:04:02 -0800 "GET /ocs/v2.php" 200
2022-12-29 13:04:02.483324+00:00127.0.0.1 -  29/Dec/2022:05:04:02 -0800 "PUT /index.php" 200
2022-12-29 13:04:05.888873+00:00[29-Dec-2022 05:04:05] WARNING: [pool www] server reached pm.max_children setting (5), consider raising it
2022-12-29 13:04:53.327629+00:00[29-Dec-2022 05:04:53] NOTICE: Finishing ...
2022-12-29 13:04:53.338317+00:00[29-Dec-2022 05:04:53] NOTICE: exiting, bye-bye!


I found that it could related to the WARNING message.
On StackExchange, some posts suggest to change the /usr/local/etc/php-fpm.d/www.conf /usr/local/etc/php-fpm.d/www.conf.default to following
pm = dynamic
pm.max_children = 25
pm.start_servers = 10
pm.min_spare_servers = 5
pm.max_spare_servers = 20
pm.max_requests = 500

When I tried to edit in the Pod Shell, it shows those files are not writable.
How do I modify the config file when using the NextCloud Application from TrueCharts Nextcloud image? Thanks.
I checked the "Edit" option of the application, I do not find a way to modify those setting as well.
Did you ever find a solution to this?
 

chan1600

Cadet
Joined
Oct 21, 2022
Messages
5
I can access the container image from TrueNAS shell through the docker commands.This would give me access to modify the file, however, I am not sure how to save it to the image in clean. If the modification is not saved to the image, the modification would be gone after restarting the pod.
docker container ls
docker exec -it -u root CONTAINER_ID /bin/bash
 

victort

Guru
Joined
Dec 31, 2021
Messages
973
You might want to try adding these variables in the “Nextcloud Environment” options after you select “Edit” from the app GUI. Official app.

In the Truecharts app it’s called “Extra Environment Variables”
 
Top