2016-05-12 62 views
7

全部,將解決方案部署到服務Fabric羣集時的問題

我似乎無法將在本地羣集上完美運行的應用程序部署到Azure中的羣集。

奇怪的是我能夠在過去部署這個應用程序,但現在似乎無法完成。在部署應用程序後,似乎我的無狀態服務首先部署時沒有任何問題,但是我的statefull服務和actor似乎無法找到合適的副本節點,因爲我似乎正在接收以下警告(通過服務結構瀏覽器,選擇應用程序)時:

Unhealthy event: SourceId='System.PLB', Property='ServiceReplicaUnplacedHealth_Primary_8f41b6fb-3c6f-4916-9f85-27da0171ae6d', HealthState='Warning', ConsiderWarningAsError=false. 
The Load Balancer was unable to find a placement for one or more of the Service's Replicas: 
fabric:/Namespace/ActorService Primary Partition 8f41b6fb-3c6f-4916-9f85-27da0171ae6d could not be placed, possibly, due to the following constraints and properties: 
Placement Constraint: N/A 
Depended Service: N/A 

Constraint Elimination Sequence: 
NodeBlockList eliminated 5 possible node(s) for placement -- 0/5 node(s) remain. 

經進一步調查,我也遇到了以下錯誤:

Error event: SourceId='System.Hosting', Property='CodePackageActivation:Code:EntryPoint'. 
ServiceManifestName='ActorPkg', NodeName='_nt1vm_4',AggregatedHealthState='Error'. 

當檢查Blob存儲所有的日誌文件,以及痕跡,我也發現以下日誌報表:

2016-5-12 12:54:15.176,Warning,1516,2528,Hosting.ProcessActivationManager,Application service 66933b89-78e9-4590-8971-d0cad139d956 with processId 3240 for parent process 310a2a579b75d9847ba5a43d6b365d7c terminated with exit code 2148734720 
2016-5-12 12:54:15.176,Warning,1516,2528,[email protected]a43d6b365d7c,ServiceHostProcess: Process.exe for ApplicationId 66933b89-78e9-4590-8971-d0cad139d956 terminated unexpectedly with exit code 2148734720 on node id 310a2a579b75d9847ba5a43d6b365d7c 
2016-5-12 12:54:15.176,Informational,1516,2528,Hosting.ProcessActivationManager,Sending ApplicationService host down notification for apphost 66933b89-78e9-4590-8971-d0cad139d956, node 310a2a579b75d9847ba5a43d6b365d7c 
2016-5-12 12:54:15.176,Warning,2888,2556,[email protected]:131075269508464788,Processing termination of activated Application Host: HostId=66933b89-78e9-4590-8971-d0cad139d956, ExitCode=2148734720 
2016-5-12 12:54:15.176,Warning,2888,2556,IPC.ServerFailedToRemoveClient,527e532390 client 66933b89-78e9-4590-8971-d0cad139d956 not found 
2016-5-12 12:54:15.176,Informational,2888,2556,[email protected]:131075269508464788,RemoveActivationTableEntry: ErrorCode=S_OK, HostId=66933b89-78e9-4590-8971-d0cad139d956 
2016-5-12 12:54:15.176,Informational,1516,2528,Transport.Enqueue,adb77036b0 enqueue ef74d99d-1a29-4c34-b6d1-1f59542a42d8:1926 False 319B @ qsize 0/0B 
2016-5-12 12:54:15.176,Informational,2864,2556,[email protected]65d7c:131075269508464788,RA on node 310a2a579b75d9847ba5a43d6b365d7c:131075269508464788 performing AppHost down processing for apphost: 66933b89-78e9-4590-8971-d0cad139d956/ 
2016-5-12 12:54:15.176,Informational,2864,2556,[email protected]7c:131075269508464788,Multiple FT Work Begin [Activity: AppHostClosed 66933b89-78e9-4590-8971-d0cad139d956]. FTs 36 
2016-5-12 12:54:15.176,Informational,2888,2556,[email protected]:131075269508464788,ServicePackage ReportHealth: HealthReport(fabric:/Namespace+ActorPkg+310a2a579b75d9847ba5a43d6b365d7c instance=131075312250519674 System.Hosting CodePackageActivation:Code:EntryPoint Error ttl=Infinite sn=131075312551846737 There was an error during CodePackage activation.The service host terminated with exit code:2148734720 removeWhenExpired=false 2016-05-12 12:54:15.184 priority NotAssigned) 

如果任何人有任何想法或建議,爲什麼我的應用程序不能再部署在雲上,將不勝感激!

親切的問候

+2

你可以把你的解決方案的答案,並接受它? –

+0

你能找到解決方案嗎? –

回答

1

響應鬆餅人的評論,我已經從這個問題打消了我的答案,並把它放在這裏(並接受它作爲一個解決方案):

搞清楚如何轉出額外的診斷信息後。 (通過雲端資源管理器,導航到虛擬機標度集,然後選擇標度集,在我的情況下'nt1vm'並選擇更新診斷...通過操作並打開所有日誌記錄)

我來到這一行在WADWindowsEventLogsTable):

.NET Runtime version : 4.0.30319.34209 - This application could not be started.This application requires one of the following versions of the .NET Framework: .NETFramework,Version=v4.6.1Do you want to install this .NET Framework version now? 

所以我降級我的應用程序使用.NET 4.5.2。

更新已解決:降級到.NET 4.5.2後,我的應用程序部署完美。感謝這篇文章:Hosting console application in public service fabric cluster讓我試試這個。

0

我對我的服務織物部署發生此相同的錯誤2148734720太多。我的SF應用程序的目標是.net 4.6.1,但SF節點沒有安裝.net 4.6.X。

在每個部署SF節點(並重新啓動)上安裝.net 4.6.2後,此錯誤已修復。

相關問題