# Failed to download ".elser\_model\_2"

**URL:** <https://discuss.elastic.co/t/failed-to-download-elser-model-2/358112>\
**Category:** Elasticsearch\
**Created:** [April 24, 2024, 10:49am UTC](https://discuss.elastic.co/t/failed-to-download-elser-model-2/358112 "2024-04-24T10:49:41Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Manoj\_Kumar9](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/manoj_kumar9/32/122338_2.png) [@Manoj\_Kumar9](https://discuss.elastic.co/u/Manoj_Kumar9)\
**Post date:** [April 24, 2024, 10:49am UTC](https://discuss.elastic.co/t/failed-to-download-elser-model-2/358112/1 "2024-04-24T10:49:41Z")

</div>

Getting below error while trying to download ELSER trained model. Please suggest

{  
"statusCode": 400,  
"error": "Bad Request",  
"message": "[illegal\_argument\_exception\n\tCaused by:\n\t\tunchecked\_i\_o\_exception: javax.net.ssl.SSLHandshakeException: PKIX path building failed: sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target\n\tRoot causes:\n\t\tillegal\_argument\_exception: Failed to load package metadata]: Failed to load package metadata",  
"attributes": {  
"body": {  
"error": {  
"root\_cause": [  
{  
"type": "illegal\_argument\_exception",  
"reason": "Failed to load package metadata"  
}  
],  
"type": "illegal\_argument\_exception",  
"reason": "Failed to load package metadata",  
"caused\_by": {  
"type": "unchecked\_i\_o\_exception",  
"reason": "javax.net.ssl.SSLHandshakeException: PKIX path building failed: sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target",  
"caused\_by": {  
"type": "s\_s\_l\_handshake\_exception",  
"reason": "PKIX path building failed: sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target",  
"caused\_by": {  
"type": "validator\_exception",  
"reason": "PKIX path building failed: sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target",  
"caused\_by": {  
"type": "sun\_cert\_path\_builder\_exception",  
"reason": "unable to find valid certification path to requested target"  
}  
}  
}  
}  
},  
"status": 400  
}  
}  
}

---

<div class="post-metadata">

**Author:** ![carly.richmond](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/carly.richmond/32/104935_2.png) [@carly.richmond](https://discuss.elastic.co/u/carly.richmond)\
**Post date:** [April 25, 2024, 9:13am UTC](https://discuss.elastic.co/t/failed-to-download-elser-model-2/358112/2 "2024-04-25T09:13:53Z")

</div>

Hi @Manoj_Kumar9,

Where are you encountering this error? Which version of Elasticsearch and Kibana are you using?

---

<div class="post-metadata">

**Author:** ![Manoj\_Kumar9](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/manoj_kumar9/32/122338_2.png) [@Manoj\_Kumar9](https://discuss.elastic.co/u/Manoj_Kumar9)\
**Post date:** [April 25, 2024, 9:22am UTC](https://discuss.elastic.co/t/failed-to-download-elser-model-2/358112/3 "2024-04-25T09:22:56Z")

</div>

Hi @carly.richmond

Thanks for the response.

I am trying out in my local instance with the version of 8.12.1 Elastic search and Kibana.

Please confirm we need to import any SSL certificate in kibana?

---

<div class="post-metadata">

**Author:** ![carly.richmond](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/carly.richmond/32/104935_2.png) [@carly.richmond](https://discuss.elastic.co/u/carly.richmond)\
**Post date:** [April 26, 2024, 8:37am UTC](https://discuss.elastic.co/t/failed-to-download-elser-model-2/358112/4 "2024-04-26T08:37:05Z")

</div>

Hi @Manoj_Kumar9,

Are you running in an airgapped environment? I don't see any steps for installing certificates in the [getting started instructions](https://www.elastic.co/guide/en/machine-learning/current/ml-nlp-elser.html#elser-req).

Can you check you meed the minimum subscription and memory requirements as covered [here in the documentation](https://www.elastic.co/guide/en/machine-learning/8.12/ml-nlp-elser.html#elser-req)? Alternatively upgrading to the latest minor might be worth a try.
