java.io.IOException: Cannot run program "/root/.jenkins/workspace/OnTest/gradlew" (in directory "/root/.jenkins/workspace/OnTest"): error=13, Permission denied

Searched on Google with the first line of a JAVA stack trace?

We can recommend more relevant solutions and speed up debugging when you paste your entire stack trace with the exception message. Try a sample exception.

Recommended solutions based on your search

Samebug tips

,

Provide a working directory instead of pointing it to a file or an empty directory in process builder.

,
Expert tip

This is a bug in some versions of the Arduino IDE. Try updating to the version 1.6.12 or further.

Solutions on the web

via Stack Overflow by Asif
, 2 years ago
Cannot run program "/root/.jenkins/workspace/OnTest/gradlew" (in directory "/root/.jenkins/workspace/OnTest"): error=13, Permission denied
via codegur.online by Unknown author, 1 year ago
Cannot run program "/root/.jenkins/workspace/OnTest/gradlew" (in directory "/root/.jenkins/workspace/OnTest"): error=13, Permission denied
, 10 months ago
Cannot run program "/var/lib/jenkins/workspace/Base Metals/gradlew" (in directory "/var/lib/jenkins/workspace/Base Metals"): error=13, Permission denied
via Stack Overflow by Asif
, 2 years ago
Cannot run program "/root/.jenkins/workspace/NestedWorkspace/gradlew" (in directory "/root/.jenkins/workspace/NestedWorkspace"): error=2, No such file or directory
via jenkins-ci.org by Unknown author, 1 year ago
Cannot run program "/ var /lib/jenkins/jobs/Ab2edemo/workspace/gradlew" (in directory "/ var /lib/jenkins/jobs/Ab2edemo/workspace/Ab2edemo" ): error=2, No such file or directory
via Stack Overflow by ShatyUT
, 1 year ago
Cannot run program "gradle" (in directory "/var/lib/jenkins/workspace/Journeyman-Android"): error=2, No such file or directory
java.io.IOException: error=13, Permission denied
at java.lang.UNIXProcess.forkAndExec(Native Method)
at java.lang.UNIXProcess.(UNIXProcess.java:135)
at java.lang.ProcessImpl.start(ProcessImpl.java:130)
at java.lang.ProcessBuilder.start(ProcessBuilder.java:1021)
at hudson.Proc$LocalProc.(Proc.java:244)
at hudson.Proc$LocalProc.(Proc.java:216)
at hudson.Launcher$LocalLauncher.launch(Launcher.java:816)
at hudson.Launcher$ProcStarter.start(Launcher.java:382)
at hudson.Launcher$ProcStarter.join(Launcher.java:389)
at hudson.plugins.gradle.Gradle.performTask(Gradle.java:262)
at hudson.plugins.gradle.Gradle.perform(Gradle.java:116)
at hudson.tasks.BuildStepMonitor$1.perform(BuildStepMonitor.java:20)
at hudson.model.AbstractBuild$AbstractBuildExecution.perform(AbstractBuild.java:779)
at hudson.model.Build$BuildExecution.build(Build.java:205)
at hudson.model.Build$BuildExecution.doRun(Build.java:162)
at hudson.model.AbstractBuild$AbstractBuildExecution.run(AbstractBuild.java:537)
at hudson.model.Run.execute(Run.java:1741)
at hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:43)
at hudson.model.ResourceController.execute(ResourceController.java:98)
at hudson.model.Executor.run(Executor.java:408)

Users with the same issue

2 times, 1 month ago
Once, 1 month ago
Once, 2 months ago
15 times, 2 months ago
6 times, 3 months ago

Write tip

Know the solutions? Share your knowledge to help other developers to debug faster.