Hiya,
I’m getting below Authorization failed message when validating the service based architecture deployment by visiting https://***/gpservice/DefaultTenant/help
This XML file does not appear to have any style information associated with it. The document tree is shown below.
<DexResponse>
<RequestError>
<CorrelationId>81c0a229b3db4b018d02a0655769baff</CorrelationId>
<HttpCode>403</HttpCode>
<ErrorCode>NoTenantContextSpecified</ErrorCode>
<Source>GPService</Source>
<Message>Authorization failed because the request did not specify a tenant context.</Message>
</RequestError>
</DexResponse>
However, I'm getting "EnvironmentInfo", "AppConfiguration" etc when visiting https://***/gpservice/Management/Diagnostics
Can someone shed light on this?
Thanks,
David
Hi Dereck,
You are spot-on. I did reinstall and decide not to put SSL certificate on the mentioned services. Can you please suggest how to revert this SSL configuration. I tried reinstall today and it didn't work. The Diagnostics still shows https.
"Hosts": [ { "HostId": "SPPGPTEST", "IsActive": true, "MaxConcurrentProcesses": 30, "ServiceControlAddress": "https://localhost:48655/Control" } ]
The pre-reqs "HTTP Activation" has been installed from the get-go.
Thanks,
David
Comparing the Diagnostic log, it still looks like the install of SBA didn't go through correctly.......
A couple of things I'm seeing:
--The 'ServiceControlAddress is showing https but then also localhost with a port of 48655. This can be indicative that we had added the SSL certificate to the Dexterity Service, which isn't required thus we recommend not putting the SSL cert on it, similar to the Session Central Service and Session Service for Web Client, and then in a repair or reinstall decided not to put the SSL cert on it, or vice versa, so it has a mix in its setup where it should just show ServerName:Port. Usually, the port number is 48655 or 48656, something in that area.
--For your 'HostStatusMessages', I see no information at all, while mine shows the HostID, FullMachineName, GPVersion, Dexterity Service and Runtime file version, status, along with a HttpRequestAddress and HttpManagementAddress.
This message of 'No hosts were available to process the request for tenant', is commonly seen when all pre-reqs haven't been installed on the server needed by SBA, specifically 'HTTP Activation' seems to be the big one we see.
The issue with the SSL certificate/URL on the Dexterity Service Control can also cause this type of message.
Please take a look at the above I mentioned.
Thanks
Hi Dereck,
Thanks for your reply.
I followed the instructions on the suggested blog written by Karsten. I don't have 403 error anymore but a 500 error. Attached are the Diagnostics, Help page and Error Log.
I tried the approaches in the below post but there is no success.
community.dynamics.com/.../service-based-architecture---no-hosts-available
Any suggestions?
Thanks,
David
[View:/cfs-file/__key/communityserver-discussions-components-files/32/help.pdf][View:/cfs-file/__key/communityserver-discussions-components-files/32/Error-log.txt][View:/cfs-file/__key/communityserver-discussions-components-files/32/Diagnostics.json]
I'd verify you have all the required roles and features installed per this blog:
The /Help URL for SBA doesn't require any permissions at all, so if you're not able to access it successfully, most likely there is either a pre-req missing from the server or the installation itself didn't go through successfully.
This blog has a lot of troubleshooting information as well, if you haven't already looked at it.
Thanks
Hi Arthur,
Thanks for your prompt reply.
I changed my expired self-signed certificate to a new one, but the issue persists.
Kind regards,
David
Hi David,
I recently ran into the same issue in my dev environment and after checking everything I finally found that the self signed certificate I used had expired.
Might be worth checking if everything else looks good.
thanks
Stay up to date on forum activity by subscribing. You can also customize your in-app and email Notification settings across all subscriptions.
André Arnaud de Cal... 291,240 Super User 2024 Season 2
Martin Dráb 230,149 Most Valuable Professional
nmaenpaa 101,156