Article - CS305575

Creating/deleting Solr core fails with "error HTTP ERROR 401" in Windchill PDMLink

Modified: 30-May-2024   


Applies To

  • Windchill PDMLink 11.1 to 12.1

Description

  • Creating Solr core failed with error
ERROR: Solr requires authentication for http://localhost:8085/solr/admin/info/system. Please supply valid credentials. HTTP code=401
  • Runinng: solr.cmd create -c wblib -n wblib -d <Solr_Home>\solr_schemas\wblib gets error
Error 401 Unauthorized / Error HTTP 401 Required Authentication 
  • Creating Solr core manually on Unix, it throws the following messages
HTTP/2 + SSL is not support in Java 8.
Configure Solr with HTTP/1.1 + SSL
SLF4J: Class path contains multiple SLF4J bindings.
SLF4J: Found binding in [jar:file:/apps/ptc/Windchill_11.1/SolrServer/solr/server/solr-webapp/webapp/WEB-INF/lib/tika-app.jar!/org/slf4j/impl/StaticLoggerBinder.class]
SLF4J: Found binding in [jar:file:/apps/ptc/Windchill_11.1/SolrServer/solr/server/lib/ext/log4j-slf4j-impl-2.13.2.jar!/org/slf4j/impl/StaticLoggerBinder.class]
SLF4J: See http://www.slf4j.org/codes.html#multiple_bindings for an explanation.
SLF4J: Actual binding is of type [org.slf4j.impl.Log4jLoggerFactory]
INFO  Setting javax.net.ssl.keyStorePassword
INFO  Setting javax.net.ssl.trustStorePassword

ERROR: Parse error : <html>
<head>
<meta http-equiv="Content-Type" content="text/html;charset=utf-8"/>
<title>Error 401 Unauthorized</title>
</head>
<body><h2>HTTP ERROR 401 Unauthorized</h2>
<table>
<tr><th>URI:</th><td>/solr/admin/info/system</td></tr>
<tr><th>STATUS:</th><td>401</td></tr>
<tr><th>MESSAGE:</th><td>Unauthorized</td></tr>
<tr><th>SERVLET:</th><td>default</td></tr>
</table>

</body>
</html>
This is a printer-friendly version of Article 305575 and may be out of date. For the latest version click CS305575