cancel
Showing results for 
Search instead for 
Did you mean: 

Enabling redis template forces H2 database

Juha_Kilpi
Champ on-the-rise
Champ on-the-rise

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"
...
1 ACCEPTED ANSWER

Patrick_Abgrall
Star Contributor
Star Contributor

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-a... .

View answer in original post

2 REPLIES 2

Patrick_Abgrall
Star Contributor
Star Contributor

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-a... .

Thank you for the information and the workaround!

Getting started

Find what you came for

We want to make your experience in Hyland Connect as valuable as possible, so we put together some helpful links.