using Basic Authentication on a stand alone (no cloud) windows platform Solr 8.8.2 installation.
the crawl is successful and the error is thrown in the committer, SSL is turned off (for the moment)
the user name and password are clear text - same as the basic auth login to the Solr admin
the core is called sops
my committer code is:
<committer class="com.norconex.committer.solr.SolrCommitter">
<solrURL>http://mysolr:8983/solr/sops</solrURL>
<username>solr_admin</username>
<password>mypassword</password>
<queueDir>${workDir}/committer-queue</queueDir>
</committer>
from the norconex log file
[non-job]: 2021-04-27 19:52:54 INFO - Starting execution.
[non-job]: 2021-04-27 19:52:54 INFO - Version: Norconex HTTP Collector 2.9.0 (Norconex Inc.)
[non-job]: 2021-04-27 19:52:54 INFO - Version: Norconex Collector Core 1.10.0 (Norconex Inc.)
[non-job]: 2021-04-27 19:52:54 INFO - Version: Norconex Importer 2.10.0 (Norconex Inc.)
[non-job]: 2021-04-27 19:52:54 INFO - Version: Norconex JEF 4.1.2 (Norconex Inc.)
[non-job]: 2021-04-27 19:52:54 INFO - Version: Norconex Committer Core 2.1.3 (Norconex Inc.)
[non-job]: 2021-04-27 19:52:54 INFO - Version: Norconex Committer Solr 2.4.0 (Norconex Inc.)
...
xyz crawler: 2021-04-27 19:53:49 INFO - Committing 56 files
xyz crawler: 2021-04-27 19:53:50 INFO - Sending 56 documents to Solr for update/deletion.
xyz crawler: 2021-04-27 19:53:50 INFO - xyz crawler: Crawler executed in 56 seconds.
xyz crawler: 2021-04-27 19:53:50 INFO - xyz crawler: Closing sitemap store...
xyz crawler: 2021-04-27 19:53:50 ERROR - Execution failed for job: xyz crawler
com.norconex.committer.core.CommitterException: Cannot index document batch to Solr.
at com.norconex.committer.solr.SolrCommitter.commitBatch(SolrCommitter.java:400)
at com.norconex.committer.core.AbstractBatchCommitter.commitAndCleanBatch(AbstractBatchCommitter.java:179)
at com.norconex.committer.core.AbstractBatchCommitter.commitComplete(AbstractBatchCommitter.java:159)
at com.norconex.committer.core.AbstractFileQueueCommitter.commit(AbstractFileQueueCommitter.java:233)
at com.norconex.collector.core.crawler.AbstractCrawler.execute(AbstractCrawler.java:274)
at com.norconex.collector.core.crawler.AbstractCrawler.doExecute(AbstractCrawler.java:228)
at com.norconex.collector.core.crawler.AbstractCrawler.startExecution(AbstractCrawler.java:184)
at com.norconex.jef4.job.AbstractResumableJob.execute(AbstractResumableJob.java:49)
at com.norconex.jef4.suite.JobSuite.runJob(JobSuite.java:354)
at com.norconex.jef4.suite.JobSuite.doExecute(JobSuite.java:293)
at com.norconex.jef4.suite.JobSuite.execute(JobSuite.java:166)
at com.norconex.collector.core.AbstractCollector.start(AbstractCollector.java:150)
at com.norconex.collector.core.AbstractCollectorLauncher.launch(AbstractCollectorLauncher.java:95)
at com.norconex.collector.http.HttpCollector.main(HttpCollector.java:74)
Caused by: org.apache.solr.client.solrj.impl.HttpSolrClient$RemoteSolrException: Error from server at http://mysolr:8983/solr/sops: Expected mime type application/octet-stream but got text/html.
<title>Error 401 require authentication</title>
HTTP ERROR 401 require authentication
| URI: | /solr/sops/update |
| STATUS: | 401 |
| MESSAGE: | require authentication |
| SERVLET: | default |
at org.apache.solr.client.solrj.impl.HttpSolrClient.executeMethod(HttpSolrClient.java:629)
at org.apache.solr.client.solrj.impl.HttpSolrClient.request(HttpSolrClient.java:265)
at org.apache.solr.client.solrj.impl.HttpSolrClient.request(HttpSolrClient.java:248)
at org.apache.solr.client.solrj.SolrRequest.process(SolrRequest.java:211)
at org.apache.solr.client.solrj.SolrClient.commit(SolrClient.java:504)
at org.apache.solr.client.solrj.SolrClient.commit(SolrClient.java:479)
at com.norconex.committer.solr.SolrCommitter.commitBatch(SolrCommitter.java:397)
using Basic Authentication on a stand alone (no cloud) windows platform Solr 8.8.2 installation.
the crawl is successful and the error is thrown in the committer, SSL is turned off (for the moment)
the user name and password are clear text - same as the basic auth login to the Solr admin
the core is called sops
my committer code is:
from the norconex log file
[non-job]: 2021-04-27 19:52:54 INFO - Starting execution.
<title>Error 401 require authentication</title>[non-job]: 2021-04-27 19:52:54 INFO - Version: Norconex HTTP Collector 2.9.0 (Norconex Inc.)
[non-job]: 2021-04-27 19:52:54 INFO - Version: Norconex Collector Core 1.10.0 (Norconex Inc.)
[non-job]: 2021-04-27 19:52:54 INFO - Version: Norconex Importer 2.10.0 (Norconex Inc.)
[non-job]: 2021-04-27 19:52:54 INFO - Version: Norconex JEF 4.1.2 (Norconex Inc.)
[non-job]: 2021-04-27 19:52:54 INFO - Version: Norconex Committer Core 2.1.3 (Norconex Inc.)
[non-job]: 2021-04-27 19:52:54 INFO - Version: Norconex Committer Solr 2.4.0 (Norconex Inc.)
...
xyz crawler: 2021-04-27 19:53:49 INFO - Committing 56 files
xyz crawler: 2021-04-27 19:53:50 INFO - Sending 56 documents to Solr for update/deletion.
xyz crawler: 2021-04-27 19:53:50 INFO - xyz crawler: Crawler executed in 56 seconds.
xyz crawler: 2021-04-27 19:53:50 INFO - xyz crawler: Closing sitemap store...
xyz crawler: 2021-04-27 19:53:50 ERROR - Execution failed for job: xyz crawler
com.norconex.committer.core.CommitterException: Cannot index document batch to Solr.
at com.norconex.committer.solr.SolrCommitter.commitBatch(SolrCommitter.java:400)
at com.norconex.committer.core.AbstractBatchCommitter.commitAndCleanBatch(AbstractBatchCommitter.java:179)
at com.norconex.committer.core.AbstractBatchCommitter.commitComplete(AbstractBatchCommitter.java:159)
at com.norconex.committer.core.AbstractFileQueueCommitter.commit(AbstractFileQueueCommitter.java:233)
at com.norconex.collector.core.crawler.AbstractCrawler.execute(AbstractCrawler.java:274)
at com.norconex.collector.core.crawler.AbstractCrawler.doExecute(AbstractCrawler.java:228)
at com.norconex.collector.core.crawler.AbstractCrawler.startExecution(AbstractCrawler.java:184)
at com.norconex.jef4.job.AbstractResumableJob.execute(AbstractResumableJob.java:49)
at com.norconex.jef4.suite.JobSuite.runJob(JobSuite.java:354)
at com.norconex.jef4.suite.JobSuite.doExecute(JobSuite.java:293)
at com.norconex.jef4.suite.JobSuite.execute(JobSuite.java:166)
at com.norconex.collector.core.AbstractCollector.start(AbstractCollector.java:150)
at com.norconex.collector.core.AbstractCollectorLauncher.launch(AbstractCollectorLauncher.java:95)
at com.norconex.collector.http.HttpCollector.main(HttpCollector.java:74)
Caused by: org.apache.solr.client.solrj.impl.HttpSolrClient$RemoteSolrException: Error from server at http://mysolr:8983/solr/sops: Expected mime type application/octet-stream but got text/html.
HTTP ERROR 401 require authentication