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
Elasticserach REMOTE
Hello, i am new user here and i can not configure elasticsearch with remote. I explain the step i do.1 - Install elasticsearch 6.5 in new windows pc (192.168.5.28:9200)
3 - I change en panel control elasticsearch from EMMBEBED TO REMOTE, and transport ip i say 192.168.5.28:9300
4 - I restart liferay and the log says this error
__ ____________________ _____ __
/ / / _/ ____/ ____/ __ \/ \ \/ /
/ / / // /_ / __/ / /_/ / /| |\ /
/ /____/ // __/ / /___/ _, _/ ___ |/ /
/_____/___/_/ /_____/_/ |_/_/ |_/_/Starting Liferay Community Edition Portal 7.2.0 CE GA1 (Mueller / Build 7200 / June 4, 2019)2019-10-24 11:26:01.047 INFO [main][StartupHelper:72] There are no patches installed
Loading jar:file:/C:/liferay-ce-portal-7.2.0-ga1/tomcat-9.0.17/webapps/ROOT/WEB-INF/lib/portal-impl.jar!/portal.properties
Loading file:/C:/liferay-ce-portal-7.2.0-ga1/portal-setup-wizard.properties
2019-10-24 11:26:02.610 INFO [main][AutoDeployDir:193] Auto deploy scanner started for C:\liferay-ce-portal-7.2.0-ga1\deploy
2019-10-24 11:26:08.313 INFO [main][ThemeHotDeployListener:108] 1 theme for admin-theme is available for use
2019-10-24 11:26:08.875 INFO [main][ThemeHotDeployListener:108] 1 theme for classic-theme is available for use
2019-10-24 11:26:17.672 ERROR [liferay/search_writer/SYSTEM_ENGINE-2][ElasticsearchIndexWriter:364] Update failed
2019-10-24 11:26:17.672 ERROR [liferay/search_writer/SYSTEM_ENGINE-5][ElasticsearchIndexWriter:364] Update failed
2019-10-24 11:26:17.672 ERROR [liferay/search_writer/SYSTEM_ENGINE-4][ElasticsearchIndexWriter:364] Update failed
2019-10-24 11:26:18.203 ERROR [liferay/search_writer/SYSTEM_ENGINE-5][ElasticsearchIndexWriter:364] Update failed
2019-10-24 11:26:18.203 ERROR [liferay/search_writer/SYSTEM_ENGINE-2][ElasticsearchIndexWriter:364] Update failed
2019-10-24 11:26:18.203 ERROR [liferay/search_writer/SYSTEM_ENGINE-4][ElasticsearchIndexWriter:364] Update failed
2019-10-24 11:26:18.235 ERROR [liferay/search_writer/SYSTEM_ENGINE-2][ElasticsearchIndexWriter:364] Update failed
2019-10-24 11:26:18.250 ERROR [liferay/search_writer/SYSTEM_ENGINE-3][ElasticsearchIndexWriter:364] Update failed
2019-10-24 11:26:18.250 ERROR [liferay/search_writer/SYSTEM_ENGINE-1][ElasticsearchIndexWriter:364] Update failed
2019-10-24 11:26:18.250 ERROR [liferay/search_writer/SYSTEM_ENGINE-4][ElasticsearchIndexWriter:364] Update failed
2019-10-24 11:26:18.266 ERROR [liferay/search_writer/SYSTEM_ENGINE-5][ElasticsearchIndexWriter:364] Update failed
2019-10-24 11:26:18.266 ERROR [liferay/search_writer/SYSTEM_ENGINE-1][ElasticsearchIndexWriter:364] Update failed
2019-10-24 11:26:18.297 ERROR [liferay/search_writer/SYSTEM_ENGINE-3][ElasticsearchIndexWriter:364] Update failed
2019-10-24 11:26:18.297 ERROR [liferay/search_writer/SYSTEM_ENGINE-1][ElasticsearchIndexWriter:364] Update failed
2019-10-24 11:26:18.297 ERROR [liferay/search_writer/SYSTEM_ENGINE-2][ElasticsearchIndexWriter:364] Update failed
2019-10-24 11:26:18.313 ERROR [liferay/search_writer/SYSTEM_ENGINE-5][ElasticsearchIndexWriter:364] Update failed
2019-10-24 11:26:18.313 ERROR [liferay/search_writer/SYSTEM_ENGINE-4][ElasticsearchIndexWriter:364] Update failed
2019-10-24 11:26:18.328 ERROR [liferay/search_writer/SYSTEM_ENGINE-3][ElasticsearchIndexWriter:364] Update failed
2019-10-24 11:26:18.328 ERROR [liferay/search_writer/SYSTEM_ENGINE-1][ElasticsearchIndexWriter:364] Update failed
2019-10-24 11:26:18.344 ERROR [liferay/search_writer/SYSTEM_ENGINE-5][ElasticsearchIndexWriter:364] Update failed
2019-10-24 11:26:18.360 ERROR [liferay/search_writer/SYSTEM_ENGINE-4][ElasticsearchIndexWriter:364] Update failed
2019-10-24 11:26:18.391 ERROR [liferay/search_writer/SYSTEM_ENGINE-1][ElasticsearchIndexWriter:364] Update failed
2019-10-24 11:26:18.391 ERROR [liferay/search_writer/SYSTEM_ENGINE-2][ElasticsearchIndexWriter:364] Update failed
2019-10-24 11:26:18.391 ERROR [liferay/search_writer/SYSTEM_ENGINE-3][ElasticsearchIndexWriter:364] Update failed
Please, can anyone help me? THANKS
{
"name" : "ANTONIO",
"cluster_name" : "LiferayElasticsearchCluster2",
"cluster_uuid" : "ii6-xxyrTMKhvCxlk_yaBg",
"version" : {
"number" : "6.3.0",
"build_flavor" : "unknown",
"build_type" : "unknown",
"build_hash" : "424e937",
"build_date" : "2018-06-11T23:38:03.357887Z",
"build_snapshot" : false,
"lucene_version" : "7.3.1",
"minimum_wire_compatibility_version" : "5.6.0",
"minimum_index_compatibility_version" : "5.0.0"
},
"tagline" : "You Know, for Search"
}2 - I startup liferay 7.2 ga1 (new) 192.168.5.2053 - I change en panel control elasticsearch from EMMBEBED TO REMOTE, and transport ip i say 192.168.5.28:9300
4 - I restart liferay and the log says this error
__ ____________________ _____ __
/ / / _/ ____/ ____/ __ \/ \ \/ /
/ / / // /_ / __/ / /_/ / /| |\ /
/ /____/ // __/ / /___/ _, _/ ___ |/ /
/_____/___/_/ /_____/_/ |_/_/ |_/_/Starting Liferay Community Edition Portal 7.2.0 CE GA1 (Mueller / Build 7200 / June 4, 2019)2019-10-24 11:26:01.047 INFO [main][StartupHelper:72] There are no patches installed
Loading jar:file:/C:/liferay-ce-portal-7.2.0-ga1/tomcat-9.0.17/webapps/ROOT/WEB-INF/lib/portal-impl.jar!/portal.properties
Loading file:/C:/liferay-ce-portal-7.2.0-ga1/portal-setup-wizard.properties
2019-10-24 11:26:02.610 INFO [main][AutoDeployDir:193] Auto deploy scanner started for C:\liferay-ce-portal-7.2.0-ga1\deploy
2019-10-24 11:26:08.313 INFO [main][ThemeHotDeployListener:108] 1 theme for admin-theme is available for use
2019-10-24 11:26:08.875 INFO [main][ThemeHotDeployListener:108] 1 theme for classic-theme is available for use
2019-10-24 11:26:17.672 ERROR [liferay/search_writer/SYSTEM_ENGINE-2][ElasticsearchIndexWriter:364] Update failed
2019-10-24 11:26:17.672 ERROR [liferay/search_writer/SYSTEM_ENGINE-5][ElasticsearchIndexWriter:364] Update failed
2019-10-24 11:26:17.672 ERROR [liferay/search_writer/SYSTEM_ENGINE-4][ElasticsearchIndexWriter:364] Update failed
2019-10-24 11:26:18.203 ERROR [liferay/search_writer/SYSTEM_ENGINE-5][ElasticsearchIndexWriter:364] Update failed
2019-10-24 11:26:18.203 ERROR [liferay/search_writer/SYSTEM_ENGINE-2][ElasticsearchIndexWriter:364] Update failed
2019-10-24 11:26:18.203 ERROR [liferay/search_writer/SYSTEM_ENGINE-4][ElasticsearchIndexWriter:364] Update failed
2019-10-24 11:26:18.235 ERROR [liferay/search_writer/SYSTEM_ENGINE-2][ElasticsearchIndexWriter:364] Update failed
2019-10-24 11:26:18.250 ERROR [liferay/search_writer/SYSTEM_ENGINE-3][ElasticsearchIndexWriter:364] Update failed
2019-10-24 11:26:18.250 ERROR [liferay/search_writer/SYSTEM_ENGINE-1][ElasticsearchIndexWriter:364] Update failed
2019-10-24 11:26:18.250 ERROR [liferay/search_writer/SYSTEM_ENGINE-4][ElasticsearchIndexWriter:364] Update failed
2019-10-24 11:26:18.266 ERROR [liferay/search_writer/SYSTEM_ENGINE-5][ElasticsearchIndexWriter:364] Update failed
2019-10-24 11:26:18.266 ERROR [liferay/search_writer/SYSTEM_ENGINE-1][ElasticsearchIndexWriter:364] Update failed
2019-10-24 11:26:18.297 ERROR [liferay/search_writer/SYSTEM_ENGINE-3][ElasticsearchIndexWriter:364] Update failed
2019-10-24 11:26:18.297 ERROR [liferay/search_writer/SYSTEM_ENGINE-1][ElasticsearchIndexWriter:364] Update failed
2019-10-24 11:26:18.297 ERROR [liferay/search_writer/SYSTEM_ENGINE-2][ElasticsearchIndexWriter:364] Update failed
2019-10-24 11:26:18.313 ERROR [liferay/search_writer/SYSTEM_ENGINE-5][ElasticsearchIndexWriter:364] Update failed
2019-10-24 11:26:18.313 ERROR [liferay/search_writer/SYSTEM_ENGINE-4][ElasticsearchIndexWriter:364] Update failed
2019-10-24 11:26:18.328 ERROR [liferay/search_writer/SYSTEM_ENGINE-3][ElasticsearchIndexWriter:364] Update failed
2019-10-24 11:26:18.328 ERROR [liferay/search_writer/SYSTEM_ENGINE-1][ElasticsearchIndexWriter:364] Update failed
2019-10-24 11:26:18.344 ERROR [liferay/search_writer/SYSTEM_ENGINE-5][ElasticsearchIndexWriter:364] Update failed
2019-10-24 11:26:18.360 ERROR [liferay/search_writer/SYSTEM_ENGINE-4][ElasticsearchIndexWriter:364] Update failed
2019-10-24 11:26:18.391 ERROR [liferay/search_writer/SYSTEM_ENGINE-1][ElasticsearchIndexWriter:364] Update failed
2019-10-24 11:26:18.391 ERROR [liferay/search_writer/SYSTEM_ENGINE-2][ElasticsearchIndexWriter:364] Update failed
2019-10-24 11:26:18.391 ERROR [liferay/search_writer/SYSTEM_ENGINE-3][ElasticsearchIndexWriter:364] Update failed
Please, can anyone help me? THANKS
Antonio Caballero:
See the bolded text in the quote. Is that on purpose or a typo here?
Install elasticsearch 6.5 in new windows pc (192.168.5.28:9200)
...
3 - I change en panel control elasticsearch from EMMBEBED TO REMOTE, and transport ip i say 192.168.5.28:9300
Hi all,
Olaf, ports setup is ok:
Olaf, ports setup is ok:
- Elasticsearch has two ports http=9200 and transport=9300.
- http port is used by admin users to interact with Elasticsearch
- transport port is used by Liferay to connect with Elasticsearch node (it will deprecated and replaced with http port in future Elasticsearch versions)
- Did you setup cluster name to "LiferayElasticsearchCluster2" in Liferay side?
- Is there any error in Elasticsearch logs?
- You are using Elasticsearch 6.3. You should move to 6.5 or 6.8 version just in case.
Hello, thanks for helping me. I answer this qustions:
I Hope you help me, thanks.
- Did you setup cluster name to "LiferayElasticsearchCluster2" in Liferay side?
- Yes, i change in panel control as follow:
- Cluster Name = LiferayElasticsearchCluster2
- Operation Mode = REMOTE
- Transport Addresses = 192.168.5.28:9300
- Yes, i change in panel control as follow:
- Is there any error in Elasticsearch logs?
- I send the log file from elasticsearch and liferay
- You are using Elasticsearch 6.3. You should move to 6.5 or 6.8 version just in case.
- I have install elasticserch 6.8, and the same problem.
I Hope you help me, thanks.
Attachments:
Hi Antonio,
The traces from "log.txt" are from Liferay, but "gc.log.0.current" aren't from Elasticsearch or Liferay neither. They are just garbage collector traces.
You should have other file with Elasticsearch traces with "elasticsearch.log" or "<cluster-name>.log" names.
As Liferay logs have " 2019-10-24 11:26:18.297 ERROR [liferay/search_writer/SYSTEM_ENGINE-1][ElasticsearchIndexWriter:364] Update failed " trace, I think there should be another error trace at Elasticsearch side.
The traces from "log.txt" are from Liferay, but "gc.log.0.current" aren't from Elasticsearch or Liferay neither. They are just garbage collector traces.
You should have other file with Elasticsearch traces with "elasticsearch.log" or "<cluster-name>.log" names.
As Liferay logs have " 2019-10-24 11:26:18.297 ERROR [liferay/search_writer/SYSTEM_ENGINE-1][ElasticsearchIndexWriter:364] Update failed " trace, I think there should be another error trace at Elasticsearch side.
Hello, you are write, the probkem is in elasticserch, but i dont know how to solve this problem.
I send log file.
Thanks
I send log file.
Thanks
Attachments:
Hi Antonio,
Your Elasticsearch log file has following error:
Have a look to following page in order to correctly install missing plugins:
https://portal.liferay.dev/docs/7-2/deploy/-/knowledge_base/d/installing-elasticsearch#step-three-install-elasticsearch-plugins
Your Elasticsearch log file has following error:
org.elasticsearch.index.mapper.MapperParsingException: analyzer [kuromoji] not found for field [configurationModelAttributeName_ja_JP]That error is produced when you didn't install some analyzer plugins in your Elasticsearch server.Have a look to following page in order to correctly install missing plugins:
https://portal.liferay.dev/docs/7-2/deploy/-/knowledge_base/d/installing-elasticsearch#step-three-install-elasticsearch-plugins
Hello, thanks. I didnt install this plugin. Now it is working.
Thanks
Thanks