title: Clearcase UCM: rebase fails - error (apparently) is a lie - what's the root cause?
body: <p>I have a rather standard setup with a development stream (devStream) that delivers to and rebases from an integration stream (intStream).</p>
  
  <p>I have a file in my development view (devView) that I can checkout, modify, and checkin normally.</p>
  
  <p>However, when I attempt to deliver (and later rebase) however I get an error that baffles me... (especially as I have been delivering and rebasing for the past 6 months)  It may be worth noting that we recently upgraded from Rhapsody 8.0.2 to 8.0.4 (and correspondingly upgraded the diffmerge tool that clearcase's map file points to for rhapsody files), however given when the errors are arising I can't see how this could be at fault.</p>
  
  <p>Since the graphical mode can be hard to get enough debug info from I captured the results of some command line runs.</p>
  
  <p>Here's the (annonymized) result for </p>
  
  <hr>
  
  <h2>starting a rebase</h2>
  
  <pre><code>cleartool&gt; rebase -recommended
  *SNIP*
  Creating integration activity...
  Setting integration activity...
  Merging files...
  Checked out "C:\CCVs\myDevView\shortenedPath\theFile.sbs" from version "\main\intStream\devStream\9".
    Attached activity:
      activity:NSSLB00001350@\projects  "rebase devStream on 20131120.195128."
  Needs Merge "C:\CCVs\myDevView\shortenedPath\theFile.sbs" [to \main\intStream\devStream\CHECKEDOUT from \main\intStream\9 base \main\intStream\8]
  cleartool: Error: Unable to access "C:\CCVs\myDevView\shortenedPath\theFile.sbs": No such file or directory.
  cleartool: Error: An error occurred while merging file elements in the target view.
  cleartool: Error: Unable to perform merge.
  cleartool: Error: Unable to perform integration.
  cleartool: Error: Unable to rebase stream "devStream".
  </code></pre>
  
  <hr>
  
  <h2>attempting to resume the rebase</h2>
  
  <pre><code>cleartool&gt; rebase -resume
  Rebase in progress on stream "devStream".
  Started by "XXXXX" at 11/20/2013 7:51:28 PM.
  Merging files...
  cleartool: Error: Unable to access "C:\CCVs\myDevView\shortenedPath\theFile.sbs": No such file or directory.
  cleartool: Error: Some files are already checked out to a non-integration activity in the target view.
  cleartool: Error: Unable to perform merge.
  cleartool: Error: Unable to perform integration.
  cleartool: Error: Some files are already checked out to a non-integration activity in the target view.
  cleartool: Error: Unable to resume rebase.
  </code></pre>
  
  <hr>
  
  <h2>listing the information associated with the thusly created integration rebase activity</h2>
  
  <pre><code>cleartool&gt; lsactivity -long NSSLB00001350
  activity "NSSLB00001350"
   2013-11-20T19:52:00-06:00 by XXXXXX
    "Integration activity created by rebase on 11/20/2013 7:51:28 PM.
     "
    owner: XXXXX
    group: XXXXX
    stream: devStream@\projects
    current view: myDevView
    title: rebase devStream on 20131120.195128.
    change set versions:
      C:\CCVs\myDevView\shortenedPath\theFile.sbs@@\main\intStream\devStream\CHECKEDOUT.94426
    clearquest record id: NSSLB00001350
    clearquest record State: Active
  cleartool&gt;
  </code></pre>
  
  <hr>
  
  <h2>listing checkouts for anyone, on any stream, anywhere in this portion of the directory structure</h2>
  
  <pre><code>cleartool&gt; lsco -r
  --11-20T19:51  XXXXX    checkout version ".\shortenedPath\theFile.sbs" from \main\intStream\devStream\9 (reserved)
    Attached activity:
      activity:NSSLB00001350@\projects  "rebase devStream on 20131120.195128."
  </code></pre>
  
  <hr>
  
  <p>At this point I'm confused about how to proceed.  Googling isn't bringing up anything that seems relevant (or maybe my google skills are weak).  </p>
  
  <p>It's also worth pointing out that my clearcase skills are entirely self-taught on an as-needed basis... so I'm sure I've got holes in my knowledge.  Meaining even if something seems like it would have been obvious to do, please point it out; I may be unaware.</p>
  
  <hr>
  
  <h1>Requested Info</h1>
  
  <h2>With no rebase being attempted</h2>
  
  <pre><code>C:\CCVs\myDevView\shortenedPath&gt;cleartool ls    
  theFile.sbs@@\main\intStream\devStream\9              Rule: ...\devStream\LATEST
  theFile.sbs.merge
  theFile.sbs.merge.1
  theFile.sbs.merge.2
  theFile.sbs.merge.3
  theFile.sbs.merge.4
  *snip (other files)*
  </code></pre>
  
  <h2>In middle of failed rebase</h2>
  
  <pre><code>theFile.sbs@@\main\intStream\devStream\CHECKEDOUT from \main\intStream\devStream\9 [not loaded, checkedout but removed]
  *snip*
  theFile.sbs.merge.5
  </code></pre>
  
  <p>So... the rebase is doing something odd to the file; but why does it dissapear when doing a rebase/deliver and not when doing a normal checkout?</p>