Hi All,
I've come across a fix that might resolve this issue. In searches relating to a similar sounding portal issue("There is not enough space on the disk") I came across this thread, so in case this is the fix, here goes:
I'm running two Portal 10.5.1 Servers, one primary and one failover.
The second server would not start TomCat, but the Portal for ArcGIS Service would start and stay running, and would only populate the following in the Portal log:
************************************************************************
"<Msg time="2018-04-15T02:13:09,352" type="WARNING" code="217014" source="Portal" process="1636" thread="1" methodName="" machine="**YOURPORTALNAME**" user="" elapsed="">Error at URL updater. C:\Program Files\ArcGIS\Portal\apps\GeoList\index.html</Msg>
<Msg time="2018-04-15T02:13:10,179" type="SEVERE" code="217003" source="Portal" process="1636" thread="1" methodName="" machine="**YOURPORTALNAME** user="" elapsed="">Error before starting configuration observer. XML document structures must start and end within the same entity.</Msg>
<Msg time="2018-04-15T02:13:10,179" type="SEVERE" code="217075" source="Portal" process="1636" thread="1" methodName="" machine="**YOURPORTALNAME**" user="" elapsed="">Failed to start the portal. The observer's beforeStart() function returned a failure.</Msg>"
************************************************************************
I tried installing the latest Portal patch:
Esri Support 10.5 (10.5.1)
Unfortunately this did not resolve the issue, and I stumbled upon the following wonderful solution discovered by Jing:
https://jingthegisguy.wordpress.com/2017/02/14/portal-for-arcgis-10-5-fatal-error-fatal-error-11-pre...
For some reason it seems the failover server configuration files had been updated and missed the following trailing text from the:
C:\Program Files\ArcGIS\Portal\framework\runtime\tomcat\conf\server.xml
When I checked the production vs failover versions of these files the following text was missing from the failover:
************************************************************************
Documentation at: /docs/config/valve.html
Note: The pattern used is equivalent to using pattern="common" -->
<!--<Valve className="org.apache.catalina.valves.AccessLogValve" directory="logs" pattern="%h %l %u %t "%r" %s %b" prefix="localhost_access_log." suffix=".txt"/>-->
<Valve className="com.esri.arcgis.portal.util.TomcatValve"/>
</Host>
</Engine>
</Service>
</Server>
************************************************************************
When I copied this content into the failover server.xml file and restarted the Portal for ArcGIS Service, it started working again. Luckily I didn't need to perform a reinstall on this one!
This is the line in the tomcat error log that made it seem relevant for this issue.
C:\Program Files\ArcGIS\Portal\framework\service\logs\service_error.log
************************************************************************
Mar 09, 2018 10:23:49 PM org.elasticsearch.plugins.PluginsService <init>
INFO: [Astron] modules [], plugins [], sites []
ERROR: 'There is not enough space on the disk'
[Fatal Error] :130:4: XML document structures must start and end within the same entity.
************************************************************************
Hopefully this helps someone and Esri provide a solution / patch to stop this from occurring.
Dean