troubleshooting Question

Kibana running on ubuntu is timing out and not running on windows browser

Avatar of coder
coderFlag for Australia asked on
Windows OSDockerUbuntu* kibana* elasticsearch
3 Comments1 Solution24 ViewsLast Modified:
Hi Experts,
       I have Elasticsearch 5.6.16 and Kibana 5.6.16 running on ubuntu 18.  I am not able to run Kibana on an windows browser.  The application is running with many docker containers

I had checked the logs for Nginx, Elasticsearch, Kibana on Linux it is working fine.

Please find below the settings of Nginx.conf

    #initially kibana was not password protected. now it works inside nginx firewall and password protected
    location /kibana {
        auth_basic "Kibana";
        auth_basic_user_file /etc/nginx/kibana_htpasswd;
        proxy_pass http://localhost:5601/ ;
        rewrite /kibana/(.*) /$1 break;
    }


Open in new window

I had set a password to access Kibana on the browser

$ sudo apt install apache2-utils
$ sudo htpasswd -c /etc/nginx/kibana_htpasswd kibana
New password:
Re-type new password:
Adding password for user kibana

Open in new window


Please find below the Elasticsearch setting from elasticsearch.yml
network.host: 172.17.0.1
http.port: 9200

Open in new window


Please find below the Kibana settings from Kibana.yml

server.port: 5601
server.host: "localhost"
server.basePath: "/kibana"
server.name: "territorystories1804.local"
elasticsearch.url: "http://localhost:9200"

Open in new window


Please find below the netstat results

ubuntu@ip-10-21-36-40:~$ sudo netstat -tulpen
Active Internet connections (only servers)
Proto Recv-Q Send-Q Local Address           Foreign Address         State       User       Inode      PID/Program name
tcp        0      0 127.0.0.1:5601          0.0.0.0:*               LISTEN      113        28447      1010/node
tcp        0      0 0.0.0.0:80              0.0.0.0:*               LISTEN      0          21201      1197/nginx: master
tcp        0      0 127.0.0.1:37905         0.0.0.0:*               LISTEN      0          21273      1156/containerd
tcp        0      0 127.0.0.53:53           0.0.0.0:*               LISTEN      101        18022      834/systemd-resolve
tcp        0      0 0.0.0.0:22              0.0.0.0:*               LISTEN      0          21193      1196/sshd
tcp        0      0 172.17.0.1:5432         0.0.0.0:*               LISTEN      112        29423      2829/postgres
tcp6       0      0 172.17.0.1:9200         :::*                    LISTEN      111        31767      1157/java
tcp6       0      0 :::8080                 :::*                    LISTEN      0          25670      1733/docker-proxy
tcp6       0      0 172.17.0.1:9300         :::*                    LISTEN      111        28586      1157/java
tcp6       0      0 :::8182                 :::*                    LISTEN      0          24464      1677/docker-proxy
tcp6       0      0 :::22                   :::*                    LISTEN      0          21195      1196/sshd
udp        0      0 127.0.0.53:53           0.0.0.0:*                           101        18021      834/systemd-resolve
udp        0      0 10.21.36.40:68          0.0.0.0:*                           100        528102     804/systemd-network

Open in new window


When I try to access Kibana using curl from ubuntu, I got the following results

ubuntu@ip-10-21-36-40:~$ curl -v -u kibana:****** localhost:5601
* Rebuilt URL to: localhost:5601/
*   Trying 127.0.0.1...
* TCP_NODELAY set
* Connected to localhost (127.0.0.1) port 5601 (#0)
* Server auth using Basic with user 'kibana'
> GET / HTTP/1.1
> Host: localhost:5601
> Authorization: Basic a2liYW5hOldlbGNvbWVAMTIz
> User-Agent: curl/7.58.0
> Accept: */*
>
< HTTP/1.1 200 OK
< kbn-name: kibana
< kbn-version: 5.6.16
< cache-control: no-cache
< content-type: text/html; charset=utf-8
< content-length: 231
< accept-ranges: bytes
< Date: Thu, 17 Jun 2021 04:42:39 GMT
< Connection: keep-alive
<
<script>var hashRoute = '/kibana/app/kibana';
var defaultRoute = '/kibana/app/kibana';

var hash = window.location.hash;
if (hash.length) {
  window.location = hashRoute + hash;
} else {
  window.location = defaultRoute;
* Connection #0 to host localhost left intact
}</script>

Open in new window


When I tried the following command for Kibana on ubuntu using curl I got the following results

ubuntu@ip-10-21-36-40:~$ curl http://localhost:5601/api/status
{"name":"ntdldev.librariesnt.net","version":"5.6.16","buildNum":15690,"buildSha":"e4c8b3e8245cbf4f81d0d31476c61125e366c2d9","uuid":"c3244f3e-b8fe-4ee5-8e69-49e743cb037b","status":{"overall":{"state":"green","title":"Green","nickname":"Looking good","icon":"success","since":"2021-06-17T03:30:26.425Z"},"statuses":[{"id":"ui settings","state":"green","icon":"success","message":"Ready","since":"2021-06-17T03:30:39.656Z"},{"id":"plugin:kibana@5.6.16","state":"green","icon":"success","message":"Ready","since":"2021-06-17T03:30:26.425Z"},{"id":"plugin:elasticsearch@5.6.16","state":"green","icon":"success","message":"Kibana index ready","since":"2021-06-17T03:30:39.655Z"},{"id":"plugin:console@5.6.16","state":"green","icon":"success","message":"Ready","since":"2021-06-17T03:30:26.693Z"},{"id":"plugin:metrics@5.6.16","state":"green","icon":"success","message":"Ready","since":"2021-06-17T03:30:26.729Z"},{"id":"plugin:timelion@5.6.16","state":"green","icon":"success","message":"Ready","since":"2021-06-17T03:30:27.291Z"}]},"metrics":{"heapTotal":[[1623905124287,62169088],[1623905119286,62169088],[1623905114285,62169088],[1623905109283,62169088],[1623905104282,62169088],[1623905099280,62169088],[1623905094278,62169088],[1623905089276,62169088],[1623905084275,62169088],[1623905079274,62169088],[1623905074272,62169088],[1623905069271,62169088]],"heapUsed":[[1623905124287,53173008],[1623905119286,53481344],[1623905114285,53798016],[1623905109283,53113048],[1623905104282,53429888],[1623905099280,53733576],[1623905094278,53051416],[1623905089276,53357496],[1623905084275,53667040],[1623905079274,52984584],[1623905074272,53297152],[1623905069271,53558336]],"load":[[1623905124287,[0,0,0]],[1623905119286,[0,0,0]],[1623905114285,[0,0,0]],[1623905109283,[0,0,0]],[1623905104282,[0,0,0]],[1623905099280,[0,0,0]],[1623905094278,[0,0,0]],[1623905089276,[0,0,0]],[1623905084275,[0,0,0]],[1623905079274,[0,0,0]],[1623905074272,[0,0,0]],[1623905069271,[0,0,0]]],"responseTimeAvg":[[1623905124287,null],[1623905119286,null],[1623905114285,null],[1623905109283,null],[1623905104282,null],[1623905099280,null],[1623905094278,null],[1623905089276,null],[1623905084275,null],[1623905079274,null],[1623905074272,null],[1623905069271,null]],"responseTimeMax":[[1623905124287,0],[1623905119286,0],[1623905114285,0],[1623905109283,0],[1623905104282,0],[1623905099280,0],[1623905094278,0],[1623905089276,0],[1623905084275,0],[1623905079274,0],[1623905074272,0],[1623905069271,0]],"requestsPerSecond":[[1623905124287,0],[1623905119286,0],[1623905114285,0],[1623905109283,0],[1623905104282,0],[1623905099280,0],[1623905094278,0],[1623905089276,0],[1623905084275,0],[1623905079274,0],[1623905074272,0],[1623905069271,0]]}}

Open in new window

I am getting timeout on windows browser and with the curl command.
Any help is highly appreciated

Please help me in resolving this issue.


ASKER CERTIFIED SOLUTION
coder
developer

Our community of experts have been thoroughly vetted for their expertise and industry experience.

Join our community to see this answer!
Unlock 1 Answer and 3 Comments.
Start Free Trial
Learn from the best

Network and collaborate with thousands of CTOs, CISOs, and IT Pros rooting for you and your success.

Andrew Hancock - VMware vExpert
See if this solution works for you by signing up for a 7 day free trial.
Unlock 1 Answer and 3 Comments.
Try for 7 days

”The time we save is the biggest benefit of E-E to our team. What could take multiple guys 2 hours or more each to find is accessed in around 15 minutes on Experts Exchange.

-Mike Kapnisakis, Warner Bros