java.io.IOException: Clear tool did not return the expected exit code. Command line="cleartool lshistory -r -since 28-Nov.15:30:38 -fmt \"%Nd\" \"%u\" \"%e\" \"%En\" \"%Vn\"\n%c\n -branch feature_6.43 -nco update.28-Nov-07.16:03:36.updt vobs .view.stg .view.dat", actual exit code=1

Jenkins JIRA | Eric Smalling | 9 years ago
  1. 0

    Our repo is set up in a way that when I have a load rule in my config spec like "load vobs/gtx2", the lshistory command is getting run in the snapshot view at the parent of that and gets an error because, apparently, "vobs" is not a vob element. It would be nice if you could specify a specific path to feed into the lshistory command. For me, "vobs/*" works from the command line. Here's the error output in case it helps: Done loading "/vobs/gtx2" (16879 objects, copied 0 KB). [snapshot14_cruise1_fhudson_feature_6.43_20071120] $ cleartool lshistory -r -since 28-Nov.15:30:38 -fmt '\"%Nd\" \"%u\" \"%e\" \"%En\" \"%Vn\"\n%c\n' -branch feature_6.43 -nco update.28-Nov-07.16:03:36.updt vobs .view.stg .view.dat cleartool: Error: Not an object in a vob: "update.28-Nov-07.16:03:36.updt". cleartool: Error: Not an object in a vob: "vobs". cleartool: Error: Not an object in a vob: ".view.stg". cleartool: Error: Not an object in a vob: ".view.dat". FATAL: Clear Case failed. exit code=1 FATAL: Clear tool did not return the expected exit code. Command line="cleartool lshistory -r -since 28-Nov.15:30:38 -fmt \"%Nd\" \"%u\" \"%e\" \"%En\" \"%Vn\"\n%c\n -branch feature_6.43 -nco update.28-Nov-07.16:03:36.updt vobs .view.stg .view.dat", actual exit code=1 java.io.IOException: Clear tool did not return the expected exit code. Command line="cleartool lshistory -r -since 28-Nov.15:30:38 -fmt \"%Nd\" \"%u\" \"%e\" \"%En\" \"%Vn\"\n%c\n -branch feature_6.43 -nco update.28-Nov-07.16:03:36.updt vobs .view.stg .view.dat", actual exit code=1 at hudson.plugins.clearcase.ClearCaseSCM.run(ClearCaseSCM.java:272) at hudson.plugins.clearcase.ClearCaseSCM.getHistoryEntries(ClearCaseSCM.java:247) at hudson.plugins.clearcase.ClearCaseSCM.checkout(ClearCaseSCM.java:117) at hudson.model.AbstractProject.checkout(AbstractProject.java:541) at hudson.model.AbstractBuild$AbstractRunner.checkout(AbstractBuild.java:223) at hudson.model.AbstractBuild$AbstractRunner.run(AbstractBuild.java:189) at hudson.model.Run.run(Run.java:649) at hudson.maven.MavenModuleSetBuild.run(MavenModuleSetBuild.java:172) at hudson.model.ResourceController.execute(ResourceController.java:70) at hudson.model.Executor.run(Executor.java:62)

    Jenkins JIRA | 9 years ago | Eric Smalling
    java.io.IOException: Clear tool did not return the expected exit code. Command line="cleartool lshistory -r -since 28-Nov.15:30:38 -fmt \"%Nd\" \"%u\" \"%e\" \"%En\" \"%Vn\"\n%c\n -branch feature_6.43 -nco update.28-Nov-07.16:03:36.updt vobs .view.stg .view.dat", actual exit code=1
  2. 0

    Our repo is set up in a way that when I have a load rule in my config spec like "load vobs/gtx2", the lshistory command is getting run in the snapshot view at the parent of that and gets an error because, apparently, "vobs" is not a vob element. It would be nice if you could specify a specific path to feed into the lshistory command. For me, "vobs/*" works from the command line. Here's the error output in case it helps: Done loading "/vobs/gtx2" (16879 objects, copied 0 KB). [snapshot14_cruise1_fhudson_feature_6.43_20071120] $ cleartool lshistory -r -since 28-Nov.15:30:38 -fmt '\"%Nd\" \"%u\" \"%e\" \"%En\" \"%Vn\"\n%c\n' -branch feature_6.43 -nco update.28-Nov-07.16:03:36.updt vobs .view.stg .view.dat cleartool: Error: Not an object in a vob: "update.28-Nov-07.16:03:36.updt". cleartool: Error: Not an object in a vob: "vobs". cleartool: Error: Not an object in a vob: ".view.stg". cleartool: Error: Not an object in a vob: ".view.dat". FATAL: Clear Case failed. exit code=1 FATAL: Clear tool did not return the expected exit code. Command line="cleartool lshistory -r -since 28-Nov.15:30:38 -fmt \"%Nd\" \"%u\" \"%e\" \"%En\" \"%Vn\"\n%c\n -branch feature_6.43 -nco update.28-Nov-07.16:03:36.updt vobs .view.stg .view.dat", actual exit code=1 java.io.IOException: Clear tool did not return the expected exit code. Command line="cleartool lshistory -r -since 28-Nov.15:30:38 -fmt \"%Nd\" \"%u\" \"%e\" \"%En\" \"%Vn\"\n%c\n -branch feature_6.43 -nco update.28-Nov-07.16:03:36.updt vobs .view.stg .view.dat", actual exit code=1 at hudson.plugins.clearcase.ClearCaseSCM.run(ClearCaseSCM.java:272) at hudson.plugins.clearcase.ClearCaseSCM.getHistoryEntries(ClearCaseSCM.java:247) at hudson.plugins.clearcase.ClearCaseSCM.checkout(ClearCaseSCM.java:117) at hudson.model.AbstractProject.checkout(AbstractProject.java:541) at hudson.model.AbstractBuild$AbstractRunner.checkout(AbstractBuild.java:223) at hudson.model.AbstractBuild$AbstractRunner.run(AbstractBuild.java:189) at hudson.model.Run.run(Run.java:649) at hudson.maven.MavenModuleSetBuild.run(MavenModuleSetBuild.java:172) at hudson.model.ResourceController.execute(ResourceController.java:70) at hudson.model.Executor.run(Executor.java:62)

    Jenkins JIRA | 9 years ago | Eric Smalling
    java.io.IOException: Clear tool did not return the expected exit code. Command line="cleartool lshistory -r -since 28-Nov.15:30:38 -fmt \"%Nd\" \"%u\" \"%e\" \"%En\" \"%Vn\"\n%c\n -branch feature_6.43 -nco update.28-Nov-07.16:03:36.updt vobs .view.stg .view.dat", actual exit code=1
  3. 0

    ClearCase Plugin - hudson - Hudson Wiki

    hudson-ci.org | 7 months ago
    java.io.IOException: Clear tool did not the expected exit code. Command line= , actual exit code=1
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    ClearCase Plugin - Jenkins - Jenkins Wiki

    jenkins-ci.org | 1 year ago
    java.io.IOException: Clear tool did not the expected exit code. Command line= , actual exit code=1
  6. 0

    1. Configure a CC so it doesnt use "Use update" 2. Build once to get it working 3. Open a command prompt and go into the hudson view folder 4. Build again, which will fail as the folder can not be removed 5. Build again, now the rmview fails del path fails ---------------------------------------------- [workspace] $ cleartool rmview -force HUDSON_SHORT_CS cleartool: Error: C:\hudson\data\jobs\cc3\workspace\HUDSON_SHORT_CS: Permission denied cleartool: Error: Unable to remove the snapshot view directory. Removing view folder as it was not removed when the view was removed. FATAL: Unable to delete C:\hudson\.\data\jobs\cc3\workspace\HUDSON_SHORT_CS java.io.IOException: Unable to delete C:\hudson\.\data\jobs\cc3\workspace\HUDSON_SHORT_CS at hudson.Util.deleteFile(Util.java:148) at hudson.Util.deleteRecursive(Util.java:155) at hudson.FilePath$5.invoke(FilePath.java:342) at hudson.FilePath$5.invoke(FilePath.java:340) at hudson.FilePath.act(FilePath.java:280) at hudson.FilePath.deleteRecursive(FilePath.java:340) at hudson.plugins.clearcase.ClearToolExec.rmview(ClearToolExec.java:68) at hudson.plugins.clearcase.ClearCaseSCM.checkout(ClearCaseSCM.java:106) at hudson.model.AbstractProject.checkout(AbstractProject.java:529) at hudson.model.AbstractBuild$AbstractRunner.checkout(AbstractBuild.java:213) at hudson.model.AbstractBuild$AbstractRunner.run(AbstractBuild.java:179) at hudson.model.Run.run(Run.java:579) at hudson.model.Build.run(Build.java:103) at hudson.model.ResourceController.execute(ResourceController.java:70) at hudson.model.Executor.run(Executor.java:62) rmview fails ------------------------------------------ [workspace] $ cleartool rmview -force HUDSON_SHORT_CS cleartool: Error: Unable to open file "HUDSON_SHORT_CS\.view": No such file or directory. cleartool: Error: HUDSON_SHORT_CS isn't a view: No such file or directory cleartool: Error: Unable to remove view "HUDSON_SHORT_CS". FATAL: Clear Case failed. exit code=1 FATAL: Clear tool did not return the expected exit code. Command line="cleartool rmview -force HUDSON_SHORT_CS", actual exit code=1 java.io.IOException: Clear tool did not return the expected exit code. Command line="cleartool rmview -force HUDSON_SHORT_CS", actual exit code=1 at hudson.plugins.clearcase.ClearCaseSCM$ClearToolLauncherImpl.run(ClearCaseSCM.java:205) at hudson.plugins.clearcase.ClearToolExec.rmview(ClearToolExec.java:64) at hudson.plugins.clearcase.ClearCaseSCM.checkout(ClearCaseSCM.java:106) at hudson.model.AbstractProject.checkout(AbstractProject.java:529) at hudson.model.AbstractBuild$AbstractRunner.checkout(AbstractBuild.java:213) at hudson.model.AbstractBuild$AbstractRunner.run(AbstractBuild.java:179) at hudson.model.Run.run(Run.java:579) at hudson.model.Build.run(Build.java:103) at hudson.model.ResourceController.execute(ResourceController.java:70) at hudson.model.Executor.run(Executor.java:62)

    Jenkins JIRA | 9 years ago | redsolo
    java.io.IOException: Clear tool did not return the expected exit code. Command line="cleartool rmview -force HUDSON_SHORT_CS", actual exit code=1 at hudson.plugins.clearcase.ClearCaseSCM$ClearToolLauncherImpl.run(ClearCaseSCM.java:205)

    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

      Clear tool did not return the expected exit code. Command line="cleartool lshistory -r -since 28-Nov.15:30:38 -fmt \"%Nd\" \"%u\" \"%e\" \"%En\" \"%Vn\"\n%c\n -branch feature_6.43 -nco update.28-Nov-07.16:03:36.updt vobs .view.stg .view.dat", actual exit code=1

      at hudson.plugins.clearcase.ClearCaseSCM.run()
    2. hudson.plugins.clearcase
      ClearCaseSCM.checkout
      1. hudson.plugins.clearcase.ClearCaseSCM.run(ClearCaseSCM.java:272)
      2. hudson.plugins.clearcase.ClearCaseSCM.getHistoryEntries(ClearCaseSCM.java:247)
      3. hudson.plugins.clearcase.ClearCaseSCM.checkout(ClearCaseSCM.java:117)
      3 frames
    3. Hudson
      Run.run
      1. hudson.model.AbstractProject.checkout(AbstractProject.java:541)
      2. hudson.model.AbstractBuild$AbstractRunner.checkout(AbstractBuild.java:223)
      3. hudson.model.AbstractBuild$AbstractRunner.run(AbstractBuild.java:189)
      4. hudson.model.Run.run(Run.java:649)
      4 frames
    4. Hudson Maven Embedder
      MavenModuleSetBuild.run
      1. hudson.maven.MavenModuleSetBuild.run(MavenModuleSetBuild.java:172)
      1 frame
    5. Hudson
      Executor.run
      1. hudson.model.ResourceController.execute(ResourceController.java:70)
      2. hudson.model.Executor.run(Executor.java:62)
      2 frames