Migrating to Elasticsearch 5.4.0 on Heroku using Elastic Cloud: [indices:admin/delete] requires authentication.

Elasticsearch::Transport::Transport::Errors::Unauthorized: [401] {“error”:{“root_cause”:[{“type”:”security_exception”,”reason”:”action [indices:admin/delete] requires authentication”,”header”:{“WWW-Authenticate”:”Basic realm=\”security\” charset=\”UTF-8\””}}],”type”:”security_exception”,”reason”:”action [indices:admin/delete] requires authentication”,”header”:{“WWW-Authenticate”:”Basic realm=\”security\” charset=\”UTF-8\””}},”status”:401}
gem 'elasticsearch-transport', '~> 5.0.4'
$ git push heroku <app-name> <branch-name>
Version: 5.4.0
# Elasticsearch security via Kibana management tab
user: <user>
pass: <password>
role: superuser
https://username:password@cluster_id.region.aws.found.io
$ heroku run rake elasticsearch:import:all

--

--

--

Engineering and Product at kitesrm.com

Love podcasts or audiobooks? Learn on the go with our new app.

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store
Aaron Careaga

Aaron Careaga

Engineering and Product at kitesrm.com

More from Medium

GitOps with NSX Advanced Load Balancer and Jenkins

Read, Write document from AWS S3 bucket using Javascript

ELK Stack ElasticSearch, Kibana and Node.Js : Store Logs on ELK

Setup Node server on AWS ec2 from scratch