New installation - Unable to connect to kibana 7.9.2

Unable to connect to my kibana server. When connecting through my browser I get the message "refused to connect". This is a new installation. No visible errors in the kibana.log file. Not sure where to go from here. I'm including my yml file in the bottom.

The port is listening:

tcp        0      0*               LISTEN      5184/node           

My ES cluster is up:

  "cluster_name" : "staging",
  "status" : "green",
  "timed_out" : false,
  "number_of_nodes" : 7,
  "number_of_data_nodes" : 7,
  "active_primary_shards" : 6,
  "active_shards" : 12,
  "relocating_shards" : 0,
  "initializing_shards" : 0,
  "unassigned_shards" : 0,
  "delayed_unassigned_shards" : 0,
  "number_of_pending_tasks" : 0,
  "number_of_in_flight_fetch" : 0,
  "task_max_waiting_in_queue_millis" : 0,
  "active_shards_percent_as_number" : 100.0

excerpt of yml file

server.port: 5601 "ist0002591" "ist0002591"

# My Elasticsearch  client node to use for all my queries. I've also tried connecting directly to the ES master with no cigar.
elasticsearch.hosts: ["http://ist0002583:9200"]

Hi @drivera,

It sounds like a network issue. Does it work from localhost - the machine that is running Kibana?

If it does, but does not from external machines, are you sure the port is open on the machine running Kibana? Maybe hostname is incorrectly resolved by external machine?

Regards, Dzmitry

Running a the sudo curl -l http://localhost:5601/status from the local host, I get a bunch of output, like the output below which I think means kibana is running"

[ ~]$ sudo curl -l http://localhost:5601/status
<!DOCTYPE html><html lang="en"><head><meta charSet="utf-8"/><meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1"/><meta name="viewport" content="width=device-width"/><title>Elastic</title><style>
        @font-face {
          font-family: 'Inter UI';
          font-style: normal;
          font-weight: 100;
          src: url('/ui/fonts/inter_ui/Inter-UI-Thin-BETA.woff2') format('woff2'), url('/ui/fonts/inter_ui/Inter-UI-Thin-BETA.woff') format('woff');

However, when trying to use the curl command above from a remote host, I get the following failure:

[remote-host ~]$ sudo curl -l http://ist0002591:5601/status
curl: (7) Failed to connect to ist0002591 port 5601: Connection refused

On the kibana host I can see that the port 5601 is listening.

tcp        0      0*               LISTEN      6105/node  

Any ideas? Firewall issue maybe?

Update: Running the command below, I get confirmation Kibana is running on the localhost

[ ~]$ sudo curl -XGET  http://localhost:5601/status -I |more   
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
  0  114k    0     0    0     0      0      0 --:--:-- --:--:-- --:--:--     0
HTTP/1.1 200 OK
content-type: text/html; charset=utf-8
content-security-policy: script-src 'unsafe-eval' 'self'; worker-src blob: 'self'; style-src 'unsafe-
inline' 'self'
kbn-license-sig: 9cbb27f1e1e6639cfc78834318161360106cc8c727416816dff99cc3ecc2ed90
kbn-xpack-sig: 0213ac89bd6c118858950458439d872f
cache-control: private, no-cache, no-store, must-revalidate
content-length: 117422
vary: accept-encoding
accept-ranges: bytes
Date: Mon, 30 Nov 2020 16:50:44 GMT
Connection: keep-alive

Update: Resolved!

I noticed when running the netstat -nltup command that port 5601 was bound to my localhost, instead of my internal IP address:

tcp 0      0*               LISTEN      6105/node  

I edited my /etc/hosts file which had a bogus reference to the localhost and that fixed the issue. Now port 5601 is bound to the IP.

tcp        0      0 10.x.x.x:5601*               LISTEN      1204/node     
Thanks for your help @Dzmitry
1 Like

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.