CreateProcess: attrib +H \.copyarea.dat.new error=5

Problem
This technote explains why attempts to create view using the IBM® Rational® ClearCase® Remote Client (CCRC) or ClearCase Web (CCWeb) results in the error "com.ibm.rational.clearcase.remote_core.copyarea.db.STPException: Error storing: . CreateProcess: attrib +H \.copyarea.dat.new error=5" on Microsoft® Windows® and provides steps to resolve the issue.

Cause

Attempts to create a CCWeb or CCRC view on Windows results in the following error:


http: //webhost1
! Created view.
Host-local path: webhost1:C:\ccweb\view_1_2\view.stg
Created snapshot view directory "C:\ccweb\view_1_2\view.stg".
Error: "com.ibm.rational.clearcase.remote_core.copyarea.db.STPException: Error storing: "c:\view_1\.copyarea.dat.new".
CreateProcess: attrib +H c:\view\view_1\.copyarea.dat.new error=5"


Note: You are unable to complete creation of the view on the client side. The server allows the view storage to be created, and the client machine has open access to the view root directory.

The relevant behind the scenes process of creating a web view (related to this issue) from the client perspective occurs as follows:

  1. View root is created on the client.

  2. A .copyarea.dat.new file is created on the client.

  3. The atribute of the .copyarea.dat.new is changed to HIDDEN.

  4. The .copyarea.dat.new file is renamed to .copyarea.dat

If you do not have premissions to change file attributes (step #3 above) on the client, the above error will appear during view creation.


Solution

You must have the capability to modify file attributes on the client host.

One way to provide users with the ability to modiy file attributes is as follows:
  1. Open the Windows system32 directory (for example C:\WINDOWS\system32) on the client

  2. Find the file attrib.exe, right-click > select Properties.

  3. Click the Security tab and Add the user to the file with the following permissions and click OK.

    Read
    Read & Execute



  4. Attempt to create the view again.

No comments:

Post a Comment