ERR DEBUG command not allowed: DEBUG command not allowed
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
- NOPROTO unsupported protocol versionUnsupported RESP protocol version
- 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