Skip to content

nextcloud breaks with redis upgrade 5 to 6  #1411

Description

@fredericrous

I was seeing the following error in the logging pane of nextcloud. I was using version 19 (tag "19", the latest one)

RedisException: ERR AUTH <password> 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

Then I saw this bug report where people were having a similar issue:
https://help.nextcloud.com/t/solved-latest-docker-image-broke-the-installation-redis-password-auth/87598/18

I thought the following PR was the fix but it isn't: #1232

I thought that upgrading to version "20" would solve the issue because the fix was definitely not in image "19". Nextcloud wouldn't boot anymore like it is for the people reporting the issue I just linked. Full stack trace bellow

nextcloud_nextcloud.1.p331g2jxciu9@DADDYSHOME    | Configuring Redis as session handler
nextcloud_nextcloud.1.p331g2jxciu9@DADDYSHOME    | Initializing nextcloud 20.0.7.1 ...
nextcloud_nextcloud.1.p331g2jxciu9@DADDYSHOME    | Upgrading nextcloud from 19.0.8.1 ...
nextcloud_nextcloud.1.p331g2jxciu9@DADDYSHOME    | Initializing finished
nextcloud_nextcloud.1.p331g2jxciu9@DADDYSHOME    | An unhandled exception has been thrown:
nextcloud_nextcloud.1.p331g2jxciu9@DADDYSHOME    | RedisException: ERR AUTH <password> 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
nextcloud_nextcloud.1.p331g2jxciu9@DADDYSHOME    | Stack trace:
nextcloud_nextcloud.1.p331g2jxciu9@DADDYSHOME    | #0 /var/www/html/lib/private/RedisFactory.php(94): Redis->auth(false)
nextcloud_nextcloud.1.p331g2jxciu9@DADDYSHOME    | #1 /var/www/html/lib/private/RedisFactory.php(108): OC\RedisFactory->create()
nextcloud_nextcloud.1.p331g2jxciu9@DADDYSHOME    | #2 /var/www/html/lib/private/Memcache/Redis.php(43): OC\RedisFactory->getInstance()
nextcloud_nextcloud.1.p331g2jxciu9@DADDYSHOME    | #3 /var/www/html/lib/private/Memcache/Factory.php(135): OC\Memcache\Redis->__construct('6d17c6d689e1626...')
nextcloud_nextcloud.1.p331g2jxciu9@DADDYSHOME    | #4 /var/www/html/lib/private/Server.php(1018): OC\Memcache\Factory->createLocking('lock')
nextcloud_nextcloud.1.p331g2jxciu9@DADDYSHOME    | #5 /var/www/html/lib/private/AppFramework/Utility/SimpleContainer.php(155): OC\Server->OC\{closure}(Object(OC\Server))
nextcloud_nextcloud.1.p331g2jxciu9@DADDYSHOME    | #6 /var/www/html/3rdparty/pimple/pimple/src/Pimple/Container.php(118): OC\AppFramework\Utility\SimpleContainer->OC\AppFramework\Utility\{closure}(Object(Pimple\Container))
nextcloud_nextcloud.1.p331g2jxciu9@DADDYSHOME    | #7 /var/www/html/lib/private/AppFramework/Utility/SimpleContainer.php(122): Pimple\Container->offsetGet('OCP\\Lock\\ILocki...')
nextcloud_nextcloud.1.p331g2jxciu9@DADDYSHOME    | #8 /var/www/html/lib/private/ServerContainer.php(156): OC\AppFramework\Utility\SimpleContainer->query('OCP\\Lock\\ILocki...', true)
nextcloud_nextcloud.1.p331g2jxciu9@DADDYSHOME    | #9 /var/www/html/lib/private/Server.php(1977): OC\ServerContainer->query('OCP\\Lock\\ILocki...')
nextcloud_nextcloud.1.p331g2jxciu9@DADDYSHOME    | #10 /var/www/html/lib/private/Files/View.php(118): OC\Server->getLockingProvider()
nextcloud_nextcloud.1.p331g2jxciu9@DADDYSHOME    | #11 /var/www/html/lib/private/Server.php(395): OC\Files\View->__construct()
nextcloud_nextcloud.1.p331g2jxciu9@DADDYSHOME    | #12 /var/www/html/lib/private/AppFramework/Utility/SimpleContainer.php(155): OC\Server->OC\{closure}(Object(OC\Server))
nextcloud_nextcloud.1.p331g2jxciu9@DADDYSHOME    | #13 /var/www/html/3rdparty/pimple/pimple/src/Pimple/Container.php(118): OC\AppFramework\Utility\SimpleContainer->OC\AppFramework\Utility\{closure}(Object(Pimple\Container))
nextcloud_nextcloud.1.p331g2jxciu9@DADDYSHOME    | #14 /var/www/html/lib/private/AppFramework/Utility/SimpleContainer.php(122): Pimple\Container->offsetGet('OC\\Files\\Node\\H...')
nextcloud_nextcloud.1.p331g2jxciu9@DADDYSHOME    | #15 /var/www/html/lib/private/ServerContainer.php(156): OC\AppFramework\Utility\SimpleContainer->query('OC\\Files\\Node\\H...', true)
nextcloud_nextcloud.1.p331g2jxciu9@DADDYSHOME    | #16 /var/www/html/lib/private/Server.php(1324): OC\ServerContainer->query('OC\\Files\\Node\\H...')
nextcloud_nextcloud.1.p331g2jxciu9@DADDYSHOME    | #17 /var/www/html/lib/base.php(595): OC\Server->boot()
nextcloud_nextcloud.1.p331g2jxciu9@DADDYSHOME    | #18 /var/www/html/lib/base.php(1091): OC::init()
nextcloud_nextcloud.1.p331g2jxciu9@DADDYSHOME    | #19 /var/www/html/console.php(49): require_once('/var/www/html/l...')
nextcloud_nextcloud.1.p331g2jxciu9@DADDYSHOME    | #20 /var/www/html/occ(11): require_once('/var/www/html/c...')
nextcloud_nextcloud.1.p331g2jxciu9@DADDYSHOME    | #21 {main}nextcloud_nextcloud.1.v5n5m4pkfa4s@DADDYSHOME    | Configuring Redis as session handler

Adding a password to redis was not a solution for me because other images use the same redis and these images cannot be configured to authenticate with redis. I downgraded to version 5 of redis and nextcloud is now up and running again.

I am not sure but believe the issue I'm having is similar to #1404

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions