Skip to main content

Notifications

Announcements

No record found.

Microsoft Dynamics GP (Archived)

Service Based Architecture - REST - error 500 - NoHostsAvailable

Posted on by Microsoft Employee

Hello,

I am trying install the "Service Based Architecture" to use the REST service with Dynamics GP 2015 but the service don't work.

(I followed the following steps: blog.interdynartis.com/using-the-dynamics-gp-service-based-architecture)

This is the problem:
When I open this link: vm-dynamicsgp/.../Help
The result is:
<DexResponse>
<RequestError>
<CorrelationId>1335cb0d0cb148318a90443fc236614c</CorrelationId>
<HttpCode>500</HttpCode>
<ErrorCode>NoHostsAvailable</ErrorCode>
<Source>GPService</Source>
<Message>No hosts were available to process the request for tenant 'DefaultTenant'.</Message>
</RequestError>
</DexResponse>

When I open this link: localhost/.../Diagnostics
The result is:
{
"EnvironmentInfo": {
"ProcessUser": "myDomain\\dynamics",
"Machine": "VM-DYNAMICSGP",
"ServerTimeZone": "(UTC+01:00) Bruselas, Copenhague, Madrid, París",
"ServerTime": "2015-07-02T13:58:37.6659006+02:00",
"ServiceUptime": "00:28:15"
},
"AppConfiguration": {
"AuthenticationMode": "Windows",
"AzureAppIdUri": null,
"AzureDomain": null,
"AzureTenantListRefreshFrequency": "00:01:00",
"CorsAllowedOriginRefreshFrequency": "00:01:00",
"DesktopHeapKB": 5120,
"GPServiceHostAndPort": "https://localhost:443",
"HostDefinitionRefreshFrequency": "00:00:30",
"HostStatusRefreshFrequency": "00:00:05",
"InstanceStatusHeartbeat": "00:00:05",
"InternalCallers": [
"myDomain\\dynamics",
"VM-DYNAMICSGP\\dynamics"
],
"IsGzipAllowed": true,
"LogFileRetentionDays": 30,
"ManagementCallers": [
"myDomain\\dynamics",
"VM-DYNAMICSGP\\Administrators",
"VM-DYNAMICSGP\\dynamics"
],
"MaxConcurrentCalls": 1000,
"ProcessIdleTimeout": "00:30:00",
"ProcessRebalanceFrequency": "00:01:30",
"SecurityGroupCacheRefreshFrequency": "00:01:00",
"SendTimeout": "00:05:00",
"ShutdownTimeout": "00:00:00",
"TenantListRefreshFrequency": "00:00:30",
"TenantRepositorySource": "TenantConfiguration.xml",
"TenantUserCacheRefreshFrequency": "00:00:30"
},
"HostDefinitions": {
"Stats": {
"Timestamp": "2015-07-02T13:58:25.9333421+02:00",
"Age": "00:00:11"
},
"Hosts": [
{
"HostId": "VM-DYNAMICSGP",
"IsActive": true,
"MaxConcurrentProcesses": 30,
"ServiceControlAddress": "https://localhost:48655/Control"
}
]
},
"Tenants": {
"Stats": {
"Timestamp": "2015-07-02T13:58:25.9333421+02:00",
"Age": "00:00:11"
},
"Tenants": [
{
"Name": "DefaultTenant",
"IsActive": true,
"ApplicationInstance": "DEFAULT",
"GPVersion": "14",
"Revision": "2c1f7a2e637cb557f481dbd4f2cd3af433128396"
}
]
},
"AllowedCORSOrigins": {
"Stats": {
"Timestamp": "2015-07-02T13:58:25.4765893+02:00",
"Age": "00:00:12"
},
"Entries": []
},
"HostStatusMessages": [],
"RoutingTable": [],
"LoadedAssemblyInfo": [
{
"FullName": "Microsoft.Dexterity.Svc.Foundation, Version=14.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35",
"FileVersion": "14.00.0039.000",
"Timestamp": "2014-09-16T21:00:17"
},
{
"FullName": "Microsoft.Dynamics.GP.Svc.Foundation, Version=1.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35",
"FileVersion": "1.0.111.0",
"Timestamp": "2015-03-09T19:09:45"
},
{
"FullName": "Microsoft.Dynamics.GP.Svc.GPService, Version=1.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35",
"FileVersion": "1.0.111.0",
"Timestamp": "2015-03-09T19:10:33"
}
]
}

The parameteres "HostStatusMessages" and "RoutingTable" are empty. I think that this is the problem, but I don't know as I can solve it.

Can anybody help me?

Thanks!

*This post is locked for comments

  • Verified answer
    Community Member Profile Picture
    Community Member Microsoft Employee on at
    RE: Service Based Architecture - REST - error 500 - NoHostsAvailable

    Thank you both for your responses. We have solved the issue. The thing was that when you reinstall or repair the Web Components, you need to delete GPCONFIGURATION database, the installation does not make this by itself, even though it seems to do it.

  • Suggested answer
    John Lowther Profile Picture
    John Lowther 5,122 on at
    RE: Service Based Architecture - REST - error 500 - NoHostsAvailable

    While my reply is mostly questions, hopefully these questions will get you headed down the path to solving your problem.

    First, are you using the web management console to create and setup the tenant, and assign users to that tenant?

    Secondly, did you run the power shell scripts for the tenant?

    At first glance, either one of these (tenant not setup in web management console, or skipping the power shell scripts) could possibly be the cause of the error.

    Unfortunately, there are multiple other things that could be causing the problem, but let's start with these two.

    Let me know how it goes,

  • Chris Rudolph Profile Picture
    Chris Rudolph 20 on at
    RE: Service Based Architecture - REST - error 500 - NoHostsAvailable

    Hi Guido,

    The fact that HostStatusMessages is empty suggests that communication with the Dexterity Service Control service is not working at all. Does anything show up in the log for the GP service?

    One thing that stands out to me is the use of SSL for the internal communication (localhost/Control). This (a hostname/certificate issue) could be the reason the GP Service cannot successfully talk to Dexterity Service Control. The URL you shared in your post suggests the certificate is for your machine name (not localhost), so certificate validation is likely failing for the internal call.

    If possible, consider deploying Dexterity Service Control without SSL since it is optional here.

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

December Spotlight Star - Muhammad Affan

Congratulations to a top community star!

Top 10 leaders for November!

Congratulations to our November super stars!

Tips for Writing Effective Suggested Answers

Best practices for providing successful forum answers ✍️

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 291,280 Super User 2024 Season 2

#2
Martin Dráb Profile Picture

Martin Dráb 230,214 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans