java.io.IOException: cleartool did not return the expected exit code. Command line="mkview -snapshot -tag wendy_cgate_main_compile wendy_cgate_main_compile", actual exit code=1 at hudson.plugins.clearcase.HudsonClearToolLauncher.run(HudsonClearToolLauncher.java:72)

Jenkins JIRA | djcarr | 8 years ago
tip
Your exception is missing from the Samebug knowledge base.
Here are the best solutions we found on the Internet.
Click on the to mark the helpful solution and get rewards for you help.
  1. 0

    Hudson 1.262, CC plugin 0.7.1. Have 6 jobs which were all blue (previous builds good). No config changes. Hourly trigger kicked in and they all failed, with message: started [workspace] $ "C:\Program Files\Rational\ClearCase\bin\cleartool.exe" mkview -snapshot -tag wendy_cgate_main_compile wendy_cgate_main_compile cleartool: Error: A registry entry already exists for "wendy_cgate_main_compile". FATAL: Base ClearCase failed. exit code=1 FATAL: cleartool did not return the expected exit code. Command line="mkview -snapshot -tag wendy_cgate_main_compile wendy_cgate_main_compile", actual exit code=1 java.io.IOException: cleartool did not return the expected exit code. Command line="mkview -snapshot -tag wendy_cgate_main_compile wendy_cgate_main_compile", actual exit code=1 at hudson.plugins.clearcase.HudsonClearToolLauncher.run(HudsonClearToolLauncher.java:72) at hudson.plugins.clearcase.ClearToolSnapshot.mkview(ClearToolSnapshot.java:53) at hudson.plugins.clearcase.action.SnapshotCheckoutAction.checkout(SnapshotCheckoutAction.java:43) at hudson.plugins.clearcase.AbstractClearCaseScm.checkout(AbstractClearCaseScm.java:199) at hudson.model.AbstractProject.checkout(AbstractProject.java:666) at hudson.model.AbstractBuild$AbstractRunner.checkout(AbstractBuild.java:261) at hudson.model.AbstractBuild$AbstractRunner.run(AbstractBuild.java:235) at hudson.model.Run.run(Run.java:817) 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 | djcarr
    java.io.IOException: cleartool did not return the expected exit code. Command line="mkview -snapshot -tag wendy_cgate_main_compile wendy_cgate_main_compile", actual exit code=1 at hudson.plugins.clearcase.HudsonClearToolLauncher.run(HudsonClearToolLauncher.java:72)
  2. 0

    Hudson 1.262, CC plugin 0.7.1. Have 6 jobs which were all blue (previous builds good). No config changes. Hourly trigger kicked in and they all failed, with message: started [workspace] $ "C:\Program Files\Rational\ClearCase\bin\cleartool.exe" mkview -snapshot -tag wendy_cgate_main_compile wendy_cgate_main_compile cleartool: Error: A registry entry already exists for "wendy_cgate_main_compile". FATAL: Base ClearCase failed. exit code=1 FATAL: cleartool did not return the expected exit code. Command line="mkview -snapshot -tag wendy_cgate_main_compile wendy_cgate_main_compile", actual exit code=1 java.io.IOException: cleartool did not return the expected exit code. Command line="mkview -snapshot -tag wendy_cgate_main_compile wendy_cgate_main_compile", actual exit code=1 at hudson.plugins.clearcase.HudsonClearToolLauncher.run(HudsonClearToolLauncher.java:72) at hudson.plugins.clearcase.ClearToolSnapshot.mkview(ClearToolSnapshot.java:53) at hudson.plugins.clearcase.action.SnapshotCheckoutAction.checkout(SnapshotCheckoutAction.java:43) at hudson.plugins.clearcase.AbstractClearCaseScm.checkout(AbstractClearCaseScm.java:199) at hudson.model.AbstractProject.checkout(AbstractProject.java:666) at hudson.model.AbstractBuild$AbstractRunner.checkout(AbstractBuild.java:261) at hudson.model.AbstractBuild$AbstractRunner.run(AbstractBuild.java:235) at hudson.model.Run.run(Run.java:817) 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 | djcarr
    java.io.IOException: cleartool did not return the expected exit code. Command line="mkview -snapshot -tag wendy_cgate_main_compile wendy_cgate_main_compile", actual exit code=1 at hudson.plugins.clearcase.HudsonClearToolLauncher.run(HudsonClearToolLauncher.java:72)
  3. 0

    Sometimes the job fails because the ${NODE_NAME} macro isn't correctly resolved. When the job was last run on slave x and gets dispatched to slave y it fails since ${NODE_NAME} is resolved to x. Job stacktrace: started Building remotely on Seldw2803 [USP-PDE-QA] $ "c:\Program Files\Rational\ClearCase\bin\cleartool" mkview -snapshot -tag USP-PDE-QA_seldw2210 USP-PDE-QA_seldw2210 cleartool: Error: A registry entry already exists for "USP-PDE-QA_seldw2210". FATAL: Base ClearCase failed. exit code=1 FATAL: cleartool did not return the expected exit code. Command line="mkview -snapshot -tag USP-PDE-QA_seldw2210 USP-PDE-QA_seldw2210", actual exit code=1 java.io.IOException: cleartool did not return the expected exit code. Command line="mkview -snapshot -tag USP-PDE-QA_seldw2210 USP-PDE-QA_seldw2210", actual exit code=1 at hudson.plugins.clearcase.HudsonClearToolLauncher.run(HudsonClearToolLauncher.java:72) at hudson.plugins.clearcase.ClearToolSnapshot.mkview(ClearToolSnapshot.java:53) at hudson.plugins.clearcase.action.SnapshotCheckoutAction.checkout(SnapshotCheckoutAction.java:43) at hudson.plugins.clearcase.AbstractClearCaseScm.checkout(AbstractClearCaseScm.java:199) at hudson.model.AbstractProject.checkout(AbstractProject.java:664) at hudson.model.AbstractBuild$AbstractRunner.checkout(AbstractBuild.java:261) at hudson.model.AbstractBuild$AbstractRunner.run(AbstractBuild.java:235) at hudson.model.Run.run(Run.java:817) at hudson.model.Build.run(Build.java:88) at hudson.model.ResourceController.execute(ResourceController.java:70) at hudson.model.Executor.run(Executor.java:88)

    Jenkins JIRA | 8 years ago | PatrikSchalin
    java.io.IOException: cleartool did not return the expected exit code. Command line="mkview -snapshot -tag USP-PDE-QA_seldw2210 USP-PDE-QA_seldw2210", actual exit code=1 at hudson.plugins.clearcase.HudsonClearToolLauncher.run(HudsonClearToolLauncher.java:72)
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    Sometimes the job fails because the ${NODE_NAME} macro isn't correctly resolved. When the job was last run on slave x and gets dispatched to slave y it fails since ${NODE_NAME} is resolved to x. Job stacktrace: started Building remotely on Seldw2803 [USP-PDE-QA] $ "c:\Program Files\Rational\ClearCase\bin\cleartool" mkview -snapshot -tag USP-PDE-QA_seldw2210 USP-PDE-QA_seldw2210 cleartool: Error: A registry entry already exists for "USP-PDE-QA_seldw2210". FATAL: Base ClearCase failed. exit code=1 FATAL: cleartool did not return the expected exit code. Command line="mkview -snapshot -tag USP-PDE-QA_seldw2210 USP-PDE-QA_seldw2210", actual exit code=1 java.io.IOException: cleartool did not return the expected exit code. Command line="mkview -snapshot -tag USP-PDE-QA_seldw2210 USP-PDE-QA_seldw2210", actual exit code=1 at hudson.plugins.clearcase.HudsonClearToolLauncher.run(HudsonClearToolLauncher.java:72) at hudson.plugins.clearcase.ClearToolSnapshot.mkview(ClearToolSnapshot.java:53) at hudson.plugins.clearcase.action.SnapshotCheckoutAction.checkout(SnapshotCheckoutAction.java:43) at hudson.plugins.clearcase.AbstractClearCaseScm.checkout(AbstractClearCaseScm.java:199) at hudson.model.AbstractProject.checkout(AbstractProject.java:664) at hudson.model.AbstractBuild$AbstractRunner.checkout(AbstractBuild.java:261) at hudson.model.AbstractBuild$AbstractRunner.run(AbstractBuild.java:235) at hudson.model.Run.run(Run.java:817) at hudson.model.Build.run(Build.java:88) at hudson.model.ResourceController.execute(ResourceController.java:70) at hudson.model.Executor.run(Executor.java:88)

    Jenkins JIRA | 8 years ago | PatrikSchalin
    java.io.IOException: cleartool did not return the expected exit code. Command line="mkview -snapshot -tag USP-PDE-QA_seldw2210 USP-PDE-QA_seldw2210", actual exit code=1 at hudson.plugins.clearcase.HudsonClearToolLauncher.run(HudsonClearToolLauncher.java:72)

    Root Cause Analysis

    1. java.io.IOException

      cleartool did not return the expected exit code. Command line="mkview -snapshot -tag wendy_cgate_main_compile wendy_cgate_main_compile", actual exit code=1 at hudson.plugins.clearcase.HudsonClearToolLauncher.run(HudsonClearToolLauncher.java:72)

      at hudson.plugins.clearcase.ClearToolSnapshot.mkview()
    2. hudson.plugins.clearcase
      ClearToolSnapshot.mkview
      1. hudson.plugins.clearcase.ClearToolSnapshot.mkview(ClearToolSnapshot.java:53)
      1 frame