{"action":"created","issue":{"url":"https://api.github.com/repos/docker-library/kibana/issues/63","repository_url":"https://api.github.com/repos/docker-library/kibana","labels_url":"https://api.github.com/repos/docker-library/kibana/issues/63/labels{/name}","comments_url":"https://api.github.com/repos/docker-library/kibana/issues/63/comments","events_url":"https://api.github.com/repos/docker-library/kibana/issues/63/events","html_url":"https://github.com/docker-library/kibana/issues/63","id":189136388,"number":63,"title":"Kibana-5 fails to launch with custom-config - permission denied","user":{"login":"jmkgreen","id":105936,"avatar_url":"https://avatars.githubusercontent.com/u/105936?v=3","gravatar_id":"","url":"https://api.github.com/users/jmkgreen","html_url":"https://github.com/jmkgreen","followers_url":"https://api.github.com/users/jmkgreen/followers","following_url":"https://api.github.com/users/jmkgreen/following{/other_user}","gists_url":"https://api.github.com/users/jmkgreen/gists{/gist_id}","starred_url":"https://api.github.com/users/jmkgreen/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jmkgreen/subscriptions","organizations_url":"https://api.github.com/users/jmkgreen/orgs","repos_url":"https://api.github.com/users/jmkgreen/repos","events_url":"https://api.github.com/users/jmkgreen/events{/privacy}","received_events_url":"https://api.github.com/users/jmkgreen/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2016-11-14T15:10:57Z","updated_at":"2016-12-10T21:25:42Z","closed_at":null,"body":"In order to switch-off x-pack components (https://www.elastic.co/guide/en/x-pack/current/installing-xpack.html) I have supplied my own kibana.yaml file and provided the following 'CMD' instruction via a docker-compose.yaml file:\r\n\r\n`kibana -c /usr/share/kibana/kibana-5.yaml`\r\n\r\nOn launch, I now get the following:\r\n\r\n```\r\n\"type\":\"log\",\"@timestamp\":\"2016-11-14T14:58:13Z\",\"tags\":[\"fatal\"],\"pid\":13,\"level\":\"fatal\",\"message\":\"EACCES: permission denied, open '/usr/share/kibana/optimize/bundles/monitoring.entry.js'\",\"error\":{\"message\":\"EACCES: permission denied, open '/usr/share/kibana/optimize/bundles/monitoring.entry.js'\",\"name\":\"Error\",\"stack\":\"Error: EACCES: permission denied, open '/usr/share/kibana/optimize/bundles/monitoring.entry.js'\\n    at Error (native)\",\"code\":\"EACCES\"}}\r\n```\r\n\r\nPresumably something to do with the permissions run when the start-up script does not get run with `kibana` as the only argument?\r\n"},"comment":{"url":"https://api.github.com/repos/docker-library/kibana/issues/comments/266241223","html_url":"https://github.com/docker-library/kibana/issues/63#issuecomment-266241223","issue_url":"https://api.github.com/repos/docker-library/kibana/issues/63","id":266241223,"user":{"login":"tianon","id":161631,"avatar_url":"https://avatars.githubusercontent.com/u/161631?v=3","gravatar_id":"","url":"https://api.github.com/users/tianon","html_url":"https://github.com/tianon","followers_url":"https://api.github.com/users/tianon/followers","following_url":"https://api.github.com/users/tianon/following{/other_user}","gists_url":"https://api.github.com/users/tianon/gists{/gist_id}","starred_url":"https://api.github.com/users/tianon/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tianon/subscriptions","organizations_url":"https://api.github.com/users/tianon/orgs","repos_url":"https://api.github.com/users/tianon/repos","events_url":"https://api.github.com/users/tianon/events{/privacy}","received_events_url":"https://api.github.com/users/tianon/received_events","type":"User","site_admin":false},"created_at":"2016-12-10T21:25:42Z","updated_at":"2016-12-10T21:25:42Z","body":"Can you provide your full `docker run` line or `docker-compose.yml` file contents?\r\n\r\nAre you doing any bind mounts or installing anything in your own `Dockerfile` which is `FROM` this image?\r\n\r\nThe [`docker-entrypoint.sh`](https://github.com/docker-library/kibana/blob/a50b513591761efb9c201933d0eb0296e8ae43af/5/docker-entrypoint.sh) script we use doesn't touch any file permissions, but it _does_ switch to the `kibana` user, so any files Kibana needs to access at runtime need at least read permissions for that user. :+1:"}}
{"actor":{"display_login":"tianon"}}