hudson.plugins.git.GitException: Could not checkout 7e42dcecfc5a792e9865d01916cb1e8942jkfc35

Jenkins JIRA | pallan | 6 years ago
  1. 0

    [JENKINS-8244] "Too Many Open files", Git and SSH slave - Jenkins JIRA

    jenkins-ci.org | 1 year ago
    hudson.plugins.git.GitException: Could not checkout 7e42dcecfc5a792e9865d01916cb1e8942jkfc35
  2. 0

    We have a hudson instance that is failing after only a few builds with the "Too Many Open file error". Here are the vitals: Hudson 1.386 Git Plugin 1.1.4 The system is building a Rails test suite using the Rake plugin. Git is configured to build all available branches and there are about 12 right now, but regular activity only occurs on 2. All builds are being done on a slave machine using Unix SSH. We used the instructions on the wiki related to the "too many open files" error, ls -la /proc/PID/fd shows 2500 files and GC does not clean them up. It essentially makes the slave useless until we disconnect and reconnect to it. If we don't have git configured to use all the branches then we don't get the problem. Here is a full backtrace The Git error at the top can vary /usr/bin/git checkout -f 7e42dcecfc5a792e9865d01916cb1e8942jkfc35 FATAL: Could not checkout 7e42dcecfc5a792e9865d01916cb1e8942jkfc35 hudson.plugins.git.GitException: Could not checkout 7e42dcecfc5a792e9865d01916cb1e8942jkfc35 at hudson.plugins.git.GitAPI.checkout(GitAPI.java:450) at hudson.plugins.git.GitSCM$4.invoke(GitSCM.java:981) at hudson.plugins.git.GitSCM$4.invoke(GitSCM.java:972) at hudson.FilePath$FileCallableWrapper.call(FilePath.java:1899) at hudson.remoting.UserRequest.perform(UserRequest.java:114) at hudson.remoting.UserRequest.perform(UserRequest.java:48) at hudson.remoting.Request$2.run(Request.java:270) at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:471) at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:334) at java.util.concurrent.FutureTask.run(FutureTask.java:166) at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1110) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:603) at java.lang.Thread.run(Thread.java:636) Caused by: hudson.plugins.git.GitException: Error performing /usr/bin/git checkout -f 7e42dcecfc5a792e9865d01916cb1e8942jkfc35 Cannot run program "/usr/bin/git" (in directory "/home/web/workspace/MyProject"): java.io.IOException: error=24, Too many open files at hudson.plugins.git.GitAPI.launchCommandIn(GitAPI.java:379) at hudson.plugins.git.GitAPI.launchCommand(GitAPI.java:344) at hudson.plugins.git.GitAPI.launchCommand(GitAPI.java:354) at hudson.plugins.git.GitAPI.checkout(GitAPI.java:448) ... 12 more Caused by: java.io.IOException: Cannot run program "/usr/bin/git" (in directory "/home/web/workspace/MyProject"): java.io.IOException: error=24, Too many open files at java.lang.ProcessBuilder.start(ProcessBuilder.java:475) at hudson.Proc$LocalProc.<init>(Proc.java:192) at hudson.Proc$LocalProc.<init>(Proc.java:164) at hudson.Launcher$LocalLauncher.launch(Launcher.java:638) at hudson.Launcher$ProcStarter.start(Launcher.java:273) at hudson.Launcher$ProcStarter.join(Launcher.java:280) at hudson.plugins.git.GitAPI.launchCommandIn(GitAPI.java:368) ... 15 more Caused by: java.io.IOException: java.io.IOException: error=24, Too many open files at java.lang.UNIXProcess.<init>(UNIXProcess.java:164) at java.lang.ProcessImpl.start(ProcessImpl.java:81) at java.lang.ProcessBuilder.start(ProcessBuilder.java:468) ... 21 more

    Jenkins JIRA | 6 years ago | pallan
    hudson.plugins.git.GitException: Could not checkout 7e42dcecfc5a792e9865d01916cb1e8942jkfc35
  3. 0

    We have a hudson instance that is failing after only a few builds with the "Too Many Open file error". Here are the vitals: Hudson 1.386 Git Plugin 1.1.4 The system is building a Rails test suite using the Rake plugin. Git is configured to build all available branches and there are about 12 right now, but regular activity only occurs on 2. All builds are being done on a slave machine using Unix SSH. We used the instructions on the wiki related to the "too many open files" error, ls -la /proc/PID/fd shows 2500 files and GC does not clean them up. It essentially makes the slave useless until we disconnect and reconnect to it. If we don't have git configured to use all the branches then we don't get the problem. Here is a full backtrace The Git error at the top can vary /usr/bin/git checkout -f 7e42dcecfc5a792e9865d01916cb1e8942jkfc35 FATAL: Could not checkout 7e42dcecfc5a792e9865d01916cb1e8942jkfc35 hudson.plugins.git.GitException: Could not checkout 7e42dcecfc5a792e9865d01916cb1e8942jkfc35 at hudson.plugins.git.GitAPI.checkout(GitAPI.java:450) at hudson.plugins.git.GitSCM$4.invoke(GitSCM.java:981) at hudson.plugins.git.GitSCM$4.invoke(GitSCM.java:972) at hudson.FilePath$FileCallableWrapper.call(FilePath.java:1899) at hudson.remoting.UserRequest.perform(UserRequest.java:114) at hudson.remoting.UserRequest.perform(UserRequest.java:48) at hudson.remoting.Request$2.run(Request.java:270) at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:471) at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:334) at java.util.concurrent.FutureTask.run(FutureTask.java:166) at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1110) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:603) at java.lang.Thread.run(Thread.java:636) Caused by: hudson.plugins.git.GitException: Error performing /usr/bin/git checkout -f 7e42dcecfc5a792e9865d01916cb1e8942jkfc35 Cannot run program "/usr/bin/git" (in directory "/home/web/workspace/MyProject"): java.io.IOException: error=24, Too many open files at hudson.plugins.git.GitAPI.launchCommandIn(GitAPI.java:379) at hudson.plugins.git.GitAPI.launchCommand(GitAPI.java:344) at hudson.plugins.git.GitAPI.launchCommand(GitAPI.java:354) at hudson.plugins.git.GitAPI.checkout(GitAPI.java:448) ... 12 more Caused by: java.io.IOException: Cannot run program "/usr/bin/git" (in directory "/home/web/workspace/MyProject"): java.io.IOException: error=24, Too many open files at java.lang.ProcessBuilder.start(ProcessBuilder.java:475) at hudson.Proc$LocalProc.<init>(Proc.java:192) at hudson.Proc$LocalProc.<init>(Proc.java:164) at hudson.Launcher$LocalLauncher.launch(Launcher.java:638) at hudson.Launcher$ProcStarter.start(Launcher.java:273) at hudson.Launcher$ProcStarter.join(Launcher.java:280) at hudson.plugins.git.GitAPI.launchCommandIn(GitAPI.java:368) ... 15 more Caused by: java.io.IOException: java.io.IOException: error=24, Too many open files at java.lang.UNIXProcess.<init>(UNIXProcess.java:164) at java.lang.ProcessImpl.start(ProcessImpl.java:81) at java.lang.ProcessBuilder.start(ProcessBuilder.java:468) ... 21 more

    Jenkins JIRA | 6 years ago | pallan
    hudson.plugins.git.GitException: Could not checkout 7e42dcecfc5a792e9865d01916cb1e8942jkfc35
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    I don't get an error using one repository, but when I add another, I get errors like: Checking out Revision 321aa2322629f361e429cd5eb9cb4bfcf6cd8ff3 (autooem_base/features/jungo-integration, origin/features/jungo-integration) ERROR: Problem fetching submodules from a path relative to autooem_base / autooem_base - could be unavailable. Continuing anyway hudson.plugins.git.GitException: Could determine remote.origin.url at hudson.plugins.git.GitAPI.fixSubmoduleUrls(GitAPI.java:490) at hudson.plugins.git.GitAPI.setupSubmoduleUrls(GitAPI.java:552) at hudson.plugins.git.GitSCM.fetchSubmodulesFrom(GitSCM.java:606) at hudson.plugins.git.GitSCM.access$700(GitSCM.java:56) at hudson.plugins.git.GitSCM$4.invoke(GitSCM.java:1036) at hudson.plugins.git.GitSCM$4.invoke(GitSCM.java:1006) at hudson.FilePath$FileCallableWrapper.call(FilePath.java:1979) at hudson.remoting.UserRequest.perform(UserRequest.java:118) at hudson.remoting.UserRequest.perform(UserRequest.java:48) at hudson.remoting.Request$2.run(Request.java:270) at java.util.concurrent.Executors$RunnableAdapter.call(Unknown Source) at java.util.concurrent.FutureTask$Sync.innerRun(Unknown Source) at java.util.concurrent.FutureTask.run(Unknown Source) at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(Unknown Source) at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source) at hudson.remoting.Engine$1$1.run(Engine.java:60) at java.lang.Thread.run(Unknown Source) Caused by: hudson.plugins.git.GitException: Error performing command: C:\Program Files (x86)\Git\cmd\git.cmd config --get remote.origin.url Command "C:\Program Files (x86)\Git\cmd\git.cmd config --get remote.origin.url" returned status code 1: at hudson.plugins.git.GitAPI.launchCommandIn(GitAPI.java:606) at hudson.plugins.git.GitAPI.launchCommand(GitAPI.java:571) at hudson.plugins.git.GitAPI.launchCommand(GitAPI.java:581) at hudson.plugins.git.GitAPI.getRemoteUrl(GitAPI.java:367) at hudson.plugins.git.GitAPI.fixSubmoduleUrls(GitAPI.java:473) ... 16 more Caused by: hudson.plugins.git.GitException: Command "C:\Program Files (x86)\Git\cmd\git.cmd config --get remote.origin.url" returned status code 1: at hudson.plugins.git.GitAPI.launchCommandIn(GitAPI.java:601) ... 20 more ERROR: Problem fetching submodules from a path relative to technology_communications_ant / technology_communications_ant - could be unavailable. Continuing anyway hudson.plugins.git.GitException: Could determine remote.origin.url at hudson.plugins.git.GitAPI.fixSubmoduleUrls(GitAPI.java:490) at hudson.plugins.git.GitAPI.setupSubmoduleUrls(GitAPI.java:552) at hudson.plugins.git.GitSCM.fetchSubmodulesFrom(GitSCM.java:606) at hudson.plugins.git.GitSCM.access$700(GitSCM.java:56) at hudson.plugins.git.GitSCM$4.invoke(GitSCM.java:1036) at hudson.plugins.git.GitSCM$4.invoke(GitSCM.java:1006) at hudson.FilePath$FileCallableWrapper.call(FilePath.java:1979) at hudson.remoting.UserRequest.perform(UserRequest.java:118) at hudson.remoting.UserRequest.perform(UserRequest.java:48) at hudson.remoting.Request$2.run(Request.java:270) at java.util.concurrent.Executors$RunnableAdapter.call(Unknown Source) at java.util.concurrent.FutureTask$Sync.innerRun(Unknown Source) at java.util.concurrent.FutureTask.run(Unknown Source) at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(Unknown Source) at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source) at hudson.remoting.Engine$1$1.run(Engine.java:60) at java.lang.Thread.run(Unknown Source) Caused by: hudson.plugins.git.GitException: Error performing command: C:\Program Files (x86)\Git\cmd\git.cmd config --get remote.origin.url Command "C:\Program Files (x86)\Git\cmd\git.cmd config --get remote.origin.url" returned status code 1: at hudson.plugins.git.GitAPI.launchCommandIn(GitAPI.java:606) at hudson.plugins.git.GitAPI.launchCommand(GitAPI.java:571) at hudson.plugins.git.GitAPI.launchCommand(GitAPI.java:581) at hudson.plugins.git.GitAPI.getRemoteUrl(GitAPI.java:367) at hudson.plugins.git.GitAPI.fixSubmoduleUrls(GitAPI.java:473) ... 16 more Caused by: hudson.plugins.git.GitException: Command "C:\Program Files (x86)\Git\cmd\git.cmd config --get remote.origin.url" returned status code 1: at hudson.plugins.git.GitAPI.launchCommandIn(GitAPI.java:601) ... 20 more

    Jenkins JIRA | 5 years ago | bnovc
    hudson.plugins.git.GitException: Could determine remote.origin.url
  6. 0

    I don't get an error using one repository, but when I add another, I get errors like: Checking out Revision 321aa2322629f361e429cd5eb9cb4bfcf6cd8ff3 (autooem_base/features/jungo-integration, origin/features/jungo-integration) ERROR: Problem fetching submodules from a path relative to autooem_base / autooem_base - could be unavailable. Continuing anyway hudson.plugins.git.GitException: Could determine remote.origin.url at hudson.plugins.git.GitAPI.fixSubmoduleUrls(GitAPI.java:490) at hudson.plugins.git.GitAPI.setupSubmoduleUrls(GitAPI.java:552) at hudson.plugins.git.GitSCM.fetchSubmodulesFrom(GitSCM.java:606) at hudson.plugins.git.GitSCM.access$700(GitSCM.java:56) at hudson.plugins.git.GitSCM$4.invoke(GitSCM.java:1036) at hudson.plugins.git.GitSCM$4.invoke(GitSCM.java:1006) at hudson.FilePath$FileCallableWrapper.call(FilePath.java:1979) at hudson.remoting.UserRequest.perform(UserRequest.java:118) at hudson.remoting.UserRequest.perform(UserRequest.java:48) at hudson.remoting.Request$2.run(Request.java:270) at java.util.concurrent.Executors$RunnableAdapter.call(Unknown Source) at java.util.concurrent.FutureTask$Sync.innerRun(Unknown Source) at java.util.concurrent.FutureTask.run(Unknown Source) at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(Unknown Source) at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source) at hudson.remoting.Engine$1$1.run(Engine.java:60) at java.lang.Thread.run(Unknown Source) Caused by: hudson.plugins.git.GitException: Error performing command: C:\Program Files (x86)\Git\cmd\git.cmd config --get remote.origin.url Command "C:\Program Files (x86)\Git\cmd\git.cmd config --get remote.origin.url" returned status code 1: at hudson.plugins.git.GitAPI.launchCommandIn(GitAPI.java:606) at hudson.plugins.git.GitAPI.launchCommand(GitAPI.java:571) at hudson.plugins.git.GitAPI.launchCommand(GitAPI.java:581) at hudson.plugins.git.GitAPI.getRemoteUrl(GitAPI.java:367) at hudson.plugins.git.GitAPI.fixSubmoduleUrls(GitAPI.java:473) ... 16 more Caused by: hudson.plugins.git.GitException: Command "C:\Program Files (x86)\Git\cmd\git.cmd config --get remote.origin.url" returned status code 1: at hudson.plugins.git.GitAPI.launchCommandIn(GitAPI.java:601) ... 20 more ERROR: Problem fetching submodules from a path relative to technology_communications_ant / technology_communications_ant - could be unavailable. Continuing anyway hudson.plugins.git.GitException: Could determine remote.origin.url at hudson.plugins.git.GitAPI.fixSubmoduleUrls(GitAPI.java:490) at hudson.plugins.git.GitAPI.setupSubmoduleUrls(GitAPI.java:552) at hudson.plugins.git.GitSCM.fetchSubmodulesFrom(GitSCM.java:606) at hudson.plugins.git.GitSCM.access$700(GitSCM.java:56) at hudson.plugins.git.GitSCM$4.invoke(GitSCM.java:1036) at hudson.plugins.git.GitSCM$4.invoke(GitSCM.java:1006) at hudson.FilePath$FileCallableWrapper.call(FilePath.java:1979) at hudson.remoting.UserRequest.perform(UserRequest.java:118) at hudson.remoting.UserRequest.perform(UserRequest.java:48) at hudson.remoting.Request$2.run(Request.java:270) at java.util.concurrent.Executors$RunnableAdapter.call(Unknown Source) at java.util.concurrent.FutureTask$Sync.innerRun(Unknown Source) at java.util.concurrent.FutureTask.run(Unknown Source) at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(Unknown Source) at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source) at hudson.remoting.Engine$1$1.run(Engine.java:60) at java.lang.Thread.run(Unknown Source) Caused by: hudson.plugins.git.GitException: Error performing command: C:\Program Files (x86)\Git\cmd\git.cmd config --get remote.origin.url Command "C:\Program Files (x86)\Git\cmd\git.cmd config --get remote.origin.url" returned status code 1: at hudson.plugins.git.GitAPI.launchCommandIn(GitAPI.java:606) at hudson.plugins.git.GitAPI.launchCommand(GitAPI.java:571) at hudson.plugins.git.GitAPI.launchCommand(GitAPI.java:581) at hudson.plugins.git.GitAPI.getRemoteUrl(GitAPI.java:367) at hudson.plugins.git.GitAPI.fixSubmoduleUrls(GitAPI.java:473) ... 16 more Caused by: hudson.plugins.git.GitException: Command "C:\Program Files (x86)\Git\cmd\git.cmd config --get remote.origin.url" returned status code 1: at hudson.plugins.git.GitAPI.launchCommandIn(GitAPI.java:601) ... 20 more

    Jenkins JIRA | 5 years ago | bnovc
    hudson.plugins.git.GitException: Could determine remote.origin.url

    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. hudson.plugins.git.GitException

      Could not checkout 7e42dcecfc5a792e9865d01916cb1e8942jkfc35

      at hudson.plugins.git.GitAPI.checkout()
    2. Hudson GIT plugin
      GitSCM$4.invoke
      1. hudson.plugins.git.GitAPI.checkout(GitAPI.java:450)
      2. hudson.plugins.git.GitSCM$4.invoke(GitSCM.java:981)
      3. hudson.plugins.git.GitSCM$4.invoke(GitSCM.java:972)
      3 frames
    3. Hudson
      FilePath$FileCallableWrapper.call
      1. hudson.FilePath$FileCallableWrapper.call(FilePath.java:1899)
      1 frame
    4. Hudson :: Remoting Layer
      Request$2.run
      1. hudson.remoting.UserRequest.perform(UserRequest.java:114)
      2. hudson.remoting.UserRequest.perform(UserRequest.java:48)
      3. hudson.remoting.Request$2.run(Request.java:270)
      3 frames
    5. Java RT
      Thread.run
      1. java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:471)
      2. java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:334)
      3. java.util.concurrent.FutureTask.run(FutureTask.java:166)
      4. java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1110)
      5. java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:603)
      6. java.lang.Thread.run(Thread.java:636)
      6 frames