<?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: Postgres Error: root entity collection does not exist in ThingWorx Developers</title>
    <link>https://community.ptc.com/t5/ThingWorx-Developers/Postgres-Error-root-entity-collection-does-not-exist/m-p/522403#M17336</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;What are now your permissions on the Postgres and Tomcat folders to fix the issue ?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 20 Jan 2016 20:10:21 GMT</pubDate>
    <dc:creator>qn</dc:creator>
    <dc:date>2016-01-20T20:10:21Z</dc:date>
    <item>
      <title>Postgres Error: root entity collection does not exist</title>
      <link>https://community.ptc.com/t5/ThingWorx-Developers/Postgres-Error-root-entity-collection-does-not-exist/m-p/522400#M17333</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;When I install the new Thingworx Postgre 6.5.2 (but there is the same problem with 6.5.0 and 6.5.1), the Thingworx Composer could not start. In "Application.log", there is an error of Postgre:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;BLOCKQUOTE&gt;&lt;TABLE border="1"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;&lt;P&gt;&lt;SPAN style="color: #222222; font-family: arial, sans-serif; font-size: 14px; background-color: #fcfdfd;"&gt;..&lt;/SPAN&gt;&lt;BR style="margin: 0px; color: #222222; font-family: arial, sans-serif; font-size: 14px; background-color: #fcfdfd;" /&gt;&lt;SPAN style="color: #222222; font-family: arial, sans-serif; font-size: 14px; background-color: #fcfdfd;"&gt;Reading configuration from configTableCol&lt;/SPAN&gt;&lt;BR style="margin: 0px; color: #222222; font-family: arial, sans-serif; font-size: 14px; background-color: #fcfdfd;" /&gt;&lt;SPAN style="color: #222222; font-family: arial, sans-serif; font-size: 14px; background-color: #fcfdfd;"&gt;Datastore database...ON&lt;/SPAN&gt;&lt;BR style="margin: 0px; color: #222222; font-family: arial, sans-serif; font-size: 14px; background-color: #fcfdfd;" /&gt;&lt;SPAN style="color: #222222; font-family: arial, sans-serif; font-size: 14px; background-color: #fcfdfd;"&gt;CRITICAL ERROR ON STARTUP: ERROR: relation "root_entity_collection" does not exist&lt;/SPAN&gt;&lt;BR style="margin: 0px; color: #222222; font-family: arial, sans-serif; font-size: 14px; background-color: #fcfdfd;" /&gt;&lt;SPAN style="color: #222222; font-family: arial, sans-serif; font-size: 14px; background-color: #fcfdfd;"&gt;...&lt;/SPAN&gt;&lt;/P&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I used an PostgreSQL client to check the database and there is the table "root_entity_collection". Does someone had the same problem and how did you resolve it ?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;My postgre user, created for Thingworx, is not the same as my linux user. By the way, I wonder if Thingworx use the linux user to login to Postgre DB. It would not be possible, I even did not give the postgre username and password yet. I even can't start the Thingworx Composer. Tomcat8 does not have any error.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 16 Nov 2015 21:13:49 GMT</pubDate>
      <guid>https://community.ptc.com/t5/ThingWorx-Developers/Postgres-Error-root-entity-collection-does-not-exist/m-p/522400#M17333</guid>
      <dc:creator>qn</dc:creator>
      <dc:date>2015-11-16T21:13:49Z</dc:date>
    </item>
    <item>
      <title>Re: Postgres Error: root entity collection does not exist</title>
      <link>https://community.ptc.com/t5/ThingWorx-Developers/Postgres-Error-root-entity-collection-does-not-exist/m-p/522401#M17334</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;The problem happens when Postgre does not have the right schema name in "&lt;STRONG&gt;search_path&lt;/STRONG&gt;". By default, the search_path is &lt;STRONG&gt;'"$user",public'&lt;/STRONG&gt;​ (SHOW search_path). That means Postgre will look for schema with name &lt;STRONG&gt;[postgre_user_name]&lt;/STRONG&gt; or &lt;STRONG&gt;public&lt;/STRONG&gt;​ schema. By default, all database have one public schema.&amp;nbsp; So there are some solutions for this problem:&lt;/P&gt;&lt;OL&gt;&lt;LI&gt;Change the search_path&lt;OL&gt;&lt;LI&gt;SET search_path TO mySchema, public;&lt;/LI&gt;&lt;LI&gt;Modify the file "&lt;STRONG&gt;postgresql.conf&lt;/STRONG&gt;" (in /etc/postgresql/[postgre_version]/main/postgresql.conf)&lt;/LI&gt;&lt;/OL&gt;&lt;/LI&gt;&lt;LI&gt;Use the postgre user name for schema name (&lt;STRONG&gt;"$user"&lt;/STRONG&gt;)&lt;/LI&gt;&lt;LI&gt;Use the public schema by default&lt;/LI&gt;&lt;/OL&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 18 Nov 2015 16:22:15 GMT</pubDate>
      <guid>https://community.ptc.com/t5/ThingWorx-Developers/Postgres-Error-root-entity-collection-does-not-exist/m-p/522401#M17334</guid>
      <dc:creator>qn</dc:creator>
      <dc:date>2015-11-18T16:22:15Z</dc:date>
    </item>
    <item>
      <title>Re: Postgres Error: root entity collection does not exist</title>
      <link>https://community.ptc.com/t5/ThingWorx-Developers/Postgres-Error-root-entity-collection-does-not-exist/m-p/522402#M17335</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;For me it was permission on the &lt;STRONG&gt;Postgres&lt;/STRONG&gt; and &lt;STRONG&gt;Tomcat&lt;/STRONG&gt; folder.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 20 Jan 2016 20:06:15 GMT</pubDate>
      <guid>https://community.ptc.com/t5/ThingWorx-Developers/Postgres-Error-root-entity-collection-does-not-exist/m-p/522402#M17335</guid>
      <dc:creator>Arpit-Singh</dc:creator>
      <dc:date>2016-01-20T20:06:15Z</dc:date>
    </item>
    <item>
      <title>Re: Postgres Error: root entity collection does not exist</title>
      <link>https://community.ptc.com/t5/ThingWorx-Developers/Postgres-Error-root-entity-collection-does-not-exist/m-p/522403#M17336</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;What are now your permissions on the Postgres and Tomcat folders to fix the issue ?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 20 Jan 2016 20:10:21 GMT</pubDate>
      <guid>https://community.ptc.com/t5/ThingWorx-Developers/Postgres-Error-root-entity-collection-does-not-exist/m-p/522403#M17336</guid>
      <dc:creator>qn</dc:creator>
      <dc:date>2016-01-20T20:10:21Z</dc:date>
    </item>
    <item>
      <title>Re: Postgres Error: root entity collection does not exist</title>
      <link>https://community.ptc.com/t5/ThingWorx-Developers/Postgres-Error-root-entity-collection-does-not-exist/m-p/522404#M17337</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;My username didn't had write permissions on those 2 folders so it was giving the same error in the Application.log file.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 20 Jan 2016 20:13:06 GMT</pubDate>
      <guid>https://community.ptc.com/t5/ThingWorx-Developers/Postgres-Error-root-entity-collection-does-not-exist/m-p/522404#M17337</guid>
      <dc:creator>Arpit-Singh</dc:creator>
      <dc:date>2016-01-20T20:13:06Z</dc:date>
    </item>
  </channel>
</rss>

