Locking problems using commandline (multiple scm.exe daemons created for same sandbox)
Hi,
I'm using the RTC 5.0 commandline, and keep getting an error when checking in , either the first time, or subsequent times. The only work around I've found is to kill the scm.exe daemon.
Why are multiple scm daemons being created for the same sandbox, causing the lock issue?
Scenario: I've created a repo workspace and component via Eclipse. Via command line I load the workspace.
C:\Users\Administrator>lscm load -r RTC -i -d C:\RTCShell\wksp3 SteveTest3
Successfully loaded items into the sandbox.
C:\Users\Administrator>lscm status -d C:\RTCShell\wksp3
Workspace: (1119) "SteveTest3" <-> (1119) "SteveTest3"
Component: (1120) "TestComp"
Baseline: (1121) 1 "Initial Baseline"
File bm.bmp added into sandbox
C:\Users\Administrator>lscm status -d C:\RTCShell\wksp3
Workspace: (1119) "SteveTest3" <-> (1119) "SteveTest3"
Component: (1120) "TestComp"
Baseline: (1121) 1 "Initial Baseline"
Unresolved:
a-- /TestComp/bm.bmp
C:\Users\Administrator>scm checkin -d c:/RTCShell/wksp3 /TestComp/bm.bmp
Problem running 'checkin':
Could not initialize data area. Could not lock C:\RTCShell\wksp3 - locked by other process.
C:\Users\Administrator>scm daemon stop -a
Daemon successfully terminated
C:\Users\Administrator>lscm checkin -d c:/RTCShell/wksp3 /TestComp/bm.bmp
Workspace: (1119) "SteveTest3" <-> (1119) "SteveTest3"
Component: (1120) "TestComp"
Baseline: (1121) 1 "Initial Baseline"
Outgoing:
Change sets:
(1122) -*--@ "<No comment>" 07-Nov-2014 04:08 PM
Changes:
--a-- \bm.bmp
C:\Users\Administrator>scm list daemons
Port Description
56308 Jazz CLI (3.2.200.v20140426_0043)
C:\RTCShell\wksp3
Now add another file to sandbox, bm3.bmp
C:\Users\Administrator>lscm checkin -d c:/RTCShell/wksp3 /TestComp/bm3.bmp
Problem running 'checkin':
Could not initialize data area. Could not lock C:\RTCShell\wksp3 - locked by other process.
C:\Users\Administrator>scm list daemons
Port Description
56349 Jazz CLI (3.2.200.v20140426_0043)
56308 Jazz CLI (3.2.200.v20140426_0043)
C:\RTCShell\wksp3
C:\Users\Administrator>
I'm using the RTC 5.0 commandline, and keep getting an error when checking in , either the first time, or subsequent times. The only work around I've found is to kill the scm.exe daemon.
Why are multiple scm daemons being created for the same sandbox, causing the lock issue?
Scenario: I've created a repo workspace and component via Eclipse. Via command line I load the workspace.
C:\Users\Administrator>lscm load -r RTC -i -d C:\RTCShell\wksp3 SteveTest3
Successfully loaded items into the sandbox.
C:\Users\Administrator>lscm status -d C:\RTCShell\wksp3
Workspace: (1119) "SteveTest3" <-> (1119) "SteveTest3"
Component: (1120) "TestComp"
Baseline: (1121) 1 "Initial Baseline"
File bm.bmp added into sandbox
C:\Users\Administrator>lscm status -d C:\RTCShell\wksp3
Workspace: (1119) "SteveTest3" <-> (1119) "SteveTest3"
Component: (1120) "TestComp"
Baseline: (1121) 1 "Initial Baseline"
Unresolved:
a-- /TestComp/bm.bmp
C:\Users\Administrator>scm checkin -d c:/RTCShell/wksp3 /TestComp/bm.bmp
Problem running 'checkin':
Could not initialize data area. Could not lock C:\RTCShell\wksp3 - locked by other process.
C:\Users\Administrator>scm daemon stop -a
Daemon successfully terminated
C:\Users\Administrator>lscm checkin -d c:/RTCShell/wksp3 /TestComp/bm.bmp
Workspace: (1119) "SteveTest3" <-> (1119) "SteveTest3"
Component: (1120) "TestComp"
Baseline: (1121) 1 "Initial Baseline"
Outgoing:
Change sets:
(1122) -*--@ "<No comment>" 07-Nov-2014 04:08 PM
Changes:
--a-- \bm.bmp
C:\Users\Administrator>scm list daemons
Port Description
56308 Jazz CLI (3.2.200.v20140426_0043)
C:\RTCShell\wksp3
Now add another file to sandbox, bm3.bmp
C:\Users\Administrator>lscm checkin -d c:/RTCShell/wksp3 /TestComp/bm3.bmp
Problem running 'checkin':
Could not initialize data area. Could not lock C:\RTCShell\wksp3 - locked by other process.
C:\Users\Administrator>scm list daemons
Port Description
56349 Jazz CLI (3.2.200.v20140426_0043)
56308 Jazz CLI (3.2.200.v20140426_0043)
C:\RTCShell\wksp3
C:\Users\Administrator>
One answer
I don't think it's a good idea to use lscm and scm at the same time against the same sandbox. When you run the lscm command, it creates a daemon to work in the specified sandbox. It is understandable that when you use scm (a different process for sure) against the same sandbox, you will get locking issue. Any reason that you cannot use lscm all the way through?
https://jazz.net/help-dev/clm/topic/com.ibm.team.scm.doc/topics/c_scm_cli.html
https://jazz.net/help-dev/clm/topic/com.ibm.team.scm.doc/topics/c_scm_cli.html
Comments
Shashikant Padur
JAZZ DEVELOPER Nov 10 '14, 12:14 a.m.In the output C:\RTCShell\wksp3 is used by only one daemonĀ 56308 Jazz CLI (3.2.200.v20140426_0043)
Stephen Rooks
Nov 10 '14, 4:46 a.m.Changing directory worked. Using the -d option failed due to locking issue. Any idea why?