Nextcloud docker - unhandled exception after backup

Hi community,
I’m running the dockerized nextcloud-fpm container (latest 19.0.0) with mariadb nginx proxy and redis for months without problems.
Every night a backup script runs (borgbackup). One of the first steps of this scripts is switching nextcloud maintenance mode on. Today it didn’t switch off again after borg finished.
Instead this error is thrown:

An unhandled exception has been thrown:
RedisException: ERR AUTH called without any password configured for the default user. Are you sure your configuration is correct? in /var/www/html/lib/private/RedisFactory.php:94
Stack trace:
#0 /var/www/html/lib/private/RedisFactory.php(94): Redis->auth(false)
#1 /var/www/html/lib/private/RedisFactory.php(108): OC\RedisFactory->create()
#2 /var/www/html/lib/private/Memcache/Redis.php(43): OC\RedisFactory->getInstance()
#3 /var/www/html/lib/private/Memcache/Factory.php(135): OC\Memcache\Redis->__construct(‘dcc2f58826f306b…’)
#4 /var/www/html/lib/private/Server.php(1021): OC\Memcache\Factory->createLocking(‘lock’)
#5 /var/www/html/3rdparty/pimple/pimple/src/Pimple/Container.php(118): OC\Server->OC{closure}(Object(OC\Server))
#6 /var/www/html/lib/private/ServerContainer.php(124): Pimple\Container->offsetGet(‘OCP\Lock\ILocki…’)
#7 /var/www/html/lib/private/Server.php(1970): OC\ServerContainer->query(‘OCP\Lock\ILocki…’)
#8 /var/www/html/lib/private/Files/View.php(118): OC\Server->getLockingProvider()
#9 /var/www/html/lib/private/Server.php(299): OC\Files\View->__construct()
#10 /var/www/html/3rdparty/pimple/pimple/src/Pimple/Container.php(118): OC\Server->OC{closure}(Object(OC\Server))
#11 /var/www/html/lib/private/ServerContainer.php(124): Pimple\Container->offsetGet(‘OCP\Encryption\…’)
#12 /var/www/html/lib/private/Server.php(1443): OC\ServerContainer->query(‘OCP\Encryption\…’)
#13 /var/www/html/lib/base.php(843): OC\Server->getEncryptionManager()
#14 /var/www/html/lib/base.php(728): OC::registerEncryptionWrapper()
#15 /var/www/html/lib/base.php(1090): OC::init()
#16 /var/www/html/console.php(49): require_once(’/var/www/html/l…’)
#17 /var/www/html/occ(11): require_once(’/var/www/html/c…’)

It seems to be a redis misconfiguration but I can’t figure it out.
Redis container runs with default config. I don’t use a customized redis.conf
Any suggestions?

Regards
Stefan

1 Like

same here: i pulled new images in my nextcloud docker-compose setup and now i get an 500 with the same error:
ERR AUTH <password> called without any password configured for the default user. Are you sure your configuration is correct?

also default redis without any customizing

my workaround:

  1. remove REDIS_HOST from docker env
  2. remove redis config from config.php of nextcloud
  3. set maintance to false
  4. restart setup

=> fine without redis configured … but no real solution for users, who need the redis performance boost

THX Dakkar,

This workaround helped!
I hope that a final solution for this problem arrives soon…

If you need to use redis, this solution nailed it for me.

1 Like

Hi nachoesmith,
This solved it.
Thank you for this hint.