<?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: Error registering a database in PostgreSQL in ArcGIS Enterprise Questions</title>
    <link>https://community.esri.com/t5/arcgis-enterprise-questions/error-registering-a-database-in-postgresql/m-p/401334#M15560</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I really like the idea of trying to connect with PGADMINIII. The error message indicates something's up with PG_HBA.conf that's rendered it unusable. If you enable 'show extensions for known file types' in windows explorer, was there a .txt extension slapped on the end of PG_HBA?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Personally, I'd replace PG_HBA.conf with a backup and attempt to connect to the database with a local copy of PGADMINIII (or ArcGIS Desktop), since localhost will be allowed by default.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 23 Aug 2016 16:48:27 GMT</pubDate>
    <dc:creator>RandallWilliams</dc:creator>
    <dc:date>2016-08-23T16:48:27Z</dc:date>
    <item>
      <title>Error registering a database in PostgreSQL</title>
      <link>https://community.esri.com/t5/arcgis-enterprise-questions/error-registering-a-database-in-postgresql/m-p/401328#M15554</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I am using ArcMap 10.3.1 and have downloaded the PostgreSQL 9.3.5 files from MyESRI.com. PostgreSQL is installed locally for testing purposes. I have everything working smoothly and am attempting to publish the data for use on a tablet in the Esri Collector app. In order to do this I have to register the database with ArcGIS Server.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I edited the pg_hba.conf to allow remote connections, since ArcServer is installed on another machine. When I attempt to register the database I get he error in the following screenshot. I have attempted an exhaustive Google sreach for a resolution with no success.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG __jive_id="217003" alt="" class="image-1 jive-image j-img-original" src="https://community.esri.com/legacyfs/online/217003_Capture.JPG" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 19 Aug 2016 19:32:17 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-enterprise-questions/error-registering-a-database-in-postgresql/m-p/401328#M15554</guid>
      <dc:creator>GlennKurcon</dc:creator>
      <dc:date>2016-08-19T19:32:17Z</dc:date>
    </item>
    <item>
      <title>Re: Error registering a database in PostgreSQL</title>
      <link>https://community.esri.com/t5/arcgis-enterprise-questions/error-registering-a-database-in-postgresql/m-p/401329#M15555</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Glenn,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You're right. This is difficult and not much information out there. From what I could find, it looks like you need to add the 'allowed' machines to your pg_hba.conf since PostgreSQL does not allow external machines to connect by default.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;There is some information about this set up in this thread:&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.esri.com/thread/72141"&gt;Cannot Connect (pg_hba.conf Error)&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;This help document shows how to modify the pg_hba.conf file to add things&lt;/P&gt;&lt;P&gt;&lt;A class="link-titled" href="http://desktop.arcgis.com/en/arcmap/10.3/manage-data/gdbs-in-postgresql/configure-postgresql-accept-connections.htm" title="http://desktop.arcgis.com/en/arcmap/10.3/manage-data/gdbs-in-postgresql/configure-postgresql-accept-connections.htm"&gt;Configure a PostgreSQL database cluster to accept connections—Help | ArcGIS for Desktop&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Check out the respond by &lt;A href="https://community.esri.com/migrated-users/136037"&gt;Peter Birksmith&lt;/A&gt;‌ in this thread here:&lt;/P&gt;&lt;P&gt;&lt;A _jive_internal="true" class="link-titled" href="https://community.esri.com/message/590176?commentID=590176#comment-590176" title="https://community.esri.com/message/590176?commentID=590176#comment-590176"&gt;https://community.esri.com/message/590176?commentID=590176#comment-590176&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;and here:&lt;/P&gt;&lt;P&gt;&lt;A _jive_internal="true" class="link-titled" href="https://community.esri.com/message/590176?commentID=590176#comment-590182" title="https://community.esri.com/message/590176?commentID=590176#comment-590182"&gt;https://community.esri.com/message/590176?commentID=590176#comment-590182&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;this may give you what you need.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Otherwise, the only other pertinent info that I could find would be in this thread:&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.esri.com/message/556460"&gt;https://community.esri.com/message/556460&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 19 Aug 2016 21:24:57 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-enterprise-questions/error-registering-a-database-in-postgresql/m-p/401329#M15555</guid>
      <dc:creator>AdrianWelsh</dc:creator>
      <dc:date>2016-08-19T21:24:57Z</dc:date>
    </item>
    <item>
      <title>Re: Error registering a database in PostgreSQL</title>
      <link>https://community.esri.com/t5/arcgis-enterprise-questions/error-registering-a-database-in-postgresql/m-p/401330#M15556</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Adrian,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you for the extensive information. I am still at a loss though. I am pretty sure that everything is generally setup correctly as per the links you provided. Some of the things that I have read required you to set up a username and password for the ArcGIS Server in PostgreSQL, should this be the same username and password to log onto the machine? Others say that this is not required with PostgreSQL. Confusing!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 22 Aug 2016 12:36:39 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-enterprise-questions/error-registering-a-database-in-postgresql/m-p/401330#M15556</guid>
      <dc:creator>GlennKurcon</dc:creator>
      <dc:date>2016-08-22T12:36:39Z</dc:date>
    </item>
    <item>
      <title>Re: Error registering a database in PostgreSQL</title>
      <link>https://community.esri.com/t5/arcgis-enterprise-questions/error-registering-a-database-in-postgresql/m-p/401331#M15557</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Glenn,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You mentioned that ArcGIS Server is on another machine than postgres. &amp;nbsp;Could it be that you are trying to connect to postgres using localhost instead of the IP of the postgres machine? &amp;nbsp;What are your database connection properties? &amp;nbsp;Are you able to connect to the database in ArcCatalog on the ArcGIS Server machine (not through the ArcGIS Server properties)?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 22 Aug 2016 12:43:37 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-enterprise-questions/error-registering-a-database-in-postgresql/m-p/401331#M15557</guid>
      <dc:creator>JenniferMcCall4</dc:creator>
      <dc:date>2016-08-22T12:43:37Z</dc:date>
    </item>
    <item>
      <title>Re: Error registering a database in PostgreSQL</title>
      <link>https://community.esri.com/t5/arcgis-enterprise-questions/error-registering-a-database-in-postgresql/m-p/401332#M15558</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Jennifer, you may be right, but I am not sure what I am doing wrong to specify the server based upon IP address. Are you aware of any guidance documentation that you could link for me?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 22 Aug 2016 19:54:21 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-enterprise-questions/error-registering-a-database-in-postgresql/m-p/401332#M15558</guid>
      <dc:creator>GlennKurcon</dc:creator>
      <dc:date>2016-08-22T19:54:21Z</dc:date>
    </item>
    <item>
      <title>Re: Error registering a database in PostgreSQL</title>
      <link>https://community.esri.com/t5/arcgis-enterprise-questions/error-registering-a-database-in-postgresql/m-p/401333#M15559</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Glenn.&lt;/P&gt;&lt;P&gt;If you are able, I would suggest that you download and install pgadminIII, version 1.22.1 -&amp;nbsp;&lt;A class="link-titled" href="https://www.pgadmin.org/download/windows.php" title="https://www.pgadmin.org/download/windows.php"&gt;pgAdmin: Download - Windows™&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The reason why I ask that you do this is because it will make your life a lot easier testing access to Postgres using pgAdminIII than by seeing odd errors in ArcMap.&lt;/P&gt;&lt;P&gt;Once you have pgAdminIII installed, then you need to add add a server&lt;/P&gt;&lt;P&gt;&lt;IMG class="image-1 jive-image" src="https://community.esri.com/legacyfs/online/217335_pastedImage_3.png" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The Name will be anything you want that will give you an idea about the connection.&lt;/P&gt;&lt;P&gt;The Host can be either the IP address, Server name or FQDN (Fully Qualified Domain Name)... Tip Check what has been set in the&amp;nbsp;&lt;SPAN style="background-color: #ffffff;"&gt;pg_hba.conf file.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="background-color: #ffffff;"&gt;The Port number by default is 5432. &amp;nbsp;Again this information can be found in the postgresql.conf file.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="background-color: #ffffff;"&gt;The Service can be left blank&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="background-color: #ffffff;"&gt;The Maintenance DB leave as is. &amp;nbsp;Postgres is the default.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="background-color: #ffffff;"&gt;Enter a Username and password.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="background-color: #ffffff;"&gt;*Note. &amp;nbsp;The biggest issue you will face is how the&amp;nbsp;&lt;SPAN&gt;pg_hba.conf has been configured.&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="background-color: #ffffff;"&gt;&lt;SPAN&gt;MD5 means that you will require the Postgres admin to add a user which must supply a password. &amp;nbsp;If you are the Postgres Administrator, logon as Postgres and add a user&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="background-color: #ffffff;"&gt;&lt;SPAN&gt;&lt;IMG class="image-2 jive-image" src="https://community.esri.com/legacyfs/online/217336_pastedImage_4.png" /&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="background-color: #ffffff;"&gt;&lt;SPAN&gt;Once this is done, then you need to modify the&amp;nbsp;pg_hba.conf to add this new user to a specific database&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="background-color: #ffffff;"&gt;&lt;SPAN&gt;E.g.&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="background-color: #ffffff;"&gt;&lt;SPAN&gt;TYPE &amp;nbsp;DATABASE &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;USER &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;ADDRESS &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;METHOD&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="background-color: #ffffff;"&gt;host&lt;SPAN class=""&gt; &amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/SPAN&gt;postgres&lt;SPAN class=""&gt; &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;user&lt;/SPAN&gt;&lt;SPAN class=""&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;IPAddress of Desktop&lt;/SPAN&gt;&lt;SPAN class=""&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/SPAN&gt;md5&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="background-color: #ffffff;"&gt;Please note here that MD5 means that a postgres logon requires a username and password&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="background-color: #ffffff;"&gt;After this you then need to copy 5&amp;nbsp;files from your ESRI&amp;nbsp;installation for&amp;nbsp;Postgres&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="border: 0px;"&gt;Once you've installed it, you want to select, copy, and paste the following files from `C:\Program&lt;/P&gt;&lt;P style="border: 0px;"&gt;Files\PostgreSQL\9.3\bin` to `C:\Program Files\ArcGIS\Desktop10.3\bin`: libeay32.dll, libintl.dll, libpq.dll,&lt;/P&gt;&lt;P style="border: 0px;"&gt;ssleay32.dll, and libiconv-2.dll&lt;/P&gt;&lt;P style="border: 0px;"&gt;Ref:&amp;nbsp;&lt;A href="https://community.esri.com/thread/114415"&gt;https://community.esri.com/thread/114415&lt;/A&gt;&lt;/P&gt;&lt;P style="border: 0px;"&gt;&lt;/P&gt;&lt;P style="border: 0px;"&gt;Assuming that all of the above has been done, you should then test by opening pgAdminIII, adding a server, entering the relevant details and it should allow you access to Postgres.&lt;/P&gt;&lt;P style="border: 0px;"&gt;If this doesn't work, ESRI won't work either.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="background-color: #ffffff;"&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="background-color: #ffffff;"&gt;See how you get on.&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 23 Aug 2016 02:12:30 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-enterprise-questions/error-registering-a-database-in-postgresql/m-p/401333#M15559</guid>
      <dc:creator>PeterBirksmith</dc:creator>
      <dc:date>2016-08-23T02:12:30Z</dc:date>
    </item>
    <item>
      <title>Re: Error registering a database in PostgreSQL</title>
      <link>https://community.esri.com/t5/arcgis-enterprise-questions/error-registering-a-database-in-postgresql/m-p/401334#M15560</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I really like the idea of trying to connect with PGADMINIII. The error message indicates something's up with PG_HBA.conf that's rendered it unusable. If you enable 'show extensions for known file types' in windows explorer, was there a .txt extension slapped on the end of PG_HBA?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Personally, I'd replace PG_HBA.conf with a backup and attempt to connect to the database with a local copy of PGADMINIII (or ArcGIS Desktop), since localhost will be allowed by default.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 23 Aug 2016 16:48:27 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-enterprise-questions/error-registering-a-database-in-postgresql/m-p/401334#M15560</guid>
      <dc:creator>RandallWilliams</dc:creator>
      <dc:date>2016-08-23T16:48:27Z</dc:date>
    </item>
  </channel>
</rss>

