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

Permission denied on start cachet #124

Closed
sebglon opened this issue Sep 15, 2016 · 4 comments
Closed

Permission denied on start cachet #124

sebglon opened this issue Sep 15, 2016 · 4 comments

Comments

@sebglon
Copy link

sebglon commented Sep 15, 2016

afert fresh checkout on git repo master

I run docker-compose buid and docker-compose up.

container cachet exit with non 0.
on log i see:
"/sbin/entrypoint.sh": permission denied

If i edit Dockerfile and add
RUN chmod 0777 /sbin/entrypoint.sh

or move
COPY entrypoint.sh /sbin/entrypoint.sh
after USER www-data

all is OK

@sebglon sebglon closed this as completed Sep 15, 2016
@sebglon sebglon reopened this Sep 15, 2016
@sebglon
Copy link
Author

sebglon commented Sep 15, 2016

this bug is due to COPY comamnd.
/sbin/entrypoint.sh and /var/www/html/.env has owner root.

If i add USER root before ENTRYPOINT line, All is OK but Cachet is run on root user.

otherwise entrypoint.sh and supervisor is run with www-data user.

@djdefi
Copy link
Contributor

djdefi commented Sep 22, 2016

May be a local permissions issue, possibly do a chmod a+x entrypoint.sh within your working directory.

Travis CI builds are not failing, which I would expect if this was a more widespread issue.

@sebglon
Copy link
Author

sebglon commented Sep 23, 2016

U have tested chmod a+x and it not solve them.

This is not docker build that fail but docker run

@djdefi
Copy link
Contributor

djdefi commented Sep 27, 2016

Our Travis tests build and run the container as well.

Anyway, I have created #134 which chmod / chown's the entrypoint.sh to www-data during build.

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