Search code examples
clearcaseclearcase-ucm

cleartool: Error: Checkout disallowed for element "."


I got the error while trying to check out the "." directory in clearcase.

FYI:

  1. view is syncronized with the stream config and all components are modifiable.
  2. The stream has foundation baselines as well as recommended baselines.
  3. The vob is the component of ucm pvob.

    cleartool co -nc "."
    cleartool: Error: Checkout disallowed for element ".": 
      the component containing the element or the current stream is read-only 
      in this project, or the stream lacks foundation baselines.
    cleartool: Error: Unable to check out ".".
    

How would you troubleshoot this error message?


Solution

  • It seems '.' represents the root folder of the vob here.

    The vob is the component of ucm pvob.

    Make sure you don't checkout a pvob.
    You need to checkout the vob of the component (associated to a pvob), not a pvob.

    I have seen this message when trying to checkout an element within aVob/lost+found folder.
    If that is the case, you need to not select that 'lost+found' directory in the config spec.

    element /aVob/lost+found -none 
    

    Otherwise:

    • double-check your component is indeed writable in the project (properties on the project)
    • make sure your stream knows about that

      cleartool chstream -generate stream:a_stream@\a_pvob
      
    • make sure the config spec of your view is in sync with the Stream configuration

      cd /path/to/your/view
      cleartool setcs -stream