pfelk / docker

Deploy pfelk with docker-compose
Apache License 2.0
56 stars 20 forks source link

stuck with docker compose up process and unable to access Kibana #43

Closed capmerah closed 1 year ago

capmerah commented 2 years ago

Describe the bug stuck with docker compose up process and unable to access Kibana

To Reproduce after sudo docker-compose up

Operating System (please complete the following information):

Elasticsearch, Logstash, Kibana (please complete the following information):

a3ilson commented 2 years ago

Appears that you need to configure the security (eg step 4) from the readme.

capmerah commented 2 years ago

Appears that you need to configure the security (eg step 4) from the readme.

I did, I replace ELASTIC-PASSWORD, KIBANA-PASSWORD, LOGSTASH-PASSWORD with my own password and used the script.

a3ilson commented 2 years ago

Did you amend the passwords then run the script?

Try running just the script, if you haven’t already, from a fresh unzip of the main.zip.

capmerah commented 2 years ago

Did you amend the passwords then run the script?

Yes I did.

Try running just the script, if you haven’t already, from a fresh unzip of the main.zip.

I tried running the script. Same error is still exists.

I am currently running synology ds220+ with 18gb ram(16+2) so I can only use 7z x instead of unzip, synology is still linux and it still can run docker though. But another problem with synology is that I cannot run apt-get. Let me know if using synology is not possible so that I can power up a linux VM inside synology and run an implementation from a VM. Thanks.

a3ilson commented 2 years ago

I’m currently away but I’ll treat this next week and see if i can determine the issue. However, i do but have the same hardware which may be the culprit.

capmerah commented 2 years ago

I’m currently away but I’ll treat this next week and see if i can determine the issue. However, i do but have the same hardware which may be the culprit.

Thanks for input. For now I'll power up my librenms(temp) on my docker from synology based on https://github.com/librenms/docker which is up and running. I still prefer grafana though so I'll wait for your next step on how to troubleshoot. If still no dice then VM it is.

alovillagon commented 2 years ago

Same issue here, all running

"Docker ps" show all process are running

Cant access from the LAN to the port 5601... but when I use "curl ip:port" from the server, can access it

alovillagon commented 2 years ago

SOLVED:

Replace all values where "127.0.0.1" to "0.0.0.0" in "docker-compose.yml"

Neccie commented 2 years ago

I’m currently away but I’ll treat this next week and see if i can determine the issue. However, i do but have the same hardware which may be the culprit.

Thanks for input. For now I'll power up my librenms(temp) on my docker from synology based on https://github.com/librenms/docker which is up and running. I still prefer grafana though so I'll wait for your next step on how to troubleshoot. If still no dice then VM it is.

I have ran in the same issue i think, running with docker-compose and my kibana got stuck on starting. I cannot confim but i think it had to do with the passwords, i used complex ones and that seemed to fail. Tried simple passwords (as in no special characters) and it suddenly worked (or it was something else). Worth a try and confirm perhaps?

a3ilson commented 2 years ago

@Neccie are you also running in a synology? This odd running on my current setup via Ubuntu.

Neccie commented 2 years ago

@Neccie are you also running in a synology? This odd running on my current setup via Ubuntu.

Ubuntu 22.04 LTS on a existing docker installation. I'm still not sure what i did but double check .env passwords and docker-compose.yml. If i now purge everything and use my working 2 config files I get everything to start up as it should.

a3ilson commented 2 years ago

Are your working config files different than the repo? Or was this a glitch/fluke?

Neccie commented 2 years ago

Actually tried it in a new VM to confirm, might be me but it goes wrong for me when i use special characters in the .env file for the passwords. For instance if i use "1234567890" it fails cause it expects a string, so "ab1234567890cd" works fine but "ab12345$%^&67890cd" will fail again which was my initial problem i guess. With or without qoutes doesn't matter.

a3ilson commented 1 year ago

@Neccie - the password limitations (character limitations) are related to Elastic