Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

missing authentication token for REST request #1154

Closed
san4io opened this issue Sep 23, 2017 · 7 comments
Closed

missing authentication token for REST request #1154

san4io opened this issue Sep 23, 2017 · 7 comments
Labels

Comments

@san4io
Copy link

san4io commented Sep 23, 2017

Info:

  • Docker version ($ docker --version): Docker version 17.06.2-ce, build cec0b72
  • Laradock commit ($ git rev-parse HEAD): f765afd
  • System info (Mac, PC, Linux): Linux
  • System info disto/version: 16.04

Issue:

I know this is stupid question, but nothing mentioned in documentation. What's the credentials?
image

[Elasticsearch\Common\Exceptions\BadRequest400Exception]
{"error":{"root_cause":[{"type":"security_exception","reason":"missing authentication token for REST request [/myindex]","header":{"WWW-Authenticate":"Basic realm="security" charset="UTF-8""}}],"type":"security_exception","reason":"missing authentica
tion token for REST request [/myindex]","header":{"WWW-Authenticate":"Basic realm="security" charset="UTF-8""}},"status":401}


Expected behavior:

I should get ES info when visiting localhost:9200


Reproduce:

docker-compose up -d elasticsearch
visit localhost:9200 it requests authentication


@san4io san4io changed the title "missing authentication token for REST request missing authentication token for REST request Sep 23, 2017
@san4io
Copy link
Author

san4io commented Sep 23, 2017

Ok, I've added to docker-compose file in elasticsearch container:
environment:
- cluster.name=laradock-cluster
- bootstrap.memory_lock=true
- xpack.security.enabled=false
- "ES_JAVA_OPTS=-Xms256m -Xmx256m"

@Surt
Copy link

Surt commented Mar 5, 2018

I did disabled it, but anyway the authentification is elastic:changeme

@OGKevin
Copy link

OGKevin commented May 4, 2018

Why is the auth not documentent somewhere or am i just blind 🤔

@anchetaWern
Copy link

documentation is saying user and changeme. It should be updated.

@a1tem
Copy link

a1tem commented Sep 6, 2018

Thanks @san4io it works now!

@stale
Copy link

stale bot commented Feb 2, 2020

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

@stale stale bot added the Stale label Feb 2, 2020
@stale
Copy link

stale bot commented Feb 23, 2020

Hi again 👋 we would like to inform you that this issue has been automatically closed 🔒 because it had not recent activity during the stale period. We really really appreciate your contributions, and looking forward for more in the future 🎈.

@stale stale bot closed this as completed Feb 23, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

5 participants