<?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: Portal Database Backup Increment in ArcGIS Enterprise Questions</title>
    <link>https://community.esri.com/t5/arcgis-enterprise-questions/portal-database-backup-increment/m-p/213282#M8432</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;A href="https://community.esri.com/migrated-users/314442"&gt;Ayyaz Mahmood-Paracha&lt;/A&gt;,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thank you so much for your insights, as soon as you said that I had a feeling that it just had to be exactly that as I had been streamlining both test and production environments to utilise common application, widget, logs and backup locations and as you say you can update the logs to a shared folder for which I had not anticipated such a catastrophe, as it's the log files and not the applications themselves and the admin portal allows you to change it:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG class="image-1 jive-image" src="https://community.esri.com/legacyfs/online/448788_pastedImage_1.png" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Once I amended the log path back to the local directory in Portal Admin the postgres.exe that I was running with a local testuser account on the failover server stopped and the postgres.exe services started running with the correct service account:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG class="jive-image image-4" src="https://community.esri.com/legacyfs/online/448792_pastedImage_5.png" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Failover Server:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG class="image-3 jive-image" src="https://community.esri.com/legacyfs/online/448790_pastedImage_3.png" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Both portals are now up and running as they should be.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;and obviously&amp;nbsp;&lt;A href="https://community.esri.com/migrated-users/16548"&gt;Jonathan Quinn&lt;/A&gt;‌ Thanks so much for helping out with the troubleshooting, it was&amp;nbsp;incredibly useful to run through&amp;nbsp;troubleshooting this one with you. It's not so obvious that the logs create such an issue, and as you say you can't set as a network share in the configuration and this is one that slipped past me.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;These decision to migrate the logs paths to a network share were actually kicked into action by the &lt;STRONG&gt;webgisdr&lt;/STRONG&gt; utility filling up the &lt;STRONG&gt;backup\walarchive&lt;/STRONG&gt; folder&amp;nbsp;causing HDD space issues and Portal downtime, ironically the opposite effect intended creating the backups.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;As a workaround we'll write a script that clears the local log folders once they reach a particular age / size and will keep the webgisdr running at weekly intervals, though I'm sure there is a better internal solution that could be put into Portal to protect against such things happening.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks again so much for your help guys!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Dean&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 29 May 2019 19:13:00 GMT</pubDate>
    <dc:creator>DeanMoiler</dc:creator>
    <dc:date>2019-05-29T19:13:00Z</dc:date>
    <item>
      <title>Portal Database Backup Increment</title>
      <link>https://community.esri.com/t5/arcgis-enterprise-questions/portal-database-backup-increment/m-p/213271#M8421</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Guys,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'm seeing an issue in HDD space with a 10.6.1 HA enterprise environment in which daily around ~15Gb worth of the primary portals db folder gets backed up every 6 minutes to the local portal drive on each server.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;&lt;IMG class="image-2 jive-image" src="https://community.esri.com/legacyfs/online/447954_pastedImage_4.png" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It seems that the &lt;STRONG&gt;pg_basebackup.exe&lt;/STRONG&gt; is creating a backup of the primary portal on each of the machines rather quickly, and once full, the portal grinds to a halt and both of the portals are no longer contactable (even the portal with available hard drive space does not appear operational)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG class="image-1 jive-image" src="https://community.esri.com/legacyfs/online/447943_pastedImage_1.png" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It does seem to have started following running the webgisdr utility, which does seem to clean out the backup WAL archive folder, but not the databases created as above.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have set the webgisdr to run a full backup once a week, thought unfortunately the drives are filling quite rapidly at ~15Gb a day. I don't want to play around with the postgresql configuration manually if I'm missing something simple!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Dean&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 19 May 2019 22:40:16 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-enterprise-questions/portal-database-backup-increment/m-p/213271#M8421</guid>
      <dc:creator>DeanMoiler</dc:creator>
      <dc:date>2019-05-19T22:40:16Z</dc:date>
    </item>
    <item>
      <title>Re: Portal Database Backup Increment</title>
      <link>https://community.esri.com/t5/arcgis-enterprise-questions/portal-database-backup-increment/m-p/213272#M8422</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;On the primary machine in an HA configuration, the dbXXXX folder is created during a restore. On standby, it's created when the machine is coming back from a failure. Other than that, it shouldn't be getting created on primary. The only situation I'm aware of that will continually create dbXXXX folders on standby is the presence of the promote.dat file within the db directory on the primary machine. Can you see if that file is there and if it is, delete it? It'll create one more dbXXXX folder on standby but should be stable after that.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can you check the logs and see if there are any indications as to why it's creating the db snapshots on the machines?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 21 May 2019 17:25:37 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-enterprise-questions/portal-database-backup-increment/m-p/213272#M8422</guid>
      <dc:creator>JonathanQuinn</dc:creator>
      <dc:date>2019-05-21T17:25:37Z</dc:date>
    </item>
    <item>
      <title>Re: Portal Database Backup Increment</title>
      <link>https://community.esri.com/t5/arcgis-enterprise-questions/portal-database-backup-increment/m-p/213273#M8423</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Jonathan,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for getting back so quickly, I thought you might have some idea!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Exactly correct, once moved from the primary server the dbXXXX folders are not recreated, only the walarchive is propagating on primary. Only on the standby the dbXXXX are continually created.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Neither of the servers have a promote.dat within the &lt;STRONG&gt;db&lt;/STRONG&gt; folder.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;One thing I'm not sure of is whether the standby machine is successfully acting as the standby server, even though it seems to be reporting as so in &lt;STRONG&gt;portaladmin&lt;/STRONG&gt; :&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG class="image-2 jive-image" height="219" src="https://community.esri.com/legacyfs/online/448192_pastedImage_4.png" width="310" /&gt;&lt;/P&gt;&lt;P&gt;With both reporting as:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG class="image-3 jive-image" height="133" src="https://community.esri.com/legacyfs/online/448196_pastedImage_5.png" width="310" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am seeing the following error on the standby machine in the portal logs:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG class="jive-image image-4" src="https://community.esri.com/legacyfs/online/448202_pastedImage_8.png" /&gt;&lt;/P&gt;&lt;P&gt;The pgsql.log list only the following:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG class="image-5 jive-image" src="https://community.esri.com/legacyfs/online/448203_pastedImage_9.png" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;And on closer inspection there are no postgres.exe services running on the standby which makes it seem it's not "recovered" properly.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I can see in the nodes.properties file in the shared HA configuration directory that the standby machine is not listed:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG class="image-6 jive-image" src="https://community.esri.com/legacyfs/online/448204_pastedImage_10.png" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;On the primary server I see this in the DB folder:&lt;/P&gt;&lt;P&gt;&lt;IMG class="image-7 jive-image" src="https://community.esri.com/legacyfs/online/448208_pastedImage_11.png" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;and on the standby in the DB folder:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG class="jive-image image-8" src="https://community.esri.com/legacyfs/online/448209_pastedImage_12.png" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I can see the postmaster files appear to be missing, and they are present in the database backup folders that get copied into the primary db folder.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have tried replacing the primary db with the backup db from the primary server, but this doesn't resolve I'm afraid.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It seems the key would be to get postgres up and running on the standby server.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'm guessing it will be something fairly simple as you've specified above related to deleting a status file in the configuration somewhere.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Probably an important point to note is that the now standby machine had its HDD filled due to the WAL archives, and similar things have happened where portal is unable to write or complete writing to a failover configuration file, so is possibly related to this.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Dean&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 22 May 2019 16:53:07 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-enterprise-questions/portal-database-backup-increment/m-p/213273#M8423</guid>
      <dc:creator>DeanMoiler</dc:creator>
      <dc:date>2019-05-22T16:53:07Z</dc:date>
    </item>
    <item>
      <title>Re: Portal Database Backup Increment</title>
      <link>https://community.esri.com/t5/arcgis-enterprise-questions/portal-database-backup-increment/m-p/213274#M8424</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Check the Event Viewer. When you see "database startup timed out" type errors, that means that the database isn't starting correctly and the only place the cause is logged is in the Event Viewer. You'll see a bunch of errors in there, but there will be one that tells you why the database can't start.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 22 May 2019 18:31:58 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-enterprise-questions/portal-database-backup-increment/m-p/213274#M8424</guid>
      <dc:creator>JonathanQuinn</dc:creator>
      <dc:date>2019-05-22T18:31:58Z</dc:date>
    </item>
    <item>
      <title>Re: Portal Database Backup Increment</title>
      <link>https://community.esri.com/t5/arcgis-enterprise-questions/portal-database-backup-increment/m-p/213275#M8425</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Jonathan,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I've taken a look and can find several references to the DB not starting correctly in the server event logs:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG class="image-1 jive-image" src="https://community.esri.com/legacyfs/online/448269_pastedImage_1.png" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG class="image-2 jive-image" src="https://community.esri.com/legacyfs/online/448270_pastedImage_2.png" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG class="image-6 jive-image" src="https://community.esri.com/legacyfs/online/448340_pastedImage_6.png" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I've tried copying the postmaster.pid from the production system, but then get the following error appearing in the logs:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG class="jive-image image-4" src="https://community.esri.com/legacyfs/online/448338_pastedImage_4.png" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;as the 17200 value in the PID file seems to relate to the postgres.exe process on the primary machine.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So I then attempted to start a postgresql service manually in a cmd running as the portal for arcgis service account (the same domain account as is running the primary portal), and get the following:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG class="image-5 jive-image" src="https://community.esri.com/legacyfs/online/448339_pastedImage_5.png" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I attempted the same on the primary server to see whether this is expected&amp;nbsp;and&amp;nbsp;got the same result attempting to run the process, so I'm assuming something else is going on in the background to get it to run as this user, as it is running with that user on the primary.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;As a temporary workaround I have created a test user account that successfully starts the postgres.exe server and stops the creation of the db backups every six minutes, but obviously not a great workaround.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This has populated the standby node into the nodes.properties for portal-ha, so&amp;nbsp;getting the db running as the service account seems to be what needs to happen.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If you have any thoughts on why this may be happening from a Portal / Esri perspective that'd be incredibly appreciated!!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Dean&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 23 May 2019 19:17:58 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-enterprise-questions/portal-database-backup-increment/m-p/213275#M8425</guid>
      <dc:creator>DeanMoiler</dc:creator>
      <dc:date>2019-05-23T19:17:58Z</dc:date>
    </item>
    <item>
      <title>Re: Portal Database Backup Increment</title>
      <link>https://community.esri.com/t5/arcgis-enterprise-questions/portal-database-backup-increment/m-p/213276#M8426</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;The important error is the "not a database cluster directory" error. What are the contents of the latest dbxxxx folder? Do they match the contents of the db folder on the primary machine?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;What's likely happening is that the standby is detecting that the database is not running so it thinks it's coming back from a failure and gets a new DB snapshot. The standby can't start the DB again, (due to the not a database cluster directory error), and then again, it thinks it's coming back from a failure because the database isn't running. That's likely the loop it's stuck in. Figuring out what the PG doesn't like about the db directory is the first step by looking at the contents.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 23 May 2019 20:41:44 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-enterprise-questions/portal-database-backup-increment/m-p/213276#M8426</guid>
      <dc:creator>JonathanQuinn</dc:creator>
      <dc:date>2019-05-23T20:41:44Z</dc:date>
    </item>
    <item>
      <title>Re: Portal Database Backup Increment</title>
      <link>https://community.esri.com/t5/arcgis-enterprise-questions/portal-database-backup-increment/m-p/213277#M8427</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Jonathan,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I've done a couple of comparisons which might shed some light.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;H2&gt;Compare 1 - primary db and backed up dbXXXX on standby:&lt;/H2&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I could find the following files&amp;nbsp;not present&amp;nbsp;in one or the other between the primary db and the backed up dbXXXX:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG class="jive-image image-4" src="https://community.esri.com/legacyfs/online/448393_pastedImage_12.png" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So the backed up db is missing a few &lt;STRONG&gt;pg_internal.init&lt;/STRONG&gt; files in the &lt;STRONG&gt;\base&lt;/STRONG&gt; and &lt;STRONG&gt;\global&lt;/STRONG&gt; folders.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3366ff;"&gt;Given the problem appears to be starting the database, could these few files these be the culprits?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;There were also quite a few &lt;STRONG&gt;binary&lt;/STRONG&gt; file differences between these two, which I imagine is just the database contents itself, so probably not the issue:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG class="image-5 jive-image" src="https://community.esri.com/legacyfs/online/448397_pastedImage_16.png" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;And the following &lt;STRONG&gt;text&lt;/STRONG&gt; files had different contents:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG class="image-6 jive-image" src="https://community.esri.com/legacyfs/online/448399_pastedImage_22.png" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;With the&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;STRONG&gt;postmaster.opts&lt;/STRONG&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;only having a difference in "/" vs "\" for directory paths for some reason&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG class="image-3 jive-image" src="https://community.esri.com/legacyfs/online/448392_pastedImage_9.png" style="border: 0px; margin: 2px 20px 0px;" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;H2&gt;Compare 2 primary db and standby db:&lt;/H2&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I've also performed a comparison between the primary db and the standby db folders (i.e. not a dbXXXX backup folder) to see whether the process moving from dbXXXX to db folder on the standby reduces some of the differences in the db.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The following are the differences between primary and standby &lt;STRONG&gt;db&lt;/STRONG&gt; folders:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG class="image-1 jive-image" src="https://community.esri.com/legacyfs/online/448354_pastedImage_1.png" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;there are as&amp;nbsp;in compare 1 plenty of binary file differences.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;and the following&amp;nbsp;files are largely present only in the primary db, with the &lt;STRONG&gt;recovery.conf&lt;/STRONG&gt; in the db on the standby machine which sounds about right:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG class="image-2 jive-image" src="https://community.esri.com/legacyfs/online/448391_pastedImage_2.png" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am able to connect to each of the two servers postgres instances via pgadmin using the psa credentials and accessing the gwdb.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If I'm understanding you correctly there should&amp;nbsp;possibly be fewer differences between the primary and standby databases than I've shown above? If so would it be worth copying the primary db to replace the standby db and keeping the recovery.conf file, or similar?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Dean&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 24 May 2019 14:59:20 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-enterprise-questions/portal-database-backup-increment/m-p/213277#M8427</guid>
      <dc:creator>DeanMoiler</dc:creator>
      <dc:date>2019-05-24T14:59:20Z</dc:date>
    </item>
    <item>
      <title>Re: Portal Database Backup Increment</title>
      <link>https://community.esri.com/t5/arcgis-enterprise-questions/portal-database-backup-increment/m-p/213278#M8428</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I believe the only time you'll see the "not a database cluster directory" error is if PG determines that the contents of the db folder are invalid or missing files/folders. So yes, any of those differences could be causing a problem, (aside from the backward vs forward slash, that can be ignored). Unfortunately, I don't know enough about PG to know what it doesn't like.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Yes, moving the primary db to the standby machine is a a good test. That'll tell you if the db folder was moved over correctly via the "failback" logic, things would work normally. It'll tell you whether the db is good on primary, which I assume is the case otherwise primary would be broken as well. Stop standby, move over the db folder, and start the db manually via pg_ctl. If that works, then something is happening when standby is asking the primary for a snapshot via the pg_basebackup utility.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Unfortunately, this may require more in-depth troubleshooting than what Geonet can provide, so I suggest you reach out to Tech Support. You can let them know to keep me in the loop if you'd like.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 24 May 2019 17:52:20 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-enterprise-questions/portal-database-backup-increment/m-p/213278#M8428</guid>
      <dc:creator>JonathanQuinn</dc:creator>
      <dc:date>2019-05-24T17:52:20Z</dc:date>
    </item>
    <item>
      <title>Re: Portal Database Backup Increment</title>
      <link>https://community.esri.com/t5/arcgis-enterprise-questions/portal-database-backup-increment/m-p/213279#M8429</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Dean,&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I had seen the similar issue with Highlay available installation (10.6.1). In my case, I had an error in portal :&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #1f497d;"&gt;&amp;nbsp;Creation of recovery.conf file&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #1f497d;"&gt;Erreur du plugin HA. java.lang.Exception: Failed to start the database server. The startup timed out. Please check the log file at \\wsvsgisfile\ArcGISESRI\logs\\database\pgsql.log&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;With&amp;nbsp;my furrther investigations I got solved my problem. Infact during the configuration, client asked me to move all log files towards a file share. I completely missed the point that the log file must be a local path and not the network path.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;As you know that there are two types of log in portal for arcgis :&amp;nbsp;&lt;/P&gt;&lt;OL&gt;&lt;LI&gt;Portal log&lt;/LI&gt;&lt;LI&gt;Database log&lt;/LI&gt;&lt;/OL&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;While moving the log towards network share, I had 2 folders for my portal log in the directory which was named after the machine name. On the other had, I only had the log of one Database&amp;nbsp;primary one. The secondary database was unable to start properly. So this was resulting in continous synchronisation of db folders, which were staurating my disk.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Once I move them to local paths and restarted my portals. Everything came in order.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Ayyaz&amp;nbsp;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 28 May 2019 07:22:04 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-enterprise-questions/portal-database-backup-increment/m-p/213279#M8429</guid>
      <dc:creator>AyyazMahmood-Paracha</dc:creator>
      <dc:date>2019-05-28T07:22:04Z</dc:date>
    </item>
    <item>
      <title>Re: Portal Database Backup Increment</title>
      <link>https://community.esri.com/t5/arcgis-enterprise-questions/portal-database-backup-increment/m-p/213280#M8430</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;FYI sounds like you're aware of this now, but the initial arcgisportal directory, (the path defined during the setup) must be a local path. This defines the path for the logs, index, temp, and most importantly, the database directories.&amp;nbsp;We've been validating that the directory is not a share since 10.3:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG class="image-1 jive-image" src="https://community.esri.com/legacyfs/online/448669_pastedImage_1.png" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can you describe how you configured the logs for the database to be under the share? I think the only way to update the log path after the portal is created is by modifying the DB config files manually.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 28 May 2019 21:55:00 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-enterprise-questions/portal-database-backup-increment/m-p/213280#M8430</guid>
      <dc:creator>JonathanQuinn</dc:creator>
      <dc:date>2019-05-28T21:55:00Z</dc:date>
    </item>
    <item>
      <title>Re: Portal Database Backup Increment</title>
      <link>https://community.esri.com/t5/arcgis-enterprise-questions/portal-database-backup-increment/m-p/213281#M8431</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;HI Jon,&lt;/P&gt;&lt;P&gt;Yes you are right. I configured my portal and I changed the directory throught portaladmin interface. Then I had three folders in my shared log folder (as shown in the figure):&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="" class="image-1 jive-image j-img-original" src="https://community.esri.com/legacyfs/online/448629_Capture.JPG" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;As I told you that I completely missed this point. As soon as I configured the log directory towards a local path&amp;nbsp;D:\arcgisportal\logs. The problem was solved.&amp;nbsp;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 28 May 2019 22:17:47 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-enterprise-questions/portal-database-backup-increment/m-p/213281#M8431</guid>
      <dc:creator>AyyazMahmood-Paracha</dc:creator>
      <dc:date>2019-05-28T22:17:47Z</dc:date>
    </item>
    <item>
      <title>Re: Portal Database Backup Increment</title>
      <link>https://community.esri.com/t5/arcgis-enterprise-questions/portal-database-backup-increment/m-p/213282#M8432</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;A href="https://community.esri.com/migrated-users/314442"&gt;Ayyaz Mahmood-Paracha&lt;/A&gt;,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thank you so much for your insights, as soon as you said that I had a feeling that it just had to be exactly that as I had been streamlining both test and production environments to utilise common application, widget, logs and backup locations and as you say you can update the logs to a shared folder for which I had not anticipated such a catastrophe, as it's the log files and not the applications themselves and the admin portal allows you to change it:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG class="image-1 jive-image" src="https://community.esri.com/legacyfs/online/448788_pastedImage_1.png" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Once I amended the log path back to the local directory in Portal Admin the postgres.exe that I was running with a local testuser account on the failover server stopped and the postgres.exe services started running with the correct service account:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG class="jive-image image-4" src="https://community.esri.com/legacyfs/online/448792_pastedImage_5.png" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Failover Server:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG class="image-3 jive-image" src="https://community.esri.com/legacyfs/online/448790_pastedImage_3.png" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Both portals are now up and running as they should be.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;and obviously&amp;nbsp;&lt;A href="https://community.esri.com/migrated-users/16548"&gt;Jonathan Quinn&lt;/A&gt;‌ Thanks so much for helping out with the troubleshooting, it was&amp;nbsp;incredibly useful to run through&amp;nbsp;troubleshooting this one with you. It's not so obvious that the logs create such an issue, and as you say you can't set as a network share in the configuration and this is one that slipped past me.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;These decision to migrate the logs paths to a network share were actually kicked into action by the &lt;STRONG&gt;webgisdr&lt;/STRONG&gt; utility filling up the &lt;STRONG&gt;backup\walarchive&lt;/STRONG&gt; folder&amp;nbsp;causing HDD space issues and Portal downtime, ironically the opposite effect intended creating the backups.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;As a workaround we'll write a script that clears the local log folders once they reach a particular age / size and will keep the webgisdr running at weekly intervals, though I'm sure there is a better internal solution that could be put into Portal to protect against such things happening.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks again so much for your help guys!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Dean&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 29 May 2019 19:13:00 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-enterprise-questions/portal-database-backup-increment/m-p/213282#M8432</guid>
      <dc:creator>DeanMoiler</dc:creator>
      <dc:date>2019-05-29T19:13:00Z</dc:date>
    </item>
  </channel>
</rss>

