[bug] error while navigating the analytics page with disabled elasticsearch

Rawan_Alharbi
Champ on-the-rise
Champ on-the-rise

Hello,

we are using a docker image for Nuxeo 10.10 with a postgresql database.

we have disabled the elasticsearch by adding this option elasticsearch.enabled=false in nuxeo.conf file. Nuxeo works fine with this configuration, but while navigating the Analytics in the Administration tap; we get an error.

logs:

ERROR [WebEngineExceptionMapper] java.lang.NullPointerException
java.lang.NullPointerException: null
        at org.nuxeo.elasticsearch.ElasticSearchComponent.getRepositoryNames(ElasticSearchComponent.java:264) ~[nuxeo-elasticsearch-core-10.10.jar:?]
        at org.nuxeo.elasticsearch.http.readonly.filter.RequestValidator.<init>(RequestValidator.java:51) ~[nuxeo-elasticsearch-http-read-only-10.10.jar:?]
        at org.nuxeo.elasticsearch.http.readonly.AbstractSearchRequestFilterImpl.init(AbstractSearchRequestFilterImpl.java:60) ~[nuxeo-elasticsearch-http-read-only-10.10.jar:?]

a complete logs file and analytics page screenshot attached.

Thank you.

1 ACCEPTED ANSWER

Gregory_Carlin
Elite Collaborator
Elite Collaborator

Hello,

Analytics pages uses Nuxeo elements which rely on Elasticsearch features such as aggregates behind the scenes.

Regards

View answer in original post

2 REPLIES 2

Gregory_Carlin
Elite Collaborator
Elite Collaborator

Hello,

Analytics pages uses Nuxeo elements which rely on Elasticsearch features such as aggregates behind the scenes.

Regards

Thank you for your reply, indeed the error caused by disabling the Elasticsearch. The Analytics page relies on Elasticsearch as you mentioned, so if we disabled the Elasticsearch from configuration we can't benefit from the Analytics page.