문제

Microsoft Workflow Manager and Microsoft Service Bus certificates expired on 31.10.2018.

The certificates themselves are no longer problem, these are easy to make. However, getting the Microsoft Service Bus and Microsoft Workflow Manager to use these is the challenge.

We updated Workflow Manager to CU4 (directly from CU2 and Service Bus 1.0), but then received error messages, when tried to enter a new certificate on Service Bus. No parameters were available via PowerShell on the Set-SBCertificate command.

We uninstalled all dependent software, as described in the following article:

https://support.microsoft.com/en-ph/help/3135625/how-to-unconfigure-uninstall-install-and-reconfigure-workflow-manager

(Only SbManagementDB and WFManagementDB databases were deleted because we want existing Workflows to be intact.)

Then reinstalled, configured and imported the data as recommended in such situations by following this article:

https://jefferyland.wordpress.com/2015/05/17/rescue-that-workflow-manager-from-certain-doom-or-at-least-get-that-outboundcertificate-fixed/

We have not been able to get it all working. Right now, it seems that we have received the newer version of Microsoft Service Bus (1.1) that does not want to fully play the Microsoft Workflow Manager that is required to run the recovery of existing databases. (It was the Web Platform Installer that installed 1.1. For us.)

Restore process has stopped at Restore-WFFarm. After that following was tried:

PS C:\Windows\system32> Get-SBNameSpace


SubscriptionId        : 00000000000000000000000000000000
State                 : Active
Name                  : WorkflowDefaultNamespace
AddressingScheme      : Path
CreatedTime           : 23/09/2014 13:17:05
IssuerName            : WorkflowDefaultNamespace
IssuerUri             : WorkflowDefaultNamespace
ManageUsers           : {wfmservice@abc.local, xyz@abc.local}
DnsEntry              : 
PrimarySymmetricKey   : TY9o/3Pv67XXgGWLynwaq03nUpgTHSKrTRGCHkVweWwy6dMeQSWaE9+EsPj72vlm
SecondarySymmetricKey :  


PS C:\Windows\system32> Set-SBNamespace -Name WorkflowDefaultNameSpace -PrimarySymmetricKey TY9o/3Pv67XXgGWLynwaq03nUpgTHSKrTRGCHkVweWwy6dMeQSWaE9+EsPj72vlm
Set-SBNamespace : Cannot validate argument on parameter 'PrimarySymmetricKey'. Invalid primary/secondary symmetric key length. It should be 32 bytes long.
도움이 되었습니까?

해결책

You wrote (Only SbManagementDB and WFManagementDB databases were deleted because we want existing Workflows to be intact.)

You cannot do that. You need to create a new WFFarm and perform Scope restore procedure. As in Disaster recover scenario.

All relevant information you will find here:

https://social.technet.microsoft.com/wiki/contents/articles/29158.workflow-manager-disaster-recovery.aspx

다른 팁

There are several errors that can occur with restore-wffarm. To recreate a valid PrimarySymmetricKey do the following:

  1. Create new namespace: New-SBNamespace -Name 'namespaceTemp' -ManageUsers 'user1','user2' -verbose
  2. Copy the PrimarySymmetricKey from that namespace
  3. Update the default namespace to the PrimarySymmetricKey you just copied: Set-SBNamespace -Name WorkflowDefaultNamespace -PrimarySymmetricKey validKey
  4. Discard the temporary namespace: Remove-SBNamespace -Name 'namespaceTemp' After that you can run Restore-wffarm and will probably find one of the other errors :)
라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 sharepoint.stackexchange
scroll top