Can't access nextcloud after setup redis

evening everyone,

new to nextcloud. Almost done setting up a fresh nextcloud 21 until i reached redis.

everytime I paste the following code in nginx’s config.php, nextcloud became unreachable

'memcache.distributed' => '\OC\Memcache\Redis',
'memcache.local' => '\OC\Memcache\Redis',
'memcache.locking' => '\OC\Memcache\Redis',
'redis' => array(
     'host' => 'localhost',
     'port' => 6379,
     ),

nextcloud functions normal once i remove the above code.
nextcloud displays the following message in white background when it’s unreachable

Internal Server Error

The server encountered an internal error and was unable to complete your request.
Please contact the server administrator if this error reappears multiple times, please include the technical details below in your report.
More details can be found in the server log.

Nextcloud error log:

2021/06/10 18:33:30 [crit] 192871#192871: *3372 SSL_do_handshake() failed (SSL: error:141CF06C:SSL routines:tls_parse_ctos_key_share:bad key share) while SSL handshaking, client: 35.203.252.150, server: 0.0.0.0:443

2021/06/10 18:38:02 [crit] 192871#192871: *3460 SSL_do_handshake() failed (SSL: error:141CF06C:SSL routines:tls_parse_ctos_key_share:bad key share) while SSL handshaking, client: 35.203.252.118, server: 0.0.0.0:443

2021/06/10 20:03:43 [error] 193335#193335: *5006 access forbidden by rule, client: 45.146.165.123, server: raid1.duckdns.org, request: "GET /console/ HTTP/1.1", host: "207.38.189.168:443"

2021/06/10 20:12:35 [error] 203863#203863: *5136 access forbidden by rule, client: 192.168.1.1, server: raid1.duckdns.org, request: "GET /.well-known/webfinger HTTP/2.0", host: "raid1.duckdns.org"

2021/06/10 20:12:35 [error] 203863#203863: *5136 access forbidden by rule, client: 192.168.1.1, server: raid1.duckdns.org, request: "GET /.well-known/nodeinfo HTTP/2.0", host: "raid1.duckdns.org"

I followed this guide for my nextcloud installation

for the redis setup, i initially followed this guide, but realized my nextcloud installation guide also have a redis section, so I undo everything i did (except the permission), and went back to the redis section in my first nextcloud installation guide.

thank you for the help. I’m extremely puzzled…

Try the following with two \ instead of one

  'memcache.local' => '\\OC\\Memcache\\APCu',
  'memcache.distributed' => '\\OC\\Memcache\\Redis',
  'filelocking.enabled' => true,
  'memcache.locking' => '\\OC\\Memcache\\Redis',

tried adding an extra , still have same error :frowning:

Read too fast your first post. The logs are saying ssl failed. Are you sure it’s working without redis ?

Hi, i just double checked without the redis config, it works as intended

I think the ssl error was resolved, the time stamp for ssl error is 18:00, the core issue is after time stamp 20:00

appologis i just copied the whole error log

i made another post at the support section with more details

That doesn’t look like a nextcloud log. Your nextcloud log default location will be in the data/ subdirectory of your nextcloud installation path, and will be lines of JSON.

See if you can get some of the actual nextcloud log when you are trying with redis.