Enabling redis template forces H2 database

Including “redis” in “nuxeo.templates” seems to override the previously selected database template (postgresql in our case).

nuxeo.template.includes=default

For example when we have this configuration:

nuxeo.templates=postgresql,docker,redis

Template processing:

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

This ends up in “datasources-config.xml”

  <extension target="org.nuxeo.runtime.datasource" point="datasources">
    <datasource name="jdbc/nuxeo" driverClassName="org.h2.Driver"
...
0 votes

1 answers

1471 views

ANSWER



This has been reported in https://jira.nuxeo.com/browse/NXP-27080 and conveniently fixed in 10.10-HF04. Note that there's another workaround: put redis before postgresql in the nuxeo.templates

To retrieve the content of the hotfixes, follow instructions outlined in https://answers.nuxeo.com/general/q/4452167aa44a4f3a99e0dfeff401368a/Content-of-Nuxeo-hotfixes-and-associated-release-notes .

1 votes



Thank you for the information and the workaround!
05/02/2019