Jazz Forum Welcome to the Jazz Community Forum Connect and collaborate with IBM Engineering experts and users

lscm not work under windows

Hello, by me on windows 10 64 bit only work scm. If I try it with lscm it locked by a command a file and not give it free. if the next lscm will be executed it say process already locked.

I have tried all but nothing help. I am only know that with scm daemon stop --all I can unlocked it.

Can somebody help that it work with lscm too.

Thanks

Artur

0 votes



3 answers

Permanent link

If I am hitting the commands from root directory and I have created one folder as a sandbox in different location. I want to load the stream data at that location so what will be the command. Please guide

0 votes

Comments

To load into a directory other than the current working directory use the -d/--directory command. Please provide more details with examples as if this is not what you are looking for.  


Permanent link
The way 'lscm' works is that for sandbox related operations such as check-in and status it will try to lock the sandbox before performing the operation. If the sandbox lock is held by some other 'lscm' daemon or RTC Eclipse client process then it will throw an error informing that the sandbox is locked. 
You can run 'scm list daemon' to see the sandboxes locked by the scm processes.

So the issue could be that the first 'lscm' command run would have locked the sandbox and you running another 'lscm' command outside of the sandbox launches a separate daemon process and tries to lock the same sandbox.
You should run the second 'lscm' command either from within the sandbox or you could specify the -d/--directory option to the command and provide value as the path to the sandbox.

This issue will not occur for a remote operation such as listing a workspace or listing files of a repository workspace as it does not deal with the sandbox.

0 votes

Comments
 Thanks, but I am standing in the sandbox, and I am adding the --directory to every command and it not worked
Here my steps
changing to my sandbox
cd c:/Users/mm/workspace_rtc_6_2/
create changeset
lscm create changeset "mycomment" -w myworkspace --component mycomponent -r nick  --directory c:/Users/mm/workspace_rtc_6_2/
create property
 lscm set property a5144155-a584-4dcc-b2df-50e6cac4e826 0 mysourcetree\myfile.txt -r nick --directory c:/Users/mm/workspace_rtc_6_2/
And now I get he exception
Could not lock C:\Users\mm\workspace_rtc_6_2 - locked by other process
With scm it work only with lscm not work. I used rtc-6.01
How it seems that the "changeset" command generate the in lockfile workspace_rtc_6_2\.jazz5\.jazzlock and give after the execution the command not free.
And if I try to set the property i get the "..locked by other process" exception.
Why do after execute "changeset" not give .jazzlock free?
Only one daemon Prozess is running
scm list daemons
Port  Beschreibung
53971 Jazz-Befehlszeilenschnittstelle (3.2.600.v20151029_0226)
C:\Users\mm\workspace_rtc_6_2
Any Suggestion?

The above steps should have worked. I tried it in my environment and am not able to reproduce this issue.

As a side note: You do not have to specify --directory option if you are already in the sandbox.

 Can you say in which environment you testet.
Here is my
RTC-CLIENT-VERSION=6.01 (Client and Server. (I used the scmtools inside the client)
OS=WINDOWS 10, 64 BIT (Windows Home Edition)
Have you modified scm.ini or lscm.bat ?


Permanent link

You should learn the differences between the scm and lscm command (the second Note in the below document).
https://jazz.net/help-dev/clm/topic/com.ibm.team.scm.doc/topics/c_scm_cli.html

I believe the lock file is basically an indicator of the running daemon.

0 votes

Your answer

Register or log in to post your answer.

Dashboards and work items are no longer publicly available, so some links may be invalid. We now provide similar information through other means. Learn more here.

Search context
Follow this question

By Email: 

Once you sign in you will be able to subscribe for any updates here.

By RSS:

Answers
Answers and Comments
Question details
× 1,698

Question asked: Apr 12 '17, 2:12 p.m.

Question was seen: 4,175 times

Last updated: Jun 02 '21, 11:52 p.m.

Confirmation Cancel Confirm