charts icon indicating copy to clipboard operation
charts copied to clipboard

[Issue] NextCloud Application - Missing Redis DB

Open T13nou opened this issue 1 year ago • 11 comments

Hi !

This issue report is tied to discussion on TN Forum : https://www.truenas.com/community/threads/nextcloud-moved-from-truecharts-back-to-official.110820/

Context TrueNAS-SCALE-22.12.3.1 NextCloud Official App 27.0.0_1.6.31 Catalog:TRUENAS Train:charts

Issue Report Issue is displayed in NextCloud in "Security & Configuration warnings section"

The database is used for transactional file locking. To enhance performance, please configure memcache, if available. See the documentation :arrow_upper_right: 9 for more information.

Possible fix Install & embed Redis in initial installation + configure it in config.php settings

T13nou avatar Jun 28 '23 08:06 T13nou

Having the same issue.

Final-Hawk avatar Jun 29 '23 05:06 Final-Hawk

Same issue. I'm also assuming any manual changes to embed redis and changes to config will go away after a future upgrade.

aurijj20 avatar Aug 22 '23 13:08 aurijj20

I would personally prefer a separate app be created for redis. redis is really optional with nextcloud and there are other uses for redis.

To @aurijj20 , if you make your own container that embeds redis, put it into your own docker image library, then you will not lose your changes after a future upgrade. But it's on you to build the container and maintain it. I go the separate app route for redis myself. But I do build my own nextcloud containers as I have many other changes embedded. So many things you can do to nextcloud it's hard to build them all into a container in a flexible manner.

sfatula avatar Aug 23 '23 21:08 sfatula

@sfatula - Fair. In that situation, there would be no concerns with changes to redis. But the same concern with the updates to config.php for NextCloud to use that redis container is going to go away when Nextcloud is upgraded.

Maybe an option in the original install of the chart to configure the use of redis, either embedded or point to your own redis container.

aurijj20 avatar Sep 05 '23 01:09 aurijj20

possible solution:

Set up the Redis app and add the following environment variables in the Nextcloud app:

REDIS_HOST REDIS_HOST_PORT REDIS_HOST_PASSWORD (the password specified in the Redis app)

pabloeisenhut avatar Oct 06 '23 13:10 pabloeisenhut

I see there is a community redis chart now. So, yes, setting the environment variables is all that is needed and in fact is what I haven been doing for my setup. It could also be setup within config.php in nextcloud.

sfatula avatar Oct 06 '23 16:10 sfatula

solución posible:

Configure la aplicación Redis y agregue las siguientes variables de entorno en la aplicación Nextcloud:

REDIS_HOST REDIS_HOST_PORT REDIS_HOST_PASSWORD(la contraseña especificada en la aplicación Redis)

this?

Name REDIS_HOST Valor 127.0.0.1

REDIS_HOST_PORT Valor 30036

REDIS_HOST_PASSWORD Valor 123

???

IsmaStifler avatar Nov 04 '23 18:11 IsmaStifler

solución posible:

Configure la aplicación Redis y agregue las siguientes variables de entorno en la aplicación Nextcloud:

REDIS_HOST REDIS_HOST_PORT REDIS_HOST_PASSWORD(la contraseña especificada en la aplicación Redis)

this?

Name REDIS_HOST Valor 127.0.0.1

REDIS_HOST_PORT Valor 30036

REDIS_HOST_PASSWORD Valor 123

???

Server IP address is assigned by the DHCP server / router. Port which was assigned in the Redis application and password which was assigned in the Redis application

pabloeisenhut avatar Nov 04 '23 19:11 pabloeisenhut

solución posible: Configure la aplicación Redis y agregue las siguientes variables de entorno en la aplicación Nextcloud: REDIS_HOST REDIS_HOST_PORT REDIS_HOST_PASSWORD(la contraseña especificada en la aplicación Redis)

this? Name REDIS_HOST Valor 127.0.0.1 REDIS_HOST_PORT Valor 30036 REDIS_HOST_PASSWORD Valor 123 ???

Server IP address is assigned by the DHCP server / router. Port which was assigned in the Redis application and password which was assigned in the Redis application

I do it from truenas by installing redis directly, I can't assign an IP to it, I think...

IsmaStifler avatar Nov 04 '23 19:11 IsmaStifler

Truenas IP = Container/App IP

pabloeisenhut avatar Nov 04 '23 20:11 pabloeisenhut

I managed to install everything and the nextcloud configuration by changing the redis port to 30036 but even though I loaded the login I couldn't access it, I went back to the login

IsmaStifler avatar Nov 05 '23 15:11 IsmaStifler