'Internal server error 500' error message in Portal for ArcGIS

2293
7
12-13-2021 07:20 AM
JuhaHaanpera
New Contributor III

Hello hello,

The Portal for ArcGIS occasionally gives end users an 'Internal server error 500' error message, the root cause of which we have been hunting for a long time with ArcGIS Monitor, among other things, and searching the server logs without success. Have others encountered the 'Internal server error 500' error and how have you fixed the problem?

Our ArcGIS Enterprise environment, which runs on version 10.81, consists of a separate IIS Webadaptor Windows server on the DMZ, a Portal, and three robust GIS servers, and an MS SQL Geodatabase server. Attached is a simplified topology image of the Enterprise environment. The portal has hundreds of simultaneous end users on the browser and Field Maps from the public Internet, as well as twenty ArcGIS Pro users in the office network. Where else could we try to find the cause of the fault? 
I have run all the patches with the Esri Updater tool and all the updates provided by Microsoft are automatically installed on the servers.

JuhaHaanpera_0-1639466714691.png

 

JuhaHaanpera_1-1639408831211.jpeg

 

Thanks in advance for the tips.

B.r. Juha

7 Replies
JuhaHaanpera
New Contributor III

This patch seemed in advance to fix the 'Internal server error 500' error message. I installed it early last month, but unfortunately, end-users still occasionally get that error message. I have now further verified that the patch is installed nicely and Esri's Patchfinder finds it on the Webadaptor server.

We still have to continue hunting for the root cause of the error message and fix it. Good repair tips are more than welcome 🙂 

Web_Adaptor_Patch.jpg

Web_Adaptor_PatchFinder.jpg

0 Kudos
JuhaHaanpera
New Contributor III

We looked through the logs of the Enterprise servers last week. It appears that when an IIS server issues an 'Internal server error 500' message to end-users, requests do not come from the Web Adapter to the GIS servers, but for some reason remain along the way or freeze on the IIS server. How would you try to fix the error? Would reinstalling the IIS server and/or Web adapter help?

0 Kudos
JuhaHaanpera
New Contributor III

We also activate the Web Adaptor's logging on, but it seems a bit limited in this case.

It writes some 5 MB sometimes after a boot and restart of IIS, or something like that and delayed or something like flushing to file seems a bit random.

Also, we're afraid that it's almost impossible to catch the verbose log for the error, as there are tens of thousands of requests per hour, the log for a day would be like many gigabytes.

The most interesting 500 status responses come from the map service export method.

 We noticed that some invalid requests give a 500 request for non-existing content, which should be 404.

like for request "https://<domain>/ <portal webadaptor>/nonexisting"
https://aineistot.esri.fi/portal/nonexists

Hunting continues for the root cause of the 'Internal server error 500' error.

PatrickChase
New Contributor II

We had installed the stability patch and were good for awhile but then the 500 error just started up again. Have you discovered anything more about the issue?

0 Kudos
DarinaTchountcheva
Occasional Contributor II

Hi Patrick,

Have you figured this out?

We just started experiencing the 500 error on Chrome Version 102.0.5005.63 (the latest one). We have Portal for ArcGIS site and we provide PDF files on this site. PDF files are a part of the Portal content. Some users get the 500 error and some don't. 

After looking at the web logs I found the following: 

When the PDF file is requested there is status is 200 (you can see the browser spinning trying to get the content), then immediately the log shows status 401 for the same file, and then error 500. 
 
PDF files are shared with everyone. 
 
Clearing the browser's cache and cookies do not resolve the issue. 
 
There are no issues on Edge or IE. 
 
I don't seem to have this issue with services published to the host server. 

 

0 Kudos
PatrickChase
New Contributor II

Hi Darina - sorry, nothing so far though when we get the 500 error it is not browser specific. The 500 error can happen through any browser client (Chrome, Edge, IE11).

0 Kudos