TFS and Project Server not Syncing
-
Thursday, August 11, 2011 2:23 PM
Hello,
when trying to Sync TFS with PWA I am getting following error using /getsyncmessages switch.
Microsoft.TeamFoundation.WorkItemTracking.Client.UnexpectedErrorException: TF237121: Cannot complete the operation. An unexpected error occurred. ---> Microsoft.TeamFoundation.WorkItemTracking.Client.ClientException: The process cannot access the file because it is being used by another process.; (Windows); The process cannot access the file because it is being used by another process.; (Windows); The process cannot access the file because it is being used by another process.; (Windows); Could not initialize metadata cache for product 'f9193048-42a5-4517-9c1f-52fe90f1764b'. (Work Item Tracking Metadata Cache); Unspecified error; (Windows); --- End of inner exception stack trace ---; at Microsoft.TeamFoundation.WorkItemTracking.Client.DataStore.DatastoreClass.ConnectEx(String connectionString, String defaultCachePath, String instanceId, String userSamName, String userFriendlyName, String userSid, WorkItemServer clientService); at Microsoft.TeamFoundation.WorkItemTracking.Client.WorkItemStore.InitializeInternal(); at Microsoft.TeamFoundation.Client.TfsTeamProjectCollection.InitializeTeamFoundationObject(String fullName, Object instance); at Microsoft.TeamFoundation.Client.TfsConnection.CreateServiceInstance(Assembly assembly, String fullName); at Microsoft.TeamFoundation.Client.TfsConnection.GetService(Type serviceType); at Microsoft.TeamFoundation.Client.TfsConnection.GetService[T](); at Microsoft.TeamFoundation.Sync.ProjectServer.Providers.ProjectServerMetadataSyncProvider.ProcessSyncChangeBatch(UInt32 batchSize, ChangeBatch changeBatch, ISourceDataProvider sourceDataProvider, IProcessingFeedback processingFeedback); at Microsoft.TeamFoundation.Sync.Framework.SyncOrchestrator.Sync(); at Microsoft.TeamFoundation.Sync.Session.ProjectSyncExecutor.ExecuteSerial(IEnumerable`1 syncOrchestrators); at Microsoft.TeamFoundation.Sync.JobExtension.JobServicePlugin.Run(TeamFoundationRequestContext requestContext, TeamFoundationJobDefinition jobDefinition, DateTime jobQueueTime, String& resultMessage)
All Replies
-
Thursday, August 11, 2011 6:32 PM
Problem solved.. Stop IIS, Delete all files from server from Windows\Temp\TFTemp - this is cache data of TFS. Start IIS.- Marked As Answer by Dhaval Faria1 Thursday, August 11, 2011 6:32 PM
-
Thursday, August 11, 2011 6:39 PM
Hi, it might be quite tricky to understand which one is the other process holding your metadata cache file in the server but I think you should be able to recycle TFS Job service and the error should go away. If that doesn't work you can also try to recycle IIS. Also, is this a clean server box or do you have other TFS components, like Team Explorer or Build installed on this machine? It is possible that one of those processes is the one holding the file so you might need to close those too and restart them.
Federico Kolliker Frers - MSFT -
Friday, August 12, 2011 1:07 AM
yes u can say its an entire App-Tier, we got TFS, BUild Agent, Test Agent, Sharepoint Site, PWA.. data tier is on other machine.
we first got issue with tfsjob, we stopped it then IIS got hold of it.. we tried recycling but as soon as IIS resumes it holds cache.. so we stopped IIS and then deleted cache.

