Host is not joining to Workflow Manager farm
We have a SharePoint Workflow Manager Farm (SharePoint 2016 on-premise environment) running on a single server. We were trying to upgrade Azure Service Fabric version 5.1.163.9590 with version 9.1.1121.9590 on Workflow Manager server Which requires to leave the Workflow Farm and rejoin it. While rejoining the Worklfow Manager farm, we got an error message that farm is partially joined. Steps followed to install Microsoft Azure Service Fabric Version 9.1.1121.9590:
- Take a snapshot of the server for precautionary measures.
- Open Workflow Manager Configuration and leave the farm.
- Now uninstall Microsoft Azure Service Fabric 5.1.163.9590 from the control panel.
- Restart the server.
- Run the command below to install Service Fabric using Workflow PowerShell opened as an administrator and move to the same folder where the exe file is located with the cd command. .\MicrosoftServiceFabric.9.1.1583.9590.exe /accepteula
- Restart the server.
- Verify the Microsoft Azure Service Fabric version from the control panel.
- Ensure the Windows firewall service is running.
- At this point, rejoin the server using Workflow Configuration Manager with the following credentials and generation keys. ERROR-
[Error] [1/13/2024 7:22:25 AM]: System.Management.Automation.CmdletInvocationException: The remote server returned an error: (404) Not Found. The incoming request is not recoginzed as a namespace policy put request: Unrecognized policy type: SubscriptionDescription, http://schemas.microsoft.com/netservices/2010/10/servicebus/connect.TrackingId:5b0aff8a-7d17-4f0c-af50-89769d59ae2d_Gde,TimeStamp:1/13/2024 7:22:25 AM ---> Microsoft.ServiceBus.Messaging.MessagingEntityNotFoundException: The remote server returned an error: (404) Not Found. The incoming request is not recoginzed as a namespace policy put request: Unrecognized policy type: SubscriptionDescription, http://schemas.microsoft.com/netservices/2010/10/servicebus/connect.TrackingId:5b0aff8a-7d17-4f0c-af50-89769d59ae2d_Gdei,TimeStamp:1/13/2024 7:22:25 AM ---> System.Net.WebException: The remote server returned an error: (404) Not Found.
at System.Net.HttpWebRequest.EndGetResponse(IAsyncResult asyncResult)
at Microsoft.ServiceBus.Messaging.ServiceBusResourceOperations.CreateOrUpdateAsyncResult`1.EndGetResponse(CreateOrUpdateAsyncResult`1 thisPtr, IAsyncResult ar)
at Microsoft.ServiceBus.Messaging.IteratorAsyncResult`1.StepCallback(IAsyncResult result)
--- End of inner exception stack trace ---
Server stack trace:
Exception rethrown at [0]:
at Microsoft.ServiceBus.Common.AsyncResult.End[TAsyncResult](IAsyncResult result)
at Microsoft.ServiceBus.NamespaceManager.CreateOrUpdateSubscriptionAsyncResult.OnCreateSubscription(IAsyncResult result)
at Microsoft.ServiceBus.Common.AsyncResult.AsyncCompletionWrapperCallback(IAsyncResult result)
Exception rethrown at [1]:
at Microsoft.Workflow.Common.AsyncResult.End[TAsyncResult](IAsyncResult result)
at Microsoft.Workflow.Administration.ServiceUpdateManager.CreateManagementEntities(IList`1 namespaceManagerUris, ServiceBusClientCredentialType clientCredentialType, IDictionary`2 arguments, TimeSpan retryTimeout)
at Microsoft.Workflow.Deployment.Commands.WorkflowServiceConfigHelper.SetWFRuntimeSettings(String resourceDBConnectionString, String config)
at Microsoft.Workflow.Deployment.Commands.AddWFHost.CallWFRuntimeSettings(Service wfserviceInfo, String unencryptedResourceConnectionString)
--- End of inner exception stack trace ---
at System.Management.Automation.Runspaces.AsyncResult.EndInvoke()
at System.Management.Automation.PowerShell.EndInvoke(IAsyncResult asyncResult)
at Microsoft.Workflow.Deployment.ConfigWizard.CommandletHelper.InvokePowershell(Command command, Action`3 updateProgress)
at Microsoft.Workflow.Deployment.ConfigWizard.ProgressPageViewModel.AddWFNode(FarmCreationModel model, Boolean isFirstCommand)
.ProgressPageViewModel.AddWFNode(FarmCreationModel model, Boolean isFirstCommand)
While rejoining the Worklfow Manager farm, we got error message that farm is partially joined. We were able to join SB Farm, but not the WF Farm getting below mentioned error. The Workflow Manager was working fine before leaving the farm (prior to upgrading Microsoft Azure Service Fabric to 9.1.1121.9590).
Looking for Solution of this issue.