index_not_found_exception: index_not_found_exception: no such index [index_name] (HTTP 404)
Elasticsearch의미
요청한 인덱스(또는 alias)가 존재하지 않는다. 지정한 이름의 인덱스를 찾을 수 없어 작업이 HTTP 404로 거부되었다.
원인
인덱스가 생성된 적 없음, 삭제됨, 인덱스/alias 이름 오타, 클라이언트가 잘못된 환경(클러스터)에 접속, 또는 action.auto_create_index가 비활성화된 상태에서 존재하지 않는 인덱스에 쓰기 시도.
해결 방법
기존 인덱스를 나열한다: GET _cat/indices?v. 이름과 alias를 확인한다: GET _alias. 인덱스를 생성한다: PUT /index-name(필요한 mappings/settings 포함). 또는 index template으로 자동 생성을 구성한다. 자동 생성을 원한다면 action.auto_create_index 설정을 확인한다. 잘못된 클러스터에 접속하지 않았는지 확인한다.
같은 데이터베이스의 다른 항목
- too_many_clausestoo_many_clauses: maxClauseCount is set to 1024 (query contains too many clauses)
- version_conflict_engine_exceptionversion_conflict_engine_exception: [_doc][id]: version conflict, current version [x] is different than the one provided [y] (HTTP 409)
- document_missing_exceptiondocument_missing_exception: [_doc][id]: document missing
- resource_already_exists_exceptionresource_already_exists_exception: index [index_name/uuid] already exists (HTTP 400)
- cluster_health_redcluster health status: RED / unassigned shards (클러스터 상태 RED / 미할당 샤드)
- no_shard_available_action_exceptionno_shard_available_action_exception: No shard available for [...]
- es_rejected_execution_exceptiones_rejected_execution_exception: rejected execution of ... on ... (queue capacity ...) (HTTP 429)