无法加入工作流场(Add-WFHost)

问题描述 投票:0回答:1

我最近

  1. 已安装 Workflow Manager 累积更新 2
  2. 服务器总线从1.0升级到1.1

现在,当我尝试加入 WF Farm 时,收到 401 错误消息

远程服务器返回错误:(401) 未经授权。管理索赔 此操作需要...

有趣的是我可以加入SB Farm,但不能加入WF Farm。

这是 WF PowerShell 的输出:

PS C:\Program Files\Workflow Manager\1.0> Add-WFHost -WFFarmDBConnectionStringData 'Source=sqlserver;Initial Catalog=WFManagement;Integrated Security=True;Encryt=False' -RunAsPassword $RunAsPassword -EnableFirewallRules $true -SBClientConfiguration $SBClientConfiguration -CertificateAutoGenerationKey $CertificateAutoGenerationKey -Verbose;

VERBOSE: [04-05-2015 07:05:32]: Validating input and configuration parameters.
VERBOSE: [04-05-2015 07:05:33]: Installing auto-generated certificate.
VERBOSE: [04-05-2015 07:05:36]: Granting 'Log on as Service' privilege to the RunAs account.
VERBOSE: [04-05-2015 07:05:36]: Workflow Manager configuration starting.
VERBOSE: [04-05-2015 07:05:37]: Configuring Workflow Manager runtime settings.
Add-WFHost : The remote server returned an error: (401) Unauthorized. Manage cl
aim is required for this operation..TrackingId:653bd8b8-5061-4f3a-809a-cd7fd4b9
b665_Gunopsdk576903,TimeStamp:04-05-2015 05:05:38
At line:1 char:1
+ Add-WFHost -WFFarmDBConnectionString 'Data Source=sqlserver;Initial Catalog=WFM
ana ...
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
~~~
    + CategoryInfo          : OperationStopped: (:) [Add-WFHost], Unauthorized
   AccessException
    + FullyQualifiedErrorId : WFRuntimeSettingFailed,Microsoft.Workflow.Deploy
   ment.Commands.AddWFHost

有什么指点吗?

workflow-foundation-4 workflow-foundation servicebus workflow-manager-1.x
1个回答
5
投票

经过两天的奋斗和谩骂,我终于找到了问题所在 -

WorkflowDefaultNamespace
(服务总线命名空间)在
ManageUsers
列表中没有我的帐户:

PS > Get-SBNamespace -Name WorkflowDefaultNamespace

SubscriptionId        : 00000000000000000000000000000000
State                 : Active
Name                  : WorkflowDefaultNamespace
AddressingScheme      : Path
CreatedTime           : 17-02-2015 14:31:09
IssuerName            : WorkflowDefaultNamespace
IssuerUri             : WorkflowDefaultNamespace
ManageUsers           : {wf@crp, johnsmith@crp}
DnsEntry              :
PrimarySymmetricKey   : ******************************
SecondarySymmetricKey :

基本上我的帐户jack@crp不在列表中。

解决方案很简单:

Set-SBNamespace -Name WorkflowDefaultNamespace -ManageUsers @('wf@crp', 'jacksmith@crp', 'jack@crp')

现在我可以

Add-WFHost
并成功加入农场了。如果我能拿回我的两天就好了……

最新问题
© www.soinside.com 2019 - 2025. All rights reserved.