<?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 Enabling redis template forces H2 database in Nuxeo Forum</title>
    <link>https://connect.hyland.com/t5/nuxeo-forum/enabling-redis-template-forces-h2-database/m-p/324994#M11995</link>
    <description>&lt;P&gt;Including "redis" in "nuxeo.templates" seems to override the previously selected database template (postgresql in our case).&lt;/P&gt;
&lt;P&gt;&lt;A href="https://github.com/nuxeo/nuxeo/blob/release-10.10/nuxeo-distribution/nuxeo-nxr-server/src/main/resources/templates/redis/nuxeo.defaults#L2"&gt;nuxeo.template.includes=default&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;For example when we have this configuration:&lt;/P&gt;
&lt;PRE&gt;&lt;CODE&gt;nuxeo.templates=postgresql,docker,redis
&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;Template processing:&lt;/P&gt;
&lt;PRE&gt;&lt;CODE&gt;Include template: /opt/nuxeo/server/templates/common-base
Include template: /opt/nuxeo/server/templates/common
Include template: /opt/nuxeo/server/templates/postgresql
Include template: /opt/nuxeo/server/templates/docker
Include template: /opt/nuxeo/server/templates/default
Include template: /opt/nuxeo/server/templates/redis
&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;This ends up in "datasources-config.xml"&lt;/P&gt;
&lt;PRE&gt;&lt;CODE&gt;  &amp;lt;extension target="org.nuxeo.runtime.datasource" point="datasources"&amp;gt;
    &amp;lt;datasource name="jdbc/nuxeo" driverClassName="org.h2.Driver"
...
&lt;/CODE&gt;&lt;/PRE&gt;</description>
    <pubDate>Fri, 22 Mar 2019 08:47:04 GMT</pubDate>
    <dc:creator>Juha_Kilpi</dc:creator>
    <dc:date>2019-03-22T08:47:04Z</dc:date>
    <item>
      <title>Enabling redis template forces H2 database</title>
      <link>https://connect.hyland.com/t5/nuxeo-forum/enabling-redis-template-forces-h2-database/m-p/324994#M11995</link>
      <description>&lt;P&gt;Including "redis" in "nuxeo.templates" seems to override the previously selected database template (postgresql in our case).&lt;/P&gt;
&lt;P&gt;&lt;A href="https://github.com/nuxeo/nuxeo/blob/release-10.10/nuxeo-distribution/nuxeo-nxr-server/src/main/resources/templates/redis/nuxeo.defaults#L2"&gt;nuxeo.template.includes=default&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;For example when we have this configuration:&lt;/P&gt;
&lt;PRE&gt;&lt;CODE&gt;nuxeo.templates=postgresql,docker,redis
&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;Template processing:&lt;/P&gt;
&lt;PRE&gt;&lt;CODE&gt;Include template: /opt/nuxeo/server/templates/common-base
Include template: /opt/nuxeo/server/templates/common
Include template: /opt/nuxeo/server/templates/postgresql
Include template: /opt/nuxeo/server/templates/docker
Include template: /opt/nuxeo/server/templates/default
Include template: /opt/nuxeo/server/templates/redis
&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;This ends up in "datasources-config.xml"&lt;/P&gt;
&lt;PRE&gt;&lt;CODE&gt;  &amp;lt;extension target="org.nuxeo.runtime.datasource" point="datasources"&amp;gt;
    &amp;lt;datasource name="jdbc/nuxeo" driverClassName="org.h2.Driver"
...
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Fri, 22 Mar 2019 08:47:04 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/nuxeo-forum/enabling-redis-template-forces-h2-database/m-p/324994#M11995</guid>
      <dc:creator>Juha_Kilpi</dc:creator>
      <dc:date>2019-03-22T08:47:04Z</dc:date>
    </item>
    <item>
      <title>Re: Enabling redis template forces H2 database</title>
      <link>https://connect.hyland.com/t5/nuxeo-forum/enabling-redis-template-forces-h2-database/m-p/324995#M11996</link>
      <description>&lt;P&gt;This has been reported in &lt;A href="https://jira.nuxeo.com/browse/NXP-27080" target="test_blank"&gt;https://jira.nuxeo.com/browse/NXP-27080&lt;/A&gt; and conveniently fixed in 10.10-HF04.
Note that there's another workaround: put redis before postgresql in the nuxeo.templates&lt;/P&gt;
&lt;P&gt;To retrieve the content of the hotfixes, follow instructions outlined in &lt;A href="https://answers.nuxeo.com/general/q/4452167aa44a4f3a99e0dfeff401368a/Content-of-Nuxeo-hotfixes-and-associated-release-notes" target="test_blank"&gt;https://answers.nuxeo.com/general/q/4452167aa44a4f3a99e0dfeff401368a/Content-of-Nuxeo-hotfixes-and-associated-release-notes&lt;/A&gt; .&lt;/P&gt;</description>
      <pubDate>Wed, 01 May 2019 20:00:11 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/nuxeo-forum/enabling-redis-template-forces-h2-database/m-p/324995#M11996</guid>
      <dc:creator>Patrick_Abgrall</dc:creator>
      <dc:date>2019-05-01T20:00:11Z</dc:date>
    </item>
    <item>
      <title>Re: Enabling redis template forces H2 database</title>
      <link>https://connect.hyland.com/t5/nuxeo-forum/enabling-redis-template-forces-h2-database/m-p/324996#M11997</link>
      <description>&lt;P&gt;Thank you for the information and the workaround!&lt;/P&gt;</description>
      <pubDate>Thu, 02 May 2019 05:18:13 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/nuxeo-forum/enabling-redis-template-forces-h2-database/m-p/324996#M11997</guid>
      <dc:creator>Juha_Kilpi</dc:creator>
      <dc:date>2019-05-02T05:18:13Z</dc:date>
    </item>
  </channel>
</rss>

