Failed to execute /app/your_program.sh: fork/exec /app/your_program.sh: permission denied

Hello all, I’m stuck on Stage #(The type builtin: executable files #mg5).

Here are my logs:

[compile] Moved ./.codecrafters/run.sh → ./your_program.sh
[compile] Compilation successful.
Debug = true
[tester::#OO8] Running tests for Stage #OO8 (Print a prompt)
[tester::#OO8] Running ./your_program.sh
[tester::#OO8] Failed to execute /app/your_program.sh: fork/exec /app/your_program.sh: permission denied
[tester::#OO8] Test failed

Locally everything works fine, for some reason “codecrafters test --previous” fails as well

Initiating test run...

⚡ This is a turbo test run. https://codecrafters.io/turbo

Running tests. Logs should appear shortly...

[compile] Moved ./.codecrafters/run.sh → ./your_program.sh
[compile] Compilation successful.

Debug = true

[tester::#OO8] Running tests for Stage #OO8 (Print a prompt)
[tester::#OO8] Running ./your_program.sh
[tester::#OO8] Failed to execute /app/your_program.sh: fork/exec /app/your_program.sh: permission denied
[tester::#OO8] Test failed

That makes me believe something is wrong with the test jobs :thinking:
And I don’t really understand why it says /app/your_program.sh, where is the app coming from?

One thing to note, when I started this challenge I was on WSL Ubuntu, now I have moved the whole folder to my laptop, just Ubuntu no Windows. (I don’t have access to my desktop PC for the next few weeks). But again, I think it’s something with the test jobs because locally everything works :thinking:

Thanks for your help!


/edit

  1. I made sure that the file is executable
-rwxrwxrwx 1 ******* ********  818 Dec 21 18:28 your_program.sh*
  1. On my laptop I’m also using a differnt user name and email, I wouldn’t expect that to be an issue though

Hi @kin1m0d, we’ll investigate and get back to you with an update next week. Thanks for highlighting the issue!

We’ve fixed your repo by restoring the execute permissions for the files in the .codecrafters folder.

Let us know if you encounter any further issues!

Thanks a lot that was it!!

I just wonder how this happened, I noticed that those two files were shown as modified but didn’t think about it.

But is that not a potential security risk if I’m able to modify scripts that will be automatically executed on some other machines? :thinking:

Your code is executed within a secure, sandboxed environment to ensure it doesn’t pose any security risks to other systems. Let us know if you have any further questions or concerns!