# I\_o\_exception Invalid argument error when taking snapshot

**URL:** <https://discuss.elastic.co/t/i-o-exception-invalid-argument-error-when-taking-snapshot/212144>\
**Category:** Elasticsearch\
**Created:** [December 17, 2019, 11:13am UTC](https://discuss.elastic.co/t/i-o-exception-invalid-argument-error-when-taking-snapshot/212144 "2019-12-17T11:13:40Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![ion\_popa](https://avatars.discourse-cdn.com/v4/letter/i/77aa72/32.png) [@ion\_popa](https://discuss.elastic.co/u/ion_popa)\
**Post date:** [December 17, 2019, 11:13am UTC](https://discuss.elastic.co/t/i-o-exception-invalid-argument-error-when-taking-snapshot/212144/1 "2019-12-17T11:13:40Z")

</div>

Hello,

I'm getting the following error when trying to take a snapshot of an Elasticsearch cluster.

> {  
> "error" : {  
> "root\_cause" : [  
> {  
> "type" : "snapshot\_creation\_exception",  
> "reason" : "[backup:snapshot\_2/abcjahdkiaudiadi] failed to create snapshot"  
> }  
> ],  
> "type" : "snapshot\_creation\_exception",  
> "reason" : "[backup:snapshot\_2/abcjahdkiaudiadi] failed to create snapshot",  
> "caused\_by" : {  
> "type" : "i\_o\_exception",  
> "reason" : "Invalid argument"  
> }  
> },  
> "status" : 500  
> }

Could somebody please explain what this could be related to ? Is it RAM related ?

Just to summarize, the version of Elasticsearch is 5.6.1, the repo is pointing to an NFS drive and it does have elasticsearch:elasticsearch permissions. I also had no problems creating the repo.

Thanks.

---

<div class="post-metadata">

**Author:** ![Armin\_Braun](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/armin_braun/32/20092_2.png) [@Armin\_Braun](https://discuss.elastic.co/u/Armin_Braun)\
**Post date:** [December 17, 2019, 11:44am UTC](https://discuss.elastic.co/t/i-o-exception-invalid-argument-error-when-taking-snapshot/212144/2 "2019-12-17T11:44:19Z")

</div>

Hi @ion_popa

> Could somebody please explain what this could be related to ?

It's hard to say from just the exception I'm seeing alone. Could you check your log files around the time of the failure, they should contain a warning logged with additional details on the exception.

> Is it RAM related ?

Almost certainly not.

---

<div class="post-metadata">

**Author:** ![ion\_popa](https://avatars.discourse-cdn.com/v4/letter/i/77aa72/32.png) [@ion\_popa](https://discuss.elastic.co/u/ion_popa)\
**Post date:** [December 17, 2019, 4:56pm UTC](https://discuss.elastic.co/t/i-o-exception-invalid-argument-error-when-taking-snapshot/212144/3 "2019-12-17T16:56:17Z")

</div>

Hi @Armin_Braun - I've already checked the elastic log and all I'm getting is "Caused by: java.io.IOException: Invalid argument" and "failed to create snapshot [snapshot name]" Nothing more to help pinpoint to the problem unfortunately.

---

<div class="post-metadata">

**Author:** ![Armin\_Braun](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/armin_braun/32/20092_2.png) [@Armin\_Braun](https://discuss.elastic.co/u/Armin_Braun)\
**Post date:** [December 17, 2019, 4:58pm UTC](https://discuss.elastic.co/t/i-o-exception-invalid-argument-error-when-taking-snapshot/212144/4 "2019-12-17T16:58:45Z")

</div>

@ion_popa could you still paste the stack trace logged for that exception maybe? (there should be a stack trace logged) I think that might be sufficient to understand the root cause here.

thanks!

---

<div class="post-metadata">

**Author:** ![spinscale](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/spinscale/32/25011_2.png) [@spinscale](https://discuss.elastic.co/u/spinscale)\
**Post date:** [December 17, 2019, 4:59pm UTC](https://discuss.elastic.co/t/i-o-exception-invalid-argument-error-when-taking-snapshot/212144/5 "2019-12-17T16:59:47Z")

</div>

you can also add the `error_trace=true` parameter to your request to hopfully add the full stack trace.

---

<div class="post-metadata">

**Author:** ![ion\_popa](https://avatars.discourse-cdn.com/v4/letter/i/77aa72/32.png) [@ion\_popa](https://discuss.elastic.co/u/ion_popa)\
**Post date:** [December 17, 2019, 5:07pm UTC](https://discuss.elastic.co/t/i-o-exception-invalid-argument-error-when-taking-snapshot/212144/6 "2019-12-17T17:07:10Z")

</div>

@spinscale and also @Armin_Braun - it seems to work now ! I can take a backup without issues, a couple of hours ago it didn't work. Very weird ! I wonder if it was something related with the fact that it was a new NFS share and something wasn't configured on that end.

---

<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:** [January 14, 2020, 5:07pm UTC](https://discuss.elastic.co/t/i-o-exception-invalid-argument-error-when-taking-snapshot/212144/7 "2020-01-14T17:07:14Z")

</div>

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.
