It's all about the answers!

Ask a question

Cannot execute SCM from Ant build script while RTC is running, message is "Another RCP application is running in this sandbox", exit code 27


Vladislav Ponomarev (122) | asked Nov 16 '12, 4:57 a.m.

Hello,

I'm running SCM command from within my Ant build script, something like this:

        <exec executable="${scm.home}\scm.exe" failonerror="true">
            <arg value="checkin"/>
  <arg value="myProject/build/run.client.test.sh"/>
  <arg value="-u"/><arg value="…user name…"/>
  <arg value="-P"/><arg value="…password…"/>
</exec>

This build script is launched from RTC client and fails with following message:

Another RCP application is running in this sandbox. File locked at file:D:\Workspaces\rtc.workspace

And <exec> returns code 27.

I ultimately need to run this script not in a stand-alone manner, but from RTC. If I deregister the sandbox reported as locked from RTC Eclipse daemon, it will no longer show pending changes which is definitely not what I want.

Any suggestions how to work around this?

Thank you!


2 answers



permanent link
Dejan Custic (2855) | answered Nov 16 '12, 3:51 p.m.
FORUM MODERATOR / JAZZ DEVELOPER
This article describes a possible solution https://jazz.net/library/article/533

Comments
Vladislav Ponomarev commented Nov 20 '12, 5:37 a.m.

I'm running Windows 7, the file system is not NFS. As I understand your link, it proposes to stop using NFS file system, which is already done in my case. Any other suggestions? Thank you.


permanent link
Chris McGee (50511117) | answered Nov 20 '12, 8:58 p.m.
FORUM MODERATOR / JAZZ DEVELOPER
Is d:\Workspaces\rtc.workspace the workspace you choose when you run the RTC eclipse client?

If so, it will have a lock on this sandbox blocking other clients from managing that sandbox (e.g. scm.exe).

Two potential solutions:
1) Run lscm.bat instead of "scm.exe" to do the checkin
     -lscm will contact your RTC eclipse client to perform the checkin
2) Use a separate sandbox and repository workspace
     -Use scm.exe to load a repository workspace into a separate sandbox (e.g. c:\Workspaces\sandbox1)
     -Make changes to the files in that sandbox
     -Use scm.exe to check in those changes and deliver them

Your answer


Register or 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.