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 ユーザーにパスワードを定義する。クライアントとサーバーの構成を一致させる。
同じデータベースの他の項目
- NOREPLICASNOREPLICAS Not enough good replicas to write(書き込みに十分な正常レプリカがない)
- ERR This instance has cluster support disabledERR This instance has cluster support disabled(クラスタサポートが無効)
- ERR unknown subcommandERR unknown subcommand or wrong number of arguments(不明なサブコマンドまたは引数の数の誤り)
- ERR DEBUG command not allowedDEBUG command not allowed(DEBUG コマンドは許可されていない)
- ERR Can't save in background: fork failedBackground save failed: fork failed(バックグラウンド保存失敗: fork 失敗)
- NOPROTO unsupported protocol versionUnsupported RESP protocol version(サポートされない RESP プロトコルバージョン)
- ERR Unknown option or number of arguments for CONFIG SETUnknown option or number of arguments for CONFIG SET (older versions: Unsupported CONFIG parameter)(CONFIG SET の不明なオプションまたは引数の数)