Help
cancel
Showing results for 
Search instead for 
Did you mean: 
Highlighted
Copilot Lvl 2
Message 1 of 3

Permission Denied "exec entrypoint.sh"

Solved! Go to Solution.

I have recently created an action which utilises Join to send notification to devices. The action repository is based off Pushover which has some values changed.

However, when using my action, I have this error which doesn't seem to occur in the Pushover action.

 

Sample run (Pushover only: Pass)

https://github.com/ShaunLWM/awdawd/runs/213770026

 

Sample run (Join and Pushover - failed):

https://github.com/ShaunLWM/awdawd/runs/213779607

 

Logs:

Error response from daemon: OCI runtime create failed: container_linux.go:345: starting container process caused "exec: \"/entrypoint.sh\": permission denied": unknown

 

I am kind of confused as to why is it happening as it runs off the exact same Dockerfile. 

I apologise for being new to this. I've tried changing the image in the Dockerfile but to no avail.

Thank you so much.

2 Replies
Solution
GitHub Staff
Message 2 of 3

Re: Permission Denied "exec entrypoint.sh"

The runner is trying to run your entrypoint.sh as a script, but it looks like your entrypoint.sh is missing the execute bit.  You'll need to add it to that file in your action's repository.

 

On Linux or macOS, run:

 

chmod +x entrypoint.sh
git add entrypoint.sh
git commit

 

On Windows, run:

 

 

git add --chmod=+x -- entrypoint.sh
git commit

 

 

And then push the changes back up.

Copilot Lvl 2
Message 3 of 3

Re: Permission Denied "exec entrypoint.sh"

Ran the command and it's now working as expected. Thank you so much for your help. I will definitely read up more about the additional paramters for the `git add` command as this is the first time I've seen the argument used. Thank you once again.