Skip to content
This repository has been archived by the owner on Apr 12, 2022. It is now read-only.

Error: EACCES: permission denied #11

Closed
dynek opened this issue Dec 19, 2016 · 6 comments
Closed

Error: EACCES: permission denied #11

dynek opened this issue Dec 19, 2016 · 6 comments
Assignees

Comments

@dynek
Copy link

dynek commented Dec 19, 2016

Hello,

Is anyone really using this image?
The x-pack plugin is installed as root then user context switches to kibana but some files in /usr/share/kibana/optimize/ remain owned by root and causes service startup to fail with

Error: EACCES: permission denied, open '/usr/share/kibana/optimize/bundles/graph.entry.js'

Tried 5.0.1 and 5.1.1

Note: it seems to be happening only if SERVER_BASEPATH is being specified.

Thank you

@jarpy
Copy link
Contributor

jarpy commented Dec 19, 2016

Thanks for the report.

It seems there's an upstream issue in Kibana that details the problem. I'll track that issue and figure out the best fix for the Docker image.

jarpy added a commit that referenced this issue Dec 19, 2016
@jarpy
Copy link
Contributor

jarpy commented Dec 19, 2016

Fixed in 199b9ed. Will backport and push new images for:

  • 5.1.1
  • 5.0.2
  • 5.0.1
  • 5.0.0

jarpy added a commit that referenced this issue Dec 20, 2016
@jarpy jarpy closed this as completed Dec 20, 2016
@dynek
Copy link
Author

dynek commented Dec 20, 2016

Excellent! Thanks for the quick fix.

@Madhu1512
Copy link

I am seeing same issue in 5.1.2 image but not with 5.1.1. Is 5.1.2 image updated with your fix?

@jarpy
Copy link
Contributor

jarpy commented Jan 23, 2017

Good catch.

Somehow this has regressed in 5.1.2:

$ docker run -it docker.elastic.co/kibana/kibana:5.1.2 stat -c%U /usr/share/kibana/optimize/bundles/graph.entry.js
root

$ docker run -it docker.elastic.co/kibana/kibana:5.1.1 stat -c%U /usr/share/kibana/optimize/bundles/graph.entry.js
kibana

Apologies. Let me figure out what went wrong.

@jarpy jarpy reopened this Jan 23, 2017
@jarpy
Copy link
Contributor

jarpy commented Jan 23, 2017

I've now pushed a corrected image.

Thanks for the report, and sorry for the trouble.

@jarpy jarpy closed this as completed Jan 23, 2017
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants