独立服务结构 - AWS - FileStoreService - Copy-ServiceFabricApplicationPackage失败

时间:2018-01-12 16:46:42

标签: azure-service-fabric service-fabric-on-premises

我在AWS中有一个3节点独立Windows服务结构设置。 TestConfiguration和CreateCluster脚本成功运行,但是在尝试将任何应用程序部署到集群中时,我从powershell收到以下错误。

Copy-ServiceFabricApplicationPackage -ApplicationPackagePath .\pkg\<packagename> -ImageStoreConnectionString fabric:ImageStore

Copy-ServiceFabricApplicationPackage : An error occurred during this operation.  Please check the trace logs for more
details.
At line:1 char:1
+ Copy-ServiceFabricApplicationPackage -ApplicationPackagePath .\pkg\ ...
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    + CategoryInfo          : InvalidOperation: (:) [Copy-ServiceFabricApplicationPackage], FabricException
    + FullyQualifiedErrorId : CopyApplicationPackageErrorId,Microsoft.ServiceFabric.Powershell.CopyApplicationPackage

不确定哪些跟踪日志在诊断错误时有用,但检查其中一个节点上的Windows事件日志我看到以下错误,全部用于FileStoreService。

ImpersonateAndCopyFile for SourcePath:\\<ipaddress>\StoreShare_Node3\131601795137630192\6.0.232.9494_0\131601794828730764_8589934592_1.ClusterManifest.xml, DestinationPath:C:\ProgramData\SF\Node1\Fabric\work\Applications\__FabricSystem_App4294967295\work\Store\131601795317314061\6.0.232.9494_0\131601794828730764_8589934592_1.ClusterManifest.xml failed: 0x8007052e. Have tried all access tokens.


CopyFile: SourcePath:\\<ip address>\StoreShare_Node3\131601795137630192\6.0.232.9494_0\131601794828730764_8589934592_1.ClusterManifest.xml, DestinationPath:C:\ProgramData\SF\Node1\Fabric\work\Applications\__FabricSystem_App4294967295\work\Store\131601795317314061\6.0.232.9494_0\131601794828730764_8589934592_1.ClusterManifest.xml, Error:0x8007052e, ElapsedTime:80


CopyFile: no new token is found. current token count: 2

任何想法可能是什么?我重新创建了一个没有安全性的新集群,防火墙在AWS和节点机器上都打开了所有端口(试图删除所有可能阻止复制的东西)。在AWS中使用SimpleAD,因此所有节点都使用相同的AD管理员运行,并且可以进行通信以创建群集。

以下是我正在使用的群集配置,尽可能简单地设置以限制问题的原因。

任何有关诊断复制文件问题的帮助,甚至指向相关的跟踪日志都会很棒。

此外,我注意到ImageStoreService在Service Fabric Explorer中显示警告

Unhealthy event: SourceId='System.FM', Property='State', HealthState='Warning', ConsiderWarningAsError=false.
Partition reconfiguration is taking longer than expected.
ImageStoreService 3 3 00000000-0000-0000-0000-000000003000
   P/P Ready Node3 131601795137630192
   S/S InBuild Node1 131601795317314061
   S/S InBuild Node2 131601795317314062   
(Showing 3 out of 3 replicas. Total available replicas: 1)  

修改
其他信息

在调查问题时,我使用-Debug标志运行了Copy-ServiceFabricApplicationPackage,它现在给出了以下错误,建议使用用户名或密码将程序包从我的计算机上传到集群或集群中将节点分发到节点是不正确的。我假设节点到节点它使用它以fffff结尾创建的本地帐户,我不知道它为什么会创建无效的用户凭据。如果它在计算机上传包和集群之间,那么目前我运行时没有打开安全性,所以不知道为什么这会是一个问题?任何帮助非常感谢。

Copy-ServiceFabricApplicationPackage -ApplicationPackagePath ..\pkg\Release -ImageStoreConnectionString fabric:imagestore -Debug
VERBOSE: System.Fabric.FabricException: An error occurred during this operation.  Please check the trace logs for more details. ---> System.Runtime.InteropServices.COMException: The user name or password is incorrect. (Exception from HRESULT: 0x8007052E)

由于

{
    "name": "SampleCluster",
    "clusterConfigurationVersion": "1.0.0",
    "apiVersion": "08-2017",
    "nodes": [
      {
        "nodeName": "Node1",
        "iPAddress": "<node 1 internal ip address>",
        "nodeTypeRef": "StandardNodeType",
        "faultDomain": "fd:/0",
        "upgradeDomain": "UD0"
      },
      {
        "nodeName": "Node2",
        "iPAddress": "<node 2 internal ip address>",
        "nodeTypeRef": "StandardNodeType",
        "faultDomain": "fd:/1",
        "upgradeDomain": "UD1"
      },
      {
        "nodeName": "Node3",
        "iPAddress": "<node 3 internal ip address>",
        "nodeTypeRef": "StandardNodeType",
        "faultDomain": "fd:/2",
        "upgradeDomain": "UD2"
      }
    ],
    "properties": {
        "diagnosticsStore": {
            "metadata":  "Please replace the diagnostics store with an actual file share accessible from all cluster machines.",
            "dataDeletionAgeInDays": "7",
            "storeType": "FileShare",
            "IsEncrypted": "false",
            "connectionstring": "c:\\ProgramData\\SF\\DiagnosticsStore"
        },
        "nodeTypes": [
          {
            "name": "StandardNodeType",
            "clientConnectionEndpointPort": "19000",
            "clusterConnectionEndpointPort": "19001",
            "leaseDriverEndpointPort": "19002",
            "serviceConnectionEndpointPort": "19003",
            "httpGatewayEndpointPort": "19080",
            "reverseProxyEndpointPort": "19081",
            "applicationPorts": {
                "startPort": "20000",
                "endPort": "30000"
            },
            "ephemeralPorts": {
                "startPort": "49152",
                "endPort": "65534"
            },
            "isPrimary": true
          }
        ],
        "fabricSettings": [
            {
                "name": "Setup",
                "parameters": [
                    {
                        "name": "FabricDataRoot",
                        "value": "C:\\ProgramData\\SF"
                    },
                    {
                        "name": "FabricLogRoot",
                        "value": "C:\\ProgramData\\SF\\Log"
                    }
                ]
            }
        ],
        "addOnFeatures": [
            "DnsService",
            "RepairManager"
        ]
    }
}

1 个答案:

答案 0 :(得分:0)

经过更多调查后,我发现这是由于未在Windows框中正确启用文件共享。虽然在网络适配器的属性中显示为已启用。我没有意识到需要在高级共享中心选项(控制面板\网络和Internet \网络和共享中心\高级共享设置)下启用设置。