Skip to Content
0
Former Member
May 11, 2016 at 03:28 PM

Unable to authenticate to Target System [v5.6]

258 Views

Is there any reason why this error happens during publication to hybris, while the credentials are correct? Such as networking, environment issues etc? During deployments, we see this happening a few times, without any changes to the target system credentials and DH IP, port.

hybris log:

 INFO   | jvm 1    | main    | 2016/05/11 13:20:29.253 | WARN  [hybrisHTTP27] [10.32.94.78] [ContextInformationLoader] Cannot find CMSSite associated with current URL (http://10.33.5.123:992/datahubadapter/oauth/token?client_id=eic&client_secret=secret&grant_type=password&username=admin&password=nimda)!
 

Data Hub log:

 2016-05-11 13:20:29,168 [ERROR] [c.h.d.s.i.PublicationActionHandler] Publication #3 to target system HybrisInvoiceHistory failed
 com.hybris.datahub.api.publication.PublicationException: An error occurred during the export of impex file
         at com.hybris.datahub.core.adapter.impl.CoreAdapterService.targetSystemPublication(CoreAdapterService.java:108) ~[datahub-core-export-service-5.6.0.2-RC1.jar:na]
  ....
 Caused by: com.hybris.datahub.api.publication.PublicationException: Unable to authenticate to Target System
         at com.hybris.datahub.core.client.impl.DefaultExportClient.validateAuthResponse(DefaultExportClient.java:138) ~[datahub-core-export-service-5.6.0.2-RC1.jar:na]
 

EDIT: Restarted hybris server and problem was gone. Any explanation?