java.io.IOException

Cannot run program "readlink" (in directory "."): error=2, No such file or directory

Samebug tips2

You might be using the wrong way to add commands to the command line. Try using commandDownloader.add("command");

If you're trying to make a splash screen, check this tutorial: https://goo.gl/zQyCYe

Don't give up yet. Our experts can help. Paste your full stack trace to get a solution.

Solutions on the web21889

  • via Jenkins JIRA by michaelj lucifer, 11 months ago
    Cannot run program "readlink" (in directory "."): error=2, No such file or directory
  • via Jenkins JIRA by michaelj lucifer, 1 year ago
    Cannot run program "readlink" (in directory "."): error=2, No such file or directory
  • via Jenkins JIRA by Laurent Sauvage, 1 year ago
    Cannot run program "readlink" (in directory "/opt/instance/ SUNWappserver/domains/dom-hudson/config/."): error=2, No such file or directory
  • Stack trace

    • java.io.IOException: Cannot run program "readlink" (in directory "."): error=2, No such file or directory at java.lang.Throwable.<init>(Throwable.java:80) at java.lang.ProcessBuilder.start(ProcessBuilder.java:449) at java.lang.Runtime.exec(Runtime.java:604) at jnr.posix.util.ExecIt.run(ExecIt.java:65) at jnr.posix.util.ExecIt.runAndWait(ExecIt.java:55) at jnr.posix.JavaLibCHelper$PosixExec.runAndWait(JavaLibCHelper.java:371) at jnr.posix.JavaLibCHelper$PosixExec.runAndWait(JavaLibCHelper.java:367) at jnr.posix.JavaLibCHelper.readlink(JavaLibCHelper.java:326) at jnr.posix.JavaPOSIX.readlink(JavaPOSIX.java:256) at jnr.posix.LazyPOSIX.readlink(LazyPOSIX.java:219) at hudson.Util.resolveSymlink(Util.java:1335) at jenkins.model.PeepholePermalink.writeSymlink(PeepholePermalink.java:195) at jenkins.model.PeepholePermalink.updateCache(PeepholePermalink.java:150) at jenkins.model.PeepholePermalink$RunListenerImpl.onCompleted(PeepholePermalink.java:237) at hudson.model.listeners.RunListener.fireCompleted(RunListener.java:199) at hudson.maven.MavenBuild$ProxyImpl2.end(MavenBuild.java:594) at sun.reflect.GeneratedMethodAccessor406.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:37) at java.lang.reflect.Method.invoke(Method.java:599) at hudson.model.Executor$1.call(Executor.java:579) at hudson.util.InterceptingProxy$1.invoke(InterceptingProxy.java:23) at $Proxy115.end(Unknown Source) at sun.reflect.GeneratedMethodAccessor406.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:37) at java.lang.reflect.Method.invoke(Method.java:599) at hudson.remoting.RemoteInvocationHandler$RPCRequest.perform(RemoteInvocationHandler.java:320) at hudson.remoting.RemoteInvocationHandler$RPCRequest.call(RemoteInvocationHandler.java:295) at hudson.remoting.RemoteInvocationHandler$RPCRequest.call(RemoteInvocationHandler.java:254) at hudson.remoting.UserRequest.perform(UserRequest.java:121) at hudson.remoting.UserRequest.perform(UserRequest.java:49) at hudson.remoting.Request$2.run(Request.java:324) at hudson.remoting.InterceptingExecutorService$1.call(InterceptingExecutorService.java:68) at org.jenkinsci.remoting.CallableDecorator.call(CallableDecorator.java:18) at hudson.remoting.CallableDecoratorList$1.call(CallableDecoratorList.java:21) at jenkins.util.ContextResettingExecutorService$2.call(ContextResettingExecutorService.java:43) at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:314) at java.util.concurrent.FutureTask.run(FutureTask.java:149) at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:896) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:918) at java.lang.Thread.run(Thread.java:735) Caused by: java.io.IOException: error=2, No such file or directory at java.lang.UNIXProcess.forkAndExec(Native Method) at java.lang.UNIXProcess.<init>(UNIXProcess.java:53) at java.lang.ProcessImpl.start(ProcessImpl.java:101) at java.lang.ProcessBuilder.start(ProcessBuilder.java:463) ... 38 more

    Write tip

    You have a different solution? A short tip here would help you and many other users who saw this issue last week.

    Users with the same issue

    Once, 7 months ago
    Unknown user
    Once, 11 months ago
    Unknown user
    Once, 11 months ago
    Unknown user
    Once, 1 year ago
    Unknown user
    Once, 1 year ago
    125 more bugmates