Error: DocumentAlreadyExistsException[[config][4.2.1]: document already exists #5519

aaae opened this Issue Nov 29, 2015 · 8 comments


None yet

7 participants

aaae commented Nov 29, 2015

Elasticsearch error log here:

[2015-11-29 14:01:33,155][INFO ][rest.suppressed          ] /.kibana/config/4.2.1 Params: {index=.kibana, op_type=create, id=4.2.1, type=config}
[.kibana][[.kibana][0]] DocumentAlreadyExistsException[[config][4.2.1]: document already exists]
    at org.elasticsearch.index.engine.InternalEngine.innerCreateNoLock(
    at org.elasticsearch.index.engine.InternalEngine.innerCreate(
    at org.elasticsearch.index.engine.InternalEngine.create(
    at org.elasticsearch.index.shard.IndexShard.create(
    at org.elasticsearch.index.engine.Engine$Create.execute(
    at org.elasticsearch.action.index.TransportIndexAction.shardOperationOnPrimary(
    at java.util.concurrent.ThreadPoolExecutor.runWorker(
    at java.util.concurrent.ThreadPoolExecutor$


my envs :

es 2.1 & kibana 4.2
centos 6.7 x64
jdk 1.8.0-u66

Any workaround, how can we fix it? appreciate your help. thank you.

ebuildy commented Nov 30, 2015

Remove document .kibana/config/4.2.1

curl -XDELETE /.kibana/config/4.2.1

Indeed, remove the existing one

@rashidkpc rashidkpc closed this Nov 30, 2015
aaae commented Dec 1, 2015

@ebuildy thank you.

lbjay commented Jan 5, 2016

Pardon me. Just adding a note here in case some future fool (like myself) forgets to revert "index.refresh_interval" from -1 back to the default after a bulk ingest. A fresh kibana install will show this error and no amount of -XDELETE-ing will fix it.


Got the same problem with 4.3.1-linux-x64 (refresh interval is 5 seconds)
But if one deletes the Kibana config, all existing configurations are lost. How to deal with it?


Do I have to delete the Kibana Index on every Server restart?

spalger commented Jan 18, 2016

@megastef you shouldn't have to clear out the configuration. Does this happen every time you restart? Thats definitely a bug if so. Please open a new ticket describing what is happening.

kjelle commented Jan 28, 2016

Same happens to me. Kibana 4.3.0 on Elasticsearch 2.1.1.
I delete and after a few seconds its back.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment