我正在尝试重新部署 Service Fabric 群集 (SF),因为它不再工作,它用于 d365fo 实例。
我的问题是如果我运行:
.\RemoveServiceFabricCluster.ps1 -ClusterConfigFilePath .\ClusterConfig.json
这会对实例的数据和上传的自定义设置产生什么影响?
当我尝试在不清理的情况下创建时,出现错误:已添加具有相同密钥的项目。当我运行 Test 或 CreateServiceFabric.ps1
这是回溯:
Trace folder already exists. Traces will be written to existing trace folder: C:\standalonecluster\DeploymentTraces
Running Best Practices Analyzer...
Opening TraceWriter Default, path C:\standalonecluster\DeploymentTraces\SFDeployer-637780142839442662.trace
Closing TraceWriter Default, path C:\standalonecluster\DeploymentTraces\SFDeployer-637780142839442662.trace
Test Config failed with exception: System.AggregateException: One or more errors occurred. ---> System.ArgumentException: An item with the same key has already been added.
at System.ThrowHelper.ThrowArgumentException(ExceptionResource resource)
at System.Collections.Generic.Dictionary`2.Insert(TKey key, TValue value, Boolean add)
at System.Linq.Enumerable.ToDictionary[TSource,TKey,TElement](IEnumerable`1 source, Func`2 keySelector, Func`2 elementSelector, IEqualityComparer`1 comparer)
at Microsoft.ServiceFabric.DeploymentManager.Model.StandAloneInstallerJsonModelBase.ValidateNodeList()
at Microsoft.ServiceFabric.DeploymentManager.Model.StandAloneInstallerJSONModelOctober2017.ValidateModel()
at Microsoft.ServiceFabric.DeploymentManager.BPA.BestPracticesAnalyzer.IsJsonConfigModelValid(StandAloneInstallerJsonModelBase config, StandAloneInstallerJsonModelBase oldConfig, Boolean validateDownNodes, Boolean throwIfError)
at Microsoft.ServiceFabric.DeploymentManager.BPA.BestPracticesAnalyzer.AnalyzeClusterSetup(String configPath, String oldConfigPath, String cabPath, Boolean usingClusterManifest, FabricPackageType fabricPackageType, Boolean isForcedRun, Int32 maxPercentFailedNodes)
at Microsoft.ServiceFabric.DeploymentManager.BPA.BestPracticesAnalyzer.<>c__DisplayClass1_0.<AnalyzeClusterSetupAsync>b__0()
at System.Threading.Tasks.Task`1.InnerInvoke()
at System.Threading.Tasks.Task.Execute()
--- End of inner exception stack trace ---
at System.Threading.Tasks.Task`1.GetResultCore(Boolean waitCompletionNotification)
at Microsoft.ServiceFabric.DeploymentManager.DeploymentManagerInternal.BpaAnalyzeClusterSetup(String clusterConfigPath, String oldClusterConfigPath, String fabricPackagePath, Int32 maxPercentFailedNodes)
at Microsoft.ServiceFabric.Powershell.ClusterCmdletBase.TestConfig(String clusterConfigPath, String oldClusterConfigPath, String fabricPackagePath, Int32 maxPercentFailedNodes)
at Microsoft.ServiceFabric.Powershell.TestConfig.ProcessRecord()
at System.Management.Automation.CommandProcessor.ProcessRecord()
---> (Inner Exception #0) System.ArgumentException: An item with the same key has already been added.
at System.ThrowHelper.ThrowArgumentException(ExceptionResource resource)
at System.Collections.Generic.Dictionary`2.Insert(TKey key, TValue value, Boolean add)
at System.Linq.Enumerable.ToDictionary[TSource,TKey,TElement](IEnumerable`1 source, Func`2 keySelector, Func`2 elementSelector, IEqualityComparer`1 comparer)
at Microsoft.ServiceFabric.DeploymentManager.Model.StandAloneInstallerJsonModelBase.ValidateNodeList()
at Microsoft.ServiceFabric.DeploymentManager.Model.StandAloneInstallerJSONModelOctober2017.ValidateModel()
at Microsoft.ServiceFabric.DeploymentManager.BPA.BestPracticesAnalyzer.IsJsonConfigModelValid(StandAloneInstallerJsonModelBase config, StandAloneInstallerJsonModelBase oldConfig, Boolean validateDownNodes, Boolean throwIfError)
at Microsoft.ServiceFabric.DeploymentManager.BPA.BestPracticesAnalyzer.AnalyzeClusterSetup(String configPath, String oldConfigPath, String cabPath, Boolean usingClusterManifest, FabricPackageType fabricPackageType, Boolean isForcedRun, Int32 maxPercentFailedNodes)
at Microsoft.ServiceFabric.DeploymentManager.BPA.BestPracticesAnalyzer.<>c__DisplayClass1_0.<AnalyzeClusterSetupAsync>b__0()
at System.Threading.Tasks.Task`1.InnerInvoke()
at System.Threading.Tasks.Task.Execute()<---