Hi Ivan,

On 3 December 2012 10:39, helix84 <[email protected]> wrote:
> Hi Ian,
>
> did you follow the upgrading instructions [1] and ran
> update-discovery-index with the -f parameter? Solr was upgraded, so
> the index needs to be recreated.

The migration was done with the -f on a clean solr subtree with no
index files present.

If I do it again (presuably to force a rebuild of the index) I get
still get errors when rebuilding.


>
> Just in case that doesn't help, can you also try with the -b parameter
> and report back?

Still the same with a -b on the command.

I did see this:

2012-12-03 06:11:36,610 INFO  org.dspace.discovery.SolrServiceImpl @
Wrote Item: 1810/1587 to Index
2012-12-03 06:11:36,618 ERROR org.dspace.browse.SolrBrowseCreateDAO @
Null metadata value for item 1542, field: dc.contributor.advisor
2012-12-03 06:11:36,623 ERROR org.dspace.discovery.SolrServiceImpl @
Error while writing item to discovery index: 1810/1470 message:Bad
Request

Bad Request

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.SolrServiceImpl.createIndex(SolrServiceImpl.java:294)
        at org.dspace.discovery.IndexClient.main(IndexClient.java:113)
        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-03 06:11:36,636 INFO  org.dspace.discovery.SolrServiceImpl @
Wrote Item: 1810/23948 to Index
2012-12-03 06:11:36,648 INFO  org.dspace.discovery.SolrServiceImpl @
Wrote Item: 1810/19183 to Index
2012-12-03 06:11:36,661 INFO  org.dspace.discovery.SolrServiceImpl @
Wrote Item: 1810/3642 to Index


So I think [1] is one of the records that is failing. The link is from
our live system but the IDs and the metadata is identical as I took a
copy of the live DB before going through the upgrade scripts (which
worked like a dream :)).


1 
http://www.dspace.cam.ac.uk/handle/1810/1470?mode=full&submit_simple=Show+full+item+record



>
> [1] https://wiki.duraspace.org/display/DSDOC3x/Upgrading+From+1.8.x+to+3.x
>
>
> Regards,
> ~~helix84
>
> Compulsory reading: DSpace Mailing List Etiquette
> https://wiki.duraspace.org/display/DSPACE/Mailing+List+Etiquette

------------------------------------------------------------------------------
Keep yourself connected to Go Parallel: 
BUILD Helping you discover the best ways to construct your parallel projects.
http://goparallel.sourceforge.net
_______________________________________________
DSpace-tech mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/dspace-tech
List Etiquette: https://wiki.duraspace.org/display/DSPACE/Mailing+List+Etiquette

Reply via email to