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

Docker build issue cron: can't open or create /var/run/crond.pid: Permission denied #447

Open
deepakprakash007 opened this issue Dec 22, 2023 · 3 comments

Comments

@deepakprakash007
Copy link

I cloned the repo and tried building the docker image. I was able to build and when I ran using the docker-compose file after starting Postgres and Redis, I was able to run it but, the server didn't start when I docker log the server I'm getting this: cron: can't open or create /var/run/crond.pid: Permission denied, I tried it building on amazon-Linux and ubuntu on an ec2.

@pryme0
Copy link

pryme0 commented Jan 25, 2024

I am having the same challenge as well, any resolution for this yet?

@deepakprakash007
Copy link
Author

@pryme0 you can try to remove

COPY cron /etc/cron.d
RUN cat /etc/cron.d/* | crontab -

from the Dockerfile,
and if the server doesn't start on it's own, you can add ./server script in the docker-compose.yml file just like ./worker.

If all above doesn't work, you can manually run the ./server by docker exec -it container_id /bin/bash.

Or you can use amazon linux 2, for now this seems to work without any issue.

@raviprakash007
Copy link

This is weired issue. No one is actively working on judge0.

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

3 participants