elastiflow / ElastiFlow-Tools

Script to easily install ElastiFlow for Elasticsearch with all dependencies
Other
4 stars 0 forks source link

Can't bring kibana up #4

Open wastemans opened 3 days ago

wastemans commented 3 days ago

Hi,

Thanks for writing this out. I'm still a docker noob so it helps a great deal!

I'm having trouble bringing it all up though, at "6) Log in to Kibana" I get this: Kibana server is not ready yet.

I think the setup container is unable to set the password:

12:52:54 | netflow ~ # docker logs docker_install-setup-1 
Setting file permissions
Waiting for Elasticsearch availability
Setting kibana_system password
12:52:58 | netflow ~ #

I have the .env file in situ, and when go into the containers they can expand the variables set inside it, so not sure what's going on. I would offer to post some kibana logs but they're horrendously long - would they help?

12:53:02 | netflow ~ # docker ps
CONTAINER ID   IMAGE                                                  COMMAND                  CREATED        STATUS                    PORTS                                                 NAMES
4eba263f41b5   docker.elastic.co/kibana/kibana:8.15.2                 "/bin/tini -- /usr/l…"   47 hours ago   Up 47 hours (unhealthy)   0.0.0.0:5601->5601/tcp, :::5601->5601/tcp             docker_install-kibana-1
03468a26461a   docker.elastic.co/elasticsearch/elasticsearch:8.15.2   "/bin/tini -- /usr/l…"   47 hours ago   Up 47 hours (healthy)     0.0.0.0:9200->9200/tcp, :::9200->9200/tcp, 9300/tcp   docker_install-es01-1
f14b71d8e124   docker.elastic.co/elasticsearch/elasticsearch:8.15.2   "/bin/tini -- /usr/l…"   47 hours ago   Up 47 hours (healthy)     9200/tcp, 9300/tcp                                    docker_install-setup-1
f4b15d6cccf9   elastiflow/flow-collector:7.2.2                        "/bin/sh -c $BINARY_…"   47 hours ago   Up 47 hours                                                                     flow-collector
wastemans commented 2 days ago

This might also help?

1:03:03 | netflow ~ # docker exec -it docker_install-setup-1 bash
root@f14b71d8e124:/usr/share/elasticsearch# curl -s -X POST --cacert config/certs/ca/ca.crt -u "elastic:${ELASTIC_PASSWORD}" -H "Content-Type: application/json" https://es01:9200/_security/user/kibana_system/_password -d "{\"password\":\"${KIBANA_PASSWORD}\"}" ; echo
{"error":{"root_cause":[{"type":"security_exception","reason":"unable to authenticate user [elastic] for REST request [/_security/user/kibana_system/_password]","header":{"WWW-Authenticate":["Basic realm=\"security\", charset=\"UTF-8\"","Bearer realm=\"security\"","ApiKey"]}}],"type":"security_exception","reason":"unable to authenticate user [elastic] for REST request [/_security/user/kibana_system/_password]","header":{"WWW-Authenticate":["Basic realm=\"security\", charset=\"UTF-8\"","Bearer realm=\"security\"","ApiKey"]}},"status":401}
root@f14b71d8e124:/usr/share/elasticsearch#