创建本地Service Fabric群集失败,出现异常 [英] Create on-premise Service Fabric cluster fails with exception

查看:140
本文介绍了创建本地Service Fabric群集失败,出现异常的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在尝试按照

I am trying to follow the instructions at https://azure.microsoft.com/en-us/documentation/articles/service-fabric-cluster-creation-for-windows-server/#plan-and-prepare-for-cluster-deployment to create a dev cluster on a test machine. I am using the sample ClusterConfig.Unsecure.DevCluster.json file. However creation failed with following exception:

创建集群失败,发生以下异常:System.AggregateException:发生一个或多个错误. -> System.NullReferenceE xception:对象引用未设置为对象的实例. 在System.Fabric.DeploymentManager.d__a.MoveNext() ---从上一个引发异常的位置开始的堆栈结束跟踪--- 在System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(任务任务) 在System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(任务任务) 在System.Fabric.DeploymentManager.d__0.MoveNext() ---内部异常堆栈跟踪的结尾--- 在System.Threading.Tasks.Task.ThrowIfExceptional(Boolean includeTaskCanceledExceptions) 在System.Threading.Tasks.Task.Wait(Int32毫秒超时,CancellationToken cancelToken) 在Microsoft.ServiceFabric.Powershell.ClusterCmdletBase.NewCluster(String clusterConfigurationFilePath,String fabric PackageSourcePath,布尔值rollbackOnFailure) --->(内部异常#0)System.NullReferenceException:对象引用未设置为对象的实例. 在System.Fabric.DeploymentManager.d__a.MoveNext() ---从上一个引发异常的位置开始的堆栈结束跟踪--- 在System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(任务任务) 在System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(任务任务) 在System.Fabric.DeploymentManager.d__0.MoveNext()< ---

Create Cluster failed with exception: System.AggregateException: One or more errors occurred. ---> System.NullReferenceE xception: Object reference not set to an instance of an object. at System.Fabric.DeploymentManager.d__a.MoveNext() --- End of stack trace from previous location where exception was thrown --- at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task) at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task) at System.Fabric.DeploymentManager.d__0.MoveNext() --- 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 Microsoft.ServiceFabric.Powershell.ClusterCmdletBase.NewCluster(String clusterConfigurationFilePath, String fabric PackageSourcePath, Boolean rollbackOnFailure) ---> (Inner Exception #0) System.NullReferenceException: Object reference not set to an instance of an object. at System.Fabric.DeploymentManager.d__a.MoveNext() --- End of stack trace from previous location where exception was thrown --- at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task) at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task) at System.Fabric.DeploymentManager.d__0.MoveNext()<---

我错过了任何设置吗?

似乎符合要求: •建议最少2 GB的内存 •网络连接–确保机器在一个或多个安全网络上 •Windows Server 2012 R2或Windows Server 2012(为此需要安装KB2858668). •.NET Framework 4.5.1或更高版本,完整安装 •Windows PowerShell 3.0 •部署和配置群集的群集管理员必须在每台计算机上都具有管理员特权. •RemoteRegistry服务应在所有计算机上运行.

The requirements appear to be met: •Minimum of 2 GB memory is recommended •Network connectivity – Make sure that the machines are on a secure network/or networks •Windows Server 2012 R2 or Windows Server 2012 (you need to have KB2858668 installed for this). •.NET Framework 4.5.1 or higher, full install •Windows PowerShell 3.0 •The cluster administrator deploying and configuring the cluster must have administrator privileges on each of the computers. •RemoteRegistry service should be running on all the machines.

谢谢!

推荐答案

我发现我需要卸载Azure Service Fabric SDK.显然,用于测试的群集计算机不是要用于开发Service Fabric应用程序或服务吗?

I found out that I need to uninstall Azure Service Fabric SDK. Apparently the cluster machine used for testing are not meant to be used to developer Service Fabric Applications or Services?

这篇关于创建本地Service Fabric群集失败,出现异常的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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