반응형
Recent Posts
Recent Comments
관리 메뉴

개발잡부

[es8] docker elasticsearch 8.6 본문

ElasticStack8/System

[es8] docker elasticsearch 8.6

닉의네임 2023. 3. 4. 19:41
반응형

버전을 올려보자

8.6.2

docker pull docker.elastic.co/elasticsearch/elasticsearch:8.6.2

 

 

내 로컬 경로

/Users/doo/docker/es8.6.2

 

docker compose up -d --build

 

키바나가 안뜨길래 로그를 봤더니 - docker logs {container_id}

[2023-03-04T15:45:34.975+00:00][WARN ][plugins.reporting.config] Found 'server.host: "0.0.0.0"' in Kibana configuration. Reporting is not able to use this as the Kibana server hostname. To enable PNG/PDF Reporting to work, 'xpack.reporting.kibanaServer.hostname: localhost' is automatically set in the configuration. You can prevent this message by adding 'xpack.reporting.kibanaServer.hostname: localhost' in kibana.yml.

 

일단 이건 워닝이긴 하지만 그래도 추가 

 

[2023-03-04T15:45:36.251+00:00][ERROR][elasticsearch-service] Unable to retrieve version information from Elasticsearch nodes. connect ECONNREFUSED 172.24.0.2:9200

 

 

server.publicBaseUrlThe publicly available URL that end-users access Kibana at. Must include the protocol, hostname, port (if different than the defaults for http and https, 80 and 443 respectively), and the server.basePath (if configured). This setting cannot end in a slash (/).

 

 

Unable to retrieve version information from Elasticsearch nodes. security_exception: [security_exception] Reason: unable to authenticate user [kibana_system] for REST request [/_nodes?filter_path=nodes.*.version%2Cnodes.*.http.publish_address%2Cnodes.*.ip]

 

키바나 패스워드를 변경했더니  kibana 가 es 에 붙지 못하는..

kibana password 는 초기패스 워드를 유지하고 키바나에 접속해서 kibana_system 계정의 패스워들르 변경했어야 하는데

그냥 changeme 로 사용

ELASTIC_VERSION=8.6.2

## Passwords for stack users
#

# User 'elastic' (built-in)
#
# Superuser role, full access to cluster management and data indices.
# https://www.elastic.co/guide/en/elasticsearch/reference/current/built-in-users.html
ELASTIC_PASSWORD='dlengus'

# User 'logstash_internal' (custom)
#
# The user Logstash uses to connect and send data to Elasticsearch.
# https://www.elastic.co/guide/en/logstash/current/ls-security.html
LOGSTASH_INTERNAL_PASSWORD='changeme'

# User 'kibana_system' (built-in)
#
# The user Kibana uses to connect and communicate with Elasticsearch.
# https://www.elastic.co/guide/en/elasticsearch/reference/current/built-in-users.html
KIBANA_SYSTEM_PASSWORD='changeme'

 

password 를 초기패스워드로 바꿔도 키바나 계정 오류가 나면

setup 볼륨을 지워서 다시 생성함 

반응형
Comments