# ES snapshot getting failed when ES pod get restarted

**URL:** <https://discuss.elastic.co/t/es-snapshot-getting-failed-when-es-pod-get-restarted/357125>\
**Category:** Elasticsearch\
**Created:** [April 10, 2024, 10:35am UTC](https://discuss.elastic.co/t/es-snapshot-getting-failed-when-es-pod-get-restarted/357125 "2024-04-10T10:35:00Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Nilesh\_Tilani](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/nilesh_tilani/32/124342_2.png) [@Nilesh\_Tilani](https://discuss.elastic.co/u/Nilesh_Tilani)\
**Post date:** [April 10, 2024, 10:35am UTC](https://discuss.elastic.co/t/es-snapshot-getting-failed-when-es-pod-get-restarted/357125/1 "2024-04-10T10:35:00Z")

</div>

Hello Team,  
I have enable the snapshot using below keystore feature  
elasticsearch-keystore add-file gcs.client.default.credentials\_file ./backup.json

but when ES pod get restarted keystore config remove above config  
elasticsearch-keystore add-file gcs.client.default.credentials\_file ./backup.json

and ES snapshot is getting failed as its unable to authorize and unable to locate the bucket information ,  
How to fix this , even if es get restarted it should remain  
I have tried adding the same in yaml file but ES boot take time and its getting failed.
