-
Notifications
You must be signed in to change notification settings - Fork 304
Description
Hello.
Installed 32.0.3 Nexcloud with this chart (https://github.com/nextcloud/helm/blob/main/charts/nextcloud/README.md)
External Redis set:
externalRedis: enabled: true host: "haproxy.valkey.svc" port: "26379"
Corresponding block in config.php:
‘memcache.distributed’ => ‘\OC\Memcache\Redis’, ‘memcache.locking’ => ‘\OC\Memcache\Redis’, ‘redis’ =>array (‘host’ => ‘haproxy.valkey.svc’,‘password’ => ‘XXX’,‘port’ => 26379,)
We're using haproxy in order to connect redis/sentinel hosts with TLS ans password:
`default-server inter 2s rise 2 fall 3 ssl ca-file /etc/haproxy/certs/nc-prod-valkey-ca.pem
listen nc-prod-valkey
bind 0.0.0.0:26379
mode tcp
balance roundrobin
server valkey-01 valkey-01:26379
server valkey-02 valkey-02:26379
server valkey-03 valkey-03:26379`
But after installation we faced with redis issue during authentication Nextcloud login page:
{“method”:“GET”,“url”:“/login?redirect_url=/index.php/core/apps/recommended&direct=1&user=YYY”,“message”:“Could not boot webhook_listeners: ERR AUTH called without any password configured for the default user. Are you sure your configuration is correct?”,,“version”:“32.0.3.2”,,“exception”:{“Exception”:“RedisException”,“Message”:“ERR AUTH called without any password configured for the default user. Are you sure your configuration is correct?”,“Code”:0,“Trace”:[{“file”:"/var/www/html/lib/private}“message”:“session_start(): Redis connection not available at /var/www/html/lib/private/Session/Internal.php#198”Failed to read session data: redis (path: tcp://haproxy.valkey.svc:26379?auth=XXX)
Configs sentinel and redis are required to use TLS and password
TLS port 0 tls-port 6379 tls-cert-file /etc/valkey/ssl/tls.crt tls-key-file /etc/valkey/ssl/tls.key tls-ca-cert-file /etc/valkey/ssl/ca.crt requirepass XXX masterauth XXX sentinel auth-pass mymaster XXXX
Is Nextcloud able to working properly with external Redis/Sentinel cluster?