Troubleshooting: Authentication error messages in search utilities

Authentication errors might occur when you run WebSphere Commerce Search utilities with application security enabled.

Problem

Authentication errors that occur when you run search utilities, such as the di-buildindex utility, are not descriptive.

For example:

org.apache.solr.client.solrj.impl.HttpSolrServer$RemoteSolrException: Expected mime type application/octet-stream but got text/plain.

Solution

The Solr server log file contains more detailed information. For example:

If you specify an incorrect user name in the utility, it is denoted by the following error message:

000000bd LTPAServerObj E   SECJ0369E: Authentication failed when using LTPA. The exception is 
com.ibm.websphere.wim.exception.PasswordCheckFailedException: CWWIM4537E  No principal is found from the 'configadmin1' principal name..
000000bd LTPAServerObj E   SECJ0369E: Authentication failed when using LTPA. The exception is 
com.ibm.websphere.wim.exception.PasswordCheckFailedException: CWWIM4537E  No principal is found from the 'configadmin1' principal name..
If you specify an incorrect password in the utility, it is denoted by the following error message:

000000bd LTPAServerObj E   SECJ0369E: Authentication failed when using LTPA. The exception is 
com.ibm.websphere.wim.exception.PasswordCheckFailedException: CWWIM4513E  The password match failed for the 'configadmin' principal name..
000000bd LTPAServerObj E   SECJ0369E: Authentication failed when using LTPA. The exception is 
com.ibm.websphere.wim.exception.PasswordCheckFailedException: CWWIM4513E  The password match failed for the 'configadmin' principal name..

To resolve this issue, specify a correct user name and password combination when you run the search utilities.