lscm not able to register sandbox but scm.exe can. Why?
I am calling RTC SCM tools (Windows) in a Build run via Jazz build engine.
The scm tools is basically going to gather history of each artifact and do some processing.
When I use LSCM.bat via build, it throws error "Unable to register sandbox". The same workspace works with scm.exe.
For the component to scan history of certain files,
- lscm.bat completes in ~ 15 mins.
- scm.exe completes in ~ 2 hrs.
I understand the difference but I want to know how I can get the lscm recognize the sandbox?
the logged in user in lscm, build user and hte workspace owner are the same.
2 answers
Karthik,
since lscm.bat either starts a long running scm daemon process or latches on to an existing one, can you try for the first lscm command you issue to see if maybe another scm process is already running?
>WMIC /OUTPUT:C:\ProcessList.txt path win32_process get Caption,Processid,Commandline
Since only one scm process can access a workspace at a time could it be another scm process already hijacked your workspace and the lscm started daemon fails to register it?
>WMIC /OUTPUT:C:\ProcessList.txt path win32_process get Caption,Processid,Commandline
Since only one scm process can access a workspace at a time could it be another scm process already hijacked your workspace and the lscm started daemon fails to register it?
- Arne
Comments
(Posting as answer due to long content)
Background info: I am calling lscm(scm) in builds (via ANT). The call to lscm/scm happens for more than 100 files in a component. Why I do this is to create a README file for each file from this history of change set (Work item id, summary, comment, who delivered).
Here are my findings so far:
Our RTC Server: RTC 6.0.4 iFix 005
LSCM (via Build) works on the following scenarios:
1. RTC 6.0.1 build tool kit + RTC 6.0.4 SCM tools and starting the build engine via command line (jbe.exe).
2. RTC 6.0.4 build tool kit + RTC 6.0.4 SCM tools and starting the build engine via command line (jbe.exe).
LSCM (via Build) FAILS on the following scenarios:
1. RTC 6.0.1 build tool kit + RTC 6.0.4 SCM tools and starting the build engine via command line (jbe.exe).
2. RTC 6.0.4 build tool kit + RTC 6.0.4 SCM tools and starting the build engine via command line (jbe.exe).
LSCM (via Build) FAILS on the following scenarios:
1. RTC 6.0.1 build tool kit + RTC 6.0.4 SCM tools and starting the build engine via JSL as a windows service.
2. RTC 6.0.4 build tool kit + RTC 6.0.4 SCM tools and starting the build engine via JSL as a windows service.
3. RTC 6.0.1 build tool kit + RTC 6.0.4 SCM tools and starting the build engine via NSSM as a windows service.
4. RTC 6.0.4 build tool kit + RTC 6.0.4 SCM tools and starting the build engine via NSSM as a windows service.
SCM.exe (via Build) works on the following scenarios:
2. RTC 6.0.4 build tool kit + RTC 6.0.4 SCM tools and starting the build engine via JSL as a windows service.
3. RTC 6.0.1 build tool kit + RTC 6.0.4 SCM tools and starting the build engine via NSSM as a windows service.
4. RTC 6.0.4 build tool kit + RTC 6.0.4 SCM tools and starting the build engine via NSSM as a windows service.
SCM.exe (via Build) works on the following scenarios:
1. RTC 6.0.1 build tool kit + RTC 6.0.4 SCM tools and starting the build engine via command line (jbe.exe).
2. RTC 6.0.4 build tool kit + RTC 6.0.4 SCM tools and starting the build engine via command line (jbe.exe).
3. RTC 6.0.1 build tool kit + RTC 6.0.4 SCM tools and starting the build engine via JSL as a windows service.
4. RTC 6.0.4 build tool kit + RTC 6.0.4 SCM tools and starting the build engine via JSL as a windows service.
2. RTC 6.0.4 build tool kit + RTC 6.0.4 SCM tools and starting the build engine via command line (jbe.exe).
3. RTC 6.0.1 build tool kit + RTC 6.0.4 SCM tools and starting the build engine via JSL as a windows service.
4. RTC 6.0.4 build tool kit + RTC 6.0.4 SCM tools and starting the build engine via JSL as a windows service.
5. RTC 6.0.1 build tool kit + RTC 6.0.4 SCM tools and starting the build engine via NSSM as a windows service.
6. RTC 6.0.4 build tool kit + RTC 6.0.4 SCM tools and starting the build engine via NSSM as a windows service.
6. RTC 6.0.4 build tool kit + RTC 6.0.4 SCM tools and starting the build engine via NSSM as a windows service.
The above scenarios are tested on test instance
When the program runs with lscm, the whole build completes in <30 minutes.
When the program runs with scm.exe, the whole build completes in >180 mintues.
Why RTC 6.0.1 toolkit because we right now use that and plan to upgrade next week on PROD servers.