ERR DEBUG command not allowed: DEBUG command not allowed(DEBUG コマンドは許可されていない)
Redis意味
DEBUG コマンドを実行しようとしたが、サーバーが許可していない。DEBUG は低レベルで危険な診断コマンドであり、セキュリティ上の理由から新しい Redis バージョンではデフォルトで無効化または制限されている。
原因
Redis 7+ では enable-debug-command の設定なしに DEBUG サブコマンドは実行されない。マネージドクラウド Redis サービスでは通常このコマンドが完全に無効化されている。または ACL によってコマンドが拒否されている。テスト/診断スクリプト (例: DEBUG SLEEP、DEBUG OBJECT) がよくこのエラーに遭遇する。
対処方法
本番環境では DEBUG を避ける。ローカル/テスト環境で本当に必要な場合は設定で有効にする: redis.conf に enable-debug-command yes (または 'local')。クラウドサービスでは通常このコマンドは有効化できないため、同等の情報には MEMORY USAGE、OBJECT ENCODING、INFO などの安全なコマンドを使用する。ACL による制限がある場合は権限を見直す。
同じデータベースの他の項目
- ERR This instance has cluster support disabledERR This instance has cluster support disabled(クラスタサポートが無効)
- ERR unknown subcommandERR unknown subcommand or wrong number of arguments(不明なサブコマンドまたは引数の数の誤り)
- ERR Client sent AUTH, but no password is setERR 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)
- 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 の不明なオプションまたは引数の数)
- ERR MULTI calls can not be nestedMULTI calls can not be nested(MULTI はネストできない)