我想开始使用Azure服务面料技术。
我是根据本文件工作,并安装最新的SDK。安装之后,我打开了PowerShell (“作为管理员运行”)命令行窗口,并编写了这些行:
# Set-ExecutionPolicy -ExecutionPolicy Unrestricted -Force -Scope CurrentUser
# cd "$env:ProgramW6432\Microsoft SDKs\Service Fabric\ClusterSetup"
# .\DevClusterSetup.ps1作为一个答案,得到了以下错误:
Cleaning existing cluster ...
NOTE: If this powershell command window exits, please re-run the script in a new powershell command window.
Stopping service FabricHostSvc. This may take a few minutes...
Removing cluster configuration
Remove node configuration succeeded
Cleaning existing certificates
Stopping all logman sessions
Cleaning log and data folder, the powershell window may close automatically.
ClusterPath not provided, will use C:\SfDevCluster
FabricDataRoot not provided, will use C:\SfDevCluster\Data
FabricLogRoot not provided, will use C:\SfDevCluster\Log
Directory: C:\
Mode LastWriteTime Length Name
---- ------------- ------ ----
d---- 4/11/2015 12:47 PM SfDevCluster
Directory: C:\SfDevCluster
Mode LastWriteTime Length Name
---- ------------- ------ ----
d---- 4/11/2015 12:47 PM Manifests
True
Create node configuration succeeded
Starting service FabricHostSvc. This may take a few minutes...
Start-Service : Failed to start service 'Microsoft Service Fabric Host Service (FabricHostSvc)'.
At C:\Program Files\Microsoft SDKs\Service Fabric\ClusterSetup\DevClusterSetup.ps1:167 char:1
+ Start-Service FabricHostSvc -WarningAction SilentlyContinue
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : OpenError: (System.ServiceProcess.ServiceController:ServiceController) [Start-Service],
ServiceCommandException
+ FullyQualifiedErrorId : StartServiceFailed,Microsoft.PowerShell.Commands.StartServiceCommand
WARNING: Could not start FabricHostSvc底线是“未能启动服务”。这个输出在等待3分钟后被打印到屏幕上。
我已经尝试过的事情:
附加的PowerShell命令行屏幕截图。

我在用:
发布于 2015-11-17 16:30:58
今天早上我也和这个问题做了斗争。我不需要重新安装Windows。
我也在事件日志中发现了涉及损坏性能计数器的事件。我不确定它是否相关,但我以管理员身份从cmd窗口运行此命令,以重新构建性能计数器,并清除错误:
洛地特/r
然后,我转到程序和特性,并卸载任何提到的服务结构。
然后我重新安装了Service,并遵循Azure 环境设置页面上的说明,我的集群开始正常工作。
发布于 2016-05-18 05:10:43
我正面临着同样的问题,一天晚上我试了很多次,第二天早上我得到了答案。答案是“确保防火墙是打开的”。
发布于 2015-11-05 07:57:27
UPDATE2:这是一个很老的问题,自2015年11月以来,我再也没有见过这种情况再次发生。(增加了这样的帖子就不会再被否决了--投票:-/ )
更新:自11月份更新以来,我从未收到过这个问题。
前几天我有这个问题,什么都试过了。我已经卸载、重新启动、重新安装了从Service到Azure和Visual的所有内容。
解决办法-很糟糕。重新安装窗户。
有一次,我发现了一条显示注册表损坏的痕迹。关于找不到性能计数器的东西。
现在,我有一个新的问题(我将单独张贴),但只是重复这里,让人们知道,在这个服务下有一些错误的基础设施现在.我的有状态/无状态应用程序部署。无状态应用程序部署并运行。有状态服务部署但不会复制。如果我在另一台机器上运行完全相同的代码(我的意思是复制/粘贴到另一台机器,然后运行它),那么所有代码都能工作。
https://stackoverflow.com/questions/33520293
复制相似问题