SOLVED: RedisException ERR AUTH <password> (Level 3 Nextcloud Log Error)

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: 19.0.1-1
Operating system and version: linux 5.7.9.arch1-1
nginx version: nginx-mainline 1.19.1-1
PHP version: 7.4.8-2

The issue you are facing:
Many, many of the following erros in the Nextcloud log file:

RedisException ERR AUTH <password> called without any password configured for the default user. Are you sure your configuration is correct?

Is this the first time you’ve seen this error?: Yes, since redis update

Steps to replicate it:

  1. Update Nextcloud, PHP, and redis to most current versions
  2. Open local Nextcloud server page
  3. Observe Nextcloud log file

A sample of the output of your Nextcloud log in Admin > Logging:

{"reqId":"ECeRVEDY4iPyDZgN2vlN","level":3,"time":"2020-07-24T21:59:08+00:00","remoteAddr":"172.63.63.63","user":"--","app":"no app in context","method":"PROPFIND","url":"/remote.php/dav/calendars/ncuser/cal1/","message":{"Exception":"RedisException","Message":"ERR AUTH <password> called without any password configured for the default user. Are you sure your configuration is correct?","Code":0,"Trace":[{"file":"/usr/share/webapps/nextcloud/lib/private/RedisFactory.php","line":94,"function":"auth","class":"Redis","type":"->"},{"file":"/usr/share/webapps/nextcloud/lib/private/RedisFactory.php","line":108,"function":"create","class":"OC\\RedisFactory","type":"->"},{"file":"/usr/share/webapps/nextcloud/lib/private/Memcache/Redis.php","line":43,"function":"getInstance","class":"OC\\RedisFactory","type":"->"},{"file":"/usr/share/webapps/nextcloud/lib/private/Memcache/Factory.php","line":135,"function":"__construct","class":"OC\\Memcache\\Redis","type":"->"},{"file":"/usr/share/webapps/nextcloud/lib/private/Server.php","line":1021,"function":"createLocking","class":"OC\\Memcache\\Factory","type":"->"},{"file":"/usr/share/webapps/nextcloud/3rdparty/pimple/pimple/src/Pimple/Container.php","line":118,"function":"OC\\{closure}","class":"OC\\Server","type":"->","args":["*** sensitive parameters replaced ***"]},{"file":"/usr/share/webapps/nextcloud/lib/private/ServerContainer.php","line":124,"function":"offsetGet","class":"Pimple\\Container","type":"->"},{"file":"/usr/share/webapps/nextcloud/lib/private/Server.php","line":1970,"function":"query","class":"OC\\ServerContainer","type":"->"},{"file":"/usr/share/webapps/nextcloud/lib/private/Files/View.php","line":118,"function":"getLockingProvider","class":"OC\\Server","type":"->"},{"file":"/usr/share/webapps/nextcloud/lib/private/Server.php","line":810,"function":"__construct","class":"OC\\Files\\View","type":"->"},{"file":"/usr/share/webapps/nextcloud/3rdparty/pimple/pimple/src/Pimple/Container.php","line":118,"function":"OC\\{closure}","class":"OC\\Server","type":"->","args":["*** sensitive parameters replaced ***"]},{"file":"/usr/share/webapps/nextcloud/lib/private/ServerContainer.php","line":124,"function":"offsetGet","class":"Pimple\\Container","type":"->"},{"file":"/usr/share/webapps/nextcloud/lib/private/AppFramework/DependencyInjection/DIContainer.php","line":388,"function":"query","class":"OC\\ServerContainer","type":"->"},{"file":"/usr/share/webapps/nextcloud/lib/private/AppFramework/Utility/SimpleContainer.php","line":71,"function":"query","class":"OC\\AppFramework\\DependencyInjection\\DIContainer","type":"->"},{"file":"/usr/share/webapps/nextcloud/lib/private/AppFramework/Utility/SimpleContainer.php","line":101,"function":"buildClass","class":"OC\\AppFramework\\Utility\\SimpleContainer","type":"->"},{"file":"/usr/share/webapps/nextcloud/lib/private/AppFramework/Utility/SimpleContainer.php","line":116,"function":"resolve","class":"OC\\AppFramework\\Utility\\SimpleContainer","type":"->"},{"file":"/usr/share/webapps/nextcloud/lib/private/AppFramework/DependencyInjection/DIContainer.php","line":414,"function":"query","class":"OC\\AppFramework\\Utility\\SimpleContainer","type":"->"},{"file":"/usr/share/webapps/nextcloud/lib/private/AppFramework/DependencyInjection/DIContainer.php","line":385,"function":"queryNoFallback","class":"OC\\AppFramework\\DependencyInjection\\DIContainer","type":"->"},{"file":"/usr/share/webapps/nextcloud/lib/private/AppFramework/Utility/SimpleContainer.php","line":71,"function":"query","class":"OC\\AppFramework\\DependencyInjection\\DIContainer","type":"->"},{"file":"/usr/share/webapps/nextcloud/lib/private/AppFramework/Utility/SimpleContainer.php","line":101,"function":"buildClass","class":"OC\\AppFramework\\Utility\\SimpleContainer","type":"->"},{"file":"/usr/share/webapps/nextcloud/lib/private/AppFramework/Utility/SimpleContainer.php","line":116,"function":"resolve","class":"OC\\AppFramework\\Utility\\SimpleContainer","type":"->"},{"file":"/usr/share/webapps/nextcloud/lib/private/AppFramework/DependencyInjection/DIContainer.php","line":414,"function":"query","class":"OC\\AppFramework\\Utility\\SimpleContainer","type":"->"},{"file":"/usr/share/webapps/nextcloud/lib/private/AppFramework/DependencyInjection/DIContainer.php","line":385,"function":"queryNoFallback","class":"OC\\AppFramework\\DependencyInjection\\DIContainer","type":"->"},{"file":"/usr/share/webapps/nextcloud/apps/support/lib/AppInfo/Application.php","line":48,"function":"query","class":"OC\\AppFramework\\DependencyInjection\\DIContainer","type":"->"},{"file":"/usr/share/webapps/nextcloud/apps/support/appinfo/app.php","line":27,"function":"register","class":"OCA\\Support\\AppInfo\\Application","type":"->"},{"file":"/usr/share/webapps/nextcloud/lib/private/legacy/OC_App.php","line":266,"args":["/usr/share/webapps/nextcloud/apps/support/appinfo/app.php"],"function":"require_once"},{"file":"/usr/share/webapps/nextcloud/lib/private/legacy/OC_App.php","line":155,"function":"requireAppFile","class":"OC_App","type":"::"},{"file":"/usr/share/webapps/nextcloud/lib/private/legacy/OC_App.php","line":128,"function":"loadApp","class":"OC_App","type":"::"},{"file":"/usr/share/webapps/nextcloud/lib/base.php","line":647,"function":"loadApps","class":"OC_App","type":"::"},{"file":"/usr/share/webapps/nextcloud/lib/base.php","line":1090,"function":"init","class":"OC","type":"::"},{"file":"/usr/share/webapps/nextcloud/remote.php","line":115,"args":["/usr/share/webapps/nextcloud/lib/base.php"],"function":"require_once"}],"File":"/usr/share/webapps/nextcloud/lib/private/RedisFactory.php","Line":94,"CustomMessage":"--"},"userAgent":"DAVx5/3.0-ose2 (2020/05/01; dav4jvm; okhttp/4.5.0) Android/10","version":"19.0.1.1"}
{"reqId":"kdFkNyVy9RCNFpsHoiTG","level":3,"time":"2020-07-24T22:00:01+00:00","remoteAddr":"","user":"--","app":"no app in context","method":"","url":"--","message":{"Exception":"RedisException","Message":"ERR AUTH <password> called without any password configured for the default user. Are you sure your configuration is correct?","Code":0,"Trace":[{"file":"/usr/share/webapps/nextcloud/lib/private/RedisFactory.php","line":94,"function":"auth","class":"Redis","type":"->"},{"file":"/usr/share/webapps/nextcloud/lib/private/RedisFactory.php","line":108,"function":"create","class":"OC\\RedisFactory","type":"->"},{"file":"/usr/share/webapps/nextcloud/lib/private/Memcache/Redis.php","line":43,"function":"getInstance","class":"OC\\RedisFactory","type":"->"},{"file":"/usr/share/webapps/nextcloud/lib/private/Memcache/Factory.php","line":135,"function":"__construct","class":"OC\\Memcache\\Redis","type":"->"},{"file":"/usr/share/webapps/nextcloud/lib/private/Server.php","line":1021,"function":"createLocking","class":"OC\\Memcache\\Factory","type":"->"},{"file":"/usr/share/webapps/nextcloud/3rdparty/pimple/pimple/src/Pimple/Container.php","line":118,"function":"OC\\{closure}","class":"OC\\Server","type":"->","args":["*** sensitive parameters replaced ***"]},{"file":"/usr/share/webapps/nextcloud/lib/private/ServerContainer.php","line":124,"function":"offsetGet","class":"Pimple\\Container","type":"->"},{"file":"/usr/share/webapps/nextcloud/lib/private/Server.php","line":1970,"function":"query","class":"OC\\ServerContainer","type":"->"},{"file":"/usr/share/webapps/nextcloud/lib/private/Files/View.php","line":118,"function":"getLockingProvider","class":"OC\\Server","type":"->"},{"file":"/usr/share/webapps/nextcloud/lib/private/Server.php","line":810,"function":"__construct","class":"OC\\Files\\View","type":"->"},{"file":"/usr/share/webapps/nextcloud/3rdparty/pimple/pimple/src/Pimple/Container.php","line":118,"function":"OC\\{closure}","class":"OC\\Server","type":"->","args":["*** sensitive parameters replaced ***"]},{"file":"/usr/share/webapps/nextcloud/lib/private/ServerContainer.php","line":124,"function":"offsetGet","class":"Pimple\\Container","type":"->"},{"file":"/usr/share/webapps/nextcloud/lib/private/AppFramework/DependencyInjection/DIContainer.php","line":388,"function":"query","class":"OC\\ServerContainer","type":"->"},{"file":"/usr/share/webapps/nextcloud/lib/private/AppFramework/Utility/SimpleContainer.php","line":71,"function":"query","class":"OC\\AppFramework\\DependencyInjection\\DIContainer","type":"->"},{"file":"/usr/share/webapps/nextcloud/lib/private/AppFramework/Utility/SimpleContainer.php","line":101,"function":"buildClass","class":"OC\\AppFramework\\Utility\\SimpleContainer","type":"->"},{"file":"/usr/share/webapps/nextcloud/lib/private/AppFramework/Utility/SimpleContainer.php","line":116,"function":"resolve","class":"OC\\AppFramework\\Utility\\SimpleContainer","type":"->"},{"file":"/usr/share/webapps/nextcloud/lib/private/AppFramework/DependencyInjection/DIContainer.php","line":414,"function":"query","class":"OC\\AppFramework\\Utility\\SimpleContainer","type":"->"},{"file":"/usr/share/webapps/nextcloud/lib/private/AppFramework/DependencyInjection/DIContainer.php","line":385,"function":"queryNoFallback","class":"OC\\AppFramework\\DependencyInjection\\DIContainer","type":"->"},{"file":"/usr/share/webapps/nextcloud/lib/private/AppFramework/Utility/SimpleContainer.php","line":71,"function":"query","class":"OC\\AppFramework\\DependencyInjection\\DIContainer","type":"->"},{"file":"/usr/share/webapps/nextcloud/lib/private/AppFramework/Utility/SimpleContainer.php","line":101,"function":"buildClass","class":"OC\\AppFramework\\Utility\\SimpleContainer","type":"->"},{"file":"/usr/share/webapps/nextcloud/lib/private/AppFramework/Utility/SimpleContainer.php","line":116,"function":"resolve","class":"OC\\AppFramework\\Utility\\SimpleContainer","type":"->"},{"file":"/usr/share/webapps/nextcloud/lib/private/AppFramework/DependencyInjection/DIContainer.php","line":414,"function":"query","class":"OC\\AppFramework\\Utility\\SimpleContainer","type":"->"},{"file":"/usr/share/webapps/nextcloud/lib/private/AppFramework/DependencyInjection/DIContainer.php","line":385,"function":"queryNoFallback","class":"OC\\AppFramework\\DependencyInjection\\DIContainer","type":"->"},{"file":"/usr/share/webapps/nextcloud/apps/support/lib/AppInfo/Application.php","line":48,"function":"query","class":"OC\\AppFramework\\DependencyInjection\\DIContainer","type":"->"},{"file":"/usr/share/webapps/nextcloud/apps/support/appinfo/app.php","line":27,"function":"register","class":"OCA\\Support\\AppInfo\\Application","type":"->"},{"file":"/usr/share/webapps/nextcloud/lib/private/legacy/OC_App.php","line":266,"args":["/usr/share/webapps/nextcloud/apps/support/appinfo/app.php"],"function":"require_once"},{"file":"/usr/share/webapps/nextcloud/lib/private/legacy/OC_App.php","line":155,"function":"requireAppFile","class":"OC_App","type":"::"},{"file":"/usr/share/webapps/nextcloud/lib/private/legacy/OC_App.php","line":128,"function":"loadApp","class":"OC_App","type":"::"},{"file":"/usr/share/webapps/nextcloud/lib/base.php","line":647,"function":"loadApps","class":"OC_App","type":"::"},{"file":"/usr/share/webapps/nextcloud/lib/base.php","line":1090,"function":"init","class":"OC","type":"::"},{"file":"/usr/share/webapps/nextcloud/cron.php","line":42,"args":["/usr/share/webapps/nextcloud/lib/base.php"],"function":"require_once"}],"File":"/usr/share/webapps/nextcloud/lib/private/RedisFactory.php","Line":94,"CustomMessage":"--"},"userAgent":"--","version":"19.0.1.1"}
{"reqId":"KgPTzZux7T5IySmzz91M","level":3,"time":"2020-07-24T22:02:21+00:00","remoteAddr":"172.63.63.63","user":"--","app":"no app in context","method":"PROPFIND","url":"/remote.php/dav/calendars/ncuser/cal1/","message":{"Exception":"RedisException","Message":"ERR AUTH <password> called without any password configured for the default user. Are you sure your configuration is correct?","Code":0,"Trace":[{"file":"/usr/share/webapps/nextcloud/lib/private/RedisFactory.php","line":94,"function":"auth","class":"Redis","type":"->"},{"file":"/usr/share/webapps/nextcloud/lib/private/RedisFactory.php","line":108,"function":"create","class":"OC\\RedisFactory","type":"->"},{"file":"/usr/share/webapps/nextcloud/lib/private/Memcache/Redis.php","line":43,"function":"getInstance","class":"OC\\RedisFactory","type":"->"},{"file":"/usr/share/webapps/nextcloud/lib/private/Memcache/Factory.php","line":135,"function":"__construct","class":"OC\\Memcache\\Redis","type":"->"},{"file":"/usr/share/webapps/nextcloud/lib/private/Server.php","line":1021,"function":"createLocking","class":"OC\\Memcache\\Factory","type":"->"},{"file":"/usr/share/webapps/nextcloud/3rdparty/pimple/pimple/src/Pimple/Container.php","line":118,"function":"OC\\{closure}","class":"OC\\Server","type":"->","args":["*** sensitive parameters replaced ***"]},{"file":"/usr/share/webapps/nextcloud/lib/private/ServerContainer.php","line":124,"function":"offsetGet","class":"Pimple\\Container","type":"->"},{"file":"/usr/share/webapps/nextcloud/lib/private/Server.php","line":1970,"function":"query","class":"OC\\ServerContainer","type":"->"},{"file":"/usr/share/webapps/nextcloud/lib/private/Files/View.php","line":118,"function":"getLockingProvider","class":"OC\\Server","type":"->"},{"file":"/usr/share/webapps/nextcloud/lib/private/Server.php","line":810,"function":"__construct","class":"OC\\Files\\View","type":"->"},{"file":"/usr/share/webapps/nextcloud/3rdparty/pimple/pimple/src/Pimple/Container.php","line":118,"function":"OC\\{closure}","class":"OC\\Server","type":"->","args":["*** sensitive parameters replaced ***"]},{"file":"/usr/share/webapps/nextcloud/lib/private/ServerContainer.php","line":124,"function":"offsetGet","class":"Pimple\\Container","type":"->"},{"file":"/usr/share/webapps/nextcloud/lib/private/AppFramework/DependencyInjection/DIContainer.php","line":388,"function":"query","class":"OC\\ServerContainer","type":"->"},{"file":"/usr/share/webapps/nextcloud/lib/private/AppFramework/Utility/SimpleContainer.php","line":71,"function":"query","class":"OC\\AppFramework\\DependencyInjection\\DIContainer","type":"->"},{"file":"/usr/share/webapps/nextcloud/lib/private/AppFramework/Utility/SimpleContainer.php","line":101,"function":"buildClass","class":"OC\\AppFramework\\Utility\\SimpleContainer","type":"->"},{"file":"/usr/share/webapps/nextcloud/lib/private/AppFramework/Utility/SimpleContainer.php","line":116,"function":"resolve","class":"OC\\AppFramework\\Utility\\SimpleContainer","type":"->"},{"file":"/usr/share/webapps/nextcloud/lib/private/AppFramework/DependencyInjection/DIContainer.php","line":414,"function":"query","class":"OC\\AppFramework\\Utility\\SimpleContainer","type":"->"},{"file":"/usr/share/webapps/nextcloud/lib/private/AppFramework/DependencyInjection/DIContainer.php","line":385,"function":"queryNoFallback","class":"OC\\AppFramework\\DependencyInjection\\DIContainer","type":"->"},{"file":"/usr/share/webapps/nextcloud/lib/private/AppFramework/Utility/SimpleContainer.php","line":71,"function":"query","class":"OC\\AppFramework\\DependencyInjection\\DIContainer","type":"->"},{"file":"/usr/share/webapps/nextcloud/lib/private/AppFramework/Utility/SimpleContainer.php","line":101,"function":"buildClass","class":"OC\\AppFramework\\Utility\\SimpleContainer","type":"->"},{"file":"/usr/share/webapps/nextcloud/lib/private/AppFramework/Utility/SimpleContainer.php","line":116,"function":"resolve","class":"OC\\AppFramework\\Utility\\SimpleContainer","type":"->"},{"file":"/usr/share/webapps/nextcloud/lib/private/AppFramework/DependencyInjection/DIContainer.php","line":414,"function":"query","class":"OC\\AppFramework\\Utility\\SimpleContainer","type":"->"},{"file":"/usr/share/webapps/nextcloud/lib/private/AppFramework/DependencyInjection/DIContainer.php","line":385,"function":"queryNoFallback","class":"OC\\AppFramework\\DependencyInjection\\DIContainer","type":"->"},{"file":"/usr/share/webapps/nextcloud/apps/support/lib/AppInfo/Application.php","line":48,"function":"query","class":"OC\\AppFramework\\DependencyInjection\\DIContainer","type":"->"},{"file":"/usr/share/webapps/nextcloud/apps/support/appinfo/app.php","line":27,"function":"register","class":"OCA\\Support\\AppInfo\\Application","type":"->"},{"file":"/usr/share/webapps/nextcloud/lib/private/legacy/OC_App.php","line":266,"args":["/usr/share/webapps/nextcloud/apps/support/appinfo/app.php"],"function":"require_once"},{"file":"/usr/share/webapps/nextcloud/lib/private/legacy/OC_App.php","line":155,"function":"requireAppFile","class":"OC_App","type":"::"},{"file":"/usr/share/webapps/nextcloud/lib/private/legacy/OC_App.php","line":128,"function":"loadApp","class":"OC_App","type":"::"},{"file":"/usr/share/webapps/nextcloud/lib/base.php","line":647,"function":"loadApps","class":"OC_App","type":"::"},{"file":"/usr/share/webapps/nextcloud/lib/base.php","line":1090,"function":"init","class":"OC","type":"::"},{"file":"/usr/share/webapps/nextcloud/remote.php","line":115,"args":["/usr/share/webapps/nextcloud/lib/base.php"],"function":"require_once"}],"File":"/usr/share/webapps/nextcloud/lib/private/RedisFactory.php","Line":94,"CustomMessage":"--"},"userAgent":"DAVx5/3.0-ose2 (2020/05/01; dav4jvm; okhttp/4.5.0) Android/10","version":"19.0.1.1"}
{"reqId":"NEdGGF7geL7kMpWaXmnG","level":3,"time":"2020-07-24T22:15:01+00:00","remoteAddr":"","user":"--","app":"no app in context","method":"","url":"--","message":{"Exception":"RedisException","Message":"ERR AUTH <password> called without any password configured for the default user. Are you sure your configuration is correct?","Code":0,"Trace":[{"file":"/usr/share/webapps/nextcloud/lib/private/RedisFactory.php","line":94,"function":"auth","class":"Redis","type":"->"},{"file":"/usr/share/webapps/nextcloud/lib/private/RedisFactory.php","line":108,"function":"create","class":"OC\\RedisFactory","type":"->"},{"file":"/usr/share/webapps/nextcloud/lib/private/Memcache/Redis.php","line":43,"function":"getInstance","class":"OC\\RedisFactory","type":"->"},{"file":"/usr/share/webapps/nextcloud/lib/private/Memcache/Factory.php","line":135,"function":"__construct","class":"OC\\Memcache\\Redis","type":"->"},{"file":"/usr/share/webapps/nextcloud/lib/private/Server.php","line":1021,"function":"createLocking","class":"OC\\Memcache\\Factory","type":"->"},{"file":"/usr/share/webapps/nextcloud/3rdparty/pimple/pimple/src/Pimple/Container.php","line":118,"function":"OC\\{closure}","class":"OC\\Server","type":"->","args":["*** sensitive parameters replaced ***"]},{"file":"/usr/share/webapps/nextcloud/lib/private/ServerContainer.php","line":124,"function":"offsetGet","class":"Pimple\\Container","type":"->"},{"file":"/usr/share/webapps/nextcloud/lib/private/Server.php","line":1970,"function":"query","class":"OC\\ServerContainer","type":"->"},{"file":"/usr/share/webapps/nextcloud/lib/private/Files/View.php","line":118,"function":"getLockingProvider","class":"OC\\Server","type":"->"},{"file":"/usr/share/webapps/nextcloud/lib/private/Server.php","line":810,"function":"__construct","class":"OC\\Files\\View","type":"->"},{"file":"/usr/share/webapps/nextcloud/3rdparty/pimple/pimple/src/Pimple/Container.php","line":118,"function":"OC\\{closure}","class":"OC\\Server","type":"->","args":["*** sensitive parameters replaced ***"]},{"file":"/usr/share/webapps/nextcloud/lib/private/ServerContainer.php","line":124,"function":"offsetGet","class":"Pimple\\Container","type":"->"},{"file":"/usr/share/webapps/nextcloud/lib/private/AppFramework/DependencyInjection/DIContainer.php","line":388,"function":"query","class":"OC\\ServerContainer","type":"->"},{"file":"/usr/share/webapps/nextcloud/lib/private/AppFramework/Utility/SimpleContainer.php","line":71,"function":"query","class":"OC\\AppFramework\\DependencyInjection\\DIContainer","type":"->"},{"file":"/usr/share/webapps/nextcloud/lib/private/AppFramework/Utility/SimpleContainer.php","line":101,"function":"buildClass","class":"OC\\AppFramework\\Utility\\SimpleContainer","type":"->"},{"file":"/usr/share/webapps/nextcloud/lib/private/AppFramework/Utility/SimpleContainer.php","line":116,"function":"resolve","class":"OC\\AppFramework\\Utility\\SimpleContainer","type":"->"},{"file":"/usr/share/webapps/nextcloud/lib/private/AppFramework/DependencyInjection/DIContainer.php","line":414,"function":"query","class":"OC\\AppFramework\\Utility\\SimpleContainer","type":"->"},{"file":"/usr/share/webapps/nextcloud/lib/private/AppFramework/DependencyInjection/DIContainer.php","line":385,"function":"queryNoFallback","class":"OC\\AppFramework\\DependencyInjection\\DIContainer","type":"->"},{"file":"/usr/share/webapps/nextcloud/lib/private/AppFramework/Utility/SimpleContainer.php","line":71,"function":"query","class":"OC\\AppFramework\\DependencyInjection\\DIContainer","type":"->"},{"file":"/usr/share/webapps/nextcloud/lib/private/AppFramework/Utility/SimpleContainer.php","line":101,"function":"buildClass","class":"OC\\AppFramework\\Utility\\SimpleContainer","type":"->"},{"file":"/usr/share/webapps/nextcloud/lib/private/AppFramework/Utility/SimpleContainer.php","line":116,"function":"resolve","class":"OC\\AppFramework\\Utility\\SimpleContainer","type":"->"},{"file":"/usr/share/webapps/nextcloud/lib/private/AppFramework/DependencyInjection/DIContainer.php","line":414,"function":"query","class":"OC\\AppFramework\\Utility\\SimpleContainer","type":"->"},{"file":"/usr/share/webapps/nextcloud/lib/private/AppFramework/DependencyInjection/DIContainer.php","line":385,"function":"queryNoFallback","class":"OC\\AppFramework\\DependencyInjection\\DIContainer","type":"->"},{"file":"/usr/share/webapps/nextcloud/apps/support/lib/AppInfo/Application.php","line":48,"function":"query","class":"OC\\AppFramework\\DependencyInjection\\DIContainer","type":"->"},{"file":"/usr/share/webapps/nextcloud/apps/support/appinfo/app.php","line":27,"function":"register","class":"OCA\\Support\\AppInfo\\Application","type":"->"},{"file":"/usr/share/webapps/nextcloud/lib/private/legacy/OC_App.php","line":266,"args":["/usr/share/webapps/nextcloud/apps/support/appinfo/app.php"],"function":"require_once"},{"file":"/usr/share/webapps/nextcloud/lib/private/legacy/OC_App.php","line":155,"function":"requireAppFile","class":"OC_App","type":"::"},{"file":"/usr/share/webapps/nextcloud/lib/private/legacy/OC_App.php","line":128,"function":"loadApp","class":"OC_App","type":"::"},{"file":"/usr/share/webapps/nextcloud/lib/base.php","line":647,"function":"loadApps","class":"OC_App","type":"::"},{"file":"/usr/share/webapps/nextcloud/lib/base.php","line":1090,"function":"init","class":"OC","type":"::"},{"file":"/usr/share/webapps/nextcloud/cron.php","line":42,"args":["/usr/share/webapps/nextcloud/lib/base.php"],"function":"require_once"}],"File":"/usr/share/webapps/nextcloud/lib/private/RedisFactory.php","Line":94,"CustomMessage":"--"},"userAgent":"--","version":"19.0.1.1"}

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

{
    "instanceid": "***REMOVED SENSITIVE VALUE***",
    "passwordsalt": "***REMOVED SENSITIVE VALUE***",
    "secret": "***REMOVED SENSITIVE VALUE***",
    "trusted_domains": [
        "my.domain.com"
    ],
    "memcache.local": "\\OC\\Memcache\\APCu",
    "memcache.distributed": "\\OC\\Memcache\\Redis",
    "redis": {
        "host": "***REMOVED SENSITIVE VALUE***",
        "port": 0,
        "dbindex": 0,
        "password": "***REMOVED SENSITIVE VALUE***",
        "timeout": 1.5
    },
    "memcache.locking": "\\OC\\Memcache\\Redis",
    "datadirectory": "***REMOVED SENSITIVE VALUE***",
    "dbtype": "mysql",
    "version": "19.0.1.1",
    "overwrite.cli.url": "https:\/\/my.domain.com",
    "dbname": "***REMOVED SENSITIVE VALUE***",
    "dbhost": "***REMOVED SENSITIVE VALUE***",
    "dbport": "3306",
    "dbtableprefix": "oc_",
    "mysql.utf8mb4": true,
    "dbuser": "***REMOVED SENSITIVE VALUE***",
    "dbpassword": "***REMOVED SENSITIVE VALUE***",
    "installed": true,
    "log_type": "file",
    "logfile": "\/var\/log\/nextcloud-error.log",
    "loglevel": 3,
    "mail_smtpmode": "smtp",
    "mail_smtpsecure": "ssl",
    "mail_sendmailmode": "smtp",
    "mail_from_address": "***REMOVED SENSITIVE VALUE***",
    "mail_domain": "***REMOVED SENSITIVE VALUE***",
    "mail_smtpauthtype": "LOGIN",
    "mail_smtpauth": 1,
    "mail_smtphost": "***REMOVED SENSITIVE VALUE***",
    "mail_smtpport": "465",
    "mail_smtpname": "***REMOVED SENSITIVE VALUE***",
    "mail_smtppassword": "***REMOVED SENSITIVE VALUE***",
    "maintenance": false,
    "theme": "",
    "app_install_overwrite": [
        "files_rightclick",
        "files_reader"
    ]
}

The output of your Apache/nginx/system log in `/var/log/nginx-error.log:

2020/07/24 15:55:14 [warn] 1429#1429: *680 an upstream response is buffered to a temporary file /var/lib/nginx/proxy/1/00/0000000001 while reading upstream, client: 63.63.63.63, server: my.domain.com, request: "GET /loleaflet/a400fc3/bundle.js HTTP/2.0", upstream: "https://127.0.0.1:9980/loleaflet/a400fc3/bundle.js", host: "my.domain.com"
2020/07/24 15:55:14 [warn] 1429#1429: *680 an upstream response is buffered to a temporary file /var/lib/nginx/proxy/2/00/0000000002 while reading upstream, client: 63.63.63.63, server: my.domain.com, request: "GET /loleaflet/a400fc3/bundle.css HTTP/2.0", upstream: "https://127.0.0.1:9980/loleaflet/a400fc3/bundle.css", host: "my.domain.com"

To follow-up on my post, I do not know much about redis, but I have tried various configuration changes to make redis happy, but to no avail.

Until the most recent redis update, I ran the Nextcloud instance without any redis issue whatsoever.

Thank you for you help!

buzz

The obvious needs to be asked first. Your config.php suggests a Redis password. Is that password still showing in your /etc/redis.conf file?

A second but not so obvious place to check is your php.ini and php-fpm pool files if PHP was configured to use Redis as the session handler. Are you also seeing “Redis server went away” in Nextcloud? Last time I saw that error there was a typo in my Redis password for the site’s php-fpm pool file.

1 Like

@RAlm: The “obvious” suggestion was the one that fixed it. Redis 6, as you may know, changed security a bit. To my knowledge, I never entered a password in redis.conf, and I didn’t have this problem previously; perhaps Redis 6 changed that behavior.

Either way, I added this line to the redis.conf file, and the error is gone:

requirepass <PASSWORD_FROM_NEXCLOUD_REDIS_CONFIG_FILE>

It seems there’s a better solution, but I didn’t have time to learn about Redis ACL, which is I think where I need to look next for a long term fix.

Thank you for your help!

buzz

3 Likes

Glad it worked out and you’re welcome.

I do recall reading about better ways to authenticate in Redis 6 (I use 5). Apparently, a study of some kind found that over 60 percent of Redis installations weren’t secured with a password and crypto mining intruders were having a field day. I think that was the impetus for a new security model in version 6. ACL is definitely an improvement but you should be safe with the plain text password in the meantime.

1 Like

I always comment that line, disabling the password for authentication

@castillo92, the redis.conf file for the new Redis 6 had this line commented out, and that’s what was causing the error messages.

For the reasons @RAlm pointed out above, it seems that there needs to be some security on Redis, whether via **requirepass** or ACL.

buzz

1 Like

Oh! It seems yesterday I do not understand the point.

So Redis 6 will force us to setup a password? In that case, the only modification than we must do is to edit the nextcloud config file, right?

@castillo92, in my case, I updated the Nextcloud configuration file and the redis.conf files to ensure the passwords were the same. In Redis 6, the requirepass statement is commented out of the redis.conf file, but in the Nextcloud config file, there is a default password–at least in my instance.

1 Like

Thanks you very much.

I’ll keep an eye out when my Redis is updated. In my case, there is not a redis password in the Nextcloud config file, I will have to write it when Redis be updated

FIRST: THANK YOU. requirepass was the directive I needed. I am using the docker images so i was able to use the environment variables to configure nextcloud, but I needed to create and mount the redis.conf file with the directive you gave us.

Second: I learned not to put the <> on the password – Only cost me a few minutes, but I wasn’t sure if that was some goofy syntax/quoting thing. All good thanks to you!