# Snapshot api: Failed to derive xcontent from (offset=0, length=0)

**URL:** <https://discuss.elastic.co/t/snapshot-api-failed-to-derive-xcontent-from-offset-0-length-0/23152>\
**Category:** Elasticsearch\
**Created:** [April 8, 2015, 2:33pm UTC](https://discuss.elastic.co/t/snapshot-api-failed-to-derive-xcontent-from-offset-0-length-0/23152 "2015-04-08T14:33:02Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Robert\_Walter](https://avatars.discourse-cdn.com/v4/letter/r/71e660/32.png) [@Robert\_Walter](https://discuss.elastic.co/u/Robert_Walter)\
**Post date:** [April 8, 2015, 2:33pm UTC](https://discuss.elastic.co/t/snapshot-api-failed-to-derive-xcontent-from-offset-0-length-0/23152/1 "2015-04-08T14:33:02Z")

</div>

Hi,

unfortunately during the easter holidays the backup space of our ES cluster  
was running out of diskspace.

We added some diskspace to the backup location, but we are getting this  
error when ES is trying to access the Repo:

curl -XGET 'localhost:9200/\_snapshot/backup/\_all?pretty'

{

"error" :  
"RemoteTransportException[[elasticsearch2][inet[/192.168.xxx.xxx:9300]][cluster:admin/snapshot/get]];  
nested: ElasticsearchParseException[Failed to derive xcontent from  
(offset=0, length=0): []]; ",

"status" : 400  
}

ES is also not able to create new snapshots in this repo. There is noting  
about this topic in the logfiles (not on the master and not on the nodes).  
The backup space is mounted and read/write able on all nodes.

Can anybody tell me how i can get the repo back working or how i can debug  
this problem?

Best regards,

Robert

--  
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/a011124a-2b58-4320-9e93-1ce16bc54bdb%40googlegroups.com](https://groups.google.com/d/msgid/elasticsearch/a011124a-2b58-4320-9e93-1ce16bc54bdb%40googlegroups.com).  
For more options, visit [https://groups.google.com/d/optout](https://groups.google.com/d/optout).

---

<div class="post-metadata">

**Author:** ![whzcl](https://avatars.discourse-cdn.com/v4/letter/w/eb8c5e/32.png) [@whzcl](https://discuss.elastic.co/u/whzcl)\
**Post date:** [August 17, 2016, 1:17pm UTC](https://discuss.elastic.co/t/snapshot-api-failed-to-derive-xcontent-from-offset-0-length-0/23152/2 "2016-08-17T13:17:45Z")

</div>

I have already met this problem. I wonder the answers as well.

---

<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 5, 2017, 10:27pm UTC](https://discuss.elastic.co/t/snapshot-api-failed-to-derive-xcontent-from-offset-0-length-0/23152/3 "2017-07-05T22:27:13Z")

</div>


