arangodb-docker icon indicating copy to clipboard operation
arangodb-docker copied to clipboard

Permission denied in entrypoint.sh

Open pdiveris opened this issue 7 years ago • 7 comments
trafficstars

Just a quick note - I've been running locally the Dockerfile so that I can use it as a base image and have dumps and scripts executed and I've been getting this error

ERROR: for arangodb Cannot start service arangodb: b'OCI runtime create failed: container_linux.go:348: starting container process caused "exec: \\"/entrypoint.sh\\": permission denied": unknown'

I have resolved by adding the chmod line under the entrypoint statement as follows

ENTRYPOINT ["/entrypoint.sh"]
RUN ["chmod", "+x", "/entrypoint.sh"]

I can see that you state in the doc that "if you are using the image as a base image please make sure to wrap any CMD in the exec form. Otherwise the default entrypoint will not do its bootstrapping work." but I am not sure that's the issue I've hit, mostly because I do not know what that means due to my.. ignorance. If that's the case please accept my apologies, point me to an example if you please, and do close this issue.

Otherwise, you might want to be aware of this issue..

pdiveris avatar Aug 15 '18 15:08 pdiveris

Does this problem still exist?

fceller avatar Feb 18 '19 14:02 fceller

Not sure to be honest. Will check and close if solved.

pdiveris avatar Feb 18 '19 17:02 pdiveris

Does this problem still exist?

Yes, it does.

genesis3g avatar Apr 11 '19 01:04 genesis3g

Thank for confirming and yes, I re-confirm, yes it does.

pdiveris avatar Apr 11 '19 06:04 pdiveris

the suggested change will be available with ArangoDB 3.4.6

dothebart avatar Apr 12 '19 13:04 dothebart

I solve this problem by adding 2 lines before ENTRYPOINT ["/entrypoint.sh"] inside Dockerfile

RUN ["chmod", "+x", "/entrypoint.sh"]
RUN ["chmod", "+x", "/usr/bin/foxx"]

caracal7 avatar Sep 05 '19 15:09 caracal7

Yes, that's precisely what I did too. Thanks.

diverispetros avatar Sep 05 '19 15:09 diverispetros