" /> SM Platform - Create AMERICA_ENGLISH index failed. - Genesys CTI User Forum

Author Topic: SM Platform - Create AMERICA_ENGLISH index failed.  (Read 6834 times)

Offline cavagnaro

  • Administrator
  • Hero Member
  • *****
  • Posts: 7641
  • Karma: 56330
SM Platform - Create AMERICA_ENGLISH index failed.
« on: June 11, 2019, 03:50:27 PM »
Advertisement
Hi guys,
Any of you have faced this issue at SM Platform?

2019-06-11T10:43:06.812 Std 09900 WARN Create AMERICA_ENGLISH index failed. Internal Server Error
I tried reinstalling the .net core 2.0.6 as per eSR recommendation but no luck.
Can't find further logs about this

Offline Kubig

  • Hero Member
  • *****
  • Posts: 2755
  • Karma: 44
Re: SM Platform - Create AMERICA_ENGLISH index failed.
« Reply #1 on: June 12, 2019, 08:20:13 AM »
Did you configure SM logging? If not, configure it to see further details about the error.

Offline cavagnaro

  • Administrator
  • Hero Member
  • *****
  • Posts: 7641
  • Karma: 56330
Re: SM Platform - Create AMERICA_ENGLISH index failed.
« Reply #2 on: June 12, 2019, 08:30:32 AM »
Seems error is from ElasticSearch complaining about not able to connect to port 8080...
Can't find anything useful at internet about it
Will post logs later

Enviado de meu SM-G9650 usando o Tapatalk


Offline Kubig

  • Hero Member
  • *****
  • Posts: 2755
  • Karma: 44
Re: SM Platform - Create AMERICA_ENGLISH index failed.
« Reply #3 on: June 12, 2019, 09:32:04 AM »
SM has nothing to do with elastic search. It seems your problem is on IRWS level. Could you post any further information?

Offline cavagnaro

  • Administrator
  • Hero Member
  • *****
  • Posts: 7641
  • Karma: 56330
Re: SM Platform - Create AMERICA_ENGLISH index failed.
« Reply #4 on: June 12, 2019, 10:37:36 AM »
? It has. Last version needs ES as a prerequisite. Indexes are now created there.


Enviado de meu SM-G9650 usando o Tapatalk


Offline Kubig

  • Hero Member
  • *****
  • Posts: 2755
  • Karma: 44
Re: SM Platform - Create AMERICA_ENGLISH index failed.
« Reply #5 on: June 12, 2019, 11:23:15 AM »
I do not think so you are right - where did you get this information? ES cluster is required by IRWS not by SM at all. Of course, the SM requires IRWS also, but there is no direct reference between SM and ES if I recall well.

Offline cavagnaro

  • Administrator
  • Hero Member
  • *****
  • Posts: 7641
  • Karma: 56330
Re: SM Platform - Create AMERICA_ENGLISH index failed.
« Reply #6 on: June 12, 2019, 11:24:38 AM »
Well last documentation states this very clear. Pain in the arse as no good details are provided. So, hard to troubleshoot unless you are a ES guy already

Enviado de meu SM-G9650 usando o Tapatalk


Offline Kubig

  • Hero Member
  • *****
  • Posts: 2755
  • Karma: 44
Re: SM Platform - Create AMERICA_ENGLISH index failed.
« Reply #7 on: June 12, 2019, 12:42:34 PM »
Can you please point me out to the documentation where this is stated? I am not able to find anything similiar and also I have never heart about ES requirements for SM (except IRWS as I mentioned before)

Offline Janis

  • Full Member
  • ***
  • Posts: 123
  • Karma: 4
Re: SM Platform - Create AMERICA_ENGLISH index failed.
« Reply #8 on: June 12, 2019, 08:21:14 PM »
What is even worst, SM requires ES version 5.x while IRWS can work with 1.x only. So you have to install separate instances of ES. In case of multi-tenant we need dedicated SM and ES for each tenant.

Offline Janis

  • Full Member
  • ***
  • Posts: 123
  • Karma: 4
Re: SM Platform - Create AMERICA_ENGLISH index failed.
« Reply #9 on: June 12, 2019, 08:24:05 PM »
You need 8.5.511 administration guide for ES part.
« Last Edit: June 12, 2019, 08:25:57 PM by Janis »

Offline Kubig

  • Hero Member
  • *****
  • Posts: 2755
  • Karma: 44
Re: SM Platform - Create AMERICA_ENGLISH index failed.
« Reply #10 on: June 13, 2019, 06:17:59 AM »
Ahh, you are working on GIA (not GIR as I supposed). Is your ES cluster up?Are you able to check the HTTP API health?

Offline cavagnaro

  • Administrator
  • Hero Member
  • *****
  • Posts: 7641
  • Karma: 56330
Re: SM Platform - Create AMERICA_ENGLISH index failed.
« Reply #11 on: June 13, 2019, 06:23:34 AM »
indexer logs:
[quote]

2019-06-13 00:02:33.993 [WRN] Failed to disable Elasticsearch automatic index creation.
2019-06-13 00:02:34.029 [INF] Connected to Elasticsearch.
2019-06-13 00:03:23.042 [WRN] Failed to disable Elasticsearch automatic index creation.
2019-06-13 00:03:23.088 [INF] Connected to Elasticsearch.
2019-06-13 00:05:04.034 [INF] Tenant "default": creating index "default_sm_index_english".
2019-06-13 00:05:25.244 [WRN] Tenant "default": failed to create index.
System.Exception: Failed to create index. Invalid NEST response built from a unsuccessful low level call on PUT: /default_sm_index_english
# Audit trail of this API call:
- [1] AllNodesDead: Took: 00:00:00.0000023
- [2] Resurrection: Node: http://172.17.27.19:8080/ Took: 00:00:00.0000007
- [3] PingFailure: Node: http://172.17.27.19:8080/ Exception: PipelineException Took: 00:00:21.0363196
# OriginalException: Elasticsearch.Net.ElasticsearchClientException: One or more errors occurred. (Failed to ping the specified node.) ---> System.AggregateException: One or more errors occurred. (Failed to ping the specified node.) ---> Elasticsearch.Net.PipelineException: Failed to ping the specified node. ---> Elasticsearch.Net.PipelineException: An error occurred trying to write the request data to the specified node.
  at Elasticsearch.Net.RequestPipeline.Ping(Node node) in C:\Users\russ\source\elasticsearch-net-5.x\src\Elasticsearch.Net\Transport\Pipeline\RequestPipeline.cs:line 279
  --- End of inner exception stack trace ---
  at Elasticsearch.Net.RequestPipeline.Ping(Node node) in C:\Users\russ\source\elasticsearch-net-5.x\src\Elasticsearch.Net\Transport\Pipeline\RequestPipeline.cs:line 286
  at Elasticsearch.Net.Transport`1.Ping(IRequestPipeline pipeline, Node node) in C:\Users\russ\source\elasticsearch-net-5.x\src\Elasticsearch.Net\Transport\Transport.cs:line 188
  at Elasticsearch.Net.Transport`1.Request[TReturn](HttpMethod method, String path, PostData`1 data, IRequestParameters requestParameters) in C:\Users\russ\source\elasticsearch-net-5.x\src\Elasticsearch.Net\Transport\Transport.cs:line 69
  --- End of inner exception stack trace ---
  --- End of inner exception stack trace ---
# Audit exception in step 3 PingFailure:
Elasticsearch.Net.PipelineException: An error occurred trying to write the request data to the specified node.
  at Elasticsearch.Net.RequestPipeline.Ping(Node node) in C:\Users\russ\source\elasticsearch-net-5.x\src\Elasticsearch.Net\Transport\Pipeline\RequestPipeline.cs:line 279
# Request:
<Request stream not captured or already read to completion by serializer. Set DisableDirectStreaming() on ConnectionSettings to force it to be set on the response.>
# Response:
<Response stream not captured or already read to completion by serializer. Set DisableDirectStreaming() on ConnectionSettings to force it to be set on the response.>


  at Indexer.ElasticWrapper.IndexCreator.createIndex(IIndexState indexState, String indexName) in c:\jenkins\workspace\indexer-microservice-build-ver-1.2.0\Indexer\ElasticWrapper\IndexCreator.cs:line 106
  at Indexer.ElasticWrapper.IndexCreator.createIndex(String indexName, String analyzerName, Language language, Int32 numberOfShards, Int32 numberOfReplicas, String tenant) in c:\jenkins\workspace\indexer-microservice-build-ver-1.2.0\Indexer\ElasticWrapper\IndexCreator.cs:line 98
  at Indexer.ElasticWrapper.IndexCreator.createIndex(Int32 numberOfShards, Int32 numberOfReplicas, String indexName, String tenant) in c:\jenkins\workspace\indexer-microservice-build-ver-1.2.0\Indexer\ElasticWrapper\IndexCreator.cs:line 45
  at Indexer.Controllers.IndexController.createIndex(CreateIndexRestObject index) in c:\jenkins\workspace\indexer-microservice-build-ver-1.2.0\Indexer\Controllers\IndexController.cs:line 33
2019-06-13 00:05:46.294 [INF] Tenant "default": creating index "default_sm_index_spanish".
2019-06-13 00:06:07.322 [WRN] Tenant "default": failed to create index.
[/quote]




Offline Janis

  • Full Member
  • ***
  • Posts: 123
  • Karma: 4
Re: SM Platform - Create AMERICA_ENGLISH index failed.
« Reply #12 on: June 13, 2019, 06:53:11 AM »
What is GIA? I was talking about SpeechMiner, the component of GIR.

Offline Janis

  • Full Member
  • ***
  • Posts: 123
  • Karma: 4
Re: SM Platform - Create AMERICA_ENGLISH index failed.
« Reply #13 on: June 13, 2019, 06:59:07 AM »
After looking into your log, I would recommend to check ES logs and Wireshark trace for communication with ES cluster.
You can check ES status with commands like:
curl 'localhost:9205/_cat/health?v'
curl 'localhost:9205/_cat/nodes?v'
curl 'localhost:9205/_cat/indices?v'

Offline Janis

  • Full Member
  • ***
  • Posts: 123
  • Karma: 4
Re: SM Platform - Create AMERICA_ENGLISH index failed.
« Reply #14 on: June 13, 2019, 07:01:25 AM »
What is the port of your ES? In log I see something about 8080. Is it really that one?