<?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: HA portal attempting to write to standby after failover in ArcGIS Enterprise Portal Questions</title>
    <link>https://community.esri.com/t5/arcgis-enterprise-portal-questions/ha-portal-attempting-to-write-to-standby-after/m-p/1332621#M14061</link>
    <description>&lt;P&gt;No, this is a one time issue that occurred after installing the patch. The problem won't occur when the new patch is issued and failover won't be impacted.&lt;/P&gt;</description>
    <pubDate>Tue, 26 Sep 2023 19:08:47 GMT</pubDate>
    <dc:creator>JonathanQuinn</dc:creator>
    <dc:date>2023-09-26T19:08:47Z</dc:date>
    <item>
      <title>HA portal attempting to write to standby after failover</title>
      <link>https://community.esri.com/t5/arcgis-enterprise-portal-questions/ha-portal-attempting-to-write-to-standby-after/m-p/1330175#M14025</link>
      <description>&lt;P&gt;I have a new Enterprise 11.1 setup with HA portal. Portal1 was running as the primary, and Portal2 was the standby. I installed a patch for Portal on each server, one after the other. After both installs completed, Portal1 was again showing as primary, however I was not able to edit or create new content consistently. I have may entries of "&lt;SPAN&gt;Failed to add or update item '&amp;lt;itemID&amp;gt;'. DBUtil.doUpdateTransaction(): failed,&lt;/SPAN&gt;" in the Portal Admin logs, citing Portal2 as the source machine.&lt;/P&gt;&lt;P&gt;After searching for this error, it looked like Portal was attempting to write to the read-only database of the standby Portal machine. Once I stopped the Portal windows service on the standby, things began working as normal. I started the service up on the standby again, and the same errors are showing up. I do not see the recovery.conf or promote.dat files on either server's db directory. The portal admin shows Portal1 as the primary.&lt;/P&gt;&lt;P&gt;Does anyone have suggestions to prevent Portal from attempting to write to the standby Portal machine?&lt;/P&gt;&lt;P&gt;&lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/43763"&gt;@JonathanQuinn&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Does anyone have suggestions on how&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 19 Sep 2023 15:14:18 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-enterprise-portal-questions/ha-portal-attempting-to-write-to-standby-after/m-p/1330175#M14025</guid>
      <dc:creator>TonyContreras_Frisco_TX</dc:creator>
      <dc:date>2023-09-19T15:14:18Z</dc:date>
    </item>
    <item>
      <title>Re: HA portal attempting to write to standby after failover</title>
      <link>https://community.esri.com/t5/arcgis-enterprise-portal-questions/ha-portal-attempting-to-write-to-standby-after/m-p/1330199#M14027</link>
      <description>&lt;P&gt;I'd expect the error to explicitly state that something was attempted against a read-only database:&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;PRE&gt;org.postgresql.util.PSQLException: ERROR: cannot &lt;SPAN class=""&gt;execute&lt;/SPAN&gt; &lt;SPAN class=""&gt;INSERT&lt;/SPAN&gt; &lt;SPAN class=""&gt;in&lt;/SPAN&gt; a read&lt;SPAN class=""&gt;-&lt;/SPAN&gt;&lt;SPAN class=""&gt;only&lt;/SPAN&gt; transaction&lt;/PRE&gt;&lt;P&gt;You can:&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;Check nodes.properties for which is the primary/standby nodes and validate that against the Machines API.&lt;/LI&gt;&lt;LI&gt;Check for the presence of the postgres.auto.conf file under&amp;nbsp;"C:\arcgisportal\db\postgresql.auto.conf", for example, and check the contents to make sure that it knows the primary is the primary&lt;/LI&gt;&lt;LI&gt;Check the config-store-connection.json file under framework\etc to make sure it lists both machine names and not localhost in the JDBC URL property&lt;/LI&gt;&lt;LI&gt;Check the arcgis#sharing.xml file under&amp;nbsp;"C:\Program Files\ArcGIS\Portal\framework\runtime\tomcat\conf\Catalina\localhost" and make sure it also lists both machines and not localhost in the JDBC URL property&lt;/LI&gt;&lt;/UL&gt;</description>
      <pubDate>Tue, 19 Sep 2023 15:41:05 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-enterprise-portal-questions/ha-portal-attempting-to-write-to-standby-after/m-p/1330199#M14027</guid>
      <dc:creator>JonathanQuinn</dc:creator>
      <dc:date>2023-09-19T15:41:05Z</dc:date>
    </item>
    <item>
      <title>Re: HA portal attempting to write to standby after failover</title>
      <link>https://community.esri.com/t5/arcgis-enterprise-portal-questions/ha-portal-attempting-to-write-to-standby-after/m-p/1330237#M14029</link>
      <description>&lt;P&gt;Thanks for the quick reply.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The nodes.properties has the machines listed, matching what the admin API shows.&lt;/P&gt;&lt;P&gt;Portal1's postgresql.auto.conf file has Portal2 listed for primary_conninfo, while Portal2 as Portal1 listed in the same place.&lt;/P&gt;&lt;P&gt;Both config-storeconnection.json files have each machine listed, however, Portal2's string has "/gwdb?targetServerType=master" as the end.&amp;nbsp;&lt;/P&gt;&lt;P&gt;The arcgis#sharing.xml file on both servers has&amp;nbsp;"jdbc:postgresql://localhost:7654/gwdb" set as the url property.&lt;/P&gt;&lt;P&gt;&amp;nbsp;Would updating these files manually fix the issue, or is there a better way? I know that any unexpected formatting, or incorrect syntax can break things quickly and would prefer to not restore the VMs.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 19 Sep 2023 16:29:17 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-enterprise-portal-questions/ha-portal-attempting-to-write-to-standby-after/m-p/1330237#M14029</guid>
      <dc:creator>TonyContreras_Frisco_TX</dc:creator>
      <dc:date>2023-09-19T16:29:17Z</dc:date>
    </item>
    <item>
      <title>Re: HA portal attempting to write to standby after failover</title>
      <link>https://community.esri.com/t5/arcgis-enterprise-portal-questions/ha-portal-attempting-to-write-to-standby-after/m-p/1330284#M14031</link>
      <description>&lt;P&gt;I suspected that the arcgis#sharing.xml file was the culprit, since any requests to create content will use that connection string. The&amp;nbsp;&lt;EM&gt;/gwdb?targetServerType=master&amp;nbsp;&lt;/EM&gt;syntax should be at the end of the JDBC URL; the cleanest approach is to unregister standby and re-register it. However, if you don't want to go that route, you can update the arcgis#sharing.xml file and add&amp;nbsp;&amp;nbsp;&lt;SPAN&gt;/gwdb?targetServerType=master to Portal2's JDBC URL and restart the standby.&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 19 Sep 2023 17:37:30 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-enterprise-portal-questions/ha-portal-attempting-to-write-to-standby-after/m-p/1330284#M14031</guid>
      <dc:creator>JonathanQuinn</dc:creator>
      <dc:date>2023-09-19T17:37:30Z</dc:date>
    </item>
    <item>
      <title>Re: HA portal attempting to write to standby after failover</title>
      <link>https://community.esri.com/t5/arcgis-enterprise-portal-questions/ha-portal-attempting-to-write-to-standby-after/m-p/1330415#M14033</link>
      <description>&lt;P&gt;Thanks for your help. I had this issue in both test and production environments, so in Test I unregistered and re-registered the machine. That worked, so then I checked the arcgis#sharing.xml file and found this format which I copied and used to update the files on the production machines. I had to run the text editor program as Administrator, of course.&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;url="jdbc:postgresql://PrimaryPortalServerName.domain.com:7654,StandbyPortalServerName.domain.com:7654/gwdb?targetServerType=master"&lt;/LI-CODE&gt;&lt;P&gt;After saving the change on each machine and starting the standby as Jonathan noted, it worked.&lt;/P&gt;&lt;P&gt;Is there a way to avoid this situation from occurring with failover, or is it luck of the draw?&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 19 Sep 2023 21:28:35 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-enterprise-portal-questions/ha-portal-attempting-to-write-to-standby-after/m-p/1330415#M14033</guid>
      <dc:creator>TonyContreras_Frisco_TX</dc:creator>
      <dc:date>2023-09-19T21:28:35Z</dc:date>
    </item>
    <item>
      <title>Re: HA portal attempting to write to standby after failover</title>
      <link>https://community.esri.com/t5/arcgis-enterprise-portal-questions/ha-portal-attempting-to-write-to-standby-after/m-p/1330843#M14040</link>
      <description>&lt;P&gt;This is an issue with the &lt;SPAN&gt;&lt;SPAN class=""&gt;&lt;I&gt;Portal for ArcGIS 11.1 Enterprise Sites Security Patch &lt;/I&gt;in HA environments&lt;/SPAN&gt;&lt;/SPAN&gt;&amp;nbsp;and&amp;nbsp;&lt;SPAN class=""&gt;&lt;EM&gt;BUG-000160830&lt;/EM&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;EM&gt;- The 11.1 version of the Portal for ArcGIS Enterprise Sites Security Patch causes issues in highly available environments &lt;/EM&gt;is logged to address it.&amp;nbsp;We are going to re-issue the patch after correcting for the problem.&amp;nbsp;&lt;SPAN class=""&gt;For those who already installed the Portal for ArcGIS 11.1 Enterprise Sites Security Patch and encountered this problem, there will be a tech article with the manual steps to restore the correct values to the arcgis#sharing.xml in order to resolve the problem.&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 21 Sep 2023 16:35:26 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-enterprise-portal-questions/ha-portal-attempting-to-write-to-standby-after/m-p/1330843#M14040</guid>
      <dc:creator>JonathanQuinn</dc:creator>
      <dc:date>2023-09-21T16:35:26Z</dc:date>
    </item>
    <item>
      <title>Re: HA portal attempting to write to standby after failover</title>
      <link>https://community.esri.com/t5/arcgis-enterprise-portal-questions/ha-portal-attempting-to-write-to-standby-after/m-p/1332618#M14060</link>
      <description>&lt;P&gt;I read through the article &lt;A href="https://support.esri.com/en-us/knowledge-base/bug-installing-the-11-1-version-of-the-portal-for-arcgi-000031314" target="_blank" rel="noopener"&gt;posted here.&lt;/A&gt; It says that installing the correct version of the patch will not correct the issue, and neither does uninstalling the patch. Does that mean I have to unregister and re-register the standby Portal machine after every time we failover unless I do a clean install? Or is this a one time issue and after getting things back in order, I won't have to worry about it again?&lt;/P&gt;</description>
      <pubDate>Tue, 26 Sep 2023 19:02:41 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-enterprise-portal-questions/ha-portal-attempting-to-write-to-standby-after/m-p/1332618#M14060</guid>
      <dc:creator>TonyContreras_Frisco_TX</dc:creator>
      <dc:date>2023-09-26T19:02:41Z</dc:date>
    </item>
    <item>
      <title>Re: HA portal attempting to write to standby after failover</title>
      <link>https://community.esri.com/t5/arcgis-enterprise-portal-questions/ha-portal-attempting-to-write-to-standby-after/m-p/1332621#M14061</link>
      <description>&lt;P&gt;No, this is a one time issue that occurred after installing the patch. The problem won't occur when the new patch is issued and failover won't be impacted.&lt;/P&gt;</description>
      <pubDate>Tue, 26 Sep 2023 19:08:47 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-enterprise-portal-questions/ha-portal-attempting-to-write-to-standby-after/m-p/1332621#M14061</guid>
      <dc:creator>JonathanQuinn</dc:creator>
      <dc:date>2023-09-26T19:08:47Z</dc:date>
    </item>
    <item>
      <title>Re: HA portal attempting to write to standby after failover</title>
      <link>https://community.esri.com/t5/arcgis-enterprise-portal-questions/ha-portal-attempting-to-write-to-standby-after/m-p/1332623#M14062</link>
      <description>&lt;P&gt;Thanks for the quick response. This is good news for those of us who have installed the patch.&lt;/P&gt;</description>
      <pubDate>Tue, 26 Sep 2023 19:11:10 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-enterprise-portal-questions/ha-portal-attempting-to-write-to-standby-after/m-p/1332623#M14062</guid>
      <dc:creator>TonyContreras_Frisco_TX</dc:creator>
      <dc:date>2023-09-26T19:11:10Z</dc:date>
    </item>
    <item>
      <title>Re: HA portal attempting to write to standby after failover</title>
      <link>https://community.esri.com/t5/arcgis-enterprise-portal-questions/ha-portal-attempting-to-write-to-standby-after/m-p/1563012#M15925</link>
      <description>&lt;P&gt;Hi Tony, I know this post was from long ago, but could you tell me, when you say "unregistered and re-registered the machine", how are you doing that? I can see a way to unregister a portal machine but not a way to re-register. Thanks for the tips!&lt;/P&gt;</description>
      <pubDate>Wed, 27 Nov 2024 15:11:52 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-enterprise-portal-questions/ha-portal-attempting-to-write-to-standby-after/m-p/1563012#M15925</guid>
      <dc:creator>TimHaverlandNOAA</dc:creator>
      <dc:date>2024-11-27T15:11:52Z</dc:date>
    </item>
    <item>
      <title>Re: HA portal attempting to write to standby after failover</title>
      <link>https://community.esri.com/t5/arcgis-enterprise-portal-questions/ha-portal-attempting-to-write-to-standby-after/m-p/1563061#M15926</link>
      <description>&lt;P&gt;Hi Tim, you can follow &lt;A href="https://enterprise.arcgis.com/en/portal/11.4/administer/windows/configuring-a-highly-available-portal.htm#ESRI_SECTION2_51B684E109F1414B98C09792CBB65D8D" target="_blank" rel="noopener"&gt;this link&lt;/A&gt; and start with Step 3 on the secondary Portal Server to re-register the other Portal machine.&lt;/P&gt;</description>
      <pubDate>Wed, 27 Nov 2024 16:54:52 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-enterprise-portal-questions/ha-portal-attempting-to-write-to-standby-after/m-p/1563061#M15926</guid>
      <dc:creator>TonyContreras_Frisco_TX</dc:creator>
      <dc:date>2024-11-27T16:54:52Z</dc:date>
    </item>
    <item>
      <title>Re: HA portal attempting to write to standby after failover</title>
      <link>https://community.esri.com/t5/arcgis-enterprise-portal-questions/ha-portal-attempting-to-write-to-standby-after/m-p/1563166#M15929</link>
      <description>&lt;P&gt;Interesting, I'm pretty sure I tried that but didn't get a prompt to join. Will give it another try.&lt;/P&gt;</description>
      <pubDate>Wed, 27 Nov 2024 21:22:20 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-enterprise-portal-questions/ha-portal-attempting-to-write-to-standby-after/m-p/1563166#M15929</guid>
      <dc:creator>TimHaverlandNOAA</dc:creator>
      <dc:date>2024-11-27T21:22:20Z</dc:date>
    </item>
    <item>
      <title>Re: HA portal attempting to write to standby after failover</title>
      <link>https://community.esri.com/t5/arcgis-enterprise-portal-questions/ha-portal-attempting-to-write-to-standby-after/m-p/1563888#M15936</link>
      <description>&lt;P&gt;Hi I tried unregistering and re-registering again on a freshly-built HA portal. I followed the steps in the link you provided. This time it worked, so at least I know what the expected behavior is. Thanks!&lt;/P&gt;</description>
      <pubDate>Mon, 02 Dec 2024 22:09:04 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-enterprise-portal-questions/ha-portal-attempting-to-write-to-standby-after/m-p/1563888#M15936</guid>
      <dc:creator>TimHaverlandNOAA</dc:creator>
      <dc:date>2024-12-02T22:09:04Z</dc:date>
    </item>
  </channel>
</rss>

