<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: ArcGIS for Server - Error: Failed to start the server machine. Premature end of file in ArcGIS Enterprise Questions</title>
    <link>https://community.esri.com/t5/arcgis-enterprise-questions/arcgis-for-server-error-failed-to-start-the-server/m-p/435371#M16845</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Had that issue as well. In our case the cause of issues seemed to be machine running out of memory. Lately application&amp;nbsp;service running on same machine had some OutOfMemory errors and also in the ArcGIS logs. I am suspecting it crashed the ArcGIS and tomcat maybe tried to load config to memory, update the ports according to configs and then save it back to file before shutting down, but being out of memory meant 0kb were saved to the file.&amp;nbsp;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 30 Aug 2019 12:09:13 GMT</pubDate>
    <dc:creator>KrisAvi</dc:creator>
    <dc:date>2019-08-30T12:09:13Z</dc:date>
    <item>
      <title>ArcGIS for Server - Error: Failed to start the server machine. Premature end of file</title>
      <link>https://community.esri.com/t5/arcgis-enterprise-questions/arcgis-for-server-error-failed-to-start-the-server/m-p/435367#M16841</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P style="background-color: #ffffff; border: 0px;"&gt;We resolved this issue and wanted to share with the community (Knowledge Base)...&lt;/P&gt;&lt;P style="background-color: #ffffff; border: 0px;"&gt;&lt;/P&gt;&lt;H2 style="background-color: #ffffff; border: 0px;"&gt;The Problem:&lt;/H2&gt;&lt;P style="background-color: #ffffff; border: 0px;"&gt;One of our ArcGIS for Server machines was in a stopped state and would not start up. &amp;nbsp;The only valuable log message we could find in the &lt;EM&gt;C:\arcgisserver\logs&amp;lt;machinename&amp;gt;\server&lt;/EM&gt;&amp;nbsp;directory was:&lt;/P&gt;&lt;BLOCKQUOTE class="jive_macro_quote jive-quote jive_text_macro"&gt;&lt;P style="padding-left: 30px;"&gt;&lt;SPAN style="background-color: #ffffff;"&gt;"&lt;EM&gt;Failed to start the server machine. Premature end of file&lt;/EM&gt;"&lt;/SPAN&gt;&lt;/P&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;&lt;A _jive_internal="true" href="https://community.esri.com/thread/66240"&gt;This article &lt;/A&gt;suggested some sort of corruption&amp;nbsp;in the installation... which we followed, and compared to a working deployment. The specified file (&lt;STRONG&gt;config.xml&lt;/STRONG&gt;) had no obvious issues.. it had content and appeared comparable to a working installation.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;We found a few log file in the &lt;EM&gt;C:\Program Files\ArcGIS\Server\framework\etc\service\logs&amp;nbsp;&lt;/EM&gt;directory&amp;nbsp;and specifically found the following in the&amp;nbsp; &lt;STRONG&gt;service.log:&lt;/STRONG&gt;&lt;/P&gt;&lt;BLOCKQUOTE class="jive_macro_quote jive-quote jive_text_macro"&gt;&lt;P style="padding-left: 30px;"&gt;Nov 10, 2016 9:21:05 AM org.apache.catalina.startup.Catalina stopServer&lt;BR /&gt;SEVERE: Catalina.stop: &lt;BR /&gt;org.xml.sax.SAXParseException; systemId: file: C:/Program Files/ArcGIS/Server/framework/runtime/tomcat/conf/server.xml; lineNumber: 1; columnNumber: 1; Premature end of file.&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;&amp;lt;STACK TRACE&amp;gt;&lt;/P&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #ff0000;"&gt;and sure enough... the&amp;nbsp;server.xml file was empty (0 bytes)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;H2&gt;&lt;STRONG style="background-color: #ffffff; border: 0px; font-weight: bold; font-size: 22px;"&gt;THE FIX:&lt;/STRONG&gt;&lt;/H2&gt;&lt;OL&gt;&lt;LI&gt;Copied a server.xml file from an alternate location (a deployment of the same arcgis server&lt;STRONG&gt; version 10.3.1&lt;/STRONG&gt;)&lt;/LI&gt;&lt;LI&gt;Modified the&amp;nbsp;&lt;STRONG&gt;port 6443 connector &lt;/STRONG&gt;(bottom of file)&lt;STRONG&gt;&lt;BR /&gt;&lt;/STRONG&gt;&lt;BLOCKQUOTE class="jive_macro_quote jive-quote jive_text_macro"&gt;&amp;lt;Connector SSLEnabled="true" clientAuth="false" keyAlias="SelfSignedCertificate" keystoreFile="\\server\share\config-store\machines\servername\arcgis.keystore" keystorePass="&amp;lt;OBSCURED&amp;gt; maxHttpHeaderSize="65535" maxPostSize="10485760" maxThreads="150" port="6443" protocol="org.apache.coyote.http11.Http11Protocol" scheme="https" secure="true" sslEnabledProtocols="TLSv1.2,TLSv1.1,TLSv1" sslProtocol="TLS" /&amp;gt;&amp;nbsp;&lt;/BLOCKQUOTE&gt;&lt;/LI&gt;&lt;LI&gt;Specifically updated the &lt;STRONG&gt;keyAlias&lt;/STRONG&gt;,&amp;nbsp;&lt;STRONG&gt;keystoreFile&lt;/STRONG&gt;, and&amp;nbsp;&lt;STRONG&gt;keystorePass&lt;/STRONG&gt;&lt;/LI&gt;&lt;LI&gt;The&amp;nbsp;&lt;STRONG&gt;keystorePass&lt;/STRONG&gt; was a little tricky... &amp;nbsp;Fortunately we found that the value of&amp;nbsp;&lt;STRONG&gt;password&lt;/STRONG&gt; in the &lt;EM&gt;\\server\share\config-store\security\super\\super.json&lt;/EM&gt; file was the same as the keystorepass on other installations... so we put that value into the keystorePass field in our 'hacked' server.xml file. &lt;BR /&gt;&lt;BR /&gt;Note: when the alias, file, or password values were in-correct... the ArcGIS Server would actually startup but only listening on HTTP port 6080. The HTTPS port 6443 (this connector) was non-operational. &amp;nbsp;This was also the case access HTTPS/443 through the web-adaptor as I assume the web-adaptor sent the back-end request to 6443 not to 6080. &amp;nbsp;&lt;/LI&gt;&lt;/OL&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="background-color: #ffffff;"&gt;I hope someone finds this useful if they run into a similar issue. &amp;nbsp;We will be watching the site for stability, but a quick cursory test shows success and high confidence of this fix. &amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 11 Nov 2016 00:26:51 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-enterprise-questions/arcgis-for-server-error-failed-to-start-the-server/m-p/435367#M16841</guid>
      <dc:creator>PF1</dc:creator>
      <dc:date>2016-11-11T00:26:51Z</dc:date>
    </item>
    <item>
      <title>Re: ArcGIS for Server - Error: Failed to start the server machine. Premature end of file</title>
      <link>https://community.esri.com/t5/arcgis-enterprise-questions/arcgis-for-server-error-failed-to-start-the-server/m-p/435368#M16842</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 18 Nov 2016 14:35:29 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-enterprise-questions/arcgis-for-server-error-failed-to-start-the-server/m-p/435368#M16842</guid>
      <dc:creator>Anonymous User</dc:creator>
      <dc:date>2016-11-18T14:35:29Z</dc:date>
    </item>
    <item>
      <title>Re: ArcGIS for Server - Error: Failed to start the server machine. Premature end of file</title>
      <link>https://community.esri.com/t5/arcgis-enterprise-questions/arcgis-for-server-error-failed-to-start-the-server/m-p/435369#M16843</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;just want to add that if you have another machines in a cluster you can just copy the "server.xml" file from another machine in the cluster without any modifications.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 11 Mar 2017 21:07:34 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-enterprise-questions/arcgis-for-server-error-failed-to-start-the-server/m-p/435369#M16843</guid>
      <dc:creator>ShadyKamel</dc:creator>
      <dc:date>2017-03-11T21:07:34Z</dc:date>
    </item>
    <item>
      <title>Re: ArcGIS for Server - Error: Failed to start the server machine. Premature end of file</title>
      <link>https://community.esri.com/t5/arcgis-enterprise-questions/arcgis-for-server-error-failed-to-start-the-server/m-p/435370#M16844</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks P F, that was very helpful.&amp;nbsp; We had server.xml blanked out on two separate clusters at the same time, but only on the site machine.&amp;nbsp; Has anyone found the cause of this?&amp;nbsp; I suspect a windows update or some sort of IT crapware installation...&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 06 Nov 2018 14:35:45 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-enterprise-questions/arcgis-for-server-error-failed-to-start-the-server/m-p/435370#M16844</guid>
      <dc:creator>EricO_Neal1</dc:creator>
      <dc:date>2018-11-06T14:35:45Z</dc:date>
    </item>
    <item>
      <title>Re: ArcGIS for Server - Error: Failed to start the server machine. Premature end of file</title>
      <link>https://community.esri.com/t5/arcgis-enterprise-questions/arcgis-for-server-error-failed-to-start-the-server/m-p/435371#M16845</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Had that issue as well. In our case the cause of issues seemed to be machine running out of memory. Lately application&amp;nbsp;service running on same machine had some OutOfMemory errors and also in the ArcGIS logs. I am suspecting it crashed the ArcGIS and tomcat maybe tried to load config to memory, update the ports according to configs and then save it back to file before shutting down, but being out of memory meant 0kb were saved to the file.&amp;nbsp;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 30 Aug 2019 12:09:13 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-enterprise-questions/arcgis-for-server-error-failed-to-start-the-server/m-p/435371#M16845</guid>
      <dc:creator>KrisAvi</dc:creator>
      <dc:date>2019-08-30T12:09:13Z</dc:date>
    </item>
    <item>
      <title>Re: ArcGIS for Server - Error: Failed to start the server machine. Premature end of file</title>
      <link>https://community.esri.com/t5/arcgis-enterprise-questions/arcgis-for-server-error-failed-to-start-the-server/m-p/435372#M16846</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Copying the server.xml from another working server is a good solution here. Glad it worked for you. Remember to re-import any certs you had on the ArcGIS Server machine. It may be also good to do a restart of ArcGIS Server first so that a new keystore gets created for this server, and then re-import any certificates as necessary.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 06 Sep 2019 22:14:55 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-enterprise-questions/arcgis-for-server-error-failed-to-start-the-server/m-p/435372#M16846</guid>
      <dc:creator>MoginrajMohandas</dc:creator>
      <dc:date>2019-09-06T22:14:55Z</dc:date>
    </item>
    <item>
      <title>Re: ArcGIS for Server - Error: Failed to start the server machine. Premature end of file</title>
      <link>https://community.esri.com/t5/arcgis-enterprise-questions/arcgis-for-server-error-failed-to-start-the-server/m-p/435373#M16847</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;This it us again today, and I forgot the fix... so had to re-discover.&amp;nbsp; GAR&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The root cause was our C:\ hosting the install location ran out of disk space.&amp;nbsp; So I think the product tried to write to the file and couldn't and ended up writing a 0 byte file....&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 12 Mar 2020 19:01:53 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-enterprise-questions/arcgis-for-server-error-failed-to-start-the-server/m-p/435373#M16847</guid>
      <dc:creator>pfoppe</dc:creator>
      <dc:date>2020-03-12T19:01:53Z</dc:date>
    </item>
    <item>
      <title>Re: ArcGIS for Server - Error: Failed to start the server machine. Premature end of file</title>
      <link>https://community.esri.com/t5/arcgis-enterprise-questions/arcgis-for-server-error-failed-to-start-the-server/m-p/435374#M16848</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Yes, very good points!!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 12 Mar 2020 19:03:03 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-enterprise-questions/arcgis-for-server-error-failed-to-start-the-server/m-p/435374#M16848</guid>
      <dc:creator>pfoppe</dc:creator>
      <dc:date>2020-03-12T19:03:03Z</dc:date>
    </item>
    <item>
      <title>Re: ArcGIS for Server - Error: Failed to start the server machine. Premature end of file</title>
      <link>https://community.esri.com/t5/arcgis-enterprise-questions/arcgis-for-server-error-failed-to-start-the-server/m-p/1019112#M29305</link>
      <description>&lt;P&gt;This was our problem! Space issues must have caused the server.xml to be fouled. It was 0kb. We copied over the server.xml from a healthy machine in our cluster and the web server was restored. We found it at&amp;nbsp;"Program Files\ArcGIS\Server\framework\runtime\tomcat\conf"&lt;/P&gt;</description>
      <pubDate>Fri, 22 Jan 2021 15:13:37 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-enterprise-questions/arcgis-for-server-error-failed-to-start-the-server/m-p/1019112#M29305</guid>
      <dc:creator>ConradSchaefer__DOIT_</dc:creator>
      <dc:date>2021-01-22T15:13:37Z</dc:date>
    </item>
    <item>
      <title>Re: ArcGIS for Server - Error: Failed to start the server machine. Premature end of file</title>
      <link>https://community.esri.com/t5/arcgis-enterprise-questions/arcgis-for-server-error-failed-to-start-the-server/m-p/1098265#M31110</link>
      <description>&lt;P&gt;Excellent article that has "saved my bacon" twice now. First time was after Windows patching, and the second after a random Windows Server crash. In both cases this was with Server 10.3.1 and the config.xml was corrupted. In the second case the log file had the following message : "SEVERE: Parse Fatal Error at line 1 column 1: Content is not allowed in prolog.&lt;BR /&gt;org.xml.sax.SAXParseException; systemId: file:/C:/Program%20Files/ArcGIS/Server/framework/runtime/tomcat/conf/server.xml; lineNumber: 1; columnNumber: 1; Content is not allowed in prolog." In this case, both config.xml and web.xml in the same folder were corrupted and stuffed with NUL characters. Replacing these files from another server and reconfiguring config.xml as stated solved the problem. Restarting the ArcGIS Server service then restored the system ok. Thanks for posting this article!&lt;/P&gt;</description>
      <pubDate>Tue, 14 Sep 2021 22:53:51 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-enterprise-questions/arcgis-for-server-error-failed-to-start-the-server/m-p/1098265#M31110</guid>
      <dc:creator>JohnGibson2</dc:creator>
      <dc:date>2021-09-14T22:53:51Z</dc:date>
    </item>
  </channel>
</rss>

