Microsoft Service Fabric主机服务(FabricHostSvc)在启动时挂起 [英] Microsoft Service Fabric Host Service (FabricHostSvc) Hangs on Start

查看:148
本文介绍了Microsoft Service Fabric主机服务(FabricHostSvc)在启动时挂起的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

自2015年11月以来,我一直在使用Microsoft Service Fabric,但遇到了很多问题,但是现在Service Fabric在我的开发计算机上已完全无法正常工作.卸载/重新安装没有帮助.

I've been working with Microsoft Service Fabric since November 2015 and have encountered many issues but now Service Fabric has become completely non-functional on my development machine. Uninstall/reinstall doesn't help.

我当时使用的是1.5版预览版,此后尝试使用2.0版均无济于事.

I was using 1.5-preview and have since tried 2.0 to no avail.

当我尝试从Visual Studio 2015 Update 1运行Service Fabric应用程序时,问题就开始了(在过去的几个月中我做了数百次).

The problem started when I attempted to run a Service Fabric Application from Visual Studio 2015 Update 1 (as I have done hundreds of times over the past few months).

我的机器蓝屏了(我第一次看到Windows 10蓝屏).重新启动后,我无法使我的Service Fabric应用程序通过Visual Studio进行部署. PowerShell脚本失败,并显示以下消息:

My machine blue-screened (first time I've seen a Windows 10 blue screen). After rebooting, I was unable to get my Service Fabric Application to deploy via Visual Studio. The PowerShell script failed with the following message:

启动服务FabricHostSvc.这可能需要几分钟的时间... 启动服务:无法启动服务"Microsoft Service Fabric主机" 服务(FabricHostSvc)".

Starting service FabricHostSvc. This may take a few minutes... Start-Service : Failed to start service 'Microsoft Service Fabric Host Service (FabricHostSvc)'.

我进入了SCM,发现"Microsoft Service Fabric主机服务"处于启动"状态.这样停留了一个小时.我尝试多次停止并启动该服务,每次挂起.

I went into the SCM and found "Microsoft Service Fabric Host Service" was in a state of Starting. It stayed that way for an hour. I tried stopping and starting the service several times and each time it hangs.

我卸载了Service Fabric(Service Fabric,VS的SDK和工具),并重新安装了最新版本2.0,它也出现了相同的问题.

I uninstalled Service Fabric (Service Fabric, SDK and Tools for VS) and re-installed with the latest version 2.0 and it exhibits the same problem.

重新启动,同样的问题.

Reboot, same problem.

删除了c:\ SfDevCluster文件夹,同样的问题.

Removed c:\SfDevCluster folder, same problem.

根据其他文章,我在卸载后查找了任何性能指标,但没有.

Based on some other articles, I looked for any stray performance counters after uninstalling but there weren't any.

我尝试浏览注册表,但名称中还有其他带有"Fabric"的Azure组件.如果删除它们,我可能会使用其余的Azure开发设置.

I tried looking through the registry but there are other Azure components with "Fabric" in the name. If I delete them, I will probably hose the rest of my Azure dev setup.

现在...当我尝试再次启动该服务时,它确实重新创建了SfDevCluster文件夹并提供了一些日志.似乎每分钟创建两个跟踪日志文件,它们具有完全相同的内容.

Now... when I attempted to start the service again, it did re-create the SfDevCluster folder and give me some logs. It seems to create two trace log files per minute and they have the EXACT same contents.

每次失败,跟踪的最后一行是:

Every time it fails, the final line of the trace is:

信息,11176,General.FabricSetup.Main,操作失败并出现错误 0xffffffff

Info ,11176,General.FabricSetup.Main,Operation failed with error 0xffffffff

更早的跟踪(SF 1.5)似乎使用常数而不是错误的十六进制值.似乎表明参数无效.

An earlier trace (SF 1.5) seemed to use a constant rather than the hex value for the error. Seemed to indicate an invalid argument.

无论这种失败是什么,这似乎都是我痛苦的原因.不幸的是,该错误完全无济于事.

Whatever this failure is, it seems to be the cause of my woes. Unfortunately, the error is completely unhelpful.

我试图避免重新安装Windows,因为这将导致整天的工作效率降低.

I'm trying to avoid reinstalling Windows because that will kill an entire day of productivity.

非常感谢您的帮助.

推荐答案

在提升的Powershell会话中,请运行:Unregister-ScheduledTask FabricCounters.

From an elevated powershell session please run: Unregister-ScheduledTask FabricCounters.

这将解决问题.

这篇关于Microsoft Service Fabric主机服务(FabricHostSvc)在启动时挂起的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆