" /> Could not POST metadata to HTCC - Genesys CTI User Forum

Author Topic: Could not POST metadata to HTCC  (Read 15690 times)

Offline nhannt

  • Newbie
  • *
  • Posts: 39
  • Karma: 0
Re: Could not POST metadata to HTCC
« Reply #15 on: July 07, 2017, 06:53:52 AM »
Advertisement
Hi Kubig,

Metadata have been sent to Processor and Processor have sent metadata to Web Services and Interaction Receiver. Webservices have written metadata to Cassandra DB, but seem like Uplatfrom could not write metadata to SpeechMiner DB. Therefore, Interaction Receiver have responsed error 202: Failed to process metadata. \r\n
ProgramId does not exist. External ID: H7RIE87ME140R1MTUF2DC2P5U8000008 not processed

I think there is issue with configuration on Interaction Receiver and SpeechMiner, I'm re-checking this.

Thanks, Nhan.

Offline Kubig

  • Hero Member
  • *****
  • Posts: 2755
  • Karma: 44
Re: Could not POST metadata to HTCC
« Reply #16 on: July 07, 2017, 10:46:25 AM »
Because there is no URI to post data there. Check what MCP posts and also what data the ICON provides.
« Last Edit: July 07, 2017, 11:34:45 AM by Kubig »

Offline juagarod

  • Newbie
  • *
  • Posts: 3
  • Karma: 0
Re: Could not POST metadata to HTCC
« Reply #17 on: July 09, 2017, 12:42:29 AM »
Hello there Kubig, nhannt, and cavagnaro,

First time posting in this forum! I hope I will eventually also help people in here!  ;D

We are having a similar issue in the posting of Metadata from the RPS to the RWS:

RPS.-

2017-07-07 15:01:02,413 process_metadata DEBUG Sending to HTCC: FRFQ23B0AD5KF6RPTDRG95IKI0008H7K
2017-07-07 15:01:02,413 htcc_client DEBUG Getting token for csrf protection
2017-07-07 15:01:02,444 http_client DEBUG Set-Cookie saved GIRJSESSID=vbs728p226ca1rp4uoclyo5hs; httponly; Path=/
2017-07-07 15:01:02,444 htcc_client DEBUG GET: http://10.100.47.75:8080/api/v2/diagnostics/version: Response Status: 200
2017-07-07 15:01:02,444 http_client DEBUG Cookie header added
[color=red]2017-07-07 15:01:02,538 http_client DEBUG Failure: POST RECORD: http://10.100.47.75:8080/internal-api/contact-centers/78d61955-1eb9-4957-918d-8451461d7250/recordings
2017-07-07 15:01:02,538 http_client DEBUG Headers: {'date': 'Fri, 07 Jul 2017 19:58:18 GMT', 'transfer-encoding': 'chunked', 'status': '500', 'content-type': 'application/json', 'cache-control': 'no-store'}
2017-07-07 15:01:02,538 http_client WARNING Content: {"statusCode":4,"statusMessage":"An internal server error has occurred. Please contact your administrator."}[/color]
2017-07-07 15:01:02,538 htcc_client DEBUG reset csrf protection
2017-07-07 15:01:02,538 htcc_client DEBUG Getting token for csrf protection
2017-07-07 15:01:02,552 htcc_client DEBUG GET: http://10.100.47.75:8080/api/v2/diagnostics/version: Response Status: 200
2017-07-07 15:01:02,552 process_metadata INFO Response: 500. Could not POST metadata to HTCC: FRFQ23B0AD5KF6RPTDRG95IKI0008H7K
2017-07-07 15:01:02,569 process_metadata INFO 0 messages have been sent to SpeechMiner.
2017-07-07 15:01:02,569 process_metadata INFO 0 messages have been sent to HTCC.

RWS.-

07/08/2017 04:02:19.184 DEBUG [ops] [5zrbbeqm4sr9lgznuy9niekb] [] [elasticsearch[Unthinnk][index][T#1]]  /internal-api/contact-centers/78d61955-1eb9-4957-918d-8451461d7250/recordings  org.elasticsearch.action.index  [Unthinnk] [call-recordingv2-us-78d61955-1eb9-4957-918d-8451461d7250][0], node[fJ7tvnwtTiOZs0Q6wK3ctw], [P], s[STARTED]: Failed to execute [index {[call-recordingv2-us-78d61955-1eb9-4957-918d-8451461d7250][CallRecordings][FRFQ23B0AD5KF6RPTDRG95IKI0008H7K], source[{"duration":10000,"userData":" [\"bad577f9-eace-463a-902b-2ad2e68a717c\",\"0\",\"8fee53c4-9c78-4853-8906-33da7864246a\"] [\"LlamadaEfectiva\"] [\"00012aCJAKAY3PFA\"] [\"0\",\"SP_DENWA_10\"] [\"ON\",\"FRFQ23B0AD5KF6RPTDRG95IKI0008H7K_2017-07-07_20-00-41\"] [\"ON\",\"0\"]","mediaFiles":[{"userName":"mzambrano","partitions":["/Jsupervisor"]}],"startTime":1499457641000,"stopTime":1499457651000,"userDataKvps":[{"name":"IW_CaseUid","valueStr":"bad577f9-eace-463a-902b-2ad2e68a717c"},{"name":"BusinessCall","valueStr":"0"},{"name":"IW_BundleUid","valueStr":"8fee53c4-9c78-4853-8906-33da7864246a"},{"name":"DispositionCode","valueStr":"LlamadaEfectiva"},{"name":"ContactId","valueStr":"00012aCJAKAY3PFA"},{"name":"OtherTrunkName","valueStr":"SP_DENWA_10"},{"name":"GSIP_REC_FN","valueStr":"FRFQ23B0AD5KF6RPTDRG95IKI0008H7K_2017-07-07_20-00-41"},{"name":"agentId","valueStr":"1278"},{"name":"ani","valueStr":"2753"},{"name":"dnis","valueStr":"90996424571"},{"name":"recordDN","valueStr":"2753"},{"name":"agentExtensionDN","valueStr":"2753"},{"name":"callerPhoneNumber","valueStr":"2753"},{"name":"dialedPhoneNumber","valueStr":"90996424571"},{"name":"callType","valueStr":"Outbound"}],"region":"us","userName":["mzambrano Miguel Zambrano"],"callType":"Outbound","callerPhoneNumber":"2753","dialedPhoneNumber":"90996424571","labels":[]}]}]
org.elasticsearch.index.mapper.MapperParsingException: [color=red]Analyzer [whitespace_lowercase] not found for field [CR.userName][/color]
at org.elasticsearch.index.mapper.core.TypeParsers.parseField(TypeParsers.java:213) ~[elasticsearch-1.0.1.jar!/:na]
at org.elasticsearch.index.mapper.core.StringFieldMapper$TypeParser.parse(StringFieldMapper.java:156) ~[elasticsearch-1.0.1.jar!/:na]
at org.elasticsearch.index.mapper.object.ObjectMapper$TypeParser.parseProperties(ObjectMapper.java:258) ~[elasticsearch-1.0.1.jar!/:na]
at org.elasticsearch.index.mapper.object.ObjectMapper$TypeParser.parse(ObjectMapper.java:216) ~[elasticsearch-1.0.1.jar!/:na]
at org.elasticsearch.index.mapper.DocumentMapperParser.parse(DocumentMapperParser.java:203) ~[elasticsearch-1.0.1.jar!/:na]
at org.elasticsearch.index.mapper.DocumentMapperParser.parseCompressed(DocumentMapperParser.java:185) ~[elasticsearch-1.0.1.jar!/:na]
at org.elasticsearch.index.mapper.MapperService.parse(MapperService.java:387) ~[elasticsearch-1.0.1.jar!/:na]
at org.elasticsearch.index.mapper.MapperService.merge(MapperService.java:253) ~[elasticsearch-1.0.1.jar!/:na]
at org.elasticsearch.index.mapper.MapperService.documentMapperWithAutoCreate(MapperService.java:416) ~[elasticsearch-1.0.1.jar!/:na]
at org.elasticsearch.index.shard.service.InternalIndexShard.prepareIndex(InternalIndexShard.java:391) ~[elasticsearch-1.0.1.jar!/:na]
at org.elasticsearch.action.index.TransportIndexAction.shardOperationOnPrimary(TransportIndexAction.java:203) ~[elasticsearch-1.0.1.jar!/:na]
at org.elasticsearch.action.support.replication.TransportShardReplicationOperationAction$AsyncShardOperationAction.performOnPrimary(TransportShardReplicationOperationAction.java:556) ~[elasticsearch-1.0.1.jar!/:na]
at org.elasticsearch.action.support.replication.TransportShardReplicationOperationAction$AsyncShardOperationAction$1.run(TransportShardReplicationOperationAction.java:426) [elasticsearch-1.0.1.jar!/:na]
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142) [na:1.8.0_131]
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617) [na:1.8.0_131]
at java.lang.Thread.run(Thread.java:748) [na:1.8.0_131]
07/08/2017 04:02:19.189 ERROR [ops] [5zrbbeqm4sr9lgznuy9niekb] [] [hystrix-ApiCreatePool-3]  /internal-api/contact-centers/78d61955-1eb9-4957-918d-8451461d7250/recordings  c.g.g.v.a.t.c.CreateCallRecordingApiTaskV2  [color=red]Error indexing call[/color] recording CallRecording(id=FRFQ23B0AD5KF6RPTDRG95IKI0008H7K, ccid=78d61955-1eb9-4957-918d-8451461d7250, callerPhoneNumber=2753, dialedPhoneNumber=90996424571, startTime=Fri Jul 07 15:00:41 ECT 2017, mediaFiles=[CRMediaFile(mediaDescriptor=CRStorageMediaDescriptor(storage=webDAV, storageVersion=null, path=http://10.100.47.75:9090/recordings/FRFQ23B0AD5KF6RPTDRG95IKI0008H7K_2017-07-07_20-00-41-00B20195-10002B0D-00000001.mp3, data=null, auth=null), folder=null, startTime=Fri Jul 07 15:00:41 ECT 2017, stopTime=Fri Jul 07 15:00:51 ECT 2017, callUUID=FRFQ23B0AD5KF6RPTDRG95IKI0008H7K, mfUUID=ee4b193d-c9d6-426d-94b5-c94619ab6dda, mediaId=FRFQ23B0AD5KF6RPTDRG95IKI0008H7K_2017-07-07_20-00-41-00B20195-10002B0D-00000001.mp3, type=audio/mp3, duration=9781, tenant=Resources, ivrprofile=IVRDefault, size=18648, parameters={dateTime=2017-07-07T20:00:41Z, agentId=1278, rp.speechminer_auth=***:***, rp.speechminer_uri=http://10.100.47.72/interactionreceiver/, sipsAppName=SIPServerGYE, recordDN=2753, connId=00a002a1eecf2987, dnis=90996424571, id=FRFQ23B0AD5KF6RPTDRG95IKI0008H7K_2017-07-07_20-00-41, ani=2753, username=mzambrano, callUuid=FRFQ23B0AD5KF6RPTDRG95IKI0008H7K}, masks=null, pkcs7=null, certAlias=null, partitions=[], accessgroups=[/Jsupervisor])], eventHistory=[EventDescriptor(occurredAt=Fri Jul 07 15:00:26 ECT 2017, calluuid=FRFQ23B0AD5KF6RPTDRG95IKI0008H7K, eventId=null, contact=CRContact(type=User, phoneNumber=2753, userName=mzambrano, firstName=Miguel, lastName=Zambrano), event=Joined, data=null), EventDescriptor(occurredAt=Fri Jul 07 15:00:51 ECT 2017, calluuid=FRFQ23B0AD5KF6RPTDRG95IKI0008H7K, eventId=null, contact=CRContact(type=User, phoneNumber=2753, userName=mzambrano, firstName=Miguel, lastName=Zambrano), event=Left, data=null), EventDescriptor(occurredAt=Fri Jul 07 15:00:41 ECT 2017, calluuid=FRFQ23B0AD5KF6RPTDRG95IKI0008H7K, eventId=null, contact=CRContact(type=External, phoneNumber=9090996424571, userName=null, firstName=null, lastName=null), event=Joined, data=null), EventDescriptor(occurredAt=Fri Jul 07 15:00:51 ECT 2017, calluuid=FRFQ23B0AD5KF6RPTDRG95IKI0008H7K, eventId=null, contact=CRContact(type=External, phoneNumber=9090996424571, userName=null, firstName=null, lastName=null), event=Left, data=null), EventDescriptor(occurredAt=Fri Jul 07 15:00:26 ECT 2017, calluuid=FRFQ23B0AD5KF6RPTDRG95IKI0008H7K, eventId=2017-07-07T20:00:26.017Z_1499457626_FRFQ23B0AD5KF6RPTDRG95IKI0008H7K, contact=null, event=Data, data={added={IW_CaseUid=bad577f9-eace-463a-902b-2ad2e68a717c, BusinessCall=0, IW_BundleUid=8fee53c4-9c78-4853-8906-33da7864246a}}), EventDescriptor(occurredAt=Fri Jul 07 15:00:28 ECT 2017, calluuid=FRFQ23B0AD5KF6RPTDRG95IKI0008H7K, eventId=2017-07-07T20:00:28.350Z_1499457628_FRFQ23B0AD5KF6RPTDRG95IKI0008H7K, contact=null, event=Data, data={added={DispositionCode=LlamadaEfectiva}}), EventDescriptor(occurredAt=Fri Jul 07 15:00:28 ECT 2017, calluuid=FRFQ23B0AD5KF6RPTDRG95IKI0008H7K, eventId=2017-07-07T20:00:28.657Z_1499457628_FRFQ23B0AD5KF6RPTDRG95IKI0008H7K, contact=null, event=Data, data={added={ContactId=00012aCJAKAY3PFA}}), EventDescriptor(occurredAt=Fri Jul 07 15:00:41 ECT 2017, calluuid=FRFQ23B0AD5KF6RPTDRG95IKI0008H7K, eventId=2017-07-07T20:00:41.367Z_1499457641_FRFQ23B0AD5KF6RPTDRG95IKI0008H7K, contact=null, event=Data, data={added={WrapUpTime=0, OtherTrunkName=SP_DENWA_10}}), EventDescriptor(occurredAt=Fri Jul 07 15:00:41 ECT 2017, calluuid=FRFQ23B0AD5KF6RPTDRG95IKI0008H7K, eventId=2017-07-07T20:00:41.767Z_1499457641_FRFQ23B0AD5KF6RPTDRG95IKI0008H7K, contact=null, event=Data, data={added={GSIP_RECORD=ON, GSIP_REC_FN=FRFQ23B0AD5KF6RPTDRG95IKI0008H7K_2017-07-07_20-00-41}}), EventDescriptor(occurredAt=Fri Jul 07 15:00:51 ECT 2017, calluuid=FRFQ23B0AD5KF6RPTDRG95IKI0008H7K, eventId=2017-07-07T20:00:51.437Z_1499457651_FRFQ23B0AD5KF6RPTDRG95IKI0008H7K, contact=null, event=Data, data={deleted={GSIP_RECORD=ON, WrapUpTime=0}})], labels=[], nonDelete=false, callType=Outbound, region=us, deleteCandidate=false)
com.genesyslab.cloud.v2.exceptions.CloudException: Failed to write index to the search node
at com.genesyslab.gir.data.AbstractRecordingSearchService.saveRecordingInformation(AbstractRecordingSearchService.java:234) ~[gir.jar!/:8.5.2]
at com.genesyslab.gir.v2.api.tasks.callrecording.CreateCallRecordingApiTaskV2.onExecute(CreateCallRecordingApiTaskV2.java:158) [gir.jar!/:8.5.2]
at com.genesyslab.gir.v2.api.tasks.callrecording.CreateCallRecordingApiTaskV2.onExecute(CreateCallRecordingApiTaskV2.java:45) [gir.jar!/:8.5.2]
at com.genesyslab.gir.v2.api.tasks.AbstractApiTask$ExecutionFailureExceptionAwareHystrixCommand.run(AbstractApiTask.java:384) ~[gir.jar!/:8.5.2]
at com.genesyslab.gir.v2.api.tasks.AbstractApiTask$ExecutionFailureExceptionAwareHystrixCommand.run(AbstractApiTask.java:361) ~[gir.jar!/:8.5.2]
at com.netflix.hystrix.HystrixCommand.executeCommand(HystrixCommand.java:1281) ~[hystrix-core-1.3.16.jar!/:na]
at com.netflix.hystrix.HystrixCommand.access$2300(HystrixCommand.java:103) ~[hystrix-core-1.3.16.jar!/:na]
at com.netflix.hystrix.HystrixCommand$5.call(HystrixCommand.java:1186) ~[hystrix-core-1.3.16.jar!/:na]
at com.genesyslab.cloud.v2.hystrix.GenesysHystrixContextCallable.call(GenesysHystrixContextCallable.java:32) ~[gir.jar!/:8.5.2]
at com.netflix.hystrix.strategy.concurrency.HystrixContextCallable.call(HystrixContextCallable.java:51) ~[hystrix-core-1.3.16.jar!/:na]
at java.util.concurrent.FutureTask.run(FutureTask.java:266) ~[na:1.8.0_131]
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142) ~[na:1.8.0_131]
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617) ~[na:1.8.0_131]
at java.lang.Thread.run(Thread.java:748) ~[na:1.8.0_131]

Can you help with some questions:

- Is it strictly necessary to use ElasticSearch in your deploy? I ask because there is a parameter "enableElasticSearchIndexing" in the https://docs.genesys.com/Documentation/HTCC/8.5.2/Dep/HTCCConfigurationOptionsReference that suggests it could be turned off. (I assume if it could be turned off, there would be repercussions in performance)

- I checked that OP changed the .json to dismiss the first error of whitespace. I assume that this is the .json that exists in the config-templates? Because I can't find the one with the name changed by OP (default-mapping.json). Also the whitespace_lowecase comes by default in the installation package, is it ok to change it?

- Can you please help me with an example of the # Elasticsearch section of the application.yaml? We currently are having problems with the "nodes:" part.

Thanks in advance for your help.

Best regards,

Juan
« Last Edit: July 09, 2017, 12:50:01 AM by juagarod »

Offline Kubig

  • Hero Member
  • *****
  • Posts: 2755
  • Karma: 44
Re: Could not POST metadata to HTCC
« Reply #18 on: July 09, 2017, 04:46:06 AM »
ElasticSearch is not working properly as you can see in the log fragment. Check the ES status and configuration. Also check if the libraries for ES are present on Cassandra level as well.

Offline juagarod

  • Newbie
  • *
  • Posts: 3
  • Karma: 0
Re: Could not POST metadata to HTCC
« Reply #19 on: July 09, 2017, 10:16:22 AM »
Thanks Kubig,

I centered my attention into the Elastic Search configuration. The ES deployment seemed to have no issues at all (it was a stand-alone deploy), so finally I made some tweaks following the doc for the application.yaml Elastic Search part and voilá:

2017-07-09 04:36:31,171 http_client DEBUG Cookie header added
2017-07-09 04:36:33,078 metadata_client DEBUG POST: http://10.100.47.75:8080/internal-api/contact-centers/78d61955-1eb9-4957-918d-8451461d7250/recordings: Response Status: 200
2017-07-09 04:36:33,094 process_metadata DEBUG Wait for call to end: 10
2017-07-09 04:36:38,141 config_server DEBUG no more events from config server
2017-07-09 04:36:43,109 process_metadata DEBUG Wait for call to end: 10
2017-07-09 04:36:53,125 process_metadata DEBUG Wait for call to end: 10
2017-07-09 04:37:03,141 process_metadata DEBUG Wait for call to end: 10
2017-07-09 04:37:13,157 process_metadata DEBUG processing record: FRFQ23B0AD5KF6RPTDRG95IKI0008N2L
2017-07-09 04:37:13,173 metadatarecord DEBUG Found matched username for recordDN: mzambrano
2017-07-09 04:37:13,173 process_metadata DEBUG Sending to SM: FRFQ23B0AD5KF6RPTDRG95IKI0008N2L
2017-07-09 04:37:15,407 metadata_client DEBUG POST: http://10.100.47.72/interactionreceiver/: Response Status: 200

We are currently trying to configure a Genesys user to check the recording and finish the cycle, but it gives me an error in authentication in the SM... Is there a catch in configuring Genesys users to enter SM?

Best regards,

Juan


Offline Kubig

  • Hero Member
  • *****
  • Posts: 2755
  • Karma: 44
Re: Could not POST metadata to HTCC
« Reply #20 on: July 10, 2017, 03:58:42 AM »
You have to import the objects related to the SM into Genesys configuration (like access groups,role,etc) and atd the specified user as a member. All is described in available documentation

Offline nhannt

  • Newbie
  • *
  • Posts: 39
  • Karma: 0
Re: Could not POST metadata to HTCC
« Reply #21 on: July 10, 2017, 12:17:47 PM »
Hi  juagarod,

How to fix issue "Could not POST metadata to HTCC"? Do you change gir.jar?
Changed: default-mapping.json
        "CR.userName":{
            "type":"string",
            "index":"analyzed",
            "analyzer":"whitespace_lowercase"
to
        "CR.userName":{
            "type":"string",
            "index":"analyzed",
            "analyzer":"whitespace"
And how do you config to metadata sent to Interaction Receiver?
Please share me procedure to install SpeechMiner and configuration on Recording Processor? Thank you very much!

About login SM, you can try with default user/pass : administrator/ Enterprise.

Regard, Nhan

Offline Kubig

  • Hero Member
  • *****
  • Posts: 2755
  • Karma: 44
Re: Could not POST metadata to HTCC
« Reply #22 on: July 10, 2017, 12:26:39 PM »
Never change the gir.jar file as it is not supported at all!!

According to last reaction I suspect he changed the ES client configuration within application.yaml on IRWS level.

Entire procedure how to install GIR/SM is described on https://docs.genesys.com in deep detail - so, just follow the documentation.

Offline nhannt

  • Newbie
  • *
  • Posts: 39
  • Karma: 0
Re: Could not POST metadata to HTCC
« Reply #23 on: July 10, 2017, 12:37:45 PM »
[quote author=juagarod link=topic=10454.msg47603#msg47603 date=1499595382]
Thanks Kubig,

I centered my attention into the Elastic Search configuration. The ES deployment seemed to have no issues at all (it was a stand-alone deploy), so finally I made some tweaks following the doc for the application.yaml Elastic Search part and voilá:

2017-07-09 04:36:31,171 http_client DEBUG Cookie header added
2017-07-09 04:36:33,078 metadata_client DEBUG POST: http://10.100.47.75:8080/internal-api/contact-centers/78d61955-1eb9-4957-918d-8451461d7250/recordings: Response Status: 200
2017-07-09 04:36:33,094 process_metadata DEBUG Wait for call to end: 10
2017-07-09 04:36:38,141 config_server DEBUG no more events from config server
2017-07-09 04:36:43,109 process_metadata DEBUG Wait for call to end: 10
2017-07-09 04:36:53,125 process_metadata DEBUG Wait for call to end: 10
2017-07-09 04:37:03,141 process_metadata DEBUG Wait for call to end: 10
2017-07-09 04:37:13,157 process_metadata DEBUG processing record: FRFQ23B0AD5KF6RPTDRG95IKI0008N2L
2017-07-09 04:37:13,173 metadatarecord DEBUG Found matched username for recordDN: mzambrano
2017-07-09 04:37:13,173 process_metadata DEBUG Sending to SM: FRFQ23B0AD5KF6RPTDRG95IKI0008N2L
2017-07-09 04:37:15,407 metadata_client DEBUG POST: http://10.100.47.72/interactionreceiver/: Response Status: 200

We are currently trying to configure a Genesys user to check the recording and finish the cycle, but it gives me an error in authentication in the SM... Is there a catch in configuring Genesys users to enter SM?

Best regards,

Juan
[/quote]

Hi Juan,
Can you share some change that you see is importain and impact to sending metadata to SM and HTCC?
Thank you very much!
Br, Nhan.

Offline Kubig

  • Hero Member
  • *****
  • Posts: 2755
  • Karma: 44
Re: Could not POST metadata to HTCC
« Reply #24 on: July 10, 2017, 12:42:31 PM »
What is your ES deployment (standalone, embedded)? What is the ES configuration? What is IRWS configuration? Try to be more specific in your problem description. Nobody will share entire configuration as it is not logic as each solution/platform is little bit different and use different architecture, model, etc. You are mixing up things together, try to analyse it step-by-step - so, start on IVR profile, ICON, MCP, WebDAV, RPS, IRWS, IR, SpeechMiner UI.,,,

Offline juagarod

  • Newbie
  • *
  • Posts: 3
  • Karma: 0
Re: Could not POST metadata to HTCC
« Reply #25 on: July 10, 2017, 03:53:45 PM »
Hi nhant / Kubig,

First of all, I installed the last version of RWS with Cassandra 2.2, and also my Elastic Search is 1.7.6 standalone (installed with .rpm).

And yes, Kubig is right about the change I did. I don't have the .json that you have (don't know why) so I didn't change it, but I configured correctly the Elastic Search part of the application.yaml. Taking special considerations in this parameters:

- crClusterName

Default Value: None
Valid Values: A valid cluster name
Mandatory: Yes
Specifies the name of the cluster to enable search functionality in Elasticsearch. The value must be the same for all Interaction Recording Web Services nodes in the cluster and must match the cluster.name parameter configured in elasticsearch.yml for each Elasticsearch node. For example, if there are five nodes in the Interaction Recording Web Services cluster, all five nodes must have the same crClusterName value.

- useTransportClient
Mandatory: No
Default Value: true
Specifies whether Interaction Recording Web Services should use a transport client for Elasticsearch.

- transportClient
Mandatory: Yes, if useTransportClient is true.
Values specified in TransportClientSettings
Specifies the configuration Interaction Recording Web Services should use for the transport client. For details see TransportClientSettings in the next table.

- nodes
Mandatory: Yes, if useTransportClient is true.
Default: null
Specifies the list of Elasticsearch nodes the transport client should connect to.

Since I used a standalone ES deploy I used "transportclient" true. Pay special attention in the nodes parameter since the yaml is really picky with whitespace. Use the example in the genesys doc so the RWS starts without issue.

Tell us how it goes,

Best regards,

Juan

Offline nhannt

  • Newbie
  • *
  • Posts: 39
  • Karma: 0
Re: Could not POST metadata to HTCC
« Reply #26 on: July 11, 2017, 01:26:05 AM »
[quote author=nhannt link=topic=10454.msg47591#msg47591 date=1499395986]
Hi cavagnaro,

After I changed IVR Profiles option:
gvp.general/service-type
gvp.general
service-type
record    #old value: voicexml

Metadata have been sent to Interaction Receiver, But it still response error code 202:
2017-07-07 09:38:39,700 metadatarecord DEBUG Could not find rp.speechminer_uri in record.
2017-07-07 09:38:39,700 metadatarecord DEBUG Could not find rp.speechminer_auth in record.
2017-07-07 09:38:39,700 process_metadata WARNING Could not find SM server info. Using default SM. H7RIE87ME140R1MTUF2DC2P5U8000009
2017-07-07 09:38:39,700 process_metadata DEBUG Sending to SM: H7RIE87ME140R1MTUF2DC2P5U8000009
2017-07-07 09:38:39,716 metadata_client DEBUG POST: http://172.16.1.21/interactionreceiver: Response Status: 202
2017-07-07 09:38:39,716 process_metadata DEBUG Removing metadata record:
2017-07-07 09:38:39,716 process_metadata DEBUG None
2017-07-07 09:38:39,716 process_metadata INFO 0 messages have been sent to HTCC.

Response in wireshark:
16315 848.926685000 172.16.1.27 172.16.1.21 HTTP 452 POST /interactionreceiver HTTP/1.1  (application/json)
16317 848.935156000 172.16.1.21 172.16.1.27 HTTP 395 HTTP/1.1 202 Accepted  (text/html)

Failed to process metadata. \r\n
ProgramId does not exist. External ID: H7RIE87ME140R1MTUF2DC2P5U8000008 not processed

Can you help me to check this issue?

Thanks, Nhan
[/quote]

Hi Juan,

Now, i'm facing with issue above. I tried change license as link:
<AnalyticsEnabled>True</AnalyticsEnabled>
https://genesyspartner.force.com/customercare/pkb_Home?id=kA4U00000008si6KAA&l=en_US&fs=Search&pn=1

Error "ProgramId does not exist" have been fixed. But we are facing with different issue:
[code]2017-07-08 18:00:52,365 process_metadata DEBUG Wait for call to end: 4
2017-07-08 18:00:56,381 process_metadata DEBUG processing record: H7RIE87ME140R1MTUF2DC2P5U800000T
2017-07-08 18:00:56,381 metadatarecord DEBUG Found matched username for recordDN: nhannt
2017-07-08 18:00:56,397 metadatarecord DEBUG Could not find rp.speechminer_uri in record.
2017-07-08 18:00:56,397 metadatarecord DEBUG Could not find rp.speechminer_auth in record.
2017-07-08 18:00:56,397 process_metadata WARNING Could not find SM server info. Using default SM. H7RIE87ME140R1MTUF2DC2P5U800000T
2017-07-08 18:00:56,397 process_metadata DEBUG Sending to SM: H7RIE87ME140R1MTUF2DC2P5U800000T
2017-07-08 18:00:56,397 http_client DEBUG Failure: POST RECORD: http://172.16.1.20/interactionreceiver
2017-07-08 18:00:56,397 http_client DEBUG Headers: {'status': '403', 'content-length': '1233', 'x-aspnet-version': '4.0.30319', 'x-powered-by': 'ASP.NET', 'server': 'Microsoft-IIS/8.0', 'cache-control': 'private', 'date': 'Sat, 08 Jul 2017 18:00:57 GMT', 'content-type': 'text/html'}
2017-07-08 18:00:56,397 http_client WARNING Content: <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">

<html xmlns="http://www.w3.org/1999/xhtml">

<head>

<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1"/>

<title>403 - Forbidden: Access is denied.</title>

<style type="text/css">

<!--

body{margin:0;font-size:.7em;font-family:Verdana, Arial, Helvetica, sans-serif;background:#EEEEEE;}

fieldset{padding:0 15px 10px 15px;}

h1{font-size:2.4em;margin:0;color:#FFF;}

h2{font-size:1.7em;margin:0;color:#CC0000;}

h3{font-size:1.2em;margin:10px 0 0 0;color:#000000;}

#header{width:96%;margin:0 0 0 0;padding:6px 2% 6px 2%;font-family:"trebuchet MS", Verdana, sans-serif;color:#FFF;

background-color:#555555;}

#content{margin:0 0 0 2%;position:relative;}

.content-container{background:#FFF;width:96%;margin-top:8px;padding:10px;position:relative;}

-->

</style>

</head>

<body>

<div id="header"><h1>Server Error</h1></div>

<div id="content">

<div class="content-container"><fieldset>

  <h2>403 - Forbidden: Access is denied.</h2>

  <h3>You do not have permission to view this directory or page using the credentials that you supplied.</h3>

</fieldset></div>

</div>

</body>

</html>


2017-07-08 18:00:56,397 process_metadata INFO Response: 403. Could not POST metadata to SpeechMiner: H7RIE87ME140R1MTUF2DC2P5U800000T
2017-07-08 18:00:56,397 process_metadata INFO Back up metadata record into [D:\gcti\Recording Processor Script\failed\9f48899a-adf8-471b-aeee-e136fd3f39e7\H7RIE87ME140R1MTUF2DC2P5U800000T_20170708-180056.json] was successful.
2017-07-08 18:00:56,397 process_metadata INFO 0 messages have been sent to SpeechMiner.
2017-07-08 18:00:56,397 root ERROR error in processing thread
Traceback (most recent call last):
  File "D:\gcti\Recording Processor Script\rp\process_metadata_thread.py", line 202, in run
    wait_timeout = self.process(htcc_client, sm_client)
  File "D:\gcti\Recording Processor Script\rp\process_metadata_thread.py", line 657, in process
    + dbrecord.get_metadata_str_mask_credentials())
TypeError: cannot concatenate 'str' and 'NoneType' objects[/code]

Can you help to solve this issue? Thanks, Nhan.

Offline Kubig

  • Hero Member
  • *****
  • Posts: 2755
  • Karma: 44
Re: Could not POST metadata to HTCC
« Reply #27 on: July 11, 2017, 06:59:11 AM »
You couldn't change the license file manually, the file became invalid by this step - be aware of. Your problem is still that the interaction's metadata does not contain valid parameters for connection to the SM (URI and credentials). As I have mentioned before, check the entire interaction flow on GIR level to find out the root-cause.

Offline nhannt

  • Newbie
  • *
  • Posts: 39
  • Karma: 0
Re: Could not POST metadata to HTCC
« Reply #28 on: July 12, 2017, 11:51:24 AM »
Hi juagarod,

After change URI interactionreceiver, i got new error. Do you have any idea to fix this issue?

2017-07-12 18:43:59,875 http_client DEBUG Failure: POST RECORD: http://172.16.1.20/interactionreceiver/webservices/Calls.asmx
2017-07-12 18:43:59,875 http_client DEBUG Headers: {'status': '500', 'content-length': '509', 'x-aspnet-version': '4.0.30319', 'x-powered-by': 'ASP.NET', 'server': 'Microsoft-IIS/8.0', 'cache-control': 'private', 'date': 'Wed, 12 Jul 2017 18:43:59 GMT', 'content-type': 'application/soap+xml; charset=utf-8'}
2017-07-12 18:43:59,875 http_client WARNING Content: <?xml version="1.0" encoding="utf-8"?><soap:Envelope xmlns:soap="http://www.w3.org/2003/05/soap-envelope" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema"><soap:Body><soap:Fault><soap:Code><soap:Value>soap:Receiver</soap:Value></soap:Code><soap:Reason><soap:Text xml:lang="en">Server was unable to process request. ---&gt; Data at the root level is invalid. Line 1, position 1.</soap:Text></soap:Reason><soap:Detail /></soap:Fault></soap:Body></soap:Envelope>
2017-07-12 18:43:59,875 process_metadata INFO Response: 500. Could not POST metadata to SpeechMiner: SF6IM29E252A51U8P2U9T2SGT4000027
2017-07-12 18:43:59,877 process_metadata INFO Back up metadata record into [D:\gcti\Recording Processor Script\failed\9f48899a-adf8-471b-aeee-e136fd3f39e7\SF6IM29E252A51U8P2U9T2SGT4000027_20170712-184359.json] was successful.
2017-07-12 18:43:59,877 process_metadata INFO 0 messages have been sent to SpeechMiner.
2017-07-12 18:43:59,877 process_metadata INFO 0 messages have been sent to HTCC.
2017-07-12 18:43:59,878 root ERROR error in processing thread
Traceback (most recent call last):
  File "D:\gcti\Recording Processor Script\rp\process_metadata_thread.py", line 202, in run
    wait_timeout = self.process(htcc_client, sm_client)
  File "D:\gcti\Recording Processor Script\rp\process_metadata_thread.py", line 657, in process
    + dbrecord.get_metadata_str_mask_credentials())
TypeError: cannot concatenate 'str' and 'NoneType' objects

Thanks in advance for your help,

Br, Nhan

Offline Kubig

  • Hero Member
  • *****
  • Posts: 2755
  • Karma: 44
Re: Could not POST metadata to HTCC
« Reply #29 on: July 12, 2017, 12:38:44 PM »
This cannot work, the URL to the IR is wrong. Please, check all parts step-by-step as have been suggested and mentioned many times before change anything and post new topic.