# No index created: IndexCreationException: failed to create index

**URL:** <https://discuss.elastic.co/t/no-index-created-indexcreationexception-failed-to-create-index/18129>\
**Category:** Elasticsearch\
**Created:** [June 16, 2014, 11:22am UTC](https://discuss.elastic.co/t/no-index-created-indexcreationexception-failed-to-create-index/18129 "2014-06-16T11:22:48Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![ElasticSearch\_Users\_](https://avatars.discourse-cdn.com/v4/letter/e/b4bc9f/32.png) [@ElasticSearch\_Users\_](https://discuss.elastic.co/u/ElasticSearch_Users_)\
**Post date:** [June 16, 2014, 11:22am UTC](https://discuss.elastic.co/t/no-index-created-indexcreationexception-failed-to-create-index/18129/1 "2014-06-16T11:22:48Z")

</div>

Logstash: 1.4  
Elasticsearch: 1.2

When trying the examples of 'Logstash 10-minute Tutorial  
[http://www.logstash.net/docs/1.4.1/tutorials/10-minute-walkthrough/](http://www.logstash.net/docs/1.4.1/tutorials/10-minute-walkthrough/)' step  
3 goes wrong. First, the problem is 'embedded' is not accepted, resulting  
in Java-errors. So I changed the output a little bit:  
output {  
stdout {  
codec =\> rubydebug  
}  
elasticsearch\_http {  
host =\> "localhost"  
}  
}

But now, the errors and warnings keep flushing over my screen, which can  
only be stopped by another shell. What caused the problem, I have no idea.

If I didn't misread, the problem is it failed to create an index.

# bin/logstash agent -f hello-search.conf

Using milestone 2 output plugin 'elasticsearch\_http'. This plugin should be  
stable, but if you see strange behavior, please let us know! For more  
information on plugin milestones, see  
[http://logstash.net/docs/1.4.1/plugin-milestones](http://logstash.net/docs/1.4.1/plugin-milestones) {:level=\>:warn}  
testing  
{  
"message" =\> "testing",  
"@version" =\> "1",  
"@timestamp" =\> "2014-06-16T11:03:11.013Z",  
"type" =\> "human",  
"host" =\> "localhost.localdomain"  
}  
Error writing (bulk) to elasticsearch {:response=\>#\<FTW::Response:0x1427d6e0  
@headers=FTW::HTTP::Headers \<{"content-type"=\>"application/json;  
charset=UTF-8", "content-length"=\>"213"}\>, @body=\<FTW::Connection(@4036)  
@destinations=["localhost:9200"] @connected=true  
@remote\_address="127.0.0.1" @secure=false \>, @status=500, @reason="",  
@logger=#\<Cabin::Channel:0x37e7135 @subscriber\_lock=#Mutex:0x623a505d,  
@data={}, @metrics=#\<Cabin::Metrics:0x62723c0c  
@channel=#\<Cabin::Channel:0x37e7135 ...\>, @metrics={},  
@metrics\_lock=#Mutex:0x39c46a52\>, @subscribers={}, @level=:info\>,  
@version=1.1\>,  
:response\_body=\>"{"error":"IndexCreationException[[logstash-2014.06.16]  
failed to create index]; nested: NoClassDefFoundError[Could not initialize  
class org.elasticsearch.index.codec.postingsformat.PostingFormats];  
","status":500}", :request\_body=\>"", :level=\>:error}  
Failed to flush outgoing items {:outgoing\_count=\>1, :exception=\>RuntimeError  
, :backtrace=\>["/opt/logstash/lib/logstash/outputs/elasticsearch\_http.rb:240:in  
`post'", "/opt/logstash/lib/logstash/outputs/elasticsearch_http.rb:213:in`flush'", "/opt/logstash/vendor/bundle/jruby/1.9/gems/stud-0.0.17/lib/stud/buffer.rb:219:in  
`buffer_flush'", "org/jruby/RubyHash.java:1339:in`each'", "/opt/logstash/vendor/bundle/jruby/1.9/gems/stud-0.0.17/lib/stud/buffer.rb:216:in  
`buffer_flush'", "/opt/logstash/vendor/bundle/jruby/1.9/gems/stud-0.0.17/lib/stud/buffer.rb:159:in`buffer\_receive'", "/opt/logstash/lib/logstash/outputs/elasticsearch\_http.rb:191:in  
`receive'", "/opt/logstash/lib/logstash/outputs/base.rb:86:in`handle'", "(eval):21:in  
`initialize'", "org/jruby/RubyProc.java:271:in`call'", "/opt/logstash/lib/logstash/pipeline.rb:266:in  
`output'", "/opt/logstash/lib/logstash/pipeline.rb:225:in`outputworker'", "/opt/logstash/lib/logstash/pipeline.rb:152:in  
`start\_outputs'"], :level=\>:warn}  
... (etcetera)

--  
You received this message because you are subscribed to the Google Groups "elasticsearch" group.  
To unsubscribe from this group and stop receiving emails from it, send an email to [elasticsearch+unsubscribe@googlegroups.com](mailto:elasticsearch+unsubscribe@googlegroups.com).  
To view this discussion on the web visit [https://groups.google.com/d/msgid/elasticsearch/21e4eecd-cb31-4683-ad7e-67f6e46b88dd%40googlegroups.com](https://groups.google.com/d/msgid/elasticsearch/21e4eecd-cb31-4683-ad7e-67f6e46b88dd%40googlegroups.com).  
For more options, visit [https://groups.google.com/d/optout](https://groups.google.com/d/optout).

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/elastic/original/3X/1/a/1ac57faf039f6b580b3f104ef42a2a89e41014de.png) [@system](https://discuss.elastic.co/u/system)\
**Post date:** [July 6, 2017, 1:22am UTC](https://discuss.elastic.co/t/no-index-created-indexcreationexception-failed-to-create-index/18129/2 "2017-07-06T01:22:17Z")

</div>


