Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Issue] NextCloud Application - Missing Redis DB #1304

Closed
T13nou opened this issue Jun 28, 2023 · 11 comments · Fixed by #2377
Closed

[Issue] NextCloud Application - Missing Redis DB #1304

T13nou opened this issue Jun 28, 2023 · 11 comments · Fixed by #2377
Assignees
Labels
enhancement New feature or request

Comments

@T13nou
Copy link

T13nou commented Jun 28, 2023

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 ↗️ 9 for more information.

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

@Final-Hawk
Copy link

Having the same issue.

@stavros-k stavros-k added the enhancement New feature or request label Aug 9, 2023
@aurijj20
Copy link

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

@sfatula
Copy link

sfatula commented Aug 23, 2023

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.

@aurijj20
Copy link

aurijj20 commented Sep 5, 2023

@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.

@pabloeisenhut
Copy link

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)

@sfatula
Copy link

sfatula commented Oct 6, 2023

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.

@IsmaStifler
Copy link

IsmaStifler commented Nov 4, 2023

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

???

@pabloeisenhut
Copy link

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

@IsmaStifler
Copy link

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...

@pabloeisenhut
Copy link

Truenas IP = Container/App IP

@IsmaStifler
Copy link

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging a pull request may close this issue.

7 participants