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

Elasticsearch 에서 reset-password, setup-password 가 es 주소를 못 찾는 경우 #169

Open
occidere opened this issue May 25, 2022 · 0 comments
Assignees

Comments

@occidere
Copy link
Owner

occidere commented May 25, 2022

Elasticsearch 에서 reset-password, setup-password 가 es 주소를 못 찾는 경우

상황

  • local es 의 elastic 계정 password 를 변경하고자 아래와 같이 스크립트를 실행했으나 es 주소를 제대로 찾지 못함
# Reset password 시도
./bin/elasticsearch-reset-password -u elastic -i
# ERROR: Failed to determine the health of the cluster.

# setup passwords 시도
./bin/elasticsearch-setup-passwords interactive
# Connection failure to: http://100.64.0.1:9200/_security/_authenticate?pretty failed: Read timed out
# ERROR: Failed to connect to elasticsearch at http://100.64.0.1:9200/_security/_authenticate?pretty. Is the URL correct and elasticsearch running?

해결

  • --url 옵션으로 localhost 를 직접 지정
./bin/elasticsearch-reset-password -u elastic -i --url http://localhost:9200
# This tool will reset the password of the [elastic] user.
# You will be prompted to enter the password.
# Please confirm that you would like to continue [y/N]y
# Enter password for [elastic]:
# Re-enter password for [elastic]:
# Password for the [elastic] user successfully reset.

참고

  • elastic 계정 비밀번호 변경할 때, kibana_system 계정 비밀번호도 reset 같이 해주는게 나중에 연동하기 편함
@occidere occidere self-assigned this May 25, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant