Closed casertap closed 4 years ago
removing the spot_instances options did not help neither
After further investigation I added some logging:
echo 'Waiting for Kibana to initialize...'
until $(curl --output /dev/null --silent --head --fail http://localhost:5601); do
echo '.'
curl http://localhost:5601 || true
sleep 5
done
the output
amazon-ebs: 100 30 100 30 0 0 5026 0 --:--:-- --:--:-- --:--:-- 6000
amazon-ebs: Kibana server is not ready yet.
amazon-ebs: % Total % Received % Xferd Average Speed Time Time Time Current
amazon-ebs: Dload Upload Total Spent Left Speed
amazon-ebs: 100 30 100 30 0 0 30959 0 --:--:-- --:--:-- --:--:-- 30000
amazon-ebs: Kibana server is not ready yet.
amazon-ebs: % Total % Received % Xferd Average Speed Time Time Time Current
amazon-ebs: Dload Upload Total Spent Left Speed
amazon-ebs: 100 30 100 30 0 0 29469 0 --:--:-- --:--:-- --:--:-- 30000
amazon-ebs: Kibana server is not ready yet.
amazon-ebs: % Total % Received % Xferd Average Speed Time Time Time Current
amazon-ebs: Dload Upload Total Spent Left Speed
amazon-ebs: 100 30 100 30 0 0 30333 0 --:--:-- --:--:-- --:--:-- 30000
So kibana is never ready but the service
is running correctly.
Is it possible to start the kibana server at that stage? the Paker builder does not include a local elasticsearch so I do not think kibana can start without an elasticsearch instance to create its internal index .kibana
@casertap I have the same problem. Were you able to solve it? Thanks
No I did not solve it. I commented those lines but the aim should still be correctly installed (to be confirmed). I am going to try again soon, I could not have the cluster working last time. Let me know if you solve this issue on your side.
I can confirm that you do not need those last lines for the ami image to work. Cheers
I can confirm that you do not need those last lines for the ami image to work. Cheers
Which lines did you comment?
@michaelseto I commented:
# echo 'Waiting for Kibana to initialize...'
# until $(curl --output /dev/null --silent --head --fail http://localhost:5601); do
# echo '.'
# curl http://localhost:5601 || true
# sleep 5
# done
@michaelseto I commented:
# echo 'Waiting for Kibana to initialize...' # until $(curl --output /dev/null --silent --head --fail http://localhost:5601); do # echo '.' # curl http://localhost:5601 || true # sleep 5 # done
Thanks for that , I also had to amend the grafana install script to below and switch to root
"sudo su - echo "deb https://packagecloud.io/grafana/stable/debian/ jessie main" | tee -a /etc/apt/sources.list curl https://packagecloud.io/gpg.key | apt-key add -
sudo apt-get --allow-unauthenticated update && sudo apt-get --allow-unauthenticated install grafana -y "
@deeco It works for me, thank you so much!
Fixed in master. We removed the Kibana initialization step in Packer.
I am currently trying to build the kibana6 aim image on ap-southeast-2.
packer build -only=amazon-ebs -var-file=variables.json kibana6-node.packer.json
The build get stuck at:
amazon-ebs: Executing /lib/systemd/systemd-sysv-install enable kibana
from there it will wait indefinitelyI commented the line:
#bin/kibana-plugin install x-pack || true
because it was returning an error message but this is not related to the issue I am facing. I tried at2.large
instance with the same result