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

RTC error when two instances of Visual Studio are open

Here are the steps that led up to the error. I did not experiment to see if there are other ways to recreate the error.

1) Open Visual Studio
2) Load a solution that is bound to RTC
3) Open a second instance of Visual Studio
4) Create a new solution in the second instance
5) Share the second solution in Jazz
The progress dialog box comes up and does nothing for a long time and then displays the following error.

Error message:
Error getting resource properties
Exception type:
com.ibm.team.filesystem.common.FSDaemonConnectionException
Exception message:
Starting the SCM daemon (C:\Program Files (x86)\IBM\Rational Team Concert Client for Microsoft Visual Studio IDE\3rd Party\scmtools\eclipse\scm.exe) on C:\DEV\Fireball returned error: Sandbox(es) locked. Daemon ports and locked sandboxes:
56548 : C:\DEV\Fireball
Problem running 'daemon start':
Failed to lock all sandboxes.

Exception stack trace:
at com.ibm.team.foundation.service.WebRequestInvocationProxy.Invoke(IMessage myIMessage) in C:\RTC_BUILDS\I20090619-0004\Foundation\ServiceInterfaceProxy\WebRequestInvocationProxy.cs:line 89
at System.Runtime.Remoting.Proxies.RealProxy.PrivateInvoke(MessageData& msgData, Int32 type)
at com.ibm.team.filesystem.service.rest.IFilesystemRestClient.getSandboxPaths(ParmsSandboxPaths parms, IProgressMonitor monitor)
at com.ibm.team.filesystem.client.FilesystemClient.GetSandboxPath(String copyFileArea, String osPath, String[]& segments, IProgressMonitor monitor) in C:\RTC_BUILDS\I20090619-0004\Filesystem\FilesystemClient\FilesystemClient.cs:line 87
at com.ibm.team.scm.ui.SccProviderService.<>c__DisplayClass14.<AddProjectsToSourceControl>b__e(String argslndir, IProgressMonitor monitor) in C:\RTC_BUILDS\I20090619-0004\SCM\ScmUI\SccProviderService.cs:line 1306
at com.ibm.team.foundation.core.operationrunner.internalimpl.BackgroundWorkerImpl`2.OnDoWork(DoWorkEventArgs args) in C:\RTC_BUILDS\I20090619-0004\Foundation\Core\operationrunner\internalimpl\BackgroundWorkerImpl.cs:line 154


Any ideas? Everything works fine if I do this with only one instance of Visual Studio running.

0 votes



7 answers

Permanent link
Which version of visual studio are you using. I have seen similar ( not same ) defect in RTC VS client. I would suggest you to try 2.0.0.1 RC3 which should be out soon.

Meanwhile , to verify this at our end can you please open a work item and provide the following details.

Disk location of the two solutions.
The kind of second solution that you create in new visual studio.

Is the new solution, in second instance of visual studio, located in a sub-directory of the first solution. Can you please try to create the new solution in a unrelated location of disk compared to first solution location and then share, and let us know if you still see the same problem.

Sandeep
RTC Visual Studio Team

0 votes


Permanent link
I am using Visual Studio 2008. I will definitely upgrade to RC3 when it comes out. I will also open up a work item but I'm not sure how to do that.

I think you figured out something that I neglected to mention. The second solution is not in a sub-directory of the first solution but they are related. Here's a simplification of my directory structure:


\Project
\Project\Master Solution 1
\Project\Master Solution 2
\Project\Component Solution 1
\Project\Component Solution 1\Component Project 1
\Project\Component Solution 1\Component Project 2
\Project\Component Solution 2
\Project\Component Solution 2\Component Project 3
\Project\Component Solution 2\Component Project 4


Each subfolder of the "Project" directory is bound to a seperate Jazz repository component. The "Project" directory is not bound to any component but it is my Eclipse workspace directory. The "Master Solution 1" solution file contains all of the component projects. I was trying to create the "Master Solution 2" solution file and would have eventually added in some component projects but I never got past adding the empty solution to Jazz. When I created "Master Solution 2" outside of the "Project" directory, I had no issues. However, I'd like to keep them all together. I'd rather be limited by how many instances of Visual Studio I have open.

Thanks for your help!

0 votes


Permanent link
There should not be any limitation on the number of Visual Studio clients. While we try the scenario at our end, can you please try 2.0.0.1, which has been released and is available from Jazz.net

If the issue is still there, then please use the following link to open a defect or enhancement. It would be good to open a work-item so that you will know exactly when this issue is going to be fixed.

https://jazz.net/jazz/web/projects/Rational%20Team%20Concert#action=jazz.viewPage&id=com.ibm.team.workitem

0 votes


Permanent link
In 2.0.0.1, one of the 2.0 issues that we fixed was the lack of support for multiple Visual Studio instances opened on different solutions in the same sandbox. We recommend the use of partitioned solutions while working with Jazz components - similar to the scenaio that you have described, Jonathan. So with 2.0.0.1, your component architecture, and the ability to wok simultaneously on multiple solutions, should work out-of-the-box.

0 votes


Permanent link
Error message:
...
Exception message:
Starting the SCM daemon (C:\Program Files (x86)\IBM\Rational Team Concert Client for Microsoft Visual Studio IDE\3rd Party\scmtools\eclipse\scm.exe) on C:\DEV\Fireball returned error: Sandbox(es) locked. Daemon ports and locked sandboxes:
56548 : C:\DEV\Fireball
Problem running 'daemon start':
Failed to lock all sandboxes.


It looks like VS is trying to start another daemon on the sandbox.

e

0 votes


Permanent link
I installed the just released 2.0.0.1 client and it fixed the issue. Thanks for the help guys!

0 votes


Permanent link
Cool :-)

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

Question asked: Sep 16 '09, 2:12 p.m.

Question was seen: 9,840 times

Last updated: Sep 16 '09, 2:12 p.m.

Confirmation Cancel Confirm