question

ThomasStessl-3946 avatar image
0 Votes"
ThomasStessl-3946 asked EmilyDu-MSFT commented

Cannot register WorkflowManagerService

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










office-sharepoint-server-administration
wferror.txt (2.2 KiB)
· 1
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

@ThomasStessl-3946

I'm checking how the things are going on about this issue. Whether the answer helps you?

You can accept the answer if it helps.


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 Votes 0 ·

1 Answer

EmilyDu-MSFT avatar image
0 Votes"
EmilyDu-MSFT answered

@ThomasStessl-3946

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.




5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.