redis请求期间的AuthenticationError

2024-10-01 13:38:12 发布

您现在位置:Python中文网/ 问答频道 /正文

在遵循文档之后,我在本地安装了一个在线框架,我可以完美地运行它。然而,在一些服务的启动过程中,我收到了一些Redis身份验证问题

Client sent AUTH, but no password is set

Request Method:     POST
Request URL:    http://127.0.0.1:8000/anouar2002/gentsch-local/sources/upload
Django Version:     3.1.5
Exception Type:     AuthenticationError
Exception Value:    

Client sent AUTH, but no password is set

Exception Location:     /home/anouar/Downloads/hub/manager/venv/lib/python3.8/site-packages/redis/connection.py, line 340, in read_response
Python Executable:  /home/anouar/Downloads/hub/manager/venv/bin/python3
Python Version:     3.8.5
Python Path:    

['/home/anouar/Downloads/hub/manager',
 '/home/anouar/Downloads/hub/manager',
 '/home/anouar/Downloads/hub/manager',
 '/usr/lib/python38.zip',
 '/usr/lib/python3.8',
 '/usr/lib/python3.8/lib-dynload',
 '/home/anouar/Downloads/hub/manager/venv/lib/python3.8/site-packages'

我已尝试使用CONFIG SET requirepass命令更改Redis配置中的密码,但出现错误,密码无效。我试图知道哪个密码用于身份验证,并使其成功


Tags: redisclientauth身份验证密码homevenvlib