java.io.IOException: Cannot run program "repo" (in directory "/Users/build/jenkins/workspace/job-64/Destination_Directory"): error=2, No such file or directory

Jenkins JIRA | David W | 3 years ago
  1. 0

    I am trying to bring up a new slave node with an identically configuration to a working slave. **** Error message **** [EnvInject] - Loading node environment variables. Building remotely on mini-slave in workspace /Users/build/jenkins/workspace/job-64 [Destination_Directory] $ repo init -u ssh://source.company.local/git/product-manifest -b feature_branch java.io.IOException: Cannot run program "repo" (in directory "/Users/build/jenkins/workspace/job-64/Destination_Directory"): error=2, No such file or directory at java.lang.ProcessBuilder.processException(ProcessBuilder.java:478) ***** If I remove the repo information from Source control Management. And move the repo commands down into the shell it works. cd job-64/Destination_Directory repo init -u ssh://source.company.local/git/product-manifest -b feature_branch repo sync -d --jobs=1 ===== So it looks like a pathing issue however the pathing for the repo tool has been set everywhere and I see no way of figuring out where it's getting the information. Repo is located in /Users/build/bin Specifically I'm setting environment at: From the job: Inject Environment variables to the build process: PATH=/Users/build/bin:/opt/local/bin:/usr/bin:/bin:/usr/sbin:/sbin:/usr/local/bin From the Node: Environment Variables: (PATH=/Users/build/bin:$PATH)

    Jenkins JIRA | 3 years ago | David W
    java.io.IOException: Cannot run program "repo" (in directory "/Users/build/jenkins/workspace/job-64/Destination_Directory"): error=2, No such file or directory
  2. 0

    I am trying to bring up a new slave node with an identically configuration to a working slave. **** Error message **** [EnvInject] - Loading node environment variables. Building remotely on mini-slave in workspace /Users/build/jenkins/workspace/job-64 [Destination_Directory] $ repo init -u ssh://source.company.local/git/product-manifest -b feature_branch java.io.IOException: Cannot run program "repo" (in directory "/Users/build/jenkins/workspace/job-64/Destination_Directory"): error=2, No such file or directory at java.lang.ProcessBuilder.processException(ProcessBuilder.java:478) ***** If I remove the repo information from Source control Management. And move the repo commands down into the shell it works. cd job-64/Destination_Directory repo init -u ssh://source.company.local/git/product-manifest -b feature_branch repo sync -d --jobs=1 ===== So it looks like a pathing issue however the pathing for the repo tool has been set everywhere and I see no way of figuring out where it's getting the information. Repo is located in /Users/build/bin Specifically I'm setting environment at: From the job: Inject Environment variables to the build process: PATH=/Users/build/bin:/opt/local/bin:/usr/bin:/bin:/usr/sbin:/sbin:/usr/local/bin From the Node: Environment Variables: (PATH=/Users/build/bin:$PATH)

    Jenkins JIRA | 3 years ago | David W
    java.io.IOException: Cannot run program "repo" (in directory "/Users/build/jenkins/workspace/job-64/Destination_Directory"): error=2, No such file or directory
  3. 0

    Streaming to Hadoop with Node.js

    Google Groups | 3 years ago | tom lurge
    java.io.IOException: Cannot run program "/Users/me/aggregation/hadoop/mapper.js": error=13, Permission denied
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    GitHub comment 26#73464171

    GitHub | 2 years ago | XxDrak3xX
    java.io.IOException: Cannot run program "/Library/Java/JavaVirtualMachines/jdk1.7.0_75.jdk/Contents/Home " (in directory "/Users/Bryce/Library/Application Support/minecraft"): error=2, No such file or directory
  6. 0

    Jenkins does not run SCons program on the Source directory

    Stack Overflow | 2 months ago | Kid
    java.io.IOException: Cannot run program "scons" (in directory "/Users/Kid/.jenkins/jobs/Try/workspace/Demo"): error=2, No such file or directory

    Not finding the right solution?
    Take a tour to get the most out of Samebug.

    Tired of useless tips?

    Automated exception search integrated into your IDE

    Root Cause Analysis

    1. java.io.IOException

      Cannot run program "repo" (in directory "/Users/build/jenkins/workspace/job-64/Destination_Directory"): error=2, No such file or directory

      at java.lang.ProcessBuilder.processException()
    2. Java RT
      ProcessBuilder.processException
      1. java.lang.ProcessBuilder.processException(ProcessBuilder.java:478)
      1 frame