Why do I get a "sandbox in use" error when nothing else is using the sandbox?
![]()
I had been using lscm for batch scripting and occasionally I would get a hung process. Searching the forum provided some insights and a suggestion to use scm for scripting rather than lscm due to the risk of the lingering daemon process causing the JVM shell Process to think the process was not done. So I changed to scm and now, ironically, I am getting this error:
Caused by: org.gradle.internal.UncheckedException: ** LSCM ERROR:The sandbox is in use by another RCP process (an eclipse GUI or another Rational Team Concert source control command line client). **
I say ironic because now that I'm using scm there are no sandbox daemons running - AT ALL. So why do I get this error? I've tried deleting and reloading the sandbox but it doesn't help.
UPDATE 2/19/15:
Based on suggestions of IBM tech (as well as Shashikant, below), I added some wait time in between commands and that helped quite a bit with the error code 27 (sandbox in use) problem. The situation has not evolved into another one:
1. I tried watching for a "metadata/.lock" file but none appeared (at least in the interval that I watched it for)
2. I tried starting a daemon on the workspace by path but this didn't seem to have any effect
3. I tried a 2 second delay but still ran into the problem
4. I went up to a 5 second delay and things improved quite a bit, I have not received the error code 27. However, I am seeing a lot of this error: Job found still running after platform shutdown.
I'm subscribed to workitem 49609 ("jobs founds still running") but I'm inclined to think that the first scm issue is a defect in its own right, wouldn't you say? I should be able to execute a series of scm commands without putting in an arbitrary wait time.
In any case, if I had a working workaround, it wouldn't be a big deal but the .snap file resolution didn't seem to work.
- Andy
|
One answer
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.