500 - Internal server error.

Proper forum for all questions related to xServer INTERNET = the Azure based cloud solution. This forum deals with the architecture topics such as load balancing, available profiles and standard server settings.
Please be aware that questions about core functionality such as routing, mapping, geocoding in general should be placed in the xServers dedicated forum ;-)
Post Reply
User avatar
columbs
Posts: 20
Joined: Fri Oct 07, 2016 8:21 am

500 - Internal server error.

Post by columbs »

Hello everyone,

we have been using the xTour Internet for a few month. We have got an account for https://xtour-eu-n-test.cloud.ptvgroup.com/

We noticed that if we send a big request to xTour we get the following after more or less 3 minutes.

Code: Select all

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1"/>
<title>500 - Internal server error.</title>
</head>
<body>
<div id="header"><h1>Server Error</h1></div>
<div id="content">
 <div class="content-container"><fieldset>
  <h2>500 - Internal server error.</h2>
  <h3>There is a problem with the resource you are looking for, and it cannot be displayed.</h3>
 </fieldset></div>
</div>
</body>
</html>


As temporary solution we have set availableMachineTime="120" ( at the beginning we have set availableMachineTime="150", but in some case like balancing plan isn't enough, see similar case here:
http://xserver.ptvgroup.com/forum/viewt ... 1392#p1392 )

my questions are: is it possible to get more resource for xServer internet? Is it a difference between the test and the prod account?
I ask also in order to know if for us it would be better to have a local xTour server or not.

Thank you in advance and best regards from Berne,
Sebastiano
Intertour strategy is my religion
User avatar
columbs
Posts: 20
Joined: Fri Oct 07, 2016 8:21 am

Re: 500 - Internal server error.

Post by columbs »

I have an update.
It seems that the issue of 3 minutes cannot be solved/changed. The solution seems to be to use asynchronous planing (i.e. startPlanBasicTours in our case).

Could you confirm that?

Thank you in advance.
Intertour strategy is my religion
User avatar
Oliver Heilig
Posts: 154
Joined: Tue May 13, 2014 12:10 pm
Location: Karlsruhe, Germany
Contact:

Re: 500 - Internal server error.

Post by Oliver Heilig »

Hello Sebastiano,

yes, xServer internet has a timeout limit of about 3 minutes. So every request that has a potentially long response time (i.e. xTour-requests, and xRoute/xLocate batch rerquests) should be invoked as job.

Regards

Oliver
Oliver Heilig
Chief Developer Logistic Services
PTV GROUP - Germany

https://github.com/oliverheilig/
User avatar
columbs
Posts: 20
Joined: Fri Oct 07, 2016 8:21 am

Re: 500 - Internal server error.

Post by columbs »

Hello Oliver,
thank you for your response.
We have implemend the solution using jobs and it works so far. :)

regards,
Sebastiano
Intertour strategy is my religion
User avatar
Bernd Welter
Site Admin
Posts: 2564
Joined: Mon Apr 14, 2014 10:28 am
Contact:

Re: 500 - Internal server error.

Post by Bernd Welter »

Hi there,

just received a complaint about the 3min timeout. Just for your information:

the limit of 3 minutes is a setting of Microsoft Azure - PTV has no influence on this.
Therefore it is very important to use the asynchronuos protocol (start=>watch=>-fetch-functions).

Best regards,
Bernd
Bernd Welter
Technical Partner Manager Developer Components
PTV Logistics - Germany

Bernd at... The Forum,LinkedIn, Youtube, StackOverflow
I like the smell of PTV Developer in the morning... :twisted:
Post Reply