Hello,
I have a project where it is required that I contact kibana via nginx proxy pass having the URL the following format: http://domain.com/kibana
I have configured the nginx with location /kibana {} but when I access kibana is failing back to http://domain.com/ which would obviously give me error 503.
I have tried adding to the kibana.yml the following:
server.basePath: "/kibana"
but it fails starting with the following error in the logs:
Aug 4 21:39:35 ip-172-16-99-5 kibana[5010]: {"type":"log","@timestamp":"2017-08-04T21:39:35Z","tags":["fatal"],"pid":5010,"level":"fatal","message":"EACCES: permission denied, open '/usr/share/kibana/optimize/bundles/graph.entry.js'","error":{"message":"EACCES: permission denied, open '/usr/share/kibana/optimize/bundles/graph.entry.js'","name":"Error","stack":"Error: EACCES: permission denied, open '/usr/share/kibana/optimize/bundles/graph.entry.js'\n at Error (native)","code":"EACCES"}}
Aug 4 21:39:35 ip-172-16-99-5 kibana[5010]: FATAL { Error: EACCES: permission denied, open '/usr/share/kibana/optimize/bundles/graph.entry.js'
Aug 4 21:39:35 ip-172-16-99-5 kibana[5010]: at Error (native)
Aug 4 21:39:35 ip-172-16-99-5 kibana[5010]: cause:
Aug 4 21:39:35 ip-172-16-99-5 kibana[5010]: { Error: EACCES: permission denied, open '/usr/share/kibana/optimize/bundles/graph.entry.js'
Aug 4 21:39:35 ip-172-16-99-5 kibana[5010]: at Error (native)
Aug 4 21:39:35 ip-172-16-99-5 kibana[5010]: errno: -13,
Aug 4 21:39:35 ip-172-16-99-5 kibana[5010]: code: 'EACCES',
Aug 4 21:39:35 ip-172-16-99-5 kibana[5010]: syscall: 'open',
Aug 4 21:39:35 ip-172-16-99-5 kibana[5010]: path: '/usr/share/kibana/optimize/bundles/graph.entry.js' },
Aug 4 21:39:35 ip-172-16-99-5 kibana[5010]: isOperational: true,
Aug 4 21:39:35 ip-172-16-99-5 kibana[5010]: errno: -13,
Aug 4 21:39:35 ip-172-16-99-5 kibana[5010]: code: 'EACCES',
Aug 4 21:39:35 ip-172-16-99-5 kibana[5010]: syscall: 'open',
Aug 4 21:39:35 ip-172-16-99-5 kibana[5010]: path: '/usr/share/kibana/optimize/bundles/graph.entry.js' }
Aug 4 21:39:35 ip-172-16-99-5 systemd[1]: kibana.service: Main process exited, code=exited, status=1/FAILURE
Aug 4 21:39:35 ip-172-16-99-5 systemd[1]: kibana.service: Unit entered failed state.
Aug 4 21:39:35 ip-172-16-99-5 systemd[1]: kibana.service: Failed with result 'exit-code'.
Aug 4 21:39:35 ip-172-16-99-5 systemd[1]: kibana.service: Service hold-off time over, scheduling restart.
Any way to have this fixed?
Regards,
Peter