Ask Questions and Find Answers
Important:
Ask is now read-only. You can review any existing questions and answers, but not add anything new.
But - don't panic! While ask is no more, we've replaced it with discuss - the new Liferay Discussion Forum! Read more here here or just visit the site here:
discuss.liferay.com
RE: RE: Error on control panel menu after remote elastic integration
Hi Everyone,
I am facing control panel users, sites, accounts menu error after remote elasticsearch integration. I follow the instruction from the url https://learn.liferay.com/dxp/latest/en/using-search/installing-and-upgrading-a-search-engine/elasticsearch/connecting-to-elasticsearch.html. Elastic integration is success and i can see Can some one please suggest how to fix it. I have attached error screenshot and logs here. I change the log level to all. My liferay version is 7.4.3.14 CE and Elasticsearch version is 7.14.2. Thanks
Liferay UI Error
Elastic search kibana query
Liferay Log with log level all.
2022-12-25 16:20:13.373 TRACE
[http-nio-8080-exec-10][SearchSearchRequestExecutorImpl:63] Search
query: {_ "from": 0,_ "size": 10000,_
"query": {_ "bool": {_
"filter": [_ {_ "bool": {_
"must": [_ {_
"bool": {_ "should": [_
{_ "bool": {_
"must": [_ {_
"term": {_
"entryClassName": {_
"value": "com.liferay.portal.kernel.model.User",_
"boost": 1.0_
}_ }_
},_ {_
"term": {_ "status":
{_ "value": "0",_
"boost": 1.0_
}_ }_
},_ {_
"term": {_ "status":
{_ "value": "0",_
"boost": 1.0_
}_ }_
},_ {_
"bool": {_ "must":
[_ {_
"bool": {_
"must_not": [_ {_
"exists": {_
"field":
"ctCollectionId",_
"boost": 1.0_ }_
}_
],_
"adjust_pure_negative": true,_
"boost": 1.0_ }_
}_ ],_
"adjust_pure_negative": true,_
"boost": 1.0_
}_ },_ {_
"bool": {_
"must": [_ {_
"bool": {_
"must_not": [_ {_
"exists": {_
"field":
"ctCollectionId",_
"boost": 1.0_ }_
}_
],_
"adjust_pure_negative": true,_
"boost": 1.0_ }_
}_ ],_
"adjust_pure_negative": true,_
"boost": 1.0_
}_ }_ ],_
"must_not": [_ {_
"term": {_
"defaultUser": {_
"value": "true",_
"boost": 1.0_ }_
}_ },_
{_ "term": {_
"defaultUser": {_
"value": "true",_
"boost": 1.0_ }_
}_ }_ ],_
"adjust_pure_negative": true,_
"boost": 1.0_ }_
}_ ],_
"adjust_pure_negative": true,_
"boost": 1.0_ }_ }_
],_ "adjust_pure_negative": true,_
"boost": 1.0_ }_ }_ ],_
"adjust_pure_negative": true,_ "boost": 1.0_
}_ },_ "explain": false,_ "stored_fields":
[_ "uid",_ "companyId",_
"entryClassPK",_ "entryClassName",_
"scopeGroupId",_ "groupId",_
"assetTagNames",_ "modified",_
"userId"_ ],_ "track_total_hits": -1_}
[Sanitized]
2022-12-25 16:20:13.374 INFO
[http-nio-8080-exec-10][ElasticsearchConnectionManager:302]
Connection requested for ID: null
2022-12-25 16:20:13.374 INFO
[http-nio-8080-exec-10][ElasticsearchConnectionManager:347] Getting
remote cluster connection with ID: __REMOTE__
2022-12-25
16:20:13.374 INFO
[http-nio-8080-exec-10][ElasticsearchConnectionManager:123] Returning
connection with ID: __REMOTE__
2022-12-25 16:20:13.382 INFO
[http-nio-8080-exec-10][ElasticsearchIndexSearcher:182] Searching
{booleanClauses=[], className=BooleanQueryImpl} took 10 ms
2022-12-25 16:20:13.383 WARN
[http-nio-8080-exec-10][ProxyMessageListener:86] null
java.lang.NullPointerException: null
at
com.liferay.portal.search.elasticsearch7.internal.search.engine.adapter.search.SearchSearchResponseAssemblerImpl.setCount(SearchSearchResponseAssemblerImpl.java:132)
~[bundleFile:?]
at
com.liferay.portal.search.elasticsearch7.internal.search.engine.adapter.search.SearchSearchResponseAssemblerImpl.assemble(SearchSearchResponseAssemblerImpl.java:75)
~[bundleFile:?]
at
com.liferay.portal.search.elasticsearch7.internal.search.engine.adapter.search.SearchSearchRequestExecutorImpl.execute(SearchSearchRequestExecutorImpl.java:71)
~[bundleFile:?]
at
com.liferay.portal.search.elasticsearch7.internal.search.engine.adapter.search.ElasticsearchSearchRequestExecutor.executeSearchRequest(ElasticsearchSearchRequestExecutor.java:59)
~[bundleFile:?]
at
com.liferay.portal.search.engine.adapter.search.SearchSearchRequest.accept(SearchSearchRequest.java:45)
~[bundleFile:?]
at
com.liferay.portal.search.engine.adapter.search.SearchSearchRequest.accept(SearchSearchRequest.java:34)
~[bundleFile:?]
at
com.liferay.portal.search.elasticsearch7.internal.search.engine.adapter.ElasticsearchSearchEngineAdapterImpl.execute(ElasticsearchSearchEngineAdapterImpl.java:103)
~[bundleFile:?]
at
com.liferay.portal.search.elasticsearch7.internal.ElasticsearchIndexSearcher.search(ElasticsearchIndexSearcher.java:127)
~[bundleFile:?]
at
sun.reflect.GeneratedMethodAccessor697.invoke(Unknown Source) ~[?:?]
Thanks ,
Yan Paing
As you say that you're on 7.4.3.14: Can you try on a more recent version? The very latest at the time of this writing is 7.4.3.56
And in order to see users in the list, you'd need to reindex - but it looks like you're not really getting there based on the exception.
Hi Olaf Kock,
Thank you for the answer. Our product will be relased to productoin next month and all testing are almost completed with 7.4.3.14 so it is difficult to change version. Reindex multiple time but still issue. What I did is I install elastic search again, connect to the node with difficult name and also roll back one back dated deployment package of liferay portal and finally successfully connected.
Thank You,
Yan Paing
Well, if you can't update even to test if you found an issue that was already changed in a later version - what are you going to do when you find a security issue in the release that you're running?
I'm not asking to go live shortly on the newer version, just to check if this particular issue is still reproducible on it.
But in general, you might not want to rest for too long on an older version. Upgrades are meant to be quite smooth these days - though they're definitely smoother if you go in frequent small steps than in one giant leap.
Thanks for suggestion, we will upgrade version as soon as possible.
Powered by Liferay™