TC 4.5 & ClearCase on Linux (Dynamic view)

After upgrading from 4.0.2 to 4.5 I experienced problems.
Reverted to creating a fresh VCS Root spec.

The oddity of having to include a load command in the config spec is still there, but it doesn't seem to cause any harm.
I'm using this clearcase.jar patch:






http://jetbrains.net/tracker/issue/TW-7767

I have the following path

ClearCase Settings
ClearCase view path: *
Relative path within the view: View help *
Use ClearCase: BASE





Testing connection is successful.
Running the build config produces the following error:

[14:07:32]:  [Updating sources] Failed to build patch for build #R15-tars.22, build id: 8, VCS root: XF-delivery, due to error: java.io.IOException: Error executing lsvtree -obs -all /view/etoomr_default_view/vobs/product/dxc_ip/xf_delivery:
The ct command is missing for the lsvtree sub-command.

(I still get the 'This build is outdated message, but that is a seperate thread)

Cheers

9 comments
Comment actions Permalink

Hello,

Can you please send me debug logs and build log of this build?

You have the problems with the "/view/etoomr_sdl_view" view but test connection to the "/view/etoomr_default_view" view is successful. And as I understood both of them are dynamic. So what is the difference of them?

0
Comment actions Permalink

Well, trying to re-create this one (did away with this particular VCS root), I run into the following problem when hitting Save:
(TC is now running with no view set prior to starting it with /bin/runAll.sh)

ClearCase view path: *


"/view/etoomr_default_view" is not a path to ClearCase view

Relative path within the view: View help *


 


No matter what I do, I get the "/view/etoomr_default_view" is not a path to ClearCase view error.
What is the criterium for accepting a ClearCase view path?

I don't really know why it worked the last time, but probably the dynamic view etoomr_default_view was set in the shell that started TC.
Now it is not. (no view set)

The view path is mounted, as shown below: (also from a shell with no view set)
ll /view/etoomr_default_view/vobs/product/dxc_ip/xf_delivery/internal_tools/cxcr102017_1_LM_tool_2/sw_record_19089-/1_19089-cxcr102017_1.tgz
-r--r--r-- 1 etoias eto-dxc_ip 78121 May  6 17:30 /view/etoomr_default_view/vobs/product/dxc_ip/xf_delivery/internal_tools/cxcr102017_1_LM_tool_2/sw_record_19089-/1_19089-cxcr102017_1.tgz
[etoomr@argo-bot ~]$


Cheers

0
Comment actions Permalink

Is it true that all UNIX dynamic views have paths like "/view/<view-name>"? I fixed this problem using this rule, please try the attached patch (to do it you should replace your file "<TeamCity Home>\webapps\ROOT\WEB-INF\plugins\clearcase\server\clearcase.jar" with attached one).



Attachment(s):
clearcase.jar
0
Comment actions Permalink

Great, I'll take it for a spin first think tomorrow morning.

I can't answer for everybody, but since 1992 and two employers this has always been the case, yes.
On a freshly booted Linux box the /view directory is empty until the view has been set once.

One can then access dynamic view elements in two ways, either from /view/VIEWtag/vobs... regardless
of view setting of the shell, or through /vobs... with view set in the shell.

The first method would suit TC best I think, and in order to ensure initial mounting of /view/VIEWtag/ I am planning on using the
following startup script in /etc/rc.local, but have not tested it yet: (haven't found a suitable reboot time)

A bit unsure if runAll.shshould be started with a setview or not. Any hints?

Cheers

#!/bin/sh
#
# This script will be executed *after* all the other init scripts.
# You can put your own initialization stuff in here if you don't
# want to do the full Sys V style init stuff.

# starting TeamCity
# need to make this independant of my user .....
ct=/usr/atria/bin/cleartool
test_dir=/vobs/product/dxc_ip/xf_bns_src


# think this mounts the view
view=etoomr_sdl_view
${ct} setview -exe "ls -l $test_dir &>/dev/null" $view
if [ $? -ne 0 ]; then
echo could not find $test_dir
fi 


# think this mounts the view
view=etohelt_test_view
${ct} setview -exe "ls -l $test_dir &>/dev/null" $view
if [ $? -ne 0 ]; then
echo could not find $test_dir
fi 


# think this mounts the view
view=etoomr_default_view
${ct} setview -exe "ls -l $test_dir &>/dev/null" $view
if [ $? -ne 0 ]; then
echo could not find $test_dir
fi 

# Start TeamCity
${ct} setview -exe "/home/asker/etoomr/TeamCity/bin/runAll.sh start &>/dev/null" $view
echo "TeamCity started [OK]"

0
Comment actions Permalink

Result from test of new cleacase.jar.

Now the VCS root config went OK. Test Connection is OK.

When starting a Run, the same error as in the first post of this thread is still there. The cleartool or ct command is missing:

Download full build log (~3.13Kb) Important messages | All messages
[16:52:43]: Updating sources (1s)
[16:52:44]: [Updating sources] Failed to build patch for build #4.1.26, build id: 51, VCS root: XF-delivery, due to error: java.io.IOException: Error executing lsvtree -obs -all /view/etoomr_default_view/vobs/product/dxc_ip/xf_delivery:
[16:52:44]: Will repeat attempt when server will be available, number of attempts left: 2
[16:52:54]: Updating sources (1s)
[16:52:55]: [Updating sources] Failed to build patch for build #4.1.26, build id: 51, VCS root: XF-delivery, due to error: java.io.IOException: Error executing lsvtree -obs -all /view/etoomr_default_view/vobs/product/dxc_ip/xf_delivery:
[16:52:55]: Will repeat attempt when server will be available, number of attempts left: 1
[16:53:05]: Updating sources (1s)
[16:53:07]: [Updating sources] Failed to build patch for build #4.1.26, build id: 51, VCS root: XF-delivery, due to error: java.io.IOException: Error executing lsvtree -obs -all /view/etoomr_default_view/vobs/product/dxc_ip/xf_delivery:
[16:53:07]: [Updating sources] Patch is broken, can be found in file: /home/asker/etoomr/TeamCity/buildAgent/temp/cache/temp7637066078170768348patch51
[16:53:07]: [Updating sources] Error while applying patch: Failed to build patch for build #4.1.26, build id: 51, VCS root: XF-delivery, due to error: java....


From shell:
[etoomr@argo-bot ~]$  lsvtree -obs -all /view/etoomr_default_view/vobs/product/dxc_ip/xf_delivery
-bash: lsvtree: command not found
[etoomr@argo-bot ~]$ ct lsvtree -obs -all /view/etoomr_default_view/vobs/product/dxc_ip/xf_delivery
/view/etoomr_default_view/vobs/product/dxc_ip/xf_delivery@@/main/1
/view/etoomr_default_view/vobs/product/dxc_ip/xf_delivery@@/main/2
/view/etoomr_default_view/vobs/product/dxc_ip/xf_delivery@@/main/3
/view/etoomr_default_view/vobs/product/dxc_ip/xf_delivery@@/main/4
/view/etoomr_default_view/vobs/product/dxc_ip/xf_delivery@@/main/5
/view/etoomr_default_view/vobs/product/dxc_ip/xf_delivery@@/main/6
/view/etoomr_default_view/vobs/product/dxc_ip/xf_delivery@@/main/7
/view/etoomr_default_view/vobs/product/dxc_ip/xf_delivery@@/main/8
/view/etoomr_default_view/vobs/product/dxc_ip/xf_delivery@@/main/9
/view/etoomr_default_view/vobs/product/dxc_ip/xf_delivery@@/main/10
/view/etoomr_default_view/vobs/product/dxc_ip/xf_delivery@@/main/11
/view/etoomr_default_view/vobs/product/dxc_ip/xf_delivery@@/main/12
/view/etoomr_default_view/vobs/product/dxc_ip/xf_delivery@@/main/13
/view/etoomr_default_view/vobs/product/dxc_ip/xf_delivery@@/main/14
/view/etoomr_default_view/vobs/product/dxc_ip/xf_delivery@@/main/15
/view/etoomr_default_view/vobs/product/dxc_ip/xf_delivery@@/main/16
/view/etoomr_default_view/vobs/product/dxc_ip/xf_delivery@@/main/17
/view/etoomr_default_view/vobs/product/dxc_ip/xf_delivery@@/main/18
/view/etoomr_default_view/vobs/product/dxc_ip/xf_delivery@@/main/19
/view/etoomr_default_view/vobs/product/dxc_ip/xf_delivery@@/main/20
/view/etoomr_default_view/vobs/product/dxc_ip/xf_delivery@@/main/21
/view/etoomr_default_view/vobs/product/dxc_ip/xf_delivery@@/main/22
/view/etoomr_default_view/vobs/product/dxc_ip/xf_delivery@@/main/23
/view/etoomr_default_view/vobs/product/dxc_ip/xf_delivery@@/main/24
/view/etoomr_default_view/vobs/product/dxc_ip/xf_delivery@@/main/25
/view/etoomr_default_view/vobs/product/dxc_ip/xf_delivery@@/main/26
/view/etoomr_default_view/vobs/product/dxc_ip/xf_delivery@@/main/27
/view/etoomr_default_view/vobs/product/dxc_ip/xf_delivery@@/main/28
/view/etoomr_default_view/vobs/product/dxc_ip/xf_delivery@@/main/29
/view/etoomr_default_view/vobs/product/dxc_ip/xf_delivery@@/main/30
/view/etoomr_default_view/vobs/product/dxc_ip/xf_delivery@@/main/31
/view/etoomr_default_view/vobs/product/dxc_ip/xf_delivery@@/main/32
/view/etoomr_default_view/vobs/product/dxc_ip/xf_delivery@@/main/33
/view/etoomr_default_view/vobs/product/dxc_ip/xf_delivery@@/main/34
/view/etoomr_default_view/vobs/product/dxc_ip/xf_delivery@@/main/35
/view/etoomr_default_view/vobs/product/dxc_ip/xf_delivery@@/main/36
/view/etoomr_default_view/vobs/product/dxc_ip/xf_delivery@@/main/37
/view/etoomr_default_view/vobs/product/dxc_ip/xf_delivery@@/main/38
/view/etoomr_default_view/vobs/product/dxc_ip/xf_delivery@@/main/39
/view/etoomr_default_view/vobs/product/dxc_ip/xf_delivery@@/main/40
/view/etoomr_default_view/vobs/product/dxc_ip/xf_delivery@@/main/41
/view/etoomr_default_view/vobs/product/dxc_ip/xf_delivery@@/main/42
/view/etoomr_default_view/vobs/product/dxc_ip/xf_delivery@@/main/43
/view/etoomr_default_view/vobs/product/dxc_ip/xf_delivery@@/main/44
/view/etoomr_default_view/vobs/product/dxc_ip/xf_delivery@@/main/45
/view/etoomr_default_view/vobs/product/dxc_ip/xf_delivery@@/main/46
/view/etoomr_default_view/vobs/product/dxc_ip/xf_delivery@@/main/47
/view/etoomr_default_view/vobs/product/dxc_ip/xf_delivery@@/main/48
/view/etoomr_default_view/vobs/product/dxc_ip/xf_delivery@@/main/49
/view/etoomr_default_view/vobs/product/dxc_ip/xf_delivery@@/main/50
/view/etoomr_default_view/vobs/product/dxc_ip/xf_delivery@@/main/51
/view/etoomr_default_view/vobs/product/dxc_ip/xf_delivery@@/main/52
/view/etoomr_default_view/vobs/product/dxc_ip/xf_delivery@@/main/53
/view/etoomr_default_view/vobs/product/dxc_ip/xf_delivery@@/main/54
/view/etoomr_default_view/vobs/product/dxc_ip/xf_delivery@@/main/55
/view/etoomr_default_view/vobs/product/dxc_ip/xf_delivery@@/main/56
/view/etoomr_default_view/vobs/product/dxc_ip/xf_delivery@@/main/57
/view/etoomr_default_view/vobs/product/dxc_ip/xf_delivery@@/main/58 (CXP9010617_1-R2A06)
/view/etoomr_default_view/vobs/product/dxc_ip/xf_delivery@@/main/59
/view/etoomr_default_view/vobs/product/dxc_ip/xf_delivery@@/main/60
/view/etoomr_default_view/vobs/product/dxc_ip/xf_delivery@@/main/61
/view/etoomr_default_view/vobs/product/dxc_ip/xf_delivery@@/main/62 (CSH10932_1-R2A)
/view/etoomr_default_view/vobs/product/dxc_ip/xf_delivery@@/main/63
/view/etoomr_default_view/vobs/product/dxc_ip/xf_delivery@@/main/64
/view/etoomr_default_view/vobs/product/dxc_ip/xf_delivery@@/main/65
/view/etoomr_default_view/vobs/product/dxc_ip/xf_delivery@@/main/66
/view/etoomr_default_view/vobs/product/dxc_ip/xf_delivery@@/main/67
/view/etoomr_default_view/vobs/product/dxc_ip/xf_delivery@@/main/68
/view/etoomr_default_view/vobs/product/dxc_ip/xf_delivery@@/main/69
/view/etoomr_default_view/vobs/product/dxc_ip/xf_delivery@@/main/70
/view/etoomr_default_view/vobs/product/dxc_ip/xf_delivery@@/main/71
/view/etoomr_default_view/vobs/product/dxc_ip/xf_delivery@@/main/72
/view/etoomr_default_view/vobs/product/dxc_ip/xf_delivery@@/main/73
/view/etoomr_default_view/vobs/product/dxc_ip/xf_delivery@@/main/74
/view/etoomr_default_view/vobs/product/dxc_ip/xf_delivery@@/main/75
/view/etoomr_default_view/vobs/product/dxc_ip/xf_delivery@@/main/76
/view/etoomr_default_view/vobs/product/dxc_ip/xf_delivery@@/main/77
/view/etoomr_default_view/vobs/product/dxc_ip/xf_delivery@@/main/78
/view/etoomr_default_view/vobs/product/dxc_ip/xf_delivery@@/main/79 (CXC1327551_2-R1A21, CXC1327551_1-R1A21)
/view/etoomr_default_view/vobs/product/dxc_ip/xf_delivery@@/main/80
/view/etoomr_default_view/vobs/product/dxc_ip/xf_delivery@@/main/81
/view/etoomr_default_view/vobs/product/dxc_ip/xf_delivery@@/main/82
/view/etoomr_default_view/vobs/product/dxc_ip/xf_delivery@@/main/83
/view/etoomr_default_view/vobs/product/dxc_ip/xf_delivery@@/main/84
/view/etoomr_default_view/vobs/product/dxc_ip/xf_delivery@@/main/85
/view/etoomr_default_view/vobs/product/dxc_ip/xf_delivery@@/main/86
/view/etoomr_default_view/vobs/product/dxc_ip/xf_delivery@@/main/87
/view/etoomr_default_view/vobs/product/dxc_ip/xf_delivery@@/main/88
/view/etoomr_default_view/vobs/product/dxc_ip/xf_delivery@@/main/89
/view/etoomr_default_view/vobs/product/dxc_ip/xf_delivery@@/main/90
/view/etoomr_default_view/vobs/product/dxc_ip/xf_delivery@@/main/91 (CSH10932_1-R3A)
/view/etoomr_default_view/vobs/product/dxc_ip/xf_delivery@@/main/92
/view/etoomr_default_view/vobs/product/dxc_ip/xf_delivery@@/main/93
/view/etoomr_default_view/vobs/product/dxc_ip/xf_delivery@@/main/94
/view/etoomr_default_view/vobs/product/dxc_ip/xf_delivery@@/main/95
/view/etoomr_default_view/vobs/product/dxc_ip/xf_delivery@@/main/96
/view/etoomr_default_view/vobs/product/dxc_ip/xf_delivery@@/main/97
/view/etoomr_default_view/vobs/product/dxc_ip/xf_delivery@@/main/98
/view/etoomr_default_view/vobs/product/dxc_ip/xf_delivery@@/main/99
/view/etoomr_default_view/vobs/product/dxc_ip/xf_delivery@@/main/100
/view/etoomr_default_view/vobs/product/dxc_ip/xf_delivery@@/main/101
/view/etoomr_default_view/vobs/product/dxc_ip/xf_delivery@@/main/102
/view/etoomr_default_view/vobs/product/dxc_ip/xf_delivery@@/main/mo_gemini
/view/etoomr_default_view/vobs/product/dxc_ip/xf_delivery@@/main/mo_gemini/0
/view/etoomr_default_view/vobs/product/dxc_ip/xf_delivery@@/main/mo_gemini/1
/view/etoomr_default_view/vobs/product/dxc_ip/xf_delivery@@/main/mo_gemini/2
/view/etoomr_default_view/vobs/product/dxc_ip/xf_delivery@@/main/103
/view/etoomr_default_view/vobs/product/dxc_ip/xf_delivery@@/main/104
/view/etoomr_default_view/vobs/product/dxc_ip/xf_delivery@@/main/105
/view/etoomr_default_view/vobs/product/dxc_ip/xf_delivery@@/main/106
/view/etoomr_default_view/vobs/product/dxc_ip/xf_delivery@@/main/107
/view/etoomr_default_view/vobs/product/dxc_ip/xf_delivery@@/main/108
/view/etoomr_default_view/vobs/product/dxc_ip/xf_delivery@@/main/109
/view/etoomr_default_view/vobs/product/dxc_ip/xf_delivery@@/main/110
/view/etoomr_default_view/vobs/product/dxc_ip/xf_delivery@@/main/111
/view/etoomr_default_view/vobs/product/dxc_ip/xf_delivery@@/main/112
/view/etoomr_default_view/vobs/product/dxc_ip/xf_delivery@@/main/113
/view/etoomr_default_view/vobs/product/dxc_ip/xf_delivery@@/main/114
/view/etoomr_default_view/vobs/product/dxc_ip/xf_delivery@@/main/115
/view/etoomr_default_view/vobs/product/dxc_ip/xf_delivery@@/main/116
/view/etoomr_default_view/vobs/product/dxc_ip/xf_delivery@@/main/117
/view/etoomr_default_view/vobs/product/dxc_ip/xf_delivery@@/main/118
/view/etoomr_default_view/vobs/product/dxc_ip/xf_delivery@@/main/119
/view/etoomr_default_view/vobs/product/dxc_ip/xf_delivery@@/main/120
/view/etoomr_default_view/vobs/product/dxc_ip/xf_delivery@@/main/121
/view/etoomr_default_view/vobs/product/dxc_ip/xf_delivery@@/main/122
/view/etoomr_default_view/vobs/product/dxc_ip/xf_delivery@@/main/123
/view/etoomr_default_view/vobs/product/dxc_ip/xf_delivery@@/main/124
/view/etoomr_default_view/vobs/product/dxc_ip/xf_delivery@@/main/125
/view/etoomr_default_view/vobs/product/dxc_ip/xf_delivery@@/main/126
/view/etoomr_default_view/vobs/product/dxc_ip/xf_delivery@@/main/127 (CXC1327551_1-R7A04)
/view/etoomr_default_view/vobs/product/dxc_ip/xf_delivery@@/main/128
/view/etoomr_default_view/vobs/product/dxc_ip/xf_delivery@@/main/129
/view/etoomr_default_view/vobs/product/dxc_ip/xf_delivery@@/main/130
/view/etoomr_default_view/vobs/product/dxc_ip/xf_delivery@@/main/131
/view/etoomr_default_view/vobs/product/dxc_ip/xf_delivery@@/main/132
/view/etoomr_default_view/vobs/product/dxc_ip/xf_delivery@@/main/133
/view/etoomr_default_view/vobs/product/dxc_ip/xf_delivery@@/main/134
/view/etoomr_default_view/vobs/product/dxc_ip/xf_delivery@@/main/135
/view/etoomr_default_view/vobs/product/dxc_ip/xf_delivery@@/main/136
/view/etoomr_default_view/vobs/product/dxc_ip/xf_delivery@@/main/137
[etoomr@argo-bot ~]$

Almost there now.

Cheers

0
Comment actions Permalink

Looks like this error:

09:55:47]: jetbrains.buildServer.serverSide.ExecutionException: Unable to collect changes
jetbrains.buildServer.serverSide.ExecutionException: Unable to collect changes
at jetbrains.buildServer.serverSide.impl.BuildChangesCollector.collectChanges(BuildChangesCollector.java:1)
at jetbrains.buildServer.serverSide.impl.BuildStarter$1.run(BuildStarter.java:4)
at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:441)
at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:303)
at java.util.concurrent.FutureTask.run(FutureTask.java:138)
at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)
at java.lang.Thread.run(Thread.java:619)
Caused by: java.util.concurrent.ExecutionException: jetbrains.buildServer.vcs.VcsException: jetbrains.buildServer.vcs.VcsException: java.io.IOException: cleartool: Error: Unable to access "/view/etoomr_default_view/vobs/product/dxc_ip/xf_delivery@@/main/137/unpacked_files": No such file or directory.

.
Problem looks to be, when trying this in a shell:
[etoomr@argo-bot ~]$  ct lsvtree -obs -all /view/etoomr_default_view/vobs/product/dxc_ip/xf_delivery@@/main/137/unpacked_files
cleartool: Error: Unable to access "/view/etoomr_default_view/vobs/product/dxc_ip/xf_delivery@@/main/137/unpacked_files": No such file or directory.

[etoomr@argo-bot ~]$


.
Note missing / before @@
Inserting the / seems to make it work:

[etoomr@argo-bot ~]$  ct lsvtree -obs -all /view/etoomr_default_view/vobs/product/dxc_ip/xf_delivery/@@/main/137/unpacked_files
/view/etoomr_default_view/vobs/product/dxc_ip/xf_delivery/@@/main/137/unpacked_files@@/main
/view/etoomr_default_view/vobs/product/dxc_ip/xf_delivery/@@/main/137/unpacked_files@@/main/0
/view/etoomr_default_view/vobs/product/dxc_ip/xf_delivery/@@/main/137/unpacked_files@@/main/1
/view/etoomr_default_view/vobs/product/dxc_ip/xf_delivery/@@/main/137/unpacked_files@@/main/2
/view/etoomr_default_view/vobs/product/dxc_ip/xf_delivery/@@/main/137/unpacked_files@@/main/3
/view/etoomr_default_view/vobs/product/dxc_ip/xf_delivery/@@/main/137/unpacked_files@@/main/4
/view/etoomr_default_view/vobs/product/dxc_ip/xf_delivery/@@/main/137/unpacked_files@@/main/5
[etoomr@argo-bot ~]$


Attaching logs.

Cheers


Attachment(s):
logs.zip
0
Comment actions Permalink

Maybe I'm going about this the wrong way.
In this particular build configuration I would like to monitor som 50 deliverables in ClearCase and trigger an assembly of a load module if on is updated.
Should I set up 1 CVS root per .tgz file to monitor or is is possible to set up a more general rule?
It complicates things a bit that on this delivery directory there are some directories that I don't want to monitor.

Any suggestions for a setup?

Cheers

0
Comment actions Permalink

Can you please run the command "ct -status" in the shell and then run "lsvtree -obs -all /view/etoomr_default_view/vobs/product/dxc_ip/xf_delivery" command? What status did return this command? (the last output line will be like "Command 1 returned status ...")

The message "Error executing lsvtree -obs -all /view/etoomr_default_view/vobs/product/dxc_ip/xf_delivery:" means that this command returned non-zero status...

0
Comment actions Permalink

Not able to reproduce this one now. Sorry.

Cheers

0

Please sign in to leave a comment.