Azure Service Fabric: не запускается local Service Fabric Cluster
От: Glenn  
Дата: 30.05.16 17:02
Оценка:
У меня проблема с Azure Service Fabric.
Я установил его ( Windows 7) так как описано в https://azure.microsoft.com/en-gb/documentation/articles/service-fabric-get-started/.

Затемя пошёл в Visual Studio 2015 и попробовал запустить Service Fabric application.
Получилась ошибка “Connect-ServiceFabricCluster : No cluster endpoint is reachable, please check if there is connectivity/firewall/DNS issue”.

Полный log:

1>------ Build started: Project: Application2, Configuration: Debug x64 ------
2>------ Deploy started: Project: Application2, Configuration: Debug x64 ------
-------- Package started: Project: Application2, Configuration: Debug x64 ------
Application2 -> c:\temp\Application2\Application2\pkg\Debug
-------- Package: Project: Application2 succeeded, Time elapsed: 00:00:01.7361084 --------
2>Started executing script 'Set-LocalClusterReady'.
2>Import-Module 'C:\Program Files\Microsoft SDKs\Service Fabric\Tools\Scripts\DefaultLocalClusterSetup.psm1'; Set-LocalClusterReady
2>--------------------------------------------
2>Local Service Fabric Cluster is not setup...
2>Please wait while we setup the Local Service Fabric Cluster. This may take few minutes...
2>
2>Using Cluster Data Root: C:\SfDevCluster\Data
2>Using Cluster Log Root: C:\SfDevCluster\Log
2>
2>Create node configuration succeeded
2>Starting service FabricHostSvc. This may take a few minutes...
2>
2>Waiting for Service Fabric Cluster to be ready. This may take a few minutes...
2>Local Cluster ready status: 4% completed.
2>Local Cluster ready status: 8% completed.
2>Local Cluster ready status: 12% completed.
2>Local Cluster ready status: 17% completed.
2>Local Cluster ready status: 21% completed.
2>Local Cluster ready status: 25% completed.
2>Local Cluster ready status: 29% completed.
2>Local Cluster ready status: 33% completed.
2>Local Cluster ready status: 38% completed.
2>Local Cluster ready status: 42% completed.
2>Local Cluster ready status: 46% completed.
2>Local Cluster ready status: 50% completed.
2>Local Cluster ready status: 54% completed.
2>Local Cluster ready status: 58% completed.
2>Local Cluster ready status: 62% completed.
2>Local Cluster ready status: 67% completed.
2>Local Cluster ready status: 71% completed.
2>Local Cluster ready status: 75% completed.
2>Local Cluster ready status: 79% completed.
2>Local Cluster ready status: 83% completed.
2>Local Cluster ready status: 88% completed.
2>Local Cluster ready status: 92% completed.
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>+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
2> + CategoryInfo : InvalidOperation: ( [Connect-ServiceFabricClus
2> ter], FabricException
2> + FullyQualifiedErrorId : TestClusterConnectionErrorId,Microsoft.ServiceFa
2> bric.Powershell.ConnectCluster
2>
2>Naming Service ready status: 8% completed.
2>Naming Service ready status: 17% completed.
2>Naming Service ready status: 25% completed.
2>Naming Service ready status: 33% completed.
2>Naming Service ready status: 42% completed.
2>Naming Service ready status: 50% completed.
2>Naming Service ready status: 58% completed.
2>Naming Service ready status: 67% completed.
2>Naming Service ready status: 75% completed.
2>Naming Service ready status: 83% completed.
2>Naming Service ready status: 92% completed.
2>Naming Service ready status: 100% completed.
2>WARNING: Naming Service is taking longer than expected to be ready...
2>Local Service Fabric Cluster created successfully.
2>--------------------------------------------------
2>Launching Service Fabric Local Cluster Manager...
2>You can use Service Fabric Local Cluster Manager (system tray application) to manage your local dev cluster.
2>Finished executing script 'Set-LocalClusterReady'.
2>Time elapsed: 00:07:01.8147993
2>The PowerShell script failed to execute.
========== Build: 1 succeeded, 0 failed, 1 up-to-date, 0 skipped ==========
========== Deploy: 0 succeeded, 1 failed, 0 skipped ==========


Glen
azure
Re: Azure Service Fabric: не запускается local Service Fabric Cluster
От: Artem Korneev США https://www.linkedin.com/in/artemkorneev/
Дата: 31.05.16 21:29
Оценка: 2 (1)
Здравствуйте, Glenn, Вы писали:

G>Затемя пошёл в Visual Studio 2015 и попробовал запустить Service Fabric application.

G>Получилась ошибка “Connect-ServiceFabricCluster : No cluster endpoint is reachable, please check if there is connectivity/firewall/DNS issue”.

Его там сначала нужно из командной строки PowerShell инициализировать:

Set-ExecutionPolicy -ExecutionPolicy Unrestricted -Force -Scope CurrentUser
& "$ENV:ProgramFiles\Microsoft SDKs\Service Fabric\ClusterSetup\DevClusterSetup.ps1"
С уважением, Artem Korneev.
Re[2]: Azure Service Fabric: не запускается local Service Fabric Cluster
От: Glenn  
Дата: 01.06.16 08:55
Оценка:
Здравствуйте, Artem Korneev, Вы писали:

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


G>>Затемя пошёл в Visual Studio 2015 и попробовал запустить Service Fabric application.

G>>Получилась ошибка “Connect-ServiceFabricCluster : No cluster endpoint is reachable, please check if there is connectivity/firewall/DNS issue”.

AK>Его там сначала нужно из командной строки PowerShell инициализировать:


AK>
AK>Set-ExecutionPolicy -ExecutionPolicy Unrestricted -Force -Scope CurrentUser
AK>& "$ENV:ProgramFiles\Microsoft SDKs\Service Fabric\ClusterSetup\DevClusterSetup.ps1"
AK>


Здравствуйте,

Спасибо за ответ.
Всё это дкелал -и не раз. результат тот же.
Сам Cluster пересоздаётся успешно — если понимать под этим создание папки на C:.
Но при этом не запускаются соотв. программы — та же Fabric.exe. Почему — не знаю.
Как результат — та ошибка "No cluster endpoint is reachable". Она вполне объяснима — раз Fabric.exe и FabricGateway* не запустились.
Но почему они не запустились? Не знаю.

Надо также добавить вот что. Сначала у меня не запускался и 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
.
Glen
Re: Azure Service Fabric: не запускается local Service Fabric Cluster
От: Михаил Романов Удмуртия https://mihailromanov.wordpress.com/
Дата: 01.06.16 09:37
Оценка:
Здравствуйте, Glenn, Вы писали:

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

Попробуйте заглянуть в логи. Последние продукты MS ведут их весьма подробно.
Логи Service Fabric можно увидеть, открыв Event Viewer, а в нем Application and Service Logs\Microsoft-Service Fabric.
По умолчанию там видны Admin и Operational логи, но если их вдруг будет недостаточно, можно глянуть в Debug
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
Re[2]: Azure Service Fabric: не запускается local Service Fabric Cluster
От: Glenn  
Дата: 01.06.16 12:12
Оценка:
Здравствуйте, Михаил Романов, Вы писали:

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


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

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

>Попробуйте заглянуть в логи


Смотрел.

В Debug ничего не было.
В Admin было вот что:

(это из моего поста на 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?
---
Glen
Re[3]: Azure Service Fabric: не запускается local Service Fabric Cluster
От: Михаил Романов Удмуртия https://mihailromanov.wordpress.com/
Дата: 02.06.16 06:24
Оценка:
Здравствуйте, Glenn, Вы писали:

G>Смотрел.

G>Вообще ”полная история проблем” у меня такая:
Да уж, так с ходу и не знаю что посоветовать. Ощущение, что у вас на машине какие-то серьезные проблемы во всей системе.

Я бы начал раскручивать с проблемы связанной с невозможностью создания коллектора счетчиков.
Как я понимаю, вы не можете создать вообще никакой коллектор, так?

Попробуйте посмотреть тем же Process Monitor на чем именно валится попытка. У вас возвращается ошибка -2147024891 или 0x80070005 — а это, как я понимаю, Access denied. Вполне реально можно поймать тем же ProcessMon.

‭Возможно, устранив эту проблему, вы за одно накроете и остальные.
Re[3]: Azure Service Fabric: не запускается local Service Fabric Cluster
От: Artem Korneev США https://www.linkedin.com/in/artemkorneev/
Дата: 02.06.16 06:32
Оценка:
Здравствуйте, Glenn, Вы писали:

G>Вот описание этой проблемы в отдельной ветке — http://rsdn.ru/forum/setup/6458140.1
Автор: Glenn
Дата: 31.05.16
.


Видел. Не знаю, что сказать, не сталкивался с такой проблемой.
Могу лишь заметить, что кластеры Azure Service Fabric на Windows 7 мы в нашей команде устанавливали примерно 10..15 раз за последний месяц (на ноутбук каждого разработчика), никаких плясок с бубном не исполняли и никаких проблем не всплывало.
Единственное, что приходит на ум — убедитесь, что используются свежие Azure SDK и Azure Service Fabric SDK и MSVS 2015 Update 2, там буквально месяц назад или чуть больше было крупное обновление SDK, в частности что-то относящееся к поддержке Windows 7. Плюс, сильно перетрясли темплейты для веб-сервисов, многие костыли требовавшиеся для работы пре-релизных версий SDK больше не нужны.
С уважением, Artem Korneev.
 
Подождите ...
Wait...
Пока на собственное сообщение не было ответов, его можно удалить.