RedisException: NOAUTH Authentication required. at <<closure>>
I did install Nextcloud-FPM 27 with Docker combined with mariadb 11 docker and nginx docker and redis docker. (All the latest available prod versions.)
This is beeing thrown every ten minutes when the cronjob gets executed:
[core] Fatal error: RedisException: NOAUTH Authentication required. at <<closure>>
0. /var/www/html/lib/private/Memcache/Redis.php line 72
Redis->get("f1c9f05d6ab11d5 ... s")
1. /var/www/html/lib/private/User/DisplayNameCache.php line 54
OC\Memcache\Redis->get("nextclouduser1")
2. /var/www/html/lib/private/User/Manager.php line 194
OC\User\DisplayNameCache->getDisplayName("nextclouduser1")
3. /var/www/html/apps/text/lib/Service/SessionService.php line 120
OC\User\Manager->getDisplayName("nextclouduser1")
4. <<closure>>
OCA\Text\Service\SessionService->OCA\Text\Service\{closure}("*** sensitive parameters replaced ***")
5. /var/www/html/apps/text/lib/Service/SessionService.php line 117
array_map(["Closure"], ["*** sensitive parameters replaced ***"])
6. /var/www/html/apps/text/lib/Cron/Cleanup.php line 61
OCA\Text\Service\SessionService->getAllSessions(51)
7. /var/www/html/lib/public/BackgroundJob/Job.php line 86
OCA\Text\Cron\Cleanup->run(null)
8. /var/www/html/lib/public/BackgroundJob/TimedJob.php line 103
OCP\BackgroundJob\Job->start(["OC\\BackgroundJob\\JobList"])
9. /var/www/html/lib/public/BackgroundJob/TimedJob.php line 93
OCP\BackgroundJob\TimedJob->start(["OC\\BackgroundJob\\JobList"])
10. /var/www/html/cron.php line 152
OCP\BackgroundJob\TimedJob->execute(["OC\\BackgroundJob\\JobList"], ["OC\\Log"])
at 2023-07-11T18:20:02+00:00
Nextcloud version (eg, 20.0.5): 27
Operating system and version (eg, Ubuntu 20.04): Linux 4b1e9eb3b62c 3.10.108 #64570 SMP Fri Jun 2 23:36:41 CST 2023 x86_64 GNU/Lin ux
Apache or nginx version (eg, Apache 2.4.25): nginx/1.25.1/docker
PHP version (eg, 7.4): PHP 8.2.7 (cli) (built: Jul 4 2023 14:46:05) (NTS) Copyright (c) The PHP Group Zend Engine v4.2.7, Copyright (c) Zend Technologies with Zend OPcache v8.2.7, Copyright (c), by Zend Technologies / nextcloud-fpm-docker
The issue you are facing:
Is this the first time you’ve seen this error? (No):
Steps to replicate it:
- Install all four containers and link/map volumes
- run all containers
- Fix any messages under settings check page
- look at the system error log
The output of your Nextcloud log in Admin > Logging:
[core] Fatal error: RedisException: NOAUTH Authentication required. at <<closure>>
0. /var/www/html/lib/private/Memcache/Redis.php line 72
Redis->get("f1c9f05d6ab11d5 ... s")
1. /var/www/html/lib/private/User/DisplayNameCache.php line 54
OC\Memcache\Redis->get("nextclouduser1")
2. /var/www/html/lib/private/User/Manager.php line 194
OC\User\DisplayNameCache->getDisplayName("nextclouduser1")
3. /var/www/html/apps/text/lib/Service/SessionService.php line 120
OC\User\Manager->getDisplayName("nextclouduser1")
4. <<closure>>
OCA\Text\Service\SessionService->OCA\Text\Service\{closure}("*** sensitive parameters replaced ***")
5. /var/www/html/apps/text/lib/Service/SessionService.php line 117
array_map(["Closure"], ["*** sensitive parameters replaced ***"])
6. /var/www/html/apps/text/lib/Cron/Cleanup.php line 61
OCA\Text\Service\SessionService->getAllSessions(51)
7. /var/www/html/lib/public/BackgroundJob/Job.php line 86
OCA\Text\Cron\Cleanup->run(null)
8. /var/www/html/lib/public/BackgroundJob/TimedJob.php line 103
OCP\BackgroundJob\Job->start(["OC\\BackgroundJob\\JobList"])
9. /var/www/html/lib/public/BackgroundJob/TimedJob.php line 93
OCP\BackgroundJob\TimedJob->start(["OC\\BackgroundJob\\JobList"])
10. /var/www/html/cron.php line 152
OCP\BackgroundJob\TimedJob->execute(["OC\\BackgroundJob\\JobList"], ["OC\\Log"])
at 2023-07-11T18:20:02+00:00
Also i cannot use occ commands which throws the same exception. This leads me somehow to a configuration issue to php not doing a redis auth on cli. Im unaware how to fix this.