index_template_missing_exception: Index template is missing
Elasticsearch의미
참조한 인덱스 템플릿을 찾을 수 없다. 템플릿을 조회, 삭제하거나 템플릿 기반 작업을 수행할 때 존재하지 않는 템플릿 이름을 사용했다.
원인
템플릿 이름의 철자가 틀렸거나, 템플릿이 이미 삭제되었거나, legacy 템플릿 API와 composable index template API를 혼동했거나, 템플릿이 생성된 적이 없는 경우다. 설정 스크립트가 완료되지 않았을 때도 나타난다.
해결 방법
기존 템플릿 목록을 확인한다. composable 템플릿: GET _index_template 또는 GET _index_template/name. legacy 템플릿: GET _template. 올바른 API와 이름으로 재시도한다. 템플릿이 없으면 생성한다: PUT _index_template/name {...}. 삭제/갱신 스크립트를 멱등하게 만들어 템플릿이 없어도 실패하지 않도록 한다.
같은 데이터베이스의 다른 항목
- search_context_missing_exceptionNo search context found for id (scroll expired) (id에 대한 search context 없음)
- aliases_not_found_exceptionAliases missing
- snapshot_missing_exceptionSnapshot is missing
- settings_exceptionInvalid settings
- shard_not_found_exceptionShard not found
- not_x_content_exceptionCompressor detection error / body is not valid content (압축 감지 오류 / 본문이 유효한 콘텐츠가 아님)
- document_source_missing_exceptionDocument source is missing