<?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: not connecting with postgres - getting error &amp;quot;role alfresco_db does not exists&amp;quot in Alfresco Forum</title>
    <link>https://connect.hyland.com/t5/alfresco-forum/not-connecting-with-postgres-getting-error-role-alfresco-db-does/m-p/99557#M28864</link>
    <description>&lt;P&gt;yes.. Thanks alot. It was a version issue. I have installed postgres manually and tried to connect. I have uninstalled it and tried via script and it worked.&lt;/P&gt;</description>
    <pubDate>Mon, 13 Jan 2020 06:37:52 GMT</pubDate>
    <dc:creator>monicakumari</dc:creator>
    <dc:date>2020-01-13T06:37:52Z</dc:date>
    <item>
      <title>not connecting with postgres - getting error - role alfresco_db does not exists;</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/not-connecting-with-postgres-getting-error-role-alfresco-db-does/m-p/99555#M28862</link>
      <description>&lt;P&gt;&lt;STRONG&gt;Hello. &lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;I am trying to implement &lt;A href="https://github.com/loftuxab/alfresco-ubuntu-install" target="_self" rel="nofollow noopener noreferrer"&gt;https://github.com/loftuxab/alfresco-ubuntu-install&lt;/A&gt;&amp;nbsp;on my ubuntu system and It seems quite simple but its not connecting with postgres so repository not starting up.&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;I have updated &lt;EM&gt;postgreql.sh&lt;/EM&gt; script and replaced values for &lt;/STRONG&gt;&lt;EM&gt;ALFRESCODB=alfresco and ALFRESCOUSER=alfresco &lt;/EM&gt;&lt;STRONG&gt;with &lt;/STRONG&gt;&lt;EM&gt;ALFRESCODB=alfresco_db and ALFRESCOUSER=alfresco_db &lt;/EM&gt;&lt;STRONG&gt;and ran this script (asked me for the password and I have entered "admin" for the same) and because of this, the database with "alfresco_db" name created automatically with the password "admin". &lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;then I have updated alfresco-global.properties file for the same. &lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;I have replaced&lt;/STRONG&gt; &lt;EM&gt;db.username=alfresco , db.password=alfresco and db.name=alfresco&lt;BR /&gt;&lt;/EM&gt;&lt;STRONG&gt;with &lt;/STRONG&gt;&lt;EM&gt;db.username=alfresco_db , db.password=admin and db.name=alfresco_db&lt;BR /&gt;&lt;/EM&gt;&lt;STRONG&gt;and started alfresco service but getting exception in initializing repository and getting below errors in the end&lt;/STRONG&gt;&lt;/P&gt;&lt;PRE&gt;Caused by: org.springframework.jdbc.CannotGetJdbcConnectionException: Failed to obtain JDBC Connection; nested exception is org.apache.commons.dbcp.SQLNestedException: Cannot create PoolableConnectionFactory (FATAL: role "alfresco_db" does not exist)
at org.springframework.jdbc.datasource.DataSourceUtils.getConnection(DataSourceUtils.java:81)
at org.alfresco.repo.domain.dialect.DialectFactoryBean.getObject(DialectFactoryBean.java:59)
at org.alfresco.repo.domain.dialect.DialectFactoryBean.getObject(DialectFactoryBean.java:1)
at org.springframework.beans.factory.support.FactoryBeanRegistrySupport.doGetObjectFromFactoryBean(FactoryBeanRegistrySupport.java:171)
... 116 more
Caused by: org.apache.commons.dbcp.SQLNestedException: Cannot create PoolableConnectionFactory (FATAL: role "alfresco_db" does not exist)
at org.apache.commons.dbcp.BasicDataSource.createPoolableConnectionFactory(BasicDataSource.java:1549)
at org.apache.commons.dbcp.BasicDataSource.createDataSource(BasicDataSource.java:1388)
at org.apache.commons.dbcp.BasicDataSource.getConnection(BasicDataSource.java:1044)
at org.springframework.jdbc.datasource.DataSourceUtils.fetchConnection(DataSourceUtils.java:151)
at org.springframework.jdbc.datasource.DataSourceUtils.doGetConnection(DataSourceUtils.java:115)
at org.springframework.jdbc.datasource.DataSourceUtils.getConnection(DataSourceUtils.java:78)
... 119 more
Caused by: org.postgresql.util.PSQLException: FATAL: role "alfresco_db" does not exist
at org.postgresql.core.v3.QueryExecutorImpl.receiveErrorResponse(QueryExecutorImpl.java:2440)
at org.postgresql.core.v3.QueryExecutorImpl.readStartupMessages(QueryExecutorImpl.java:2559)
at org.postgresql.core.v3.QueryExecutorImpl.&amp;lt;init&amp;gt;(QueryExecutorImpl.java:133)
at org.postgresql.core.v3.ConnectionFactoryImpl.openConnectionImpl(ConnectionFactoryImpl.java:250)
at org.postgresql.core.ConnectionFactory.openConnection(ConnectionFactory.java:49)
at org.postgresql.jdbc.PgConnection.&amp;lt;init&amp;gt;(PgConnection.java:195)
at org.postgresql.Driver.makeConnection(Driver.java:454)
at org.postgresql.Driver.connect(Driver.java:256)
at org.apache.commons.dbcp.DriverConnectionFactory.createConnection(DriverConnectionFactory.java:38)
at org.apache.commons.dbcp.PoolableConnectionFactory.makeObject(PoolableConnectionFactory.java:582)
at org.apache.commons.dbcp.BasicDataSource.validateConnectionFactory(BasicDataSource.java:1556)
at org.apache.commons.dbcp.BasicDataSource.createPoolableConnectionFactory(BasicDataSource.java:1545)
... 124 more&lt;/PRE&gt;&lt;P&gt;Seems like its not connecting with the database. Please guide what else I can try or Is there anything I am doing wrong.&lt;/P&gt;&lt;P&gt;Thanks.&lt;/P&gt;</description>
      <pubDate>Fri, 10 Jan 2020 09:12:46 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/not-connecting-with-postgres-getting-error-role-alfresco-db-does/m-p/99555#M28862</guid>
      <dc:creator>monicakumari</dc:creator>
      <dc:date>2020-01-10T09:12:46Z</dc:date>
    </item>
    <item>
      <title>Re: not connecting with postgres - getting error "role alfresco_db does not exists&amp;quot</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/not-connecting-with-postgres-getting-error-role-alfresco-db-does/m-p/99556#M28863</link>
      <description>&lt;P&gt;It seems that your Postgres user is not created by the script.&lt;/P&gt;
&lt;P&gt;Did you set the "createdb" variable to "y"?&lt;/P&gt;
&lt;P&gt;&lt;A href="https://github.com/loftuxab/alfresco-ubuntu-install/blob/master/scripts/postgresql.sh#L41" target="_blank" rel="nofollow noopener noreferrer"&gt;https://github.com/loftuxab/alfresco-ubuntu-install/blob/master/scripts/postgresql.sh#L41&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 10 Jan 2020 09:49:45 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/not-connecting-with-postgres-getting-error-role-alfresco-db-does/m-p/99556#M28863</guid>
      <dc:creator>angelborroy</dc:creator>
      <dc:date>2020-01-10T09:49:45Z</dc:date>
    </item>
    <item>
      <title>Re: not connecting with postgres - getting error "role alfresco_db does not exists&amp;quot</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/not-connecting-with-postgres-getting-error-role-alfresco-db-does/m-p/99557#M28864</link>
      <description>&lt;P&gt;yes.. Thanks alot. It was a version issue. I have installed postgres manually and tried to connect. I have uninstalled it and tried via script and it worked.&lt;/P&gt;</description>
      <pubDate>Mon, 13 Jan 2020 06:37:52 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/not-connecting-with-postgres-getting-error-role-alfresco-db-does/m-p/99557#M28864</guid>
      <dc:creator>monicakumari</dc:creator>
      <dc:date>2020-01-13T06:37:52Z</dc:date>
    </item>
    <item>
      <title>Re: not connecting with postgres - getting error role alfresco_db does not exists</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/not-connecting-with-postgres-getting-error-role-alfresco-db-does/m-p/99558#M28865</link>
      <description>&lt;P&gt;&lt;STRONG&gt;Hello. It was resolved but still I am getting an issue. I am not able to login because repository is not starting up. There is no exception on console.&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;while hitting share link :&lt;BR /&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Screenshot from 2020-01-13 12-37-46.png" style="width: 999px;"&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="image"&gt;&lt;img src="https://connect.hyland.com/t5/image/serverpage/image-id/396iB07035BD4B0D5D5C/image-size/large?v=v2&amp;amp;px=999" role="button" title="image" alt="image" /&gt;&lt;/span&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;and with alfresco link :&lt;BR /&gt;&lt;BR /&gt;&lt;/STRONG&gt;&lt;SPAN class="lia-inline-image-display-wrapper lia-image-align-center" image-alt="Screenshot from 2020-01-13 12-37-04.png" style="width: 999px;"&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="image"&gt;&lt;img src="https://connect.hyland.com/t5/image/serverpage/image-id/395iE9F1F67D8087025E/image-size/large?v=v2&amp;amp;px=999" role="button" title="image" alt="image" /&gt;&lt;/span&gt;&lt;/SPAN&gt;&lt;STRONG&gt;I have found nothing (errors or exceptions ) on console logs (catalina.out) but noticed that the line says connected to the databse is missing in logs &lt;A title="catalina.out" href="https://pastebin.com/EHYJiQWK" target="_blank" rel="noopener nofollow noreferrer"&gt;catalina.out&lt;/A&gt; .I think its not connecting with database. Please guide. &lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Thank you.&lt;/STRONG&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 13 Jan 2020 07:22:03 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/not-connecting-with-postgres-getting-error-role-alfresco-db-does/m-p/99558#M28865</guid>
      <dc:creator>monicakumari</dc:creator>
      <dc:date>2020-01-13T07:22:03Z</dc:date>
    </item>
    <item>
      <title>Re: not connecting with postgres - getting error role alfresco_db does not exists</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/not-connecting-with-postgres-getting-error-role-alfresco-db-does/m-p/99559#M28866</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;A href="https://migration33.stage.lithium.com/t5/user/viewprofilepage/user-id/38331"&gt;@monicakumari&lt;/A&gt;,&lt;/P&gt;
&lt;P&gt;It might be better if you raise this subsequent issue as a new post - with a reference to the original post if required - because people see the Solved icon &amp;amp; assume everything is ok.&lt;/P&gt;
&lt;P&gt;Kind regards,&lt;/P&gt;</description>
      <pubDate>Wed, 15 Jan 2020 10:49:02 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/not-connecting-with-postgres-getting-error-role-alfresco-db-does/m-p/99559#M28866</guid>
      <dc:creator>EddieMay</dc:creator>
      <dc:date>2020-01-15T10:49:02Z</dc:date>
    </item>
  </channel>
</rss>

