我正在尝试在Windows Server 2016 Standard上创建本地开发(不安全)Service Fabric Cluster。我已按照this article中的说明进行操作。但是,我收到了一个相当有趣的错误,找不到任何东西可以帮我解决这个问题。
FabricInstallerSvc未在计算机上安装FabricHostSvc 本地主机。 FabricSetup可能已失败。 CreateCluster错误: System.AggregateException:发生一个或多个错误。 ---> System.Fabric.FabricServiceNotFoundExc eption:FabricHostSvc不是 由FabricInstallerSvc在机器localhost上安装。 FabricSetup可以 失败了。在 Microsoft.ServiceFabric.DeploymentManager.DeploymentManagerInternal.StartAndValidateInstallerServiceCompletion(海峡 ing machineName,ServiceController installerSvc)at System.Threading.Tasks.Parallel。<> c__DisplayClass17_0
1.<ForWorker>b__1() at System.Threading.Tasks.Task.InnerInvokeWithArg(Task childTask)
1个身体, 动作
at System.Threading.Tasks.Task.<>c__DisplayClass176_0.<ExecuteSelfReplicating>b__0(Object ) --- End of inner exception stack trace --- at System.Threading.Tasks.Task.ThrowIfExceptional(Boolean includeTaskCanceledExceptions) at System.Threading.Tasks.Task.Wait(Int32 millisecondsTimeout, CancellationToken cancellationToken) at System.Threading.Tasks.Parallel.ForWorker[TLocal](Int32 fromInclusive, Int32 toExclusive, ParallelOptions parallel Options, Action2 bodyWithState, Func
4 bodyWithLocal,Func1 localInit, Action
1 localFinally)at System.Threading.Tasks.Parallel.ForEachWorker [TSource,TLocal](IEnumerable1 source, ParallelOptions parallelOption s, Action
1 body,Action2 bodyWithState, Action
3 bodyWithStateAndIndex,Func4 bodyWithStateAndLocal, Func
5 bodyWithE verything,Func1 localInit, Action
1 localFinally)at System.Threading.Tasks.Parallel.ForEach [TSource](IEnumerable1 source, Action
1 body)at at Microsoft.ServiceFabric.DeploymentManager.DeploymentManagerInternal.RunFabricServices(列表1 machines, FabricPacka geType fabricPackageType) at Microsoft.ServiceFabric.DeploymentManager.DeploymentManagerInternal.<CreateClusterAsyncInternal>d__7.MoveNext() ---> (Inner Exception #0) System.Fabric.FabricServiceNotFoundException: FabricHostSvc was not installed by FabricInstall erSvc on machine localhost. FabricSetup may have failed. at Microsoft.ServiceFabric.DeploymentManager.DeploymentManagerInternal.StartAndValidateInstallerServiceCompletion(Str ing machineName, ServiceController installerSvc) at System.Threading.Tasks.Parallel.<>c__DisplayClass17_0
1.b__1() 在System.Threading.Tasks.Task.InnerInvokeWithArg(任务childTask)
在 System.Threading.Tasks.Task&LT;&GT; c__DisplayClass176_0.b__0(对象 )&LT; ---清理故障安装。在注册表中找不到FabricRoot 目标机器localhost。创建群集失败。欲获得更多信息 请查看FabricLogRoot中的跟踪。创建群集失败 exception:System.AggregateException:发生一个或多个错误。 ---&GT; System.AggregateExcep tion:发生一个或多个错误。在Microsoft.ServiceFabric.DeploymentManager.DeploymentManagerInternal.d__7.MoveNext() ---从抛出异常的先前位置开始的堆栈跟踪结束--- at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(任务 任务) System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(任务 任务) Microsoft.ServiceFabric.DeploymentManager.DeploymentManager.d__0.MoveNext() ---内部异常堆栈跟踪结束---在System.Threading.Tasks.Task.ThrowIfExceptional(布尔值 includeTaskCanceledExceptions)at System.Threading.Tasks.Task.Wait(Int32 millisecondsTimeout, 取消语音取消语言) Microsoft.ServiceFabric.Powershell.ClusterCmdletBase.NewCluster(字符串 clusterConfigurationFilePath,String fabric PackageSourcePath,Boolean cleanupOnFailure) ---&GT; (内部异常#0)System.AggregateException:发生一个或多个错误。在 Microsoft.ServiceFabric.DeploymentManager.DeploymentManagerInternal.d__7.MoveNext() ---从抛出异常的先前位置开始的堆栈跟踪结束--- at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(任务 任务) System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(任务 任务) Microsoft.ServiceFabric.DeploymentManager.DeploymentManager.d__0.MoveNext()&LT; ---
之前有没有人遇到此错误并修复过它?这个错误是如何解决的?
旁注:收到此错误后,我运行了 CleanFabric PowerShell脚本并从服务器中删除了所有Service Fabric文件,并尝试再次运行安装,但出现相同的错误信息。
此外,计算机上没有安装Service Fabric SDK(您可以在本地开发计算机上使用)。其原因是由于Microsoft所述的官方先决条件如下所示。
Prerequisites for each machine that you want to add to the cluster:
1. A minimum of 16 GB of RAM is recommended.
2. A minimum of 40 of GB available disk space is recommended.
3. A 4 core or greater CPU is recommended.
4. Connectivity to a secure network or networks for all machines.
5. Windows Server 2012 R2 or Windows Server 2012 (you need to
have KB2858668 installed).
6. .NET Framework 4.5.1 or higher, full install.
7. Windows PowerShell 3.0. The RemoteRegistry service should be running on all the machines.
The cluster administrator deploying and configuring the cluster must have administrator privileges on each of the machines. You cannot install Service Fabric on a domain controller.
我情不自禁地觉得有一些明显的缺失,但我已经非常密切地关注了这些文档,所以这很令人困惑。
答案 0 :(得分:1)
Service Fabric驱动程序存在签名问题,导致它们无法安装在Windows Server 2016和Windows 10 Anniversary Edition上。请等待下一个版本或尝试5.2版。