java.io.IOException: cleartool did not return the expected exit code. Command line="setcs ..\configspec19173.txt", actual exit code=1 at hudson.plugins.clearcase.HudsonClearToolLauncher.run (HudsonClearToolLauncher.java:72) at hudson.plugins.clearcase.ClearToolSnapshot.setcs (ClearToolSnapshot.java:34) at hudson.plugins.clearcase.action.SnapshotCheckoutAction.checkout (SnapshotCheckoutAction.java:48) at hudson.plugins.clearcase.AbstractClearCaseScm.checkout (AbstractClearCaseScm.java:217) at hudson.model.AbstractProject..checkout(AbstractProject.java:693)

Jenkins JIRA | skrishnapradeep | 8 years ago
  1. 0

    I am getting the below exception message when creating a view in my Unix machine. I was told that the command contains "$ cleartool setcs ..\configspec19173.txt" backslash which was not supported by unix and was asked to modify the command to "$ cleartool setcs ../configspec19173.txt". I believe this is something that clearcase plugin excecutes this command and I have no idea how to change this command during runtime. If clearcase plugin takes control, it should handle this case irrespective of the platform it is being run. By the by, I am using clearcase plugin version 0.6 and hudson ver 1.279. started Building remotely on qa-release303.qa [ws] $ cleartool catcs -tag crp2 element * CHECKEDOUT element * /main/LATEST [ws] $ cleartool rmview -force crp2 [ws] $ cleartool mkview -snapshot -tag crp2 - vws /home/automan/hudson/ViewStore/crp2.vws -tmode insert_cr crp2 Created view. Host-local path: qa-release303:/home/automan/hudson/ViewStore/crp2.vws Global path: /home/automan/hudson/ViewStore/crp2.vws It has the following rights: User : automan : rwx Group: automan : rwx Other: : r-x Created snapshot view directory "crp2". [crp2] $ cleartool setcs ..\configspec19173.txt cleartool: Error: Unable to open file "..\configspec19173.txt": No such file or directory. cleartool: Error: Unable to change configuration specification: error detected by ClearCase subsystem. FATAL: Base ClearCase failed. exit code=1 FATAL: cleartool did not return the expected exit code. Command line="setcs ..\configspec19173.txt", actual exit code=1 java.io.IOException: cleartool did not return the expected exit code. Command line="setcs ..\configspec19173.txt", actual exit code=1 at hudson.plugins.clearcase.HudsonClearToolLauncher.run (HudsonClearToolLauncher.java:72) at hudson.plugins.clearcase.ClearToolSnapshot.setcs (ClearToolSnapshot.java:34) at hudson.plugins.clearcase.action.SnapshotCheckoutAction.checkout (SnapshotCheckoutAction.java:48) at hudson.plugins.clearcase.AbstractClearCaseScm.checkout (AbstractClearCaseScm.java:217) at hudson.model.AbstractProject..checkout(AbstractProject.java:693) at hudson.model.AbstractBuild$AbstractRunner.checkout (AbstractBuild.java:266) at hudson.model.AbstractBuild$AbstractRunner.run(AbstractBuild.java:239) at hudson.model.Run.run(Run.java:842) at hudson.model.Build.run(Build.java:88) at hudson..model.ResourceController.execute(ResourceController.java:70) at hudson.model.Executor.run(Executor.java:90) started Building remotely on qa-release303.qa [ws] $ cleartool catcs -tag crp2 element * CHECKEDOUT element * /main/LATEST [ws] $ cleartool rmview -force crp2 [ws] $ cleartool mkview -snapshot -tag crp2 - vws /home/automan/hudson/ViewStore/crp2.vws -tmode insert_cr crp2 Created view. Host-local path: qa-release303:/home/automan/hudson/ViewStore/crp2.vws Global path: /home/automan/hudson/ViewStore/crp2.vws It has the following rights: User : automan : rwx Group: automan : rwx Other: : r-x Created snapshot view directory "crp2". [crp2] $ cleartool setcs ..\configspec19173.txt cleartool: Error: Unable to open file "..\configspec19173.txt": No such file or directory. cleartool: Error: Unable to change configuration specification: error detected by ClearCase subsystem. FATAL: Base ClearCase failed. exit code=1 FATAL: cleartool did not return the expected exit code. Command line="setcs ..\configspec19173.txt", actual exit code=1 java.io.IOException: cleartool did not return the expected exit code. Command line="setcs ..\configspec19173.txt", actual exit code=1 at hudson.plugins.clearcase.HudsonClearToolLauncher.run (HudsonClearToolLauncher..java:72) at hudson.plugins.clearcase.ClearToolSnapshot.setcs (ClearToolSnapshot.java:34) at hudson.plugins.clearcase.action.SnapshotCheckoutAction.checkout (SnapshotCheckoutAction.java:48) at hudson.plugins.clearcase.AbstractClearCaseScm.checkout (AbstractClearCaseScm.java:217) at hudson.model.AbstractProject.checkout(AbstractProject.java:693) at hudson.model.AbstractBuild$AbstractRunner.checkout (AbstractBuild.java:266) at hudson.model.AbstractBuild$AbstractRunner.run(AbstractBuild.java:239) at hudson.model.Run.run(Run.java:842) at hudson.model.Build.run(Build.java:88) at hudson.model.ResourceController.execute(ResourceController.java:70) at hudson.model.Executor.run(Executor.java:90)

    Jenkins JIRA | 8 years ago | skrishnapradeep
    java.io.IOException: cleartool did not return the expected exit code. Command line="setcs ..\configspec19173.txt", actual exit code=1 at hudson.plugins.clearcase.HudsonClearToolLauncher.run (HudsonClearToolLauncher.java:72) at hudson.plugins.clearcase.ClearToolSnapshot.setcs (ClearToolSnapshot.java:34) at hudson.plugins.clearcase.action.SnapshotCheckoutAction.checkout (SnapshotCheckoutAction.java:48) at hudson.plugins.clearcase.AbstractClearCaseScm.checkout (AbstractClearCaseScm.java:217) at hudson.model.AbstractProject..checkout(AbstractProject.java:693)
  2. 0

    I am getting the below exception message when creating a view in my Unix machine. I was told that the command contains "$ cleartool setcs ..\configspec19173.txt" backslash which was not supported by unix and was asked to modify the command to "$ cleartool setcs ../configspec19173.txt". I believe this is something that clearcase plugin excecutes this command and I have no idea how to change this command during runtime. If clearcase plugin takes control, it should handle this case irrespective of the platform it is being run. By the by, I am using clearcase plugin version 0.6 and hudson ver 1.279. started Building remotely on qa-release303.qa [ws] $ cleartool catcs -tag crp2 element * CHECKEDOUT element * /main/LATEST [ws] $ cleartool rmview -force crp2 [ws] $ cleartool mkview -snapshot -tag crp2 - vws /home/automan/hudson/ViewStore/crp2.vws -tmode insert_cr crp2 Created view. Host-local path: qa-release303:/home/automan/hudson/ViewStore/crp2.vws Global path: /home/automan/hudson/ViewStore/crp2.vws It has the following rights: User : automan : rwx Group: automan : rwx Other: : r-x Created snapshot view directory "crp2". [crp2] $ cleartool setcs ..\configspec19173.txt cleartool: Error: Unable to open file "..\configspec19173.txt": No such file or directory. cleartool: Error: Unable to change configuration specification: error detected by ClearCase subsystem. FATAL: Base ClearCase failed. exit code=1 FATAL: cleartool did not return the expected exit code. Command line="setcs ..\configspec19173.txt", actual exit code=1 java.io.IOException: cleartool did not return the expected exit code. Command line="setcs ..\configspec19173.txt", actual exit code=1 at hudson.plugins.clearcase.HudsonClearToolLauncher.run (HudsonClearToolLauncher.java:72) at hudson.plugins.clearcase.ClearToolSnapshot.setcs (ClearToolSnapshot.java:34) at hudson.plugins.clearcase.action.SnapshotCheckoutAction.checkout (SnapshotCheckoutAction.java:48) at hudson.plugins.clearcase.AbstractClearCaseScm.checkout (AbstractClearCaseScm.java:217) at hudson.model.AbstractProject..checkout(AbstractProject.java:693) at hudson.model.AbstractBuild$AbstractRunner.checkout (AbstractBuild.java:266) at hudson.model.AbstractBuild$AbstractRunner.run(AbstractBuild.java:239) at hudson.model.Run.run(Run.java:842) at hudson.model.Build.run(Build.java:88) at hudson..model.ResourceController.execute(ResourceController.java:70) at hudson.model.Executor.run(Executor.java:90) started Building remotely on qa-release303.qa [ws] $ cleartool catcs -tag crp2 element * CHECKEDOUT element * /main/LATEST [ws] $ cleartool rmview -force crp2 [ws] $ cleartool mkview -snapshot -tag crp2 - vws /home/automan/hudson/ViewStore/crp2.vws -tmode insert_cr crp2 Created view. Host-local path: qa-release303:/home/automan/hudson/ViewStore/crp2.vws Global path: /home/automan/hudson/ViewStore/crp2.vws It has the following rights: User : automan : rwx Group: automan : rwx Other: : r-x Created snapshot view directory "crp2". [crp2] $ cleartool setcs ..\configspec19173.txt cleartool: Error: Unable to open file "..\configspec19173.txt": No such file or directory. cleartool: Error: Unable to change configuration specification: error detected by ClearCase subsystem. FATAL: Base ClearCase failed. exit code=1 FATAL: cleartool did not return the expected exit code. Command line="setcs ..\configspec19173.txt", actual exit code=1 java.io.IOException: cleartool did not return the expected exit code. Command line="setcs ..\configspec19173.txt", actual exit code=1 at hudson.plugins.clearcase.HudsonClearToolLauncher.run (HudsonClearToolLauncher..java:72) at hudson.plugins.clearcase.ClearToolSnapshot.setcs (ClearToolSnapshot.java:34) at hudson.plugins.clearcase.action.SnapshotCheckoutAction.checkout (SnapshotCheckoutAction.java:48) at hudson.plugins.clearcase.AbstractClearCaseScm.checkout (AbstractClearCaseScm.java:217) at hudson.model.AbstractProject.checkout(AbstractProject.java:693) at hudson.model.AbstractBuild$AbstractRunner.checkout (AbstractBuild.java:266) at hudson.model.AbstractBuild$AbstractRunner.run(AbstractBuild.java:239) at hudson.model.Run.run(Run.java:842) at hudson.model.Build.run(Build.java:88) at hudson.model.ResourceController.execute(ResourceController.java:70) at hudson.model.Executor.run(Executor.java:90)

    Jenkins JIRA | 8 years ago | skrishnapradeep
    java.io.IOException: cleartool did not return the expected exit code. Command line="setcs ..\configspec19173.txt", actual exit code=1 at hudson.plugins.clearcase.HudsonClearToolLauncher.run (HudsonClearToolLauncher.java:72) at hudson.plugins.clearcase.ClearToolSnapshot.setcs (ClearToolSnapshot.java:34) at hudson.plugins.clearcase.action.SnapshotCheckoutAction.checkout (SnapshotCheckoutAction.java:48) at hudson.plugins.clearcase.AbstractClearCaseScm.checkout (AbstractClearCaseScm.java:217) at hudson.model.AbstractProject..checkout(AbstractProject.java:693)
  3. 0

    I am using Hudson 1.314 with clearcase plugin 0.9. I started experiencing following error after upgradation to 0.9 version.I am using UCM snapshot option. [R4.3.3_Dev_HUDSON] $ cleartool setcs ..\configspec39249.txt cleartool: Error: Syntax error on line 1, near column 2, file "..\configspec39249.txt". cleartool: Error: Config spec parsing failed: "..\configspec39249.txt". cleartool: Error: Unable to change configuration specification: error in configuration specification. FATAL: UCM ClearCase failed. exit code=1 FATAL: cleartool did not return the expected exit code. Command line="setcs ..\configspec39249.txt", actual exit code=1 java.io.IOException: cleartool did not return the expected exit code. Command line="setcs ..\configspec39249.txt", actual exit code=1 at hudson.plugins.clearcase.HudsonClearToolLauncher.run(HudsonClearToolLauncher.java:100) at hudson.plugins.clearcase.ClearToolSnapshot.setcs(ClearToolSnapshot.java:67) at hudson.plugins.clearcase.action.UcmSnapshotCheckoutAction.checkout(UcmSnapshotCheckoutAction.java:77) at hudson.plugins.clearcase.AbstractClearCaseScm.checkout(AbstractClearCaseScm.java:289) at hudson.model.AbstractProject.checkout(AbstractProject.java:830) at hudson.model.AbstractBuild$AbstractRunner.checkout(AbstractBuild.java:314) at hudson.model.AbstractBuild$AbstractRunner.run(AbstractBuild.java:266) at hudson.model.Run.run(Run.java:938) at hudson.model.Build.run(Build.java:112) at hudson.model.ResourceController.execute(ResourceController.java:93) at hudson.model.Executor.run(Executor.java:118) -->>configspec39249.txt line 1 content as flollowed ucmidentity UCM.Stream oid:780968ac.274242f0.860f.f3:96:5d:b9:af:27@vobuuid:ee36e29c.883b4899.9422.46:19:2f:aa:19:87 6# ONLY

    Jenkins JIRA | 7 years ago | gandugamerio
    java.io.IOException: cleartool did not return the expected exit code. Command line="setcs ..\configspec39249.txt", actual exit code=1 at hudson.plugins.clearcase.HudsonClearToolLauncher.run(HudsonClearToolLauncher.java:100)
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    I am using Hudson 1.314 with clearcase plugin 0.9. I started experiencing following error after upgradation to 0.9 version.I am using UCM snapshot option. [R4.3.3_Dev_HUDSON] $ cleartool setcs ..\configspec39249.txt cleartool: Error: Syntax error on line 1, near column 2, file "..\configspec39249.txt". cleartool: Error: Config spec parsing failed: "..\configspec39249.txt". cleartool: Error: Unable to change configuration specification: error in configuration specification. FATAL: UCM ClearCase failed. exit code=1 FATAL: cleartool did not return the expected exit code. Command line="setcs ..\configspec39249.txt", actual exit code=1 java.io.IOException: cleartool did not return the expected exit code. Command line="setcs ..\configspec39249.txt", actual exit code=1 at hudson.plugins.clearcase.HudsonClearToolLauncher.run(HudsonClearToolLauncher.java:100) at hudson.plugins.clearcase.ClearToolSnapshot.setcs(ClearToolSnapshot.java:67) at hudson.plugins.clearcase.action.UcmSnapshotCheckoutAction.checkout(UcmSnapshotCheckoutAction.java:77) at hudson.plugins.clearcase.AbstractClearCaseScm.checkout(AbstractClearCaseScm.java:289) at hudson.model.AbstractProject.checkout(AbstractProject.java:830) at hudson.model.AbstractBuild$AbstractRunner.checkout(AbstractBuild.java:314) at hudson.model.AbstractBuild$AbstractRunner.run(AbstractBuild.java:266) at hudson.model.Run.run(Run.java:938) at hudson.model.Build.run(Build.java:112) at hudson.model.ResourceController.execute(ResourceController.java:93) at hudson.model.Executor.run(Executor.java:118) -->>configspec39249.txt line 1 content as flollowed ucmidentity UCM.Stream oid:780968ac.274242f0.860f.f3:96:5d:b9:af:27@vobuuid:ee36e29c.883b4899.9422.46:19:2f:aa:19:87 6# ONLY

    Jenkins JIRA | 7 years ago | gandugamerio
    java.io.IOException: cleartool did not return the expected exit code. Command line="setcs ..\configspec39249.txt", actual exit code=1 at hudson.plugins.clearcase.HudsonClearToolLauncher.run(HudsonClearToolLauncher.java:100)
  6. 0

    If a load rule begins with "\\" or "/" (as most do), the lshistory command will think that the view is located at the root, which makes the lshistory command throw an exception: CC plugin ver 0.5.1. SCM config: <?xml version='1.0' encoding='UTF-8'?> <project> <scm class="hudson.plugins.clearcase.ClearCaseUcmSCM"> <stream>stream:AAMITools_R3.00_Development@\AAMI_PVOB</stream> <loadRules>\\AAMI_COMMON\\AAMI_TOOLS</loadRules> <viewName>hudson_view</viewName> <mkviewOptionalParam></mkviewOptionalParam> </scm> </project> Console output: started [workspace] $ "C:\Program Files\Rational\ClearCase\bin\cleartool.exe" rmview -force hudson_view Removing references from VOB "\AAMI_PVOB" ... Removed references to view "C:\Documents and Settings\APCPG\.hudson\jobs\AAMITools V3 Freestyle\workspace\hudson_view" from VOB "\AAMI_PVOB". [workspace] $ "C:\Program Files\Rational\ClearCase\bin\cleartool.exe" mkview -snapshot -stream stream:AAMITools_R3.00_Development@\AAMI_PVOB -tag hudson_view hudson_view Selected Server Storage Location "mystgloc". Created view. Host-local path: L3KEK93:c:\ClearCase_Storage\myview.vws\L3KEK93\APCPG\hudson_view.vws Global path: \\L3KEK93\ccstg_c\myview.vws\L3KEK93\APCPG\hudson_view.vws Created snapshot view directory "hudson_view". Attached view to stream "AAMITools_R3.00_Development". [workspace] $ "C:\Program Files\Rational\ClearCase\bin\cleartool.exe" update -force -log NUL -add_loadrules hudson_view\\AAMI_COMMON\AAMI_TOOLS Making dir "AAMI_COMMON\AAMI_TOOLS". Processing dir "AAMI_COMMON\AAMI_TOOLS". Making dir "AAMI_COMMON\AAMI_TOOLS\AAMITools". Processing dir "AAMI_COMMON\AAMI_TOOLS\AAMITools". ... End dir "AAMI_COMMON\AAMI_TOOLS\AAMITools". End dir "AAMI_COMMON\AAMI_TOOLS". Done loading "\AAMI_COMMON\AAMI_TOOLS" (197 objects, copied 526 KB). [hudson_view] $ "C:\Program Files\Rational\ClearCase\bin\cleartool.exe" lshistory -r -since 9-may.09:41:53 -fmt '\"%Nd\" \"%u\" \"%e\" \"%En\" \"%Vn\" \"%o\"\n%c\n' -branch brtype:stream:AAMITools_R3.00_Development -nco \AAMI_COMMON\AAMI_TOOLS cleartool: Error: Unable to access "\AAMI_COMMON\AAMI_TOOLS": ClearCase object not found. FATAL: UCM ClearCase failed. exit code=1 FATAL: cleartool did not return the expected exit code. Command line="C:\Program Files\Rational\ClearCase\bin\cleartool.exe lshistory -r -since 9-may.09:41:53 -fmt \"%Nd\" \"%u\" \"%e\" \"%En\" \"%Vn\" \"%o\"\n%c\n -branch brtype:stream:AAMITools_R3.00_Development -nco \AAMI_COMMON\AAMI_TOOLS", actual exit code=1 java.io.IOException: cleartool did not return the expected exit code. Command line="C:\Program Files\Rational\ClearCase\bin\cleartool.exe lshistory -r -since 9-may.09:41:53 -fmt \"%Nd\" \"%u\" \"%e\" \"%En\" \"%Vn\" \"%o\"\n%c\n -branch brtype:stream:AAMITools_R3.00_Development -nco \AAMI_COMMON\AAMI_TOOLS", actual exit code=1 at hudson.plugins.clearcase.HudsonClearToolLauncher.run(HudsonClearToolLauncher.java:64) at hudson.plugins.clearcase.ClearToolExec.lshistory(ClearToolExec.java:59) at hudson.plugins.clearcase.action.DefaultPollAction.getChanges(DefaultPollAction.java:22) at hudson.plugins.clearcase.AbstractClearCaseScm.checkout(AbstractClearCaseScm.java:139) at hudson.plugins.clearcase.AbstractClearCaseScm.checkout(AbstractClearCaseScm.java:113) at hudson.model.AbstractProject.checkout(AbstractProject.java:567) at hudson.model.AbstractBuild$AbstractRunner.checkout(AbstractBuild.java:251) at hudson.model.AbstractBuild$AbstractRunner.run(AbstractBuild.java:225) at hudson.model.Run.run(Run.java:756) at hudson.model.Build.run(Build.java:85) at hudson.model.ResourceController.execute(ResourceController.java:70) at hudson.model.Executor.run(Executor.java:77)

    Jenkins JIRA | 9 years ago | redsolo
    java.io.IOException: cleartool did not return the expected exit code. Command line="C:\Program Files\Rational\ClearCase\bin\cleartool.exe lshistory -r -since 9-may.09:41:53 -fmt \"%Nd\" \"%u\" \"%e\" \"%En\" \"%Vn\" \"%o\"\n%c\n -branch brtype:stream:AAMITools_R3.00_Development -nco \AAMI_COMMON\AAMI_TOOLS", actual exit code=1 at hudson.plugins.clearcase.HudsonClearToolLauncher.run(HudsonClearToolLauncher.java:64) at hudson.plugins.clearcase.ClearToolExec.lshistory(ClearToolExec.java:59) at hudson.plugins.clearcase.action.DefaultPollAction.getChanges(DefaultPollAction.java:22) at hudson.plugins.clearcase.AbstractClearCaseScm.checkout(AbstractClearCaseScm.java:139) at hudson.plugins.clearcase.AbstractClearCaseScm.checkout(AbstractClearCaseScm.java:113)

    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

      cleartool did not return the expected exit code. Command line="setcs ..\configspec19173.txt", actual exit code=1 at hudson.plugins.clearcase.HudsonClearToolLauncher.run (HudsonClearToolLauncher.java:72) at hudson.plugins.clearcase.ClearToolSnapshot.setcs (ClearToolSnapshot.java:34) at hudson.plugins.clearcase.action.SnapshotCheckoutAction.checkout (SnapshotCheckoutAction.java:48) at hudson.plugins.clearcase.AbstractClearCaseScm.checkout (AbstractClearCaseScm.java:217) at hudson.model.AbstractProject..checkout(AbstractProject.java:693)

      at hudson.model.AbstractBuild$AbstractRunner.checkout()
    2. Hudson
      Build.run
      1. hudson.model.AbstractBuild$AbstractRunner.checkout(AbstractBuild.java:266)
      2. hudson.model.AbstractBuild$AbstractRunner.run(AbstractBuild.java:239)
      3. hudson.model.Run.run(Run.java:842)
      4. hudson.model.Build.run(Build.java:88)
      4 frames