<?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 Cannot connect to postgresql on server! in Alfresco Archive</title>
    <link>https://connect.hyland.com/t5/alfresco-archive/cannot-connect-to-postgresql-on-server/m-p/281058#M234188</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I installed alfresco 4.2.c bundle ona linux64 machine. I want to connect to postgre by pgadmin 3 and manipulate the tables but I cannot. I need help.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;IP of the machine which alfresco bundle is installed is 10.10.17.72, tomcat, postgre and alfresco are running good and healthy &lt;span class="lia-unicode-emoji" title=":grinning_face_with_big_eyes:"&gt;😃&lt;/span&gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;My ip is 10.10.43.65&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;dbname : alfresco&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;host :&amp;nbsp;&amp;nbsp; 10.10.17.72&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;port:&amp;nbsp;&amp;nbsp;&amp;nbsp; 5432&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;ssl : &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Maintanence db&amp;nbsp;&amp;nbsp; :&amp;nbsp; postgres&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;username : alfresco&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;password : alfresco&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;DB restriction : &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Service : &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I entered these as connection properties, but getting this error&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;PRE class="language-none line-numbers"&gt;&lt;CODE&gt;&lt;BR /&gt;Access to database denied&lt;BR /&gt;The server doesn't grant access to the database: the server reports &lt;BR /&gt;FATAL: no pg_hba.conf entry for host "10.10.43.65", user "alfresco", database "postgres", SSL off &lt;BR /&gt;To access a database on a PostgreSQL server, you first have to grant primary access to the server for your client (Host Based Authentication). PostgreSQL will check the pg_hba.conf file if a pattern that matches your client address / username / database is present and enabled before any SQL GRANT access control lists are evaluated. &lt;BR /&gt;The initial settings in pg_hba.conf are quite restrictive, in order to avoid unwanted security holes caused by unreviewed but mandatory system settings. You'll probably want to add something like &lt;BR /&gt;host all all 192.168.0.0/24 md5 &lt;BR /&gt;This example grants MD5 encrypted password access to all databases to all users on the private network 192.168.0.0/24. &lt;BR /&gt;You can use the pg_hba.conf editor that is built into pgAdmin III to edit the pg_hba.conf configuration file. After changing pg_hba.conf, you need to trigger a server configuration reload using pg_ctl or by stopping and restarting the server process. &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;/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;SPAN&gt;‍&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks in advance…&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 21 May 2013 14:39:58 GMT</pubDate>
    <dc:creator>mustafa</dc:creator>
    <dc:date>2013-05-21T14:39:58Z</dc:date>
    <item>
      <title>Cannot connect to postgresql on server!</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/cannot-connect-to-postgresql-on-server/m-p/281058#M234188</link>
      <description>I installed alfresco 4.2.c bundle ona linux64 machine. I want to connect to postgre by pgadmin 3 and manipulate the tables but I cannot. I need help.IP of the machine which alfresco bundle is installed is 10.10.17.72, tomcat, postgre and alfresco are running good and healthy =)My ip is 10.10.43.65db</description>
      <pubDate>Tue, 21 May 2013 14:39:58 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/cannot-connect-to-postgresql-on-server/m-p/281058#M234188</guid>
      <dc:creator>mustafa</dc:creator>
      <dc:date>2013-05-21T14:39:58Z</dc:date>
    </item>
    <item>
      <title>Re: Cannot connect to postgresql on server!</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/cannot-connect-to-postgresql-on-server/m-p/281059#M234189</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;if your bundle is installed at /opt/alfresco-4.2.c&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;cd /opt/alfresco-4.2.c/alf_data/postgresql&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;edit (as sudo or as the owner of the file) pg_hba.conf&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;go to the end of the file and add:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;host&amp;nbsp;&amp;nbsp; postgres&amp;nbsp;&amp;nbsp;&amp;nbsp; alfresco&amp;nbsp;&amp;nbsp;&amp;nbsp; 10.10.43.65/32&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; md5&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;and restart postgres (or just restart alfresco, simpler that way).&lt;/SPAN&gt;&lt;BR /&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 22 May 2013 05:21:46 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/cannot-connect-to-postgresql-on-server/m-p/281059#M234189</guid>
      <dc:creator>bopolissimus</dc:creator>
      <dc:date>2013-05-22T05:21:46Z</dc:date>
    </item>
    <item>
      <title>Re: Cannot connect to postgresql on server!</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/cannot-connect-to-postgresql-on-server/m-p/281060#M234190</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Bopolissimus &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I did that. Now I have this error ;&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;PRE class="language-none line-numbers"&gt;&lt;CODE&gt;&lt;BR /&gt;&lt;BR /&gt;An Error has occured:&lt;BR /&gt;Error connecting to the server: FATAL: password authentication failed for user "alfresco"&lt;BR /&gt;&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;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;is there a different default password?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 22 May 2013 12:48:29 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/cannot-connect-to-postgresql-on-server/m-p/281060#M234190</guid>
      <dc:creator>mustafa</dc:creator>
      <dc:date>2013-05-22T12:48:29Z</dc:date>
    </item>
    <item>
      <title>Re: Cannot connect to postgresql on server!</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/cannot-connect-to-postgresql-on-server/m-p/281061#M234191</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Sorry, I had a typo. The pg_hba.conf line should instead be:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;host alfresco alfresco 10.10.43.65/32 md5&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;after a restart, you should now be able to connect to postgres as the alfresco user.&amp;nbsp; try this:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp; cd /opt/alfresco-4.2.c/postgresql/bin/&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp; psql -h localhost -U alfresco alfresco&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;If that succeeds, alfresco will be able to connect to postgresql.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;alternatively, if this is just for testing, you can do this:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;host alfresco alfresco 10.10.43.65/32 trust&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;and restart alfresco.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;that way, it'll always let you in regardless of password. &lt;/SPAN&gt;&lt;BR /&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 23 May 2013 03:36:10 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/cannot-connect-to-postgresql-on-server/m-p/281061#M234191</guid>
      <dc:creator>bopolissimus</dc:creator>
      <dc:date>2013-05-23T03:36:10Z</dc:date>
    </item>
    <item>
      <title>Re: Cannot connect to postgresql on server!</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/cannot-connect-to-postgresql-on-server/m-p/281062#M234192</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Thanks Bopolissimus.=)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;I can connect now. But still getting errors. &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;PRE class="language-none line-numbers"&gt;&lt;CODE&gt;&lt;BR /&gt;ERROR: column "datconfig" does not exist&lt;BR /&gt;LINE 1: …b.dattablespace AS spcoid, spcname, datallowconn, datconfig, …&lt;BR /&gt;&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;/SPAN&gt;&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;And the solution is to update pgadmin 1.8&amp;nbsp; to pgadmin 1.6.1 &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;I have no idea why 1.6.1 is more up to date but it is =/&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Now I can do anything . Thanks again Bopo &lt;span class="lia-unicode-emoji" title=":grinning_face_with_big_eyes:"&gt;😃&lt;/span&gt;&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 23 May 2013 09:00:00 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/cannot-connect-to-postgresql-on-server/m-p/281062#M234192</guid>
      <dc:creator>mustafa</dc:creator>
      <dc:date>2013-05-23T09:00:00Z</dc:date>
    </item>
  </channel>
</rss>

