Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

OpenShift: Persmission denied on /var/lib/arrangodb3* #305

Open
vpavlin opened this issue Nov 21, 2018 · 1 comment
Open

OpenShift: Persmission denied on /var/lib/arrangodb3* #305

vpavlin opened this issue Nov 21, 2018 · 1 comment

Comments

@vpavlin
Copy link

vpavlin commented Nov 21, 2018

Hi,

I am working on deploying ArangoDB on our OpenShift cluster and everything looks great up to the point where I try to create a database at which point I get:

2018-11-21T09:38:54Z [1] ERROR unable to create application directory '/var/lib/arangodb3-apps/_db/test' for database 'test': failed to create directory '/var/lib/arangodb3-apps/_db/test': Permission denied

I tracked the issue down to missing -R in https://github.com/vpavlin/arangodb-docker/blob/official/Dockerfile34.templ#L46-L47

I am just creating this issue as a tracker (as the missing argument causes issue with the operator), I've filed issue (and will probably provide a PR)

I have filed issue on arangodb-docker: arangodb/arangodb-docker#57
And provided a PR: arangodb/arangodb-docker#58

@omarmohsen
Copy link

I can still reproduce the same issue using Kubernetes, the single nodes drop all Linux capabilities, the main reason because the capability DAC_OVERRIDE is dropped as well:

securityContext:
      capabilities:
        drop:
        - all

root@test-76c67d987c-pncbc:/# touch  /var/lib/arangodb3-apps/_db/s
touch: cannot touch '/var/lib/arangodb3-apps/_db/s': Permission denied

The issue is still reproduced even if I am not using the Arango Deployment operator, as long as all capabilities are dropped, if I drop all capabilities in the YAML and add DAC_OVERRIDE, the issue does not occur.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants