[
https://issues.apache.org/jira/browse/UNOMI-253?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16957000#comment-16957000
]
Serge Huber commented on UNOMI-253:
-----------------------------------
The critical error in your logs is this one :
"Caused by: org.elasticsearch.client.transport.NoNodeAvailableException: None
of the configured nodes are available:
[{#transport#-1}{3wwR1_VCRIejJXUczDnn-g}{localhost}{127.0.0.1:9300}]"
This means that Unomi is no longer connected to ElasticSearch.
Also check your ElasticSearch logs there might be something wrong on that side.
Regards,
Serge...
> Can't create segments
> ---------------------
>
> Key: UNOMI-253
> URL: https://issues.apache.org/jira/browse/UNOMI-253
> Project: Apache Unomi
> Issue Type: Bug
> Components: core
> Affects Versions: 1.5.0
> Reporter: Bhagi Raj Limbu
> Priority: Major
>
> I follow a steps mention in documents create a segment through console
> command and POSTMAN in local machine as well as Azure server. It's a simple
> segment
> {code:java}
> curl -X POST http://localhost:8181/cxs/segments \
> --user karaf:karaf \
> -H "Content-Type: application/json" \
> -d @- <<'EOF'
> {
> "itemId": "leads",
> "itemType": "segments",
> "metadata": {
> "id": "leads",
> "name": "Leads",
> "scope": "systemscope",
> "description": "You can customize the list below by editing the leads
> segment."
> },
> "condition": {
> "type": "booleanCondition",
> "parameterValues": {
> "operator": "and",
> "subConditions": [
> {
> "type": "profilePropertyCondition",
> "parameterValues": {
> "propertyName": "properties.leadAssignedTo",
> "comparisonOperator": "exists"
> }
> }
> ]
> }
> }
> }
> EOF
> {code}
> I put a break lines on SegmentServiceImpl.java and
> ElasticSearchPersistanceServiceImpl.java and debug through
> {code:java}
> public boolean save(final Item item, final boolean useBatching)
> {code}
> methods. The code didn't throw exception and looks good. But, after exit code
> and run command in karaf console -
> {code:java}
> unomi:segment-list
> {code}
> It returns empty. I wonder have you had similar experience?
>
>
>
>
>
--
This message was sent by Atlassian Jira
(v8.3.4#803005)