I installed kibana in AWS EC2 instance. It has problem to start.
The kibana.pid is in /var/run/. I have changed the mode of the directory to 777.
ll -d /var/run
lrwxrwxrwx 1 root root 4 Jun 19 23:49 /var/run -> /run/
ll -d /run
drwxrwxrwx 31 root root 1160 Jul 13 10:03 /run/
But when I start it gave the log below, just could not access the pid file.
{"type":"log","@timestamp":"2017-07-13T09:14:23Z","tags":["fatal"],"pid":24354,"level":"fatal","message":"EACCES: permission denied, open '/var/run/kibana.pid'","error":{"message":"EACCES: permission denied, open '/var/run/kibana.pid'","name":"Error","stack":"Error: EACCES: permission denied, open '/var/run/kibana.pid'\n at Error (native)","code":"EACCES"}}
I even tried to change the pid file location, but it performed as the same.
If change the owner of the kibana.pid, it failed to start either.
{"type":"log","@timestamp":"2017-07-13T09:53:37Z","tags":["fatal"],"pid":31969,"level":"fatal","message":"listen EADDRNOTAVAIL 52.89.77.102:5601","error":{"message":"listen EADDRNOTAVAIL 52.89.77.102:5601","name":"Error","stack":"Error: listen EADDRNOTAVAIL 52.89.77.102:5601\n at Object.exports._errnoException (util.js:1018:11)\n at exports._exceptionWithHostPort (util.js:1041:20)\n at Server._listen2 (net.js:1249:19)\n at listen (net.js:1298:10)\n at net.js:1408:9\n at GetAddrInfoReqWrap.asyncCallback [as callback] (dns.js:62:16)\n at GetAddrInfoReqWrap.onlookup [as oncomplete] (dns.js:81:10)","code":"EADDRNOTAVAIL"}}
FATAL CLI ERROR Error: ENOENT: no such file or directory, unlink '/var/run/kibana.pid'
at Error (native)
at fs.unlinkSync (fs.js:1103:18)
at process. (/usr/share/kibana/src/server/pid/index.js:52:26)
at process. (/usr/share/kibana/node_modules/lodash/index.js:7363:25)
at process.g (events.js:291:16)
at emitOne (events.js:101:20)
at process.emit (events.js:188:7)
at process.exit (internal/process.js:164:15)
at Command. (/usr/share/kibana/src/cli/serve/serve.js:138:17)
at throw (native)
at step (/usr/share/kibana/src/cli/serve/serve.js:25:191)
at /usr/share/kibana/src/cli/serve/serve.js:25:402
Can someone help please.