Troubleshooting
Problem
This technote explains why the IBM® Rational® ClearCase® utility []clearfsimport[] fails to import files into a VOB on Microsoft® Windows® Linux® and UNIX® failing with hash table errors.
Cause
Clearfsimport fails with the following error:
UNIX/Linux:
% clearfsimport ~/java.txt /tmp/test_vob
Creating directory "/tmp/test_vob".
clearfsimport: Error: Could not find "/tmp/test_vob" in hash table
clearfsimport: Warning: Trouble importing element "/tmp/test_vob/java.txt".
clearfsimport: Error: Trouble was encountered importing the following elements:
/tmp/test_vob/java.txt
Windows:
%>clearfsimport C:\temp \my_test_vob
Creating directory "\my_test_vob".
clearfsimport: Error: Unable to access "\": ClearCase object not found.
clearfsimport: Error: Could not resolve parent directory of "\my_test_vob".
Creating directory "\my_test_vob".
clearfsimport: Error: Unable to access "\": ClearCase object not found.
clearfsimport: Error: Could not resolve parent directory of "\my_test_vob".
clearfsimport: Error: Could not find "\my_test_vob" in hash table
The cause of the problem could be one of two issues:
Windows, Linux and UNIX:
- The VOB is not mounted
Windows Only:
- The VOB is mounted but you are trying to import into the VOB tag using a preceding slash in the target path.
Example:
%>clearfsimport C:\temp \my_test_vob
Creating directory "\my_test_vob".
clearfsimport: Error: Unable to access "\": ClearCase object not found.
clearfsimport: Error: Could not resolve parent directory of
\my_test_vob".
Creating directory "\my_test_vob".
clearfsimport: Error: Unable to access "\": ClearCase object not found.
clearfsimport: Error: Could not resolve parent directory of
\my_test_vob".
clearfsimport: Error: Could not find "\my_test_vob" in hash table
Resolving The Problem
If the VOB is not mounted, mount the VOB and then retry the clearfsimport command.
Example:
% cleartool mount /tmp/test_vob
% cd /tmp/test_vob
% clearfsimport ~/java.txt /tmp/test_vob
Validating directory "/tmp/test_vob".
Changed checkout to unreserved for "/tmp/test_vob/." branch "/main/bugs".
Creating element "/tmp/test_vob/java.txt".
Created branch "bugs" from "/tmp/test_vob/java.txt" version "/main/0".
Changed checkout to unreserved for "/tmp/test_vob/java.txt" branch "/main/bugs".
version "/main/bugs/1".
Closing directories.
Checked in version "/main/bugs/2" of directory "/tmp/test_vob"
phosphate% ls -l
total 5
-r--r--r-- 1 joeuser user 233 Jun 26 17:30 java.txt
drwxrwxrwx 2 joeuser user 59 Jun 12 16:33 lost+found
If the VOB is mounted, check the target path and make sure there is not preceding slash in the target path. If there is remove it and retry the clearfsimport command.
Example:
%>clearfsimport C:\temp my_test_vob
Validating directory "my_test_vob".
Creating directory "my_test_vob\temp".
Creating element "my_test_vob\temp\foo.c".
version "\main\1".
Closing directories.
Checked in version "\main\1" of directory "my_test_vob\temp"
Checked in version "\main\48" of directory "my_test_vob"
Was this topic helpful?
Document Information
Modified date:
16 June 2018
UID
swg21147089