Cannot register WorkflowManagerService

Thomas Stessl 61 Reputation points
2021-03-23T15:28:11.39+00:00

Hi,

i have a problem with registering the WF-Manager-Service.
I freshly installed the WorkFlowManager (+CU5) with no error on my App-Server.
When i try to register the service, i get the following error:

Register-SPWorkflowService : Failed to query the OAuth S2S metadata endpoint at URI 'https://ksi-intranet.knapp.com/_layouts/15/metadata/json/1'. Error details: 'An error occurred while sending the
request.'. HTTP headers received from the server - ActivityId: 25506bdb-bedc-4f3a-b614-63ac45c830c7. NodeId: KNLEMOSSAPP04. Scope: /SharePoint. Client ActivityId : bc8e6ba9-b736-4bbc-a277-01835fbf6f44.
At line:1 char:1

  • Register-SPWorkflowService -SPSite “https://ksi-intranet.knapp.com” -WorkflowHos ...
  • ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  • CategoryInfo : InvalidData: (Microsoft.Share...WorkflowService:RegisterSPWorkflowService) [Register-SPWorkflowService], InvalidRequestException
  • FullyQualifiedErrorId : Microsoft.SharePoint.WorkflowServices.PowerShell.RegisterSPWorkflowService

I tried every option: -AllowOAuthHttp, -Force, ...

SharePoint log: see attachment.

Environment:

1 WF-Server
1 App-Server
1 SQL-Server

Software:

SharePoint 2013
Windows Server 2012 R2
SQL-Server 2014

80648-wferror.txt

Microsoft 365 and Office | SharePoint Server | For business
{count} votes

Accepted answer
  1. Emily Du-MSFT 51,861 Reputation points Microsoft External Staff
    2021-03-24T09:20:48.23+00:00

    @Thomas Stessl

    For your issue, run the below command before running the Register-SPWorkflowService command:

    $config = (Get-SPSecurityTokenServiceConfig)  
    $config.AllowOAuthOverHttp = $true  
    $config.AllowMetaDataOverHttp = $true  
    $config.Update()  
    

    After that try rerun the command:

    Register-SPWorkflowService -SPSite "http://myportal.mydomain.com" -WorkflowHostUri http://spwfm.mydomain.com:12291 –AllowOAuthHttp  
    

    Reference:
    https://www.keapoint.com/failed-to-query-the-oauth-s2s-metadata-endpoint-uri-sp2013-register-workflow-service-error/


    If an Answer is helpful, please click "Accept Answer" and upvote it.
    Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.

    0 comments No comments

0 additional answers

Sort by: Most helpful

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.