cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

Unable to configure DH instance in backoffice.

nkjahan1388
Explorer
0 Likes
529

Hi All, I am seeing the following error in Hybris logs. I configured DH instance in Hybris and provided instance name and url. The url is accessible via postman, still seeing this in the logs.

[mWARN [hybrisHTTP116] [10.1.4.35] [DataHubStatusClient] Data Hub @ http://172.16.8.168:8080/datahub-webapp/v1 returned unexpected status. Status Code: 401, Status Message:

HTTP Status 401 - Bad credentials


type Status report

message Bad credentials

description This request requires HTTP authentication.


Apache Tomcat/7.0.65

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Likes

, hybris side please enter below to keys in the local.properties :

datahub.backoffice.rest.client.username.admin=dhadmin datahub.backoffice.rest.client.password.admin=datahub111

user name and password should be same what is there against below properties in Datahub local.properties :

datahub.security.basic.admin.user=dhadmin datahub.security.basic.admin.password=datahub111

Regards, Gaurav

nkjahan1388
Explorer
0 Likes

This worked! Thanks Gaurav!!!

Answers (2)

Answers (2)

Former Member
0 Likes

Hi, which way you install the DH? standalone or with recipe ?

VinayKumarS
Active Contributor
0 Likes

Open you apache tomcat.. check the tomcat-users.xml file check the credentials...

   <role rolename="manager-gui"/>
   <role rolename="manager-script"/>
   <role rolename="manager-jmx"/>
   <role rolename="manager-status"/>
   <role rolename="admin-gui"/>
   <role rolename="admin-script"/>
   <user username="admin" password="nimda" roles="manager-gui,manager-script,manager-jmx,manager-status,admin-gui,admin-script"/>
 
 
 

You should have these. then pass this userid and password admin nimda in your local.properties

Former Member
0 Likes

HI @Sam , Even I am facing the same issue , I recently upgraded hybris and datahub to 6.6. on datahub server, tomcat-users.xml file contains this entry. please see below entry.

then to it is giving the error, is there any other step as well ?

Regards, Gaurav

VinayKumarS
Active Contributor
0 Likes

you have to type http://localhost:8080/datahub-webapp/v1/status in the browser. If it is asking for userid and password. then try enter the password which you maintained in tomcat users xml. it should work.