Kibana getting 'permission denied' in windows server

hello team!
I'm building a elastic cluster and i'm having a trouble to bring kibana online, it looks like it cannot connect to the elasticsearch service, follow the logs:

{"type":"log","@timestamp":"2020-05-15T19:21:06Z","tags":["fatal","root"],"pid":580,"message":"{ Error: listen EACCES: permission denied my_server_ip:80\n    at Server.setupListenHandle [as _listen2] (net.js:1263:19)\n    at listenInCluster (net.js:1328:12)\n    at doListen (net.js:1461:7)\n    at process._tickCallback (internal/process/next_tick.js:63:19)\n  code: 'EACCES',\n  errno: 'EACCES',\n  syscall: 'listen',\n  address: 'my_server_ip',\n  port: 80 }"}
{"type":"log","@timestamp":"2020-05-15T19:22:18Z","tags":["fatal","root"],"pid":2208,"message":"{ Error: listen EACCES: permission denied my_server_ip:80\n    at Server.setupListenHandle [as _listen2] (net.js:1263:19)\n    at listenInCluster (net.js:1328:12)\n    at doListen (net.js:1461:7)\n    at process._tickCallback (internal/process/next_tick.js:63:19)\n  code: 'EACCES',\n  errno: 'EACCES',\n  syscall: 'listen',\n  address: 'my_server_ip',\n  port: 80 }"}
{"type":"log","@timestamp":"2020-05-15T19:23:25Z","tags":["fatal","root"],"pid":8068,"message":"{ Error: listen EACCES: permission denied my_server_ip:80\n    at Server.setupListenHandle [as _listen2] (net.js:1263:19)\n    at listenInCluster (net.js:1328:12)\n    at doListen (net.js:1461:7)\n    at process._tickCallback (internal/process/next_tick.js:63:19)\n  code: 'EACCES',\n  errno: 'EACCES',\n  syscall: 'listen',\n  address: 'my_server_ip',\n  port: 80 }"}
{"type":"log","@timestamp":"2020-05-15T19:24:33Z","tags":["fatal","root"],"pid":6632,"message":"{ Error: listen EACCES: permission denied my_server_ip:80\n    at Server.setupListenHandle [as _listen2] (net.js:1263:19)\n    at listenInCluster (net.js:1328:12)\n    at doListen (net.js:1461:7)\n    at process._tickCallback (internal/process/next_tick.js:63:19)\n  code: 'EACCES',\n  errno: 'EACCES',\n  syscall: 'listen',\n  address: 'my_server_ip',\n  port: 80 }"}
{"type":"log","@timestamp":"2020-05-15T19:25:34Z","tags":["fatal","root"],"pid":7416,"message":"{ Error: listen EACCES: permission denied my_server_ip:80\n    at Server.setupListenHandle [as _listen2] (net.js:1263:19)\n    at listenInCluster (net.js:1328:12)\n    at doListen (net.js:1461:7)\n    at process._tickCallback (internal/process/next_tick.js:63:19)\n  code: 'EACCES',\n  errno: 'EACCES',\n  syscall: 'listen',\n  address: 'my_server_ip',\n  port: 80 }"}
{"type":"log","@timestamp":"2020-05-15T19:26:26Z","tags":["fatal","root"],"pid":6272,"message":"{ Error: listen EACCES: permission denied my_server_ip:80\n    at Server.setupListenHandle [as _listen2] (net.js:1263:19)\n    at listenInCluster (net.js:1328:12)\n    at doListen (net.js:1461:7)\n    at process._tickCallback (internal/process/next_tick.js:63:19)\n  code: 'EACCES',\n  errno: 'EACCES',\n  syscall: 'listen',\n  address: 'my_server_ip',\n  port: 80 }"}
{"type":"log","@timestamp":"2020-05-15T19:27:26Z","tags":["fatal","root"],"pid":8104,"message":"{ Error: listen EACCES: permission denied my_server_ip:80\n    at Server.setupListenHandle [as _listen2] (net.js:1263:19)\n    at listenInCluster (net.js:1328:12)\n    at doListen (net.js:1461:7)\n    at process._tickCallback (internal/process/next_tick.js:63:19)\n  code: 'EACCES',\n  errno: 'EACCES',\n  syscall: 'listen',\n  address: 'my_server_ip',\n  port: 80 }"}
{"type":"log","@timestamp":"2020-05-15T19:28:15Z","tags":["fatal","root"],"pid":7680,"message":"{ Error: listen EACCES: permission denied my_server_ip:80\n    at Server.setupListenHandle [as _listen2] (net.js:1263:19)\n    at listenInCluster (net.js:1328:12)\n    at doListen (net.js:1461:7)\n    at process._tickCallback (internal/process/next_tick.js:63:19)\n  code: 'EACCES',\n  errno: 'EACCES',\n  syscall: 'listen',\n  address: 'my_server_ip',\n  port: 80 }"}

kibana.yml:

server.port: 80
server.host: my_server_ip
server.name: my_server_name
elasticsearch.hosts: http://my_server_ip:9200
elasticsearch.preserveHost: true
logging.dest: D:\ELK\Kibana\kibana-7.6.2-windows-x86_64\log\kibana.log
logging.quiet: true

elastic.yml:

bootstrap.memory_lock: true
cluster.name: DCE_ELK_ENV
http.port: 9200
http.host: my_server_name
node.data: true
node.ingest: false
node.master: true
node.max_local_storage_nodes: 1
node.name: my_server_name
path.data: D:\Elastic\data
path.logs: D:\Elastic\logs
transport.tcp.port: 9300
xpack.license.self_generated.type: basic
xpack.security.enabled: false
network.host: my_server_ip

booth kibana and elastic are in the same server, I've omitted the ip and server name for security reasons here :stuck_out_tongue:

elastic is accessible via CURL:

{
  "name" : "my_server_name",
  "cluster_name" : "DCE_ELK_ENV",
  "cluster_uuid" : "cEyI7wSpQG6Duzd2quuw8A",
  "version" : {
    "number" : "7.6.2",
    "build_flavor" : "unknown",
    "build_type" : "unknown",
    "build_hash" : "ef48eb35cf30adf4db14086e8aabd07ef6fb113f",
    "build_date" : "2020-03-26T06:34:37.794943Z",
    "build_snapshot" : false,
    "lucene_version" : "8.4.0",
    "minimum_wire_compatibility_version" : "6.8.0",
    "minimum_index_compatibility_version" : "6.0.0-beta1"
  },
  "tagline" : "You Know, for Search"
}

Is there a proxy in between ? Kibana is served by a back end server. This setting specifies the port to use.

#server.port: 5601
Specifies the address to which the Kibana server will bind. IP addresses and host names are both valid values.

Open your kibana config yaml file, uncomment the port info and change the port.
Change the port and see if you can debug, let us know...

thanks
Rashmi

The default is 'localhost', which usually means remote machines will not be able to connect.

To allow connections from remote users, set this parameter to a non-loopback address.

server.host: 0.0.0.0

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