ERROR

[Fatal Error] Server.dat:42:1: XML document structures must start and end within the same entity

Last Published: April 25, 2020

Error Message

After running the server_diag_tool, the following error message is returned:

"[Fatal Error] Server.dat:42:1: XML document structures must start and end within the same entity.

==================================================
ArcGIS Server Machines
==================================================
(1) server.domain.com (SOM,SOC)
==================================================
(0) QUIT
=================================================="

Cause

The '<arcgis_dir>/server/system/Server.dat' file is missing its closing '</Server>' tag.

In rare cases, this issue has been reported upon upgrading ArcGIS Server Java from 9.3 Service Pack 1 to version 9.3.1.

Solution or Workaround

Add the closing '</Server>' tag within the '<arcgis_dir>/server/system/Server.dat' file.

  1. $ vi <arcgis_dir>/server/system/Server.dat

    Add the following line at the end of the 'Server.dat file': </Server>
  2. Save the file.
  3. Restart ArcGIS Server:

    $ <arcgis_dir>/scripts/stopserver
    $ <arcgis_dir>/scripts/startserver

Article ID:000010670

Software:
  • ArcGIS Server

Get help from ArcGIS experts

Contact technical support

Download the Esri Support App

Go to download options

Discover more on this topic