<?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 Connecting to Postgres over the network in Alfresco Archive</title>
    <link>https://connect.hyland.com/t5/alfresco-archive/connecting-to-postgres-over-the-network/m-p/270095#M223225</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Is there any way to configure Alfresco to connect to a Postgres database on a computer on the same network (or perhaps a computer that is connected to the internet even)?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I went through the instructions in the Alfresco documentation &lt;/SPAN&gt;&lt;A href="http://docs.alfresco.com/4.0/topic/com.alfresco.enterprise.doc/tasks/postgresql-config.html" rel="nofollow noopener noreferrer"&gt;here&lt;/A&gt;&lt;SPAN&gt;, but that is only setup for running the Postgres server on your own computer. I tried editing it a bit, by making a few changes. I changed db.url to "jdbc&lt;img id="smileytongue" class="emoticon emoticon-smileytongue" src="https://connect.hyland.com/i/smilies/16x16_smiley-tongue.png" alt="Smiley Tongue" title="Smiley Tongue" /&gt;ostgresql://192.168.1.11:5431/${dbname}" in the alfresco-global.properties file.&amp;nbsp; I would think this would make it connect to the remote Postgres database instead of the one on my computer, but it gives me an error each time I try to login, saying "The remote server may be unavailable or your authentication details have not been recognized." The other computer has had the proper databases and users created. &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Is there a step I'm missing while trying to set this up?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 14 Dec 2011 20:43:42 GMT</pubDate>
    <dc:creator>dadkins6</dc:creator>
    <dc:date>2011-12-14T20:43:42Z</dc:date>
    <item>
      <title>Connecting to Postgres over the network</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/connecting-to-postgres-over-the-network/m-p/270095#M223225</link>
      <description>Is there any way to configure Alfresco to connect to a Postgres database on a computer on the same network (or perhaps a computer that is connected to the internet even)?I went through the instructions in the Alfresco documentation here, but that is only setup for running the Postgres server on your</description>
      <pubDate>Wed, 14 Dec 2011 20:43:42 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/connecting-to-postgres-over-the-network/m-p/270095#M223225</guid>
      <dc:creator>dadkins6</dc:creator>
      <dc:date>2011-12-14T20:43:42Z</dc:date>
    </item>
    <item>
      <title>Re: Connecting to Postgres over the network</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/connecting-to-postgres-over-the-network/m-p/270096#M223226</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I guess I should mention I'm on Alfresco 4.0 and using the PostgreSQL packaged with Alfresco.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 16 Dec 2011 13:59:18 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/connecting-to-postgres-over-the-network/m-p/270096#M223226</guid>
      <dc:creator>dadkins6</dc:creator>
      <dc:date>2011-12-16T13:59:18Z</dc:date>
    </item>
    <item>
      <title>Re: Connecting to Postgres over the network</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/connecting-to-postgres-over-the-network/m-p/270097#M223227</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Maybe the connection problem is on the postgres side and not alfresco?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;One possible issue is the allowed-host configuration of the postgres.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;The postgres config file pg_hba.conf lists hosts that are allowed to connect.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;the default config only allows connections from the local host:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;PRE class="language-none line-numbers"&gt;&lt;CODE&gt;&lt;BR /&gt;# IPv4 local connections:&lt;BR /&gt;host&amp;nbsp;&amp;nbsp;&amp;nbsp; all&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; all&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 127.0.0.1/32&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; md5&lt;BR /&gt;&lt;SPAN class="line-numbers-rows"&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;BR /&gt;&lt;SPAN&gt;Simple add a new line matching your network layout.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 16 Dec 2011 14:09:29 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/connecting-to-postgres-over-the-network/m-p/270097#M223227</guid>
      <dc:creator>lotharmärkle</dc:creator>
      <dc:date>2011-12-16T14:09:29Z</dc:date>
    </item>
    <item>
      <title>Re: Connecting to Postgres over the network</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/connecting-to-postgres-over-the-network/m-p/270098#M223228</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I added a line to that file on the host computer and the client. It read:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;PRE class="language-none line-numbers"&gt;&lt;CODE&gt;host&amp;nbsp;&amp;nbsp;&amp;nbsp;all&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;all&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;192.168.1.0/24&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;password&lt;SPAN class="line-numbers-rows"&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;BR /&gt;&lt;SPAN&gt;Would I actually have to list the ip address? i.e. 192.168.1.11?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 16 Dec 2011 14:43:50 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/connecting-to-postgres-over-the-network/m-p/270098#M223228</guid>
      <dc:creator>dadkins6</dc:creator>
      <dc:date>2011-12-16T14:43:50Z</dc:date>
    </item>
    <item>
      <title>Re: Connecting to Postgres over the network</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/connecting-to-postgres-over-the-network/m-p/270099#M223229</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;no, you only have to change the host where the database is running on. &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;And also make sure that the database on the remote host is listening actually on the interface at 192.168.1.11,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;not just 127.0.0.1.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;You can check this using netstat on the database server or do a telnet 192.168.1.122 5432 from your alfresco box.''&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 16 Dec 2011 14:52:58 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/connecting-to-postgres-over-the-network/m-p/270099#M223229</guid>
      <dc:creator>lotharmärkle</dc:creator>
      <dc:date>2011-12-16T14:52:58Z</dc:date>
    </item>
    <item>
      <title>Re: Connecting to Postgres over the network</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/connecting-to-postgres-over-the-network/m-p/270100#M223230</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I still can't get it to connect. These are the only changes I've done. In the pg_hba.conf on the host, I added this line: (the client's IP address)&lt;/SPAN&gt;&lt;BR /&gt;&lt;PRE class="language-none line-numbers"&gt;&lt;CODE&gt;host&amp;nbsp;&amp;nbsp;&amp;nbsp;all&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;all&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;192.168.1.11/24&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;password&lt;SPAN class="line-numbers-rows"&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;BR /&gt;&lt;SPAN&gt;and in postgresql.conf changed the listen addresses to include the client's IP. &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;On the host machine, I changed db.url in the alfresco-global.properties to use the host's IP and port. &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Is there anything else you can think of that would make this work? I do appreciate the help you've given so far.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 20 Dec 2011 19:19:07 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/connecting-to-postgres-over-the-network/m-p/270100#M223230</guid>
      <dc:creator>dadkins6</dc:creator>
      <dc:date>2011-12-20T19:19:07Z</dc:date>
    </item>
    <item>
      <title>Re: Connecting to Postgres over the network</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/connecting-to-postgres-over-the-network/m-p/270101#M223231</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Sorry, its messed up. Please clearify which system you mean by host and client. Is it the system running alfresco or the system running the remote database? Which Ip?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;and in postgresql.conf changed the listen addresses to include the client's IP.&lt;/BLOCKQUOTE&gt;&lt;SPAN&gt;thats not the intention, the postgres service should listen on the ip of the postgres host. Please verify this setup first.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;For basic "how to connect to a remote postgres database" you may be better of asking at the postgres forums.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;lothar&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 20 Dec 2011 19:33:46 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/connecting-to-postgres-over-the-network/m-p/270101#M223231</guid>
      <dc:creator>lotharmärkle</dc:creator>
      <dc:date>2011-12-20T19:33:46Z</dc:date>
    </item>
    <item>
      <title>Re: Connecting to Postgres over the network</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/connecting-to-postgres-over-the-network/m-p/270102#M223232</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;When we deploy this project, we want to have the PostgreSQL database on a separate server from Alfresco because we already have a PostgreSQL server.&amp;nbsp; I'm just experimenting with Alfresco on two computers now to figure out how to achieve this.&amp;nbsp; Both computers have Alfresco installed with the included version of PostgreSQL , but I'm trying to access the PostgreSQL server of the 'host' computer with the 'client' computer running Alfresco.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;The PostgreSQL documentation says the listen_addresses variable "Specifies the TCP/IP address(es) on which the server is to listen for connections from client applications"&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 20 Dec 2011 20:19:05 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/connecting-to-postgres-over-the-network/m-p/270102#M223232</guid>
      <dc:creator>dadkins6</dc:creator>
      <dc:date>2011-12-20T20:19:05Z</dc:date>
    </item>
    <item>
      <title>Re: Connecting to Postgres over the network</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/connecting-to-postgres-over-the-network/m-p/270103#M223233</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;So the postgres listen address is the public ip of the postgres host, not the ip of the client.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 20 Dec 2011 22:35:02 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/connecting-to-postgres-over-the-network/m-p/270103#M223233</guid>
      <dc:creator>lotharmärkle</dc:creator>
      <dc:date>2011-12-20T22:35:02Z</dc:date>
    </item>
    <item>
      <title>Re: Connecting to Postgres over the network</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/connecting-to-postgres-over-the-network/m-p/270104#M223234</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;The permissions are setup now so that I can connect to the host computer from the client in pgAdmin, but still get an error when I try to connect with Alfresco. This tells me PostgreSQL is configured properly, but I'm missing something on the Alfresco side.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 21 Dec 2011 14:59:08 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/connecting-to-postgres-over-the-network/m-p/270104#M223234</guid>
      <dc:creator>dadkins6</dc:creator>
      <dc:date>2011-12-21T14:59:08Z</dc:date>
    </item>
    <item>
      <title>Re: Connecting to Postgres over the network</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/connecting-to-postgres-over-the-network/m-p/270105#M223235</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Actually I figured out how to get it working. I had to edit the share-config-custom.xml file in [Alfresco_home]\Tomcat\shared\classes\alfresco\web-extension. instead of saying localhost, it needs the ip address of the host computer. &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks for your help lothar.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 21 Dec 2011 15:20:26 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/connecting-to-postgres-over-the-network/m-p/270105#M223235</guid>
      <dc:creator>dadkins6</dc:creator>
      <dc:date>2011-12-21T15:20:26Z</dc:date>
    </item>
    <item>
      <title>Re: Connecting to Postgres over the network</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/connecting-to-postgres-over-the-network/m-p/270106#M223236</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;For connecting to a remote database host, no changes below shared/classes/alfresco/web-extension (share-custom-config.xml) has to be done.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;The Alfresco share webapp (share.war) can be configured to use a remote Alfresco repository webapp instance (alfresco.war) this way.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;This is very different than using a remote database for the Alfresco repository webapp (alfresco.war), which is configured in the alfresco-global.properties file only (db.url=jdbc&lt;img id="smileytongue" class="emoticon emoticon-smileytongue" src="https://connect.hyland.com/i/smilies/16x16_smiley-tongue.png" alt="Smiley Tongue" title="Smiley Tongue" /&gt;ostgresql://&lt;/SPAN&gt;&lt;A href="http://rem.ote.iph.ost/ALFRESCO" rel="nofollow noopener noreferrer"&gt;rem.ote.iph.ost/ALFRESCO&lt;/A&gt;&lt;SPAN&gt; entry).&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;What did you tried to achive?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 21 Dec 2011 15:43:34 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/connecting-to-postgres-over-the-network/m-p/270106#M223236</guid>
      <dc:creator>lotharmärkle</dc:creator>
      <dc:date>2011-12-21T15:43:34Z</dc:date>
    </item>
  </channel>
</rss>

