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

Kibana exits due to changed password in config #667

Closed
kennyparsons opened this issue Feb 11, 2022 · 1 comment
Closed

Kibana exits due to changed password in config #667

kennyparsons opened this issue Feb 11, 2022 · 1 comment

Comments

@kennyparsons
Copy link

Problem description

I followed the initial setup instructions to change passwords for elastic and kibana_system (as well as all other default users). But before that, the command to just bring up elasticsearch didn't work:

docker-compose up elasticsearch -d
Creating network "docker-elk_elk" with driver "bridge"
ERROR: No such service: -d

So i pivoted and just did docker-compose up elasticsearch, which ran it in the foreground. No biggy. I ran the password commands in a separate window. I changed the passwords, edited the two config files mentioned, saved it, and moved on. So far so good.

Now i switch back to elasticsearch running in the foreground, kill it (ctrl-c), and then bring up the whole stack with docker-compose up -d.

I check the containers and kibana quits immediately. I checked the logs. The password generated started with an illegal character (*). So I put single quotes around it and it worked. Might be nice to have that defaulted to be in quotes, if passwords are randomly generated.

Extra information

The only remaining issue: docker-compose up elasticsearch -d didn't work. Any ideas why it does for you and not for me?

@antoineco
Copy link
Collaborator

antoineco commented Feb 11, 2022

You're right, that's entirely on me. The position of the flag needs to be swapped:

docker compose up -d elasticsearch

Regarding the quotes, it looks like you ran into a very unfortunate situation where the password started with either *, &, !, #, or any other "special" YAML character. I'll fix that too!

Thanks for reporting.

antoineco added a commit to antoineco/docker-elk that referenced this issue Feb 11, 2022
@antoineco antoineco mentioned this issue Aug 3, 2022
DanBrown47 pushed a commit to DanBrown47/docker-elk that referenced this issue Jun 22, 2023
DanBrown47 pushed a commit to DanBrown47/docker-elk that referenced this issue Jun 22, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants