I installed elasticSearch (7.4.1) on Ubuntu 18.04.1 server in Virtualbox, and it is working fine. I could create mapping, indexes, and use all the cmds(XPUT, XPOST, XGET ...).
After installing Kibana(7.5.2) in the same server as ES, and updated the Kibana.yml for the following line ONLY:
server.host: "0.0.0.0"
Kibana server is up and running but it returns HTTP 302. Here are the cmds I used to install and test this issue.
//Wait for a few mins and check the kibana log
journalctl -u kibana.service
//Once I could see the kibana is up and running as below
"tags":["info","http","server","Kibana"],"pid":3388,"message":"http server running at http://0.0.0.0:5601"}
// I curl the url and it returns HTTP 302 Error
curl -I localhost:5601
//here is the kibana log
"head","statusCode":302,"req":{"url":"/","method":"head","headers":{"host":"localhost:5601","user-agent":"curl/7.58.0"," ........
How can I fix this 302 error? I have tried to restart the services, Ubuntu server, and reinstall Kibana, same error.
302 is not an error - it's just a HTTP redirect. Nothing is wrong here, if you really need to query Kibana root URL for some reason you can tell curl to follow redirect with L flag: curl -IL localhost:5601.
Thank you for your reply. I have tried your curl cmd, I got 503 ERROR. When I check the kibana, it is running ...
//cmd to check log
journalctl -u kibana.service
Jan 25 22:24:32 es7 kibana[3929]: {"type":"log","@timestamp":"2020-01-25T22:24:32Z","tags":["info","http","server","Kibana"],"pid":3929,"message":"http server running at http://0.0.0.0:5601"}
I am still running the Virtualbox in my macbook all day & all week ... when I go to browser or postman in my macbook to point to http://localhost:5601, I got "This site can't be reached" or " Could not get any response". If I curl the ubuntu server through SSH terminal, I still got 302 & 503.
Apache, Apache Lucene, Apache Hadoop, Hadoop, HDFS and the yellow elephant
logo are trademarks of the
Apache Software Foundation
in the United States and/or other countries.