# Snapshot and Restore 6.8.8 - Null Pointer Exception after Upgrade from 6.2.4 to 6.8.8

**URL:** <https://discuss.elastic.co/t/snapshot-and-restore-6-8-8-null-pointer-exception-after-upgrade-from-6-2-4-to-6-8-8/239628>\
**Category:** Elasticsearch\
**Created:** [July 2, 2020, 12:07pm UTC](https://discuss.elastic.co/t/snapshot-and-restore-6-8-8-null-pointer-exception-after-upgrade-from-6-2-4-to-6-8-8/239628 "2020-07-02T12:07:25Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Neha\_Wagholikar](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/neha_wagholikar/32/68416_2.png) [@Neha\_Wagholikar](https://discuss.elastic.co/u/Neha_Wagholikar)\
**Post date:** [July 2, 2020, 12:07pm UTC](https://discuss.elastic.co/t/snapshot-and-restore-6-8-8-null-pointer-exception-after-upgrade-from-6-2-4-to-6-8-8/239628/1 "2020-07-02T12:07:25Z")

</div>

Hi,

I have upgraded my ELK from 6.2.4 to 6.8.8.  
Used Azure plugin for Snapshot  
Before Upgrade, my backup was working fine on both Public and Azure Stack.  
After Upgrade ,On public I am able to take backup but on Azure Stack I am not able to take backup , its showing below error :

{  
"error" : {  
"root\_cause" : [  
{  
"type" : "storage\_exception",  
"reason" : "storage\_exception: The value for one of the HTTP headers is not in the correct format."  
}  
],  
"type" : "no\_such\_element\_exception",  
"reason" : "no\_such\_element\_exception: An error occurred while enumerating the result, check the original exception for details.",  
"caused\_by" : {  
"type" : "storage\_exception",  
"reason" : "storage\_exception: The value for one of the HTTP headers is not in the correct format.",  
"caused\_by" : {  
"type" : "null\_pointer\_exception",  
"reason" : null  
}  
}  
},  
"status" : 500  
}

curl -XPUT "http://:9200/\_snapshot/FullBackup-04062020" -H 'Content-Type: application/json' -d'

> ```
> {
> "type": "azure",
> "settings": {
> "compress" : true,
> "container": "elkacf",
> "base_path": "FullBackup-04062020"
> }
> }'
> 
> ```

{"error":{"root\_cause":[{"type":"repository\_verification\_exception","reason":"[FullBackup-04062020] path [FullBackup-04062020] is not accessible on master node"}],"type":"repository\_verification\_exception","reason":"[FullBackup-04062020] path [FullBackup-04062020] is not accessible on master node","caused\_by":{"type":"i\_o\_exception","reason":"Can not write blob master.dat","caused\_by":{"type":"storage\_exception","reason":"storage\_exception: The value for one of the HTTP headers is not in the correct format.","caused\_by":{"type":"null\_pointer\_exception","reason":null}}}},"status":500}

"caused\_by":{"type":"storage\_exception","reason":"storage\_exception: The value for one of the HTTP headers is not in the correct format.",

What are the HTTP headers used in Elasticsearch snapshot?

Added this setting :  
1] azure.client.default.endpoint\_suffix:   
2] bin/elasticsearch-keystore add azure.client.default.account  
3] bin/elasticsearch-keystore add azure.client.default.key

---

<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 30, 2020, 12:07pm UTC](https://discuss.elastic.co/t/snapshot-and-restore-6-8-8-null-pointer-exception-after-upgrade-from-6-2-4-to-6-8-8/239628/2 "2020-07-30T12:07:25Z")

</div>

Closed on July 30, 2020, 12:07pm UTC

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