# ElasticsearchException\[Failure running machine learning native code

**URL:** <https://discuss.elastic.co/t/elasticsearchexception-failure-running-machine-learning-native-code/214439>\
**Category:** Elasticsearch\
**Created:** [January 9, 2020, 1:57pm UTC](https://discuss.elastic.co/t/elasticsearchexception-failure-running-machine-learning-native-code/214439 "2020-01-09T13:57:35Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![fekade](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/fekade/32/60555_2.png) [@fekade](https://discuss.elastic.co/u/fekade)\
**Post date:** [January 9, 2020, 1:57pm UTC](https://discuss.elastic.co/t/elasticsearchexception-failure-running-machine-learning-native-code/214439/1 "2020-01-09T13:57:35Z")

</div>

please any support in below issue when new installation of ES 7.5.1 and Kibana..

Elastic 7.5.1 and kibana7.5.1 new installation on the same windows server, I used elastic 7.5.1 msi windows installer and installation successful.

when I try to run kibana bat files it displays below screenshot

 ![image](https://us1.discourse-cdn.com/elastic/original/3X/6/1/6118ba1d8ba8c5943ccb396f200f3472aa639744.png)

please advise..?

---

<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:** [January 9, 2020, 3:28pm UTC](https://discuss.elastic.co/t/elasticsearchexception-failure-running-machine-learning-native-code/214439/2 "2020-01-09T15:28:16Z")

</div>

please take your time and properly explain your issue. This also means, that you should try to include the full exception from your logs including the stack trace (if it is there) as well as the operating system you are using.

Thanks!

---

<div class="post-metadata">

**Author:** ![fekade](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/fekade/32/60555_2.png) [@fekade](https://discuss.elastic.co/u/fekade)\
**Post date:** [January 10, 2020, 1:40pm UTC](https://discuss.elastic.co/t/elasticsearchexception-failure-running-machine-learning-native-code/214439/3 "2020-01-10T13:40:15Z")

</div>

thank you for your reply

Elastic 7.5.1 and kibana7.5.1 new installation on the same windows server 2016, I used elastic 7.5.1 msi windows installer and installation successful.

when I try to run kibana bat files it displays below screenshot

 ![image](https://us1.discourse-cdn.com/elastic/original/3X/6/1/6118ba1d8ba8c5943ccb396f200f3472aa639744.png)

Elastic search yml  
bootstrap.memory\_lock: false  
cluster.name: elasticsearch  
http.port: 9200  
node.data: true  
node.ingest: true  
node.master: true  
node.max\_local\_storage\_nodes: 1  
node.name: Test-HQ-SEG  
path.data: C:\ProgramData\Elastic\Elasticsearch\data  
path.logs: C:\ProgramData\Elastic\Elasticsearch\logs  
transport.tcp.port: 9300  
xpack.license.self\_generated.type: trial  
xpack.security.enabled: true

kibana yml is not changed it's default one

---

<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:** [January 10, 2020, 2:15pm UTC](https://discuss.elastic.co/t/elasticsearchexception-failure-running-machine-learning-native-code/214439/4 "2020-01-10T14:15:29Z")

</div>

you seem to have replaced and changed the content of the initial issue after my reply, which makes this super hard to read and understand. Also now it is about kibana where it was earlier about Elasticsearch.

Also, please do not use screenshots, but rather snippets (or a gist or a pastebin) to put log snippets somewhere, as this is super hard to read.

Thanks!

---

<div class="post-metadata">

**Author:** ![fekade](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/fekade/32/60555_2.png) [@fekade](https://discuss.elastic.co/u/fekade)\
**Post date:** [January 10, 2020, 3:10pm UTC](https://discuss.elastic.co/t/elasticsearchexception-failure-running-machine-learning-native-code/214439/5 "2020-01-10T15:10:07Z")

</div>

Sorry for that, elasticsearch installation is successful, the problem is running kibana

c:\kibana-7.5.1-windows-x86\_64\>.\bin\kibana log [15:05:40.869] [info][plugins-system] Setting up [15] plugins: [security,licensing,code,timelion,features,spaces,translations,uiActions,newsfeed,inspector,embeddable,advancedUiActions,expressions,eui\_utils,data]  
log [15:05:40.876] [info][plugins][security] Setting up plugin  
log [15:05:40.877] [warning][config][plugins][security] Generating a random key for xpack.security.encryptionKey. To prevent sessions from being invalidated on restart, please set xpack.security.encryptionKey in kibana.yml  
log [15:05:40.878] [warning][config][plugins][security] Session cookies will be transmitted over insecure connections. This is not recommended.  
log [15:05:40.886] [info][licensing][plugins] Setting up plugin  
log [15:05:40.888] [info][code][plugins] Setting up plugin  
log [15:05:40.889] [info][plugins][timelion] Setting up plugin  
log [15:05:40.890] [info][features][plugins] Setting up plugin  
log [15:05:40.890] [info][plugins][spaces] Setting up plugin  
log [15:05:40.894] [info][plugins][translations] Setting up plugin  
log [15:05:40.894] [info][data][plugins] Setting up plugin  
log [15:05:45.712] [warning][legacy-plugins] Skipping non-plugin directory at c:\kibana-7.5.1-windows-x86\_64\src\legacy\core\_plugins\visualizations  
log [15:05:45.817] [warning][licensing][plugins] License information could not be obtained from Elasticsearch for the [data] cluster. [security\_exception] missing authentication credentials for REST request [/\_xpack], with { header={ WWW-Authenticate="Basic realm="security" charset="UTF-8"" } } :: {"path":"/\_xpack","statusCode":401,"response":"{"error":{"root\_cause":[{"type":"security\_exception","reason":"missing authentication credentials for REST request [/\_xpack]","header":{"WWW-Authenticate":"Basic realm=\"security\" charset=\"UTF-8\""}}],"type":"security\_exception","reason":"missing authentication credentials for REST request [/\_xpack]","header":{"WWW-Authenticate":"Basic realm=\"security\" charset=\"UTF-8\""}},"status":401}","wwwAuthenticateDirective":"Basic realm="security" charset="UTF-8""}  
log [15:05:46.398] [info][plugins-system] Starting [8] plugins: [security,licensing,code,timelion,features,spaces,translations,data]  
log [15:05:46.407] [warning][migrations] Unable to connect to Elasticsearch. Error: [security\_exception] missing authentication credentials for REST request [/.kibana], with { header={ WWW-Authenticate="Basic realm="security" charset="UTF-8"" } }  
log [15:05:46.408] [warning][migrations] Unable to connect to Elasticsearch. Error: [security\_exception] missing authentication credentials for REST request [/.kibana\_task\_manager], with { header={ WWW-Authenticate="Basic realm="security" charset="UTF-8"" } }  
log [15:06:10.942] [warning][licensing][plugins] License information could not be obtained from Elasticsearch for the [data] cluster. [security\_exception] missing authentication credentials for REST request [/\_xpack], with { header={ WWW-Authenticate="Basic realm="security" charset="UTF-8"" } } :: {"path":"/\_xpack","statusCode":401,"response":"{"error":{"root\_cause":[{"type":"security\_exception","reason":"missing authentication credentials for REST request [/\_xpack]","header":{"WWW-Authenticate":"Basic realm=\"security\" charset=\"UTF-8\""}}],"type":"security\_exception","reason":"missing authentication credentials for REST request [/\_xpack]","header":{"WWW-Authenticate":"Basic realm=\"security\" charset=\"UTF-8\""}},"status":401}","wwwAuthenticateDirective":"Basic realm="security" charset="UTF-8""}  
log [15:06:40.945] [warning][licensing][plugins] License information could not be obtained from Elasticsearch for the [data] cluster. [security\_exception] missing authentication credentials for REST request [/\_xpack], with { header={ WWW-Authenticate="Basic realm="security" charset="UTF-8"" } } :: {"path":"/\_xpack","statusCode":401,"response":"{"error":{"root\_cause":[{"type":"security\_exception","reason":"missing authentication credentials for REST request [/\_xpack]","header":{"WWW-Authenticate":"Basic realm=\"security\" charset=\"UTF-8\""}}],"type":"security\_exception","reason":"missing authentication credentials for REST request [/\_xpack]","header":{"WWW-Authenticate":"Basic realm=\"security\" charset=\"UTF-8\""}},"status":401}","wwwAuthenticateDirective":"Basic realm="security" charset="UTF-8""}

sorry for the inconvenience, this is the error message that i get.

---

<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:** [February 7, 2020, 3:10pm UTC](https://discuss.elastic.co/t/elasticsearchexception-failure-running-machine-learning-native-code/214439/6 "2020-02-07T15:10:07Z")

</div>

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