Re[2]: Azure Service Fabric: не запускается local Service Fabric Cluster
От: Glenn  
Дата: 01.06.16 09:49
Оценка:
Здравствуйте, Михаил Романов, Вы писали:

МР>Здравствуйте, Glenn, Вы писали:


G>>У меня проблема с Azure Service Fabric.

МР>Попробуйте заглянуть в логи. Последние продукты MS ведут их весьма подробно.
МР>Логи Service Fabric можно увидеть, открыв Event Viewer, а в нем Application and Service Logs\Microsoft-Service Fabric.
МР>По умолчанию там видны Admin и Operational логи, но если их вдруг будет недостаточно, можно глянуть в Debug

Смотрел.

Вообще ”полная история проблем” у меня такая:

Сначала у меня не запускался и Microsoft Service Fabric Host Service. Он просто вис на несколько минут, а потмо падал.
Потом я поменял его account с Local System на Local Service. Он стал запускаться — но дальше обнаружились проблемы с "No cluster endpoint is reachable".
Возможно — мне надо было всё таки добиться того чтобы Microsoft Service Fabric Host Service запускался под аккаунтом Local System? Но пока я не знаю как этос делать.
Вот описание этой проблемы в отдельной ветке — http://rsdn.ru/forum/setup/6458140.1
Автор: Glenn
Дата: 31.05.16
.

Также вот ято я видел в Логах (это из моего поста на https://social.msdn.microsoft.com/Forums/sqlserver/en-US/f3720242-883d-4938-b0c9-1ea2225c5991/cannot-start-microsoft-service-fabric-host-service-using-local-system-account?forum=AzureServiceFabric):
Cannot start Microsoft Service Fabric Host Service using Local System account


I have Windows 7 and Visual Studio 2015.
I have installed Azure Service Fabric runtime, SDK, and tools for Visual Studio 2015 by https://azure.microsoft.com/en-gb/documentation/articles/service-fabric-get-started/.
I have tried to start Microsoft Service Fabric Host Service – it hangs for several minutes and then fails.

I have seen a lot of Warnings and several Errors in its Windows Event Viewer log. The errors were the following:
1.
TryParseEndpointString: cannot convert '<Port>' in address '<IPorFullyQualifiedDomainName>:<Port>' to tcp port
2.
TryParseHostNameAddress: cannot convert '<Port>' in address '<IPorFullyQualifiedDomainName>:<Port>' to tcp port
3.
Unable to create data collector for performance counters. The command "logman create counter FabricCounters -cf C:\WINDOWS\TEMP\tmpC919.tmp -f bin -si 60 -o "C:\SfDevCluster\Log\PerformanceCountersBinary\fabric_counters_636003167957540662" -v nnnnnn -max 50 -cnf 2700" failed with error code -2147024891.
4.
System.Fabric.FabricDeployer.InvalidDeploymentException: Failed to start performance counter collection when creating or updating deployment
at System.Fabric.FabricDeployer.RestartOperation.OnExecuteOperation(DeploymentParameters parameters, ClusterManifestType clusterManifest, Infrastructure infrastructure)
at System.Fabric.FabricDeployer.UpdateNodeStateOperation.OnExecuteOperation(DeploymentParameters parameters, ClusterManifestType clusterManifest, Infrastructure infrastructure)
at System.Fabric.FabricDeployer.CreateorUpdateOperation.OnExecuteOperation(DeploymentParameters parameters, ClusterManifestType clusterManifest, Infrastructure infrastructure)
at System.Fabric.FabricDeployer.DeploymentOperation.ExecuteOperationPrivate(DeploymentParameters parameters)
at System.Fabric.FabricDeployer.DeploymentOperation.ExecuteOperation(DeploymentParameters parameters)
at System.Fabric.FabricDeployer.Program.Main(String[] args)
5.
FabricDeployer::Install failed with error 0xffffffff, Rolling back.

I cannot say anything why the TryParseEndpointString etc happened.
But I have found out something about the failed command "logman create counter FabricCounters …":

I have tried to run manually (as an Admin) a command “logman create counter MyCounterName -c "\Processor(_Total)\% Processor Time"”. Why I used the "\Processor(_Total)\% Processor Time"? I just wanted any simple counter.
So, this “logman create counter” command also failed on my computer, like the “logman create counter FabricCounters …" failed under Local System account.
I have no idea why this happens.
Then I went to another computer that had the same software Win 7, VS 2015 and “ Service Fabric runtime, SDK, and tools for Visual Studio 2015”.
On that computer Microsoft Service Fabric Host Service works OK. The command “logman create counter MyCounterName -c "\Processor(_Total)\% Processor Time"” works OK, too.

So – what’s wrong with my Windows?

Then I tried to change account of Microsoft Service Fabric Host Service from Local System to Local Service. After that the service managed to start.
But however local Cluster did not work. I got the following error :

……..
2>Local Cluster ready status: 96% completed.
2>Local Cluster ready status: 100% completed.
2>WARNING: Service Fabric Cluster is taking longer than expected to connect.
2>
2>Waiting for Naming Service to be ready. This may take a few minutes...
2>Connect-ServiceFabricCluster : **No cluster endpoint is reachable, please check
2>if there is connectivity/firewall/DNS issue.**
2>At C:\Program Files\Microsoft SDKs\Service
2>Fabric\Tools\Scripts\ClusterSetupUtilities.psm1:521 char:12
2>+ [void](Connect-ServiceFabricCluster @connParams)
……….

2>Local Cluster ready status: 96% completed.

2>Local Cluster ready status: 100% completed.
2>WARNING: Service Fabric Cluster is taking longer than expected to connect.
2>
2>Waiting for Naming Service to be ready. This may take a few minutes...
2>Connect-ServiceFabricCluster : **No cluster endpoint is reachable, please check
2>if there is connectivity/firewall/DNS issue.**
2>At C:\Program Files\Microsoft SDKs\Service
2>Fabric\Tools\Scripts\ClusterSetupUtilities.psm1:521 char:12
2>+ [void](Connect-ServiceFabricCluster @connParams)

What should I do with all this?
Glen
 
Подождите ...
Wait...
Пока на собственное сообщение не было ответов, его можно удалить.