java.io.IOException: cleartool did not return the expected exit code. Command line="catcs -tag XYZ", actual exit code=-1073741515

Jenkins JIRA | Hans Baer | 3 years ago
  1. 0

    In case I configure "Poll SCM" via "Build Triggers" section and the polling is kicked off, cleartool execution will fail. -------------------------------------- FATAL: Base ClearCase failed. exit code=-1073741515 FATAL: cleartool did not return the expected exit code. Command line="catcs -tag XYZ", actual exit code=-1073741515 java.io.IOException: cleartool did not return the expected exit code. Command line="catcs -tag XYZ", actual exit code=-1073741515 at hudson.plugins.clearcase.HudsonClearToolLauncher.run(HudsonClearToolLauncher.java:121) at hudson.plugins.clearcase.ClearToolExec.runAndProcessOutput(ClearToolExec.java:812) at hudson.plugins.clearcase.ClearToolExec.catcs(ClearToolExec.java:84) at hudson.plugins.clearcase.ClearCaseSCM.hasNewConfigSpec(ClearCaseSCM.java:301) at hudson.plugins.clearcase.AbstractClearCaseScm.compareRemoteRevisionWith(AbstractClearCaseScm.java:726) at hudson.scm.SCM._compareRemoteRevisionWith(SCM.java:356) at hudson.scm.SCM.poll(SCM.java:373) at hudson.model.AbstractProject.pollWithWorkspace(AbstractProject.java:1585) at hudson.model.AbstractProject._poll(AbstractProject.java:1555) at hudson.model.AbstractProject.poll(AbstractProject.java:1487) at hudson.triggers.SCMTrigger$Runner.runPolling(SCMTrigger.java:439) at hudson.triggers.SCMTrigger$Runner.run(SCMTrigger.java:468) at hudson.util.SequentialExecutionQueue$QueueEntry.run(SequentialExecutionQueue.java:118) 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 java.lang.Thread.run(Unknown Source) Done. Took 1 min 18 sec No changes -------------------------------------- Tried to investigate the issue (checked cleartool execution with process explorer) on my own and figured out that the Cleartool launcher used the environment variables of the Jenkins Master even though the job and polling was executed on the Jenkins slave as intended. Considering Master is 32bit (C:\Program Files\IBM\...) and slave is 64bit environment (C:\Program Files (x86)\IBM\...) all necessary DLLs for cleartool could not be found due to different Path variables necessary between 32 and 64bit OS. I´m using EnvInject plugin as well. Not sure if this issue is caused by either "Jenkins poll SCM" or "Environment Injector" plugin. Please reassign if necessary.

    Jenkins JIRA | 3 years ago | Hans Baer
    java.io.IOException: cleartool did not return the expected exit code. Command line="catcs -tag XYZ", actual exit code=-1073741515
  2. 0

    In case I configure "Poll SCM" via "Build Triggers" section and the polling is kicked off, cleartool execution will fail. -------------------------------------- FATAL: Base ClearCase failed. exit code=-1073741515 FATAL: cleartool did not return the expected exit code. Command line="catcs -tag XYZ", actual exit code=-1073741515 java.io.IOException: cleartool did not return the expected exit code. Command line="catcs -tag XYZ", actual exit code=-1073741515 at hudson.plugins.clearcase.HudsonClearToolLauncher.run(HudsonClearToolLauncher.java:121) at hudson.plugins.clearcase.ClearToolExec.runAndProcessOutput(ClearToolExec.java:812) at hudson.plugins.clearcase.ClearToolExec.catcs(ClearToolExec.java:84) at hudson.plugins.clearcase.ClearCaseSCM.hasNewConfigSpec(ClearCaseSCM.java:301) at hudson.plugins.clearcase.AbstractClearCaseScm.compareRemoteRevisionWith(AbstractClearCaseScm.java:726) at hudson.scm.SCM._compareRemoteRevisionWith(SCM.java:356) at hudson.scm.SCM.poll(SCM.java:373) at hudson.model.AbstractProject.pollWithWorkspace(AbstractProject.java:1585) at hudson.model.AbstractProject._poll(AbstractProject.java:1555) at hudson.model.AbstractProject.poll(AbstractProject.java:1487) at hudson.triggers.SCMTrigger$Runner.runPolling(SCMTrigger.java:439) at hudson.triggers.SCMTrigger$Runner.run(SCMTrigger.java:468) at hudson.util.SequentialExecutionQueue$QueueEntry.run(SequentialExecutionQueue.java:118) 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 java.lang.Thread.run(Unknown Source) Done. Took 1 min 18 sec No changes -------------------------------------- Tried to investigate the issue (checked cleartool execution with process explorer) on my own and figured out that the Cleartool launcher used the environment variables of the Jenkins Master even though the job and polling was executed on the Jenkins slave as intended. Considering Master is 32bit (C:\Program Files\IBM\...) and slave is 64bit environment (C:\Program Files (x86)\IBM\...) all necessary DLLs for cleartool could not be found due to different Path variables necessary between 32 and 64bit OS. I´m using EnvInject plugin as well. Not sure if this issue is caused by either "Jenkins poll SCM" or "Environment Injector" plugin. Please reassign if necessary.

    Jenkins JIRA | 3 years ago | Hans Baer
    java.io.IOException: cleartool did not return the expected exit code. Command line="catcs -tag XYZ", actual exit code=-1073741515
  3. 0

    Going through the Hudson logs I found allot of exception errors that seem to be caused by the ClearCase plug-in. I'm not experiencing any issues at the moment however I waned to point out the errors. The two exceptions below are occurring allot. Jan 20, 2011 6:01:56 AM hudson.plugins.clearcase.ClearCaseUcmSCM createHistoryAction SEVERE: IOException when calculating revisions' java.io.IOException: cleartool did not return the expected exit code. Command line="desc -fmt %[found_bls]Xp\n stream:CU-HUB_Int@/EPL_Projects", actual exit code=1 at hudson.plugins.clearcase.HudsonClearToolLauncher.run(HudsonClearToolLauncher.java:107) at hudson.plugins.clearcase.HudsonClearToolLauncher.run(HudsonClearToolLauncher.java:70) at hudson.plugins.clearcase.ClearToolExec.describe(ClearToolExec.java:91) at hudson.plugins.clearcase.ucm.UcmCommon.getBaselinesDesc(UcmCommon.java:179) at hudson.plugins.clearcase.ucm.UcmCommon.getFoundationBaselines(UcmCommon.java:174) at hudson.plugins.clearcase.ClearCaseUcmSCM.createRevisionState(ClearCaseUcmSCM.java:172) at hudson.plugins.clearcase.ClearCaseUcmSCM.calcRevisionsFromBuild(ClearCaseUcmSCM.java:159) at hudson.plugins.clearcase.ClearCaseUcmSCM.createHistoryAction(ClearCaseUcmSCM.java:215) at hudson.plugins.clearcase.AbstractClearCaseScm.compareRemoteRevisionWith(AbstractClearCaseScm.java:540) at hudson.scm.SCM._compareRemoteRevisionWith(SCM.java:354) at hudson.scm.SCM.poll(SCM.java:371) at hudson.model.AbstractProject.poll(AbstractProject.java:1289) at hudson.triggers.SCMTrigger$Runner.runPolling(SCMTrigger.java:420) at hudson.triggers.SCMTrigger$Runner.run(SCMTrigger.java:449) at hudson.util.SequentialExecutionQueue$QueueEntry.run(SequentialExecutionQueue.java:118) at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:417) at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:269) at java.util.concurrent.FutureTask.run(FutureTask.java:123) at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:650) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:675) at java.lang.Thread.run(Thread.java:595) Jan 20, 2011 6:01:55 AM hudson.triggers.SCMTrigger$Runner runPolling SEVERE: Failed to record SCM polling java.lang.NullPointerException at hudson.plugins.clearcase.AbstractClearCaseScm.compareRemoteRevisionWith(AbstractClearCaseScm.java:546) at hudson.scm.SCM._compareRemoteRevisionWith(SCM.java:354) at hudson.scm.SCM.poll(SCM.java:371) at hudson.model.AbstractProject.poll(AbstractProject.java:1289) at hudson.triggers.SCMTrigger$Runner.runPolling(SCMTrigger.java:420) at hudson.triggers.SCMTrigger$Runner.run(SCMTrigger.java:449) at hudson.util.SequentialExecutionQueue$QueueEntry.run(SequentialExecutionQueue.java:118) at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:417) at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:269) at java.util.concurrent.FutureTask.run(FutureTask.java:123) at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:650) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:675) at java.lang.Thread.run(Thread.java:595) Jan 20, 2011 6:01:55 AM hudson.plugins.clearcase.ClearCaseUcmSCM createHistoryAction

    Jenkins JIRA | 6 years ago | gabrielbaez
    java.io.IOException: cleartool did not return the expected exit code. Command line="desc -fmt %[found_bls]Xp\n stream:CU-HUB_Int@/EPL_Projects", actual exit code=1
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    Going through the Hudson logs I found allot of exception errors that seem to be caused by the ClearCase plug-in. I'm not experiencing any issues at the moment however I waned to point out the errors. The two exceptions below are occurring allot. Jan 20, 2011 6:01:56 AM hudson.plugins.clearcase.ClearCaseUcmSCM createHistoryAction SEVERE: IOException when calculating revisions' java.io.IOException: cleartool did not return the expected exit code. Command line="desc -fmt %[found_bls]Xp\n stream:CU-HUB_Int@/EPL_Projects", actual exit code=1 at hudson.plugins.clearcase.HudsonClearToolLauncher.run(HudsonClearToolLauncher.java:107) at hudson.plugins.clearcase.HudsonClearToolLauncher.run(HudsonClearToolLauncher.java:70) at hudson.plugins.clearcase.ClearToolExec.describe(ClearToolExec.java:91) at hudson.plugins.clearcase.ucm.UcmCommon.getBaselinesDesc(UcmCommon.java:179) at hudson.plugins.clearcase.ucm.UcmCommon.getFoundationBaselines(UcmCommon.java:174) at hudson.plugins.clearcase.ClearCaseUcmSCM.createRevisionState(ClearCaseUcmSCM.java:172) at hudson.plugins.clearcase.ClearCaseUcmSCM.calcRevisionsFromBuild(ClearCaseUcmSCM.java:159) at hudson.plugins.clearcase.ClearCaseUcmSCM.createHistoryAction(ClearCaseUcmSCM.java:215) at hudson.plugins.clearcase.AbstractClearCaseScm.compareRemoteRevisionWith(AbstractClearCaseScm.java:540) at hudson.scm.SCM._compareRemoteRevisionWith(SCM.java:354) at hudson.scm.SCM.poll(SCM.java:371) at hudson.model.AbstractProject.poll(AbstractProject.java:1289) at hudson.triggers.SCMTrigger$Runner.runPolling(SCMTrigger.java:420) at hudson.triggers.SCMTrigger$Runner.run(SCMTrigger.java:449) at hudson.util.SequentialExecutionQueue$QueueEntry.run(SequentialExecutionQueue.java:118) at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:417) at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:269) at java.util.concurrent.FutureTask.run(FutureTask.java:123) at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:650) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:675) at java.lang.Thread.run(Thread.java:595) Jan 20, 2011 6:01:55 AM hudson.triggers.SCMTrigger$Runner runPolling SEVERE: Failed to record SCM polling java.lang.NullPointerException at hudson.plugins.clearcase.AbstractClearCaseScm.compareRemoteRevisionWith(AbstractClearCaseScm.java:546) at hudson.scm.SCM._compareRemoteRevisionWith(SCM.java:354) at hudson.scm.SCM.poll(SCM.java:371) at hudson.model.AbstractProject.poll(AbstractProject.java:1289) at hudson.triggers.SCMTrigger$Runner.runPolling(SCMTrigger.java:420) at hudson.triggers.SCMTrigger$Runner.run(SCMTrigger.java:449) at hudson.util.SequentialExecutionQueue$QueueEntry.run(SequentialExecutionQueue.java:118) at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:417) at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:269) at java.util.concurrent.FutureTask.run(FutureTask.java:123) at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:650) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:675) at java.lang.Thread.run(Thread.java:595) Jan 20, 2011 6:01:55 AM hudson.plugins.clearcase.ClearCaseUcmSCM createHistoryAction

    Jenkins JIRA | 6 years ago | gabrielbaez
    java.io.IOException: cleartool did not return the expected exit code. Command line="desc -fmt %[found_bls]Xp\n stream:CU-HUB_Int@/EPL_Projects", actual exit code=1
  6. 0

    We are currently installing some new and fast hardware and run into snapshot view update problems like below. I can reproduce this on the command line by adding the cleartool endview and cleartool catcs into a batch script, the update almost always fails. If I add a pause of 500 ms between the two commands, everything works reliably. We even see the error on our older and slower machines, but very sporadically. So my question is: Ist this repeated cleartool endview really necessary? Or is it possible to add some (configurable) wait/sleep inbetween the commands? At the moment the new and fast hardware is not usable with the ClearCase plugin for us because updates almost always fail. 10:43:55 [Snapshots] $ cleartool endview -server view_name 10:43:55 10:43:55 [Snapshots] $ cleartool catcs -tag view_name 10:43:55 view_contact call failed: RPC: Unable to receive; errno = [WINSOCK] Connection reset by peer 10:43:55 cleartool: Error: Error trying to contact view_server for view path_to_view_name.vws: No such file or directory 10:43:55 10:43:55 FATAL: Base ClearCase failed. exit code=1 10:43:55 java.io.IOException: cleartool did not return the expected exit code. Command line="catcs -tag view_name", actual exit code=1 10:43:55 at hudson.plugins.clearcase.HudsonClearToolLauncher.run(HudsonClearToolLauncher.java:152) 10:43:55 at hudson.plugins.clearcase.ClearToolExec.runAndProcessOutput(ClearToolExec.java:907) 10:43:55 at hudson.plugins.clearcase.ClearToolExec.catcs(ClearToolExec.java:103) 10:43:55 at hudson.plugins.clearcase.action.BaseSnapshotCheckoutAction.checkout(BaseSnapshotCheckoutAction.java:104) 10:43:55 at hudson.plugins.clearcase.AbstractClearCaseScm.checkout(AbstractClearCaseScm.java:383) 10:43:55 at hudson.model.AbstractProject.checkout(AbstractProject.java:1253) 10:43:55 at hudson.model.AbstractBuild$AbstractBuildExecution.defaultCheckout(AbstractBuild.java:622) 10:43:55 at jenkins.scm.SCMCheckoutStrategy.checkout(SCMCheckoutStrategy.java:86) 10:43:55 at hudson.model.AbstractBuild$AbstractBuildExecution.run(AbstractBuild.java:528) 10:43:55 at hudson.model.Run.execute(Run.java:1745) 10:43:55 at hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:43) 10:43:55 at hudson.model.ResourceController.execute(ResourceController.java:89) 10:43:55 at hudson.model.Executor.run(Executor.java:240) ClearCase version info: 10:41:35 [Snapshots] $ cleartool -version 10:41:35 ClearCase version 8.0.0.01 (Wed Dec 28 01:01:29 EST 2011) (8.0.0.01.00_2011D.FCS) 10:41:35 ClearCase version 8.0.0.02 (Thu Apr 05 18:31:09 EST 2012) (8.0.0.02.00_2012A.FCS) 10:41:35 ClearCase version 8.0.0.03 (Thu Jun 21 16:08:51 EST 2012) (8.0.0.03.00_2012B.FCS) 10:41:35 ClearCase version 8.0.0.04 (Thu Sep 13 15:30:21 EDT 2012) (8.0.0.04.00_2012C.FCS) 10:41:35 ClearCase version 8.0.0.05 (Wed Dec 12 19:09:45 EST 2012) (8.0.0.05.00_2012D.FCS) 10:41:35 ClearCase version 8.0.0.06 (Fri Mar 20 10:35:58 EST 2013) (8.0.0.06.00_2013A.FCS) 10:41:35 ClearCase version 8.0.0.07 (Tue Jun 11 00:01:08 EDT 2013) (8.0.0.07.00_2013B.FCS) 10:41:35 ClearCase version 8.0.0.08 (Mon Sep 23 00:01:21 EDT 2013) (8.0.0.08.00_2013C.FCS) 10:41:35 ClearCase version 8.0.0.09 (Wed Dec 11 00:01:16 EST 2013) (8.0.0.09.00_2013D.FCS) 10:41:35 ClearCase version 8.0.0.10 (Tue Mar 04 20:30:56 EST 2014) (8.0.0.10.00_2014A.D140304) 10:41:36 @(#) MVFS version 8.0.0.10 (Wed Feb 19 21:13:32 2014) 10:41:36 cleartool 8.0.0.10 (Tue Mar 4 21:16:26 2014) 10:41:36 db_server 8.0.0.10 (Tue Feb 25 21:21:26 2014) 10:41:36 VOB database schema versions: 54, 80

    Jenkins JIRA | 2 years ago | Dirk Kuypers
    java.io.IOException: cleartool did not return the expected exit code. Command line="catcs -tag view_name", actual exit code=1

    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="catcs -tag XYZ", actual exit code=-1073741515

      at hudson.plugins.clearcase.HudsonClearToolLauncher.run()
    2. hudson.plugins.clearcase
      AbstractClearCaseScm.compareRemoteRevisionWith
      1. hudson.plugins.clearcase.HudsonClearToolLauncher.run(HudsonClearToolLauncher.java:121)
      2. hudson.plugins.clearcase.ClearToolExec.runAndProcessOutput(ClearToolExec.java:812)
      3. hudson.plugins.clearcase.ClearToolExec.catcs(ClearToolExec.java:84)
      4. hudson.plugins.clearcase.ClearCaseSCM.hasNewConfigSpec(ClearCaseSCM.java:301)
      5. hudson.plugins.clearcase.AbstractClearCaseScm.compareRemoteRevisionWith(AbstractClearCaseScm.java:726)
      5 frames
    3. Hudson
      SequentialExecutionQueue$QueueEntry.run
      1. hudson.scm.SCM._compareRemoteRevisionWith(SCM.java:356)
      2. hudson.scm.SCM.poll(SCM.java:373)
      3. hudson.model.AbstractProject.pollWithWorkspace(AbstractProject.java:1585)
      4. hudson.model.AbstractProject._poll(AbstractProject.java:1555)
      5. hudson.model.AbstractProject.poll(AbstractProject.java:1487)
      6. hudson.triggers.SCMTrigger$Runner.runPolling(SCMTrigger.java:439)
      7. hudson.triggers.SCMTrigger$Runner.run(SCMTrigger.java:468)
      8. hudson.util.SequentialExecutionQueue$QueueEntry.run(SequentialExecutionQueue.java:118)
      8 frames
    4. Java RT
      Thread.run
      1. java.util.concurrent.Executors$RunnableAdapter.call(Unknown Source)
      2. java.util.concurrent.FutureTask$Sync.innerRun(Unknown Source)
      3. java.util.concurrent.FutureTask.run(Unknown Source)
      4. java.util.concurrent.ThreadPoolExecutor$Worker.runTask(Unknown Source)
      5. java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
      6. java.lang.Thread.run(Unknown Source)
      6 frames