ERR unknown subcommand: ERR unknown subcommand or wrong number of arguments (알 수 없는 하위 명령 또는 잘못된 인수 개수)
Redis의미
컨테이너 명령(예: CONFIG, CLIENT, ACL, XINFO)이 유효하지 않은 하위 명령을 받았거나 하위 명령에 잘못된 개수의 인수가 전달되었다. Redis가 하위 명령을 인식하지 못했다.
원인
하위 명령 이름 오타, 사용 중인 Redis 버전에 없는 하위 명령, 잘못되었거나 누락된 인수 개수, 또는 잘못된 하위 명령 구문.
해결 방법
올바른 하위 명령 이름과 인수를 사용한다. 명령의 HELP 하위 명령을 참조한다(예: CONFIG HELP, CLIENT HELP). 사용 중인 Redis 버전이 해당 하위 명령을 지원하는지 확인한다. 문서에 따라 인수 개수와 구문을 수정한다.
같은 데이터베이스의 다른 항목
- ERR DUMP payload version or checksum are wrongERR DUMP payload version or checksum are wrong (DUMP 페이로드 버전 또는 체크섬 오류)
- NOREPLICASNOREPLICAS Not enough good replicas to write (쓰기에 필요한 정상 replica 부족)
- ERR This instance has cluster support disabledERR This instance has cluster support disabled (이 인스턴스는 클러스터 지원이 비활성화됨)
- 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 DEBUG command not allowedDEBUG command not allowed
- ERR Can't save in background: fork failedBackground save failed: fork failed
- NOPROTO unsupported protocol versionUnsupported RESP protocol version