RedisException: Connection refused but no redis parameter in config.php

Support intro

Sorry to hear you’re facing problems :slightly_frowning_face:

help.nextcloud.com is for home/non-enterprise users. If you’re running a business, paid support can be accessed via portal.nextcloud.com where we can ensure your business keeps running smoothly.

In order to help you as quickly as possible, before clicking Create Topic please provide as much of the below as you can. Feel free to use a pastebin service for logs, otherwise either indent short log examples with four spaces:

example

Or for longer, use three backticks above and below the code snippet:

longer
example
here

Some or all of the below information will be requested if it isn’t supplied; for fastest response please provide as much as you can :heart:

Nextcloud version (eg, 20.0.5): 27.0.1
Operating system and version (eg, Ubuntu 20.04): Ubuntu 22.04
Apache or nginx version (eg, Apache 2.4.25): Apache
PHP version (eg, 7.4): php 8.1

The issue you are facing:
There are regular errors in the error log. Cannot see face fotos in photos app.

Is this the first time you’ve seen this error? (Y/N): Y

Steps to replicate it:

  1. I have tried to configure redis and set parameter in config.php. It was not working, so I switched back to former configuration.

The output of your Nextcloud log in Admin > Logging:

{"reqId":"KNMUKiDrMm9fp2ff0sTJ","level":2,"time":"2023-08-08T07:25:04+00:00","remoteAddr":"","user":"--","app":"OC\\Log\\Rotate","method":"","url":"--","message":"Log file \"/var/www/html/data/nextcloud.log\" was over 104857600 bytes, moved to \"/var/www/html/data/nextcloud.log.1\"","userAgent":"--","version":"27.0.1.2","data":{"app":"OC\\Log\\Rotate"}}
{"reqId":"n29372436kALwODSe2U9","level":4,"time":"2023-08-08T07:25:10+00:00","remoteAddr":"79.244.35.66","user":"--","app":"no app in context","method":"POST","url":"/index.php/login/v2/poll","message":"Could not boot notify_push: Connection refused","userAgent":"Mozilla/5.0 (Linux) mirall/3.9.1-20230725.181132.d02a998aa-1.0~jammy1 (Nextcloud, ubuntu-5.19.0-50-generic ClientArchitecture: x86_64 OsArchitecture: x86_64)","version":"27.0.1.2","exception":{"Exception":"RedisException","Message":"Connection refused","Code":0,"Trace":[{"file":"/var/www/html/lib/private/RedisFactory.php","line":137,"function":"pconnect","class":"Redis","type":"->","args":["127.0.0.1",6379,0,null,0,0]},
....

The output of your config.php file in /path/to/nextcloud (make sure you remove any identifiable information!):

Have changed the secrets!

<?php
$CONFIG = array (
  'passwordsalt' => 'adsfsdafdsfadsfadsfadsfaadsfsd',
  'secret' => 'dasasdasfdsfadsfadsfdsaf',
  'trusted_domains' =>
  array (
    0 => 'localhost',
    5 => 'nextcloudpi.local',
    7 => 'nextcloudpi',
    8 => 'nextcloudpi.lan',
    1 => '172.18.0.6',
    6 => '192.168.103.44',
    20 => 'cloud.bardhome.de',
    12 => 'bardhome.de',
    21 => 'bardhome.spdns.de',
    22 => '192.168.103.44',
    11 => '79.244.33.204',
    3 => 'dbe5e509ecaf',
    14 => 'dbe5e509ecaf',
    '' => '01f946771284',
    15 => '79.244.33.204',
  ),
  'dbtype' => 'mysql',
  'version' => '27.0.1.2',
  'dbname' => 'nextcloud',
  'dbhost' => 'nc_mariadb',
  'dbport' => '',
  'dbtableprefix' => 'oc_',
  'mysql.utf8mb4' => true,
  'dbuser' => 'asdfdsaf',
  'dbpassword' => 'sdfasdafdsfsdafsdaf',
  'installed' => true,
  'instanceid' => 'oc7gsdafse1',
  'overwrite.cli.url' => 'https://asdsdfasdf.de',
  'overwriteprotocol' => 'https',
  'default_phone_region' => 'DE',
  'trusted_proxies' =>
  array (
    0 => '192.168.103.33',
    2 => '127.0.0.1',
    1 => 'localhost',
   11 => '127.0.0.1',
    12 => '::1',
    13 => 'dbasdf',
    14 => '172.18.0.6',
    15 => '79.244.33.204',
  ),
  'loglevel' => 2,
  'maintenance' => false,
  'mail_domain' => 'regenpost.de',
  'mail_from_address' => 'nextcloud',
  'mail_smtpmode' => 'smtp',
  'mail_sendmailmode' => 'smtp',
  'mail_smtpauth' => 1,
  'mail_smtphost' => 'masdfsdfet',
  'mail_smtpport' => '465',
  'mail_smtpname' => 'catchall@rsadfsafst.de',
  'mail_smtppassword' => 'ddfssassdffds',
  'app_install_overwrite' =>
  array (
    0 => 'files_external_onedrive',
    1 => 'facerecognition',
  ),
);

The output of your Apache/nginx/system log in /var/log/____:

none 

PASTE HERE


Output errors in nextcloud.log in /var/www/ or as admin user in top right menu, filtering for errors. Use a pastebin service if necessary.

PASTE HERE

The App "notify_push - Client Push ← " (High performance backend) seems to be installed but that app is absolutely dependent on redis server in order to be able to function.

Solution:

Configure notify_push according to the manual (see link), but then redis must also be installed and configured,

or

remove notify_push:

occ app:remove notify_push
1 Like