2014-10-03 76 views
2

(已有的StackOverflow和ServerFault之間挑選,希望如此是一個更好的場地)TFS服務器填充事件日誌中的錯誤信息

我練我們的TFS服務器升級從2008年到2013年我們要搬到新硬件升級到2012年,然後應用2012年到2013年的就地更新。儘可能地,我遵循TFS Install and Administration guides提供的指南。

從好的一面來看,一切似乎都進行得很順利。我有一個2013年的實例,我可以和大多數事情似乎工作。

然而,在事件日誌中,似乎每30秒我看到以下錯誤消息:

You may not call this function on a different context than the original request at: at Microsoft.TeamFoundation.Framework.Server.TeamFoundationRequestContext.GetService[T]() 
    at Microsoft.TeamFoundation.Warehouse.WarehouseSyncJobExtension`1.CheckSchemaLockQueue(Object source) 
    at System.Threading.ExecutionContext.RunInternal(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean preserveSyncCtx) 
    at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean preserveSyncCtx) 
    at System.Threading.TimerQueueTimer.CallCallback() 
    at System.Threading.TimerQueueTimer.Fire() 
    at System.Threading.TimerQueue.FireNextTimers() 

和:

You may not call this function on a different context than the original request at: at Microsoft.TeamFoundation.Framework.Server.TeamFoundationRequestContext.GetService[T]() 
    at Microsoft.TeamFoundation.Warehouse.LockResources..ctor(TeamFoundationRequestContext requestContext) 
    at Microsoft.TeamFoundation.Warehouse.WarehouseExecutionContext..ctor(TeamFoundationRequestContext requestContext) 
    at Microsoft.TeamFoundation.Warehouse.WarehouseSyncJobExtension`1.CheckSchemaLockQueue(Object source) 
    at System.Threading.ExecutionContext.RunInternal(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean preserveSyncCtx) 
    at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean preserveSyncCtx) 
    at System.Threading.TimerQueueTimer.CallCallback() 
    at System.Threading.TimerQueueTimer.Fire() 
    at System.Threading.TimerQueue.FireNextTimers() 

和:

You may not call this function on a different context than the original request at: at Microsoft.TeamFoundation.Framework.Server.TeamFoundationRequestContext.To(TeamFoundationServiceHost targetHost) 
    at Microsoft.TeamFoundation.Framework.Server.TeamFoundationRequestContext.To(TeamFoundationHostType hostType) 
    at Microsoft.TeamFoundation.Warehouse.LockResources..ctor(TeamFoundationRequestContext requestContext) 
    at Microsoft.TeamFoundation.Warehouse.WarehouseExecutionContext..ctor(TeamFoundationRequestContext requestContext) 
    at Microsoft.TeamFoundation.Warehouse.WarehouseSyncJobExtension`1.CheckSchemaLockQueue(Object source) 
    at System.Threading.ExecutionContext.RunInternal(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean preserveSyncCtx) 
    at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean preserveSyncCtx) 
    at System.Threading.TimerQueueTimer.CallCallback() 
    at System.Threading.TimerQueueTimer.Fire() 
    at System.Threading.TimerQueue.FireNextTimers() 

那是,三個相同的消息,只有3個略有不同的堆棧軌跡。不幸的是,我找不到其他人在尋找(並找到)You may not call this function on a different context than the original request短語的幫助。 (事實上​​,我只得到一個搜索結果,這是一個pastebin post - 但沒有任何上下文,沒有答案,並且我找不到任何其他地方的那個pastbin的鏈接)

回顧事件日誌,這些錯誤僅在2012年 - > 2013年升級後開始,但我不知道這是否意味着該升級會導致問題,或者該升級包含的功能在2012年不存在(因此無法打開)。

那麼,如何找出(更好)這裏發生了什麼,並停止這些錯誤消息呢?我不能一切良心繼續真正的升級,當事情看起來像他們正在工作,但我們得到這些錯誤。


舊服務器:TFS 2008(SP1)之上SQL Server標準2005(SP4),單臺服務器,Windows Server 2003標準的x86(SP2)

新服務器:TFS 2013(更新3)之上SQL Server標準版2012(SP2),單臺服務器,在Windows Server 2008 R2 x64標準(SP1)

(當新的服務器是2012年,這是更新4,其他什麼都不同)

+0

您是否在新服務器上配置了TFS報告?你能檢查它是否有效嗎?例外來自倉庫代碼。 – 2014-10-03 18:29:02

+0

剛剛從2012年升級到2013年,並有這個問題。唉,這裏的答案還不夠。 (我嘗試重建。)必須回滾... – Vaccano 2015-06-12 02:39:27

回答

1

您可能需要重建倉庫和立方體。在管理控制檯中,如果您單擊報告,您應該看到一個「重建」按鈕。

+0

我已重建並仍然看到相同的錯誤 – 2014-10-06 07:21:12

+0

看起來您的倉庫服務正在眨眼。如果您禁用報告選項,錯誤消失了嗎?# – 2014-10-06 13:11:24

+0

我認爲您需要使用MSFT發出呼叫。您可以在論壇上或通過刻錄MSDN支持請求來完成此操作。我需要現場訪問環境來進一步幫助:( – 2014-10-06 13:12:17