ERR no such key: ERR no such key
Redis의미
작업할 키를 데이터베이스에서 찾을 수 없다. RENAME, DUMP, MOVE처럼 기존 키가 필요한 명령은 존재하지 않는 키에서 동작하지 않는다.
원인
키가 생성된 적 없음, TTL로 만료되어 제거됨, 잘못된 키 이름/철자, 잘못된 데이터베이스(SELECT) 인덱스, 또는 이미 DEL로 삭제됨.
해결 방법
키 존재 여부를 확인한다: EXISTS mykey. 올바른 키 이름과 올바른 데이터베이스(SELECT db)를 사용하는지 확인한다. RENAME은 원본 키가 존재해야 한다. TTL로 만료되는 키에 대한 로직을 검토한다. 필요하면 키를 다시 생성한다.
같은 데이터베이스의 다른 항목
- ERR increment or decrement would overflowERR increment or decrement would overflow (증가 또는 감소 시 오버플로 발생)
- ERR max number of clients reachedERR max number of clients reached (최대 클라이언트 수 도달)
- BUSYKEYBUSYKEY Target key name already exists (대상 키 이름이 이미 존재함)
- 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 unknown subcommandERR unknown subcommand or wrong number of arguments (알 수 없는 하위 명령 또는 잘못된 인수 개수)