# Kibana getting 'permission denied' in windows server

**URL:** <https://discuss.elastic.co/t/kibana-getting-permission-denied-in-windows-server/232879>\
**Category:** Kibana\
**Created:** [May 15, 2020, 7:40pm UTC](https://discuss.elastic.co/t/kibana-getting-permission-denied-in-windows-server/232879 "2020-05-15T19:40:23Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Carlos\_Bodini](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/carlos_bodini/32/39758_2.png) [@Carlos\_Bodini](https://discuss.elastic.co/u/Carlos_Bodini)\
**Post date:** [May 15, 2020, 7:40pm UTC](https://discuss.elastic.co/t/kibana-getting-permission-denied-in-windows-server/232879/1 "2020-05-15T19:40:23Z")

</div>

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 😛

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"
}
```

---

<div class="post-metadata">

**Author:** ![rashmi](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/rashmi/32/16391_2.png) [@rashmi](https://discuss.elastic.co/u/rashmi)\
**Post date:** [May 26, 2020, 4:53am UTC](https://discuss.elastic.co/t/kibana-getting-permission-denied-in-windows-server/232879/2 "2020-05-26T04:53:52Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/elastic/original/3X/1/a/1ac57faf039f6b580b3f104ef42a2a89e41014de.png) [@system](https://discuss.elastic.co/u/system)\
**Post date:** [June 23, 2020, 4:53am UTC](https://discuss.elastic.co/t/kibana-getting-permission-denied-in-windows-server/232879/3 "2020-06-23T04:53:57Z")

</div>

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