# RemoteTransportException when tring to index with Elasticsearch in Rails using Tire gem

**URL:** <https://discuss.elastic.co/t/remotetransportexception-when-tring-to-index-with-elasticsearch-in-rails-using-tire-gem/12679>\
**Category:** Elasticsearch\
**Created:** [July 5, 2013, 2:59pm UTC](https://discuss.elastic.co/t/remotetransportexception-when-tring-to-index-with-elasticsearch-in-rails-using-tire-gem/12679 "2013-07-05T14:59:10Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Drew\_Sheneman](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/drew_sheneman/32/2244_2.png) [@Drew\_Sheneman](https://discuss.elastic.co/u/Drew_Sheneman)\
**Post date:** [July 5, 2013, 2:59pm UTC](https://discuss.elastic.co/t/remotetransportexception-when-tring-to-index-with-elasticsearch-in-rails-using-tire-gem/12679/1 "2013-07-05T14:59:10Z")

</div>

I have started Elasticsearch on a server which I am trying to connect to my  
Rails app. I am able to access ES via curl, however cannot create an index.  
'Projects' is the name of my model.

**tire.rb**

```
require 'tire'
Tire.configure { url "http://[Server IP]:9200" }

```

**Index command output** :

```
[IMPORT] Deleting index 'projects'
# 2013-07-05 10:52:44:309 [DELETE] ("projects")
#
curl -X DELETE http://[Server IP]:9200/projects

# 2013-07-05 10:52:44:314 [404]
#
# {"error":"IndexMissingException[[projects] missing]","status":404}

# 2013-07-05 10:52:44:327 [HEAD] ("projects")
#
curl -I "http://[Server IP]:9200/projects"

# 2013-07-05 10:52:44:327 [404]

[IMPORT] Creating index 'projects' with mapping:
{"project":{"properties":{}}}
# 2013-07-05 10:52:44:394 [CREATE] ("projects")
#
curl -X POST http://[Server IP]:9200/projects -d 

```

'{"mappings":{"project":{"properties":{}}},"settings":{}}'

```
# 2013-07-05 10:52:44:394 [500]
#
# {"error":"RemoteTransportException[Failed to deserialize exception 

```

response from stream]; nested: TransportSerializationException[Failed to  
deserialize exception response from stream]; nested:  
StreamCorruptedException[unexpected end of block data]; ","status":500}

```
[ERROR] There has been an error when creating the index -- 

```

Elasticsearch returned:  
500 : {"error":"RemoteTransportException[Failed to deserialize  
exception response from stream]; nested:  
TransportSerializationException[Failed to deserialize exception response  
from stream]; nested: StreamCorruptedException[unexpected end of block  
data]; ","status":500}

Has anyone else run into this error? ES is on a separate server and I am  
simply trying to use it for searching in development mode at the moment.  
Any help is appreciated.

--  
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).  
For more options, visit [https://groups.google.com/groups/opt\_out](https://groups.google.com/groups/opt_out).

---

<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, 2:28am UTC](https://discuss.elastic.co/t/remotetransportexception-when-tring-to-index-with-elasticsearch-in-rails-using-tire-gem/12679/2 "2017-07-06T02:28:01Z")

</div>

Closed on July 6, 2017, 2:28am UTC


