DBAtlas · 数据库运维图谱

ERR Client sent AUTH, but no password is set: ERR AUTH <password> called without any password configured for the default user (Redis 6+) / ERR Client sent AUTH, but no password is set (Redis <6)(调用了 AUTH,但服务器未配置密码)

Redis

含义

客户端尝试用 AUTH 认证,但服务器上未定义密码(requirepass)或 ACL 密码。由于没有可供验证的凭据,AUTH 被拒绝。这种情况下 Redis 6+ 返回 "ERR AUTH <password> called without any password configured for the default user. Are you sure your configuration is correct?";"Client sent AUTH, but no password is set" 是 Redis 6 之前的消息。

原因

服务器上 requirepass 为空、客户端不必要地发送了 AUTH、连接字符串中定义了密码而服务器没有设置密码,或配置不一致。

解决方法

如果服务器不需要密码,从客户端移除 AUTH 命令/密码设置。如果需要密码保护,在服务器上设置 requirepass(CONFIG SET requirepass password),或为 ACL 用户定义密码。使客户端与服务器的配置保持一致。

在 DBAtlas 中打开 →

同一数据库的其他条目