Problem Note 62259: Searches fail with the error "An error occurred during a request to a different service..." in SASĀ® Visual Investigator
When you search for items in the web application, the following error might occur:
An error occurred during a request to a different service. The error has been logged and the application administrators have been notified.
When you encounter this issue, the Search and Discovery (SAND) log contains the following error:
2018-04-11 15:06:47.319 ERROR 46042 --- [o-auto-1-exec-4] c.s.s.w.e.GlobalExceptionHandler : cetsas1@@huey(f72c326c) [318001c1549a91a5] Exception raised during request: url='/svi-sand/rest/searches' id='f08e5c08-bb57-4c9f-b4d4-5ed1a2412a6a' namespace='svi-sand-elasticsearch' key='RESPONSE_PARSING_ERROR.txt' text='The response from the Elasticsearch engine could not be parsed.' caused by='BaseRuntimeException:The response from the Elasticsearch engine could not be parsed.' caused by='JsonParseException:Unrecognized token 'Authentication': was expecting ('true', 'false' or 'null') at [Source: org.apache.http.conn.EofSensorInputStream@13dce397; line: 1, column: 16]' 2018-04-11 15:13:26.920 WARN 46042 --- [TaskBootstrap-9] c.s.a.bootstrap.RemoteRuleLoader : service [RETRIEVAL_EXCEPTION] An exception occurred while retrieving the existing rules: org.springframework.web.client.HttpServerErrorException: 500
The issue is caused because there is no value for the SIGNING_KEY parameter.
To work around this issue, complete the following steps:
- Open the opt/sas/viya/home/lib/elasticsearch/plugins/search-guard-5/sgconfig/sg_config.yml file.
- Set the SIGNING_KEY parameter to the JWT verifier key for SASLogon.
- Force Search Guard to pick up the new verification key by running the following command:
sudo /opt/sas/viya/home/lib/elasticsearch/plugins/search-guard-5/tools/sgadmin.sh --hostname localhost -ts /opt/sas/viya/config/etc/elasticsearch/default/certs/searchguard/trustedcerts.jk s -ks /opt/sas/viya/config/etc/elasticsearch/default/keys/searchguard/searchguard-key- admin.jks -icl -t config -f /opt/sas/viya/home/lib/elasticsearch/plugins/search-guard-5/sgconfig/sg_config.y ml
Operating System and Release Information
| SAS System | SAS Visual Investigator | Linux for x64 | 10.3.1 | | Viya | |
*
For software releases that are not yet generally available, the Fixed
Release is the software release in which the problem is planned to be
fixed.
When you encounter this problem, the following error might also occur in the Search and Discovery (SAND) log: "The response from the Elasticsearch engine could not be parsed."
| Type: | Problem Note |
| Priority: | high |
| Date Modified: | 2018-05-15 12:40:47 |
| Date Created: | 2018-05-02 13:40:52 |