question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

IOException: Cannot run program "": error=13, Permission denied

See original GitHub issue

I recently had issue with mentioned exception:

java.io.IOException: Cannot run program "/tmp/extract-f77354d0-83fa-47e2-b7e1-47b3577bbf4eextractmongod": error=13, Permission denied`
...
Caused by: java.io.IOException: error=13, Permission denied
    at java.lang.UNIXProcess.forkAndExec(Native Method)
    at java.lang.UNIXProcess.<init>(UNIXProcess.java:248)
    at java.lang.ProcessImpl.start(ProcessImpl.java:134)
    at java.lang.ProcessBuilder.start(ProcessBuilder.java:1029)

As I commented here, I thought it’s Java version issue. Unfortunately the issue came back - at least in the dockerized Jenkins 2.7.4. I never had such problems @ localhost. The application I’m using embed.mongo for is a custom spring-boot starter (embed.mongo is used in it’s tests). Spring boot had version set to latest (1.50.5). when I reverted version for my tests to 1.50.3 and purged ~/.embedmongo directory it started working fine again.

If you need any more info, please let me know.

Issue Analytics

  • State:closed
  • Created 7 years ago
  • Comments:11 (4 by maintainers)

github_iconTop GitHub Comments

1reaction
jeep87ccommented, Aug 16, 2018

@vgindin instead of using UUIDTempNaming() we were using the other option which is not a unique name. Result was flapdoodle running in different threads was trying to create an executable file using the same name causing the exception. Ensuring it use a unique name at each execution like we did, solved the problem.

0reactions
vgindincommented, Aug 16, 2018

Hi. I’ve faced with such problem in another project. Could you explain your solution? Why did it help?

Read more comments on GitHub >

github_iconTop Results From Across the Web

Ask Question - Stack Overflow
Cannot run program "..../abc.exe": error=13, Permission denied ... Any suggestions on how to get this working? ... Probably also requires x ...
Read more >
Getting error=13, Permission denied when using try ... - GitHub
Hi, Am using this awsome library for ffmpeg in java,i use the documeted code in github and am getting the following issue.
Read more >
Help error=13, Permission denied - Tutorials & Examples
IOException : Cannot run program "/etc/openhab2/scripts/fritzboxprofile.sh" (in directory "."): error=13, Permission denied).
Read more >
java.io.IOException: Cannot run program error=13 - JBoss.org
What it looks like might be happening is that the SUDO_USER environment variable is being referenced to determine who is originating the command...
Read more >
Error=13, Permission denied - Jenkins Community
The message Cannot run program /usr/bin/ indicates that Jenkins is trying to run a program that has the same name as a common...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found