Hi,
I am seeing issues when I run dspace update-discovery-index using the
3.0-rc3 tag.
The dataset is the full DSpace@Cambridge dataset (217K items) migrated
from 1.6 up to 3.0-rc3 and visually checked by people who know the
data.
I run dspace update-discovery-index and see about 70% of the Solr
update index operations failing. (of the POST operations to Solr in
the access log file, over 70% have a status code of 400 (Bad
Request)).
On the SolrJ client site I see 1000s of traceback messages like [1]
and on the Solr server side I see a matching number of error messages
like [2]. In the second traceback the names of the fields eg "[g18,
g0, g5]", vary. I cant see any other errors in the logs and the
Discovery part of the UI appears to be working.
The code base is the 3.0-rc3 tag. I have made no changes to the DSpace
code. The only changes are to configuration files, and there are no
changes to the schema.xml for any of the Solr indexes, and no changes
to the config in the solr area other than to enable Discovery.
AFAIK, the metadata scheme is standard Dublin Core with no extensions.
I searched the mailing list but could not find anything that pointed
to this problem.
Any ideas ?
(Looks like one or more of the Solr fields should be multiValued,
probably an automated one).
Ian
1. ( from dspace.log.2012-12-02)
request:
http://localhost:8080/solr/search/update?wt=javabin&version=2
org.apache.solr.common.SolrException: Bad Request
Bad Request
request:
http://localhost:8080/solr/search/update?wt=javabin&version=2
at org.apache.solr.client.solrj.impl.CommonsHttpSolrServer.request(CommonsHttpSolrServer.java:435)
at org.apache.solr.client.solrj.impl.CommonsHttpSolrServer.request(CommonsHttpSolrServer.java:244)
at org.apache.solr.client.solrj.request.AbstractUpdateRequest.process(AbstractUpdateRequest.java:105)
at org.apache.solr.client.solrj.SolrServer.add(SolrServer.java:64)
at org.dspace.discovery.SolrServiceImpl.writeDocument(SolrServiceImpl.java:601)
at org.dspace.discovery.SolrServiceImpl.buildDocument(SolrServiceImpl.java:1270)
at org.dspace.discovery.SolrServiceImpl.indexContent(SolrServiceImpl.java:162)
at org.dspace.discovery.SolrServiceImpl.updateIndex(SolrServiceImpl.java:332)
at org.dspace.discovery.IndexClient.main(IndexClient.java:120)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at org.dspace.app.launcher.ScriptLauncher.main(ScriptLauncher.java:183)
2012-12-02 00:16:06,215 ERROR org.dspace.discovery.SolrServiceImpl @
Error while writing item to discovery index: 1810/433 message:Bad
Request
2. (from catalina.out)
02-Dec-2012 22:24:21 org.apache.solr.common.SolrException log
SEVERE: org.apache.solr.common.SolrException: ERROR: [doc=4-10]
multiple values encountered for non multiValued field read: [g18, g0,
g5]
at org.apache.solr.update.DocumentBuilder.toDocument(DocumentBuilder.java:246)
at org.apache.solr.update.processor.RunUpdateProcessor.processAdd(RunUpdateProcessorFactory.java:60)
at org.apache.solr.handler.XMLLoader.processUpdate(XMLLoader.java:158)
at org.apache.solr.handler.XMLLoader.load(XMLLoader.java:79)
at org.apache.solr.handler.ContentStreamHandlerBase.handleRequestBody(ContentStreamHandlerBase.java:58)
at org.apache.solr.handler.RequestHandlerBase.handleRequest(RequestHandlerBase.java:129)
at org.apache.solr.core.SolrCore.execute(SolrCore.java:1372)
at org.apache.solr.servlet.SolrDispatchFilter.execute(SolrDispatchFilter.java:356)
at org.apache.solr.servlet.SolrDispatchFilter.doFilter(SolrDispatchFilter.java:252)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:243)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210)
at org.dspace.solr.filters.LocalHostRestrictionFilter.doFilter(LocalHostRestrictionFilter.java:60)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:243)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210)
at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:222)
at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:123)
at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:472)
at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:171)
at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:99)
at org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:931)
at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:118)
at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:407)
at org.apache.coyote.http11.AbstractHttp11Processor.process(AbstractHttp11Processor.java:1004)
at org.apache.coyote.AbstractProtocol$AbstractConnectionHandler.process(AbstractProtocol.java:589)
at org.apache.tomcat.util.net.NioEndpoint$SocketProcessor.run(NioEndpoint.java:1653)
at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)
at java.lang.Thread.run(Thread.java:662)