On 2017-10-28 09:20 Ravindra Singareddy wrote:
Hi All,
We are migrating from Syncope 2.0.3 to 2.0.6. While authentication
credentials, receiving following error.
What are we missing in elastic search configuration?
Hi Ravi,
I hope you've been following [1][2][3] for your migration.
Regarding the Elasticsearch extension, either do not include it (if you
don't need it), e.g. remove
<dependency>
<groupId>org.apache.syncope.ext.elasticsearch</groupId>
<artifactId>syncope-ext-elasticsearch-provisioning-java</artifactId>
<version>${syncope.version}</version>
</dependency>
<dependency>
<groupId>org.apache.syncope.ext.elasticsearch</groupId>
<artifactId>syncope-ext-elasticsearch-persistence-jpa</artifactId>
<version>${syncope.version}</version>
</dependency>
from your own core/pom.xml, or be sure to follow the instructions to
enable it properly [4].
From you error below:
NoNodeAvailableException[None of the configured nodes are available:
[{#transport#-1}{cSLh0CvsStmG0DEicj7ekA}{localhost}{127.0.0.1:9300}]
it seems that you haven't correctly configured your own
core/src/main/resources/elasticsearchClientContext.xml
HTH
Regards.
[1]
https://cwiki.apache.org/confluence/display/SYNCOPE/Upgrade+from+2.0.3+to+2.0.4
[2]
https://cwiki.apache.org/confluence/display/SYNCOPE/Upgrade+from+2.0.4+to+2.0.5
[3]
https://cwiki.apache.org/confluence/display/SYNCOPE/Upgrade+from+2.0.5+to+2.0.6
[4]
https://syncope.apache.org/docs/reference-guide.html#enable-the-a-href-elasticsearch-elasticsearch-a-extension
03:14:29,929 INFO [org.jboss.as] (Controller Boot Thread) WFLYSRV0025:
WildFly Full 10.1.0.Final (WildFly Core 2.2.0.Final) started in 96201ms
- Started 1149 of 1403 services (416 services are lazy, passive or
on-demand)
03:14:58,744 ERROR [io.undertow.request] (default task-1) UT005023:
Exception handling request to /syncope/rest/accessTokens/login:
NoNodeAvailableException[None of the configured nodes are available:
[{#transport#-1}{cSLh0CvsStmG0DEicj7ekA}{localhost}{127.0.0.1:9300}]]
at
org.elasticsearch.client.transport.TransportClientNodesService.ensureNodesAreAvailable(TransportClientNodesService.java:347)
at
org.elasticsearch.client.transport.TransportClientNodesService.execute(TransportClientNodesService.java:245)
at
org.elasticsearch.client.transport.TransportProxyClient.execute(TransportProxyClient.java:59)
at
org.elasticsearch.client.transport.TransportClient.doExecute(TransportClient.java:363)
at
org.elasticsearch.client.support.AbstractClient.execute(AbstractClient.java:408)
at
org.elasticsearch.action.ActionRequestBuilder.execute(ActionRequestBuilder.java:80)
at
org.elasticsearch.action.ActionRequestBuilder.execute(ActionRequestBuilder.java:54)
at
org.elasticsearch.action.ActionRequestBuilder.get(ActionRequestBuilder.java:62)
at
org.apache.syncope.core.persistence.jpa.dao.ElasticsearchAnySearchDAO.doSearch(ElasticsearchAnySearchDAO.java:189)
at
org.apache.syncope.core.persistence.jpa.dao.AbstractAnySearchDAO.search(AbstractAnySearchDAO.java:358)
at
org.apache.syncope.core.persistence.jpa.dao.AbstractAnySearchDAO.search(AbstractAnySearchDAO.java:134)
at
org.apache.syncope.core.persistence.jpa.dao.AbstractAnySearchDAO.search(AbstractAnySearchDAO.java:127)
--
Francesco Chicchiriccò
Tirasa - Open Source Excellence
http://www.tirasa.net/
Member at The Apache Software Foundation
Syncope, Cocoon, Olingo, CXF, OpenJPA, PonyMail
http://home.apache.org/~ilgrosso/