Error index-discovery

96 views
Skip to first unread message

Sergio Luis Alegría

unread,
May 24, 2022, 7:46:28 AM5/24/22
to DSpace Technical Support
I migrate from 5.3 to 6.3.
The database migrate commando run everything ok.
I can access to my Dspace installation.

But when I run dspace index-discovery -b throw the next error:

2022-05-24 10:58:41,980 ERROR org.dspace.discovery.SolrServiceImpl @ Error while writing item to discovery index: 11086/804 message:Error while creating field 'search.resourceid{type=sint,properties=indexed,stored,omitNorms,omitTermFreqAndPositions,sortMissingLast,required, required=true}' from value '01353d2a-229f-4d24-b0ee-5885669e6e29'
org.apache.solr.client.solrj.impl.HttpSolrServer$RemoteSolrException: Error while creating field 'search.resourceid{type=sint,properties=indexed,stored,omitNorms,omitTermFreqAndPositions,sortMissingLast,required, required=true}' from value '01353d2a-229f-4d24-b0ee-5885669e6e29'

In solr log throw the next error.
Caused by: java.lang.NumberFormatException: For input string: "c06eb490-7034-46d5-ad20-bd6fd8873786" at java.lang.NumberFormatException.forInputString(NumberFormatException.java:65)

Seems like something is wrong with key values when the schema change (by migration) from id (integer) to uuid (string) in items tables maybe?

Could someone help me?
Thanks a lot.

Mark H. Wood

unread,
May 25, 2022, 7:25:40 AM5/25/22
to dspac...@googlegroups.com
On Tue, May 24, 2022 at 04:26:37AM -0700, Sergio Luis Alegr??a wrote:
> I migrate from 5.3 to 6.3.
> The database migrate commando run everything ok.
> I can access to my Dspace installation.
>
> But when I run *dspace index-discovery -b *throw the next error:
>
>
>
> *2022-05-24 10:58:41,980 ERROR org.dspace.discovery.SolrServiceImpl @ Error
> while writing item to discovery index: 11086/804 message:Error while
> creating field
> 'search.resourceid{type=sint,properties=indexed,stored,omitNorms,omitTermFreqAndPositions,sortMissingLast,required,
> required=true}' from value
> '01353d2a-229f-4d24-b0ee-5885669e6e29'org.apache.solr.client.solrj.impl.HttpSolrServer$RemoteSolrException:
> Error while creating field
> 'search.resourceid{type=sint,properties=indexed,stored,omitNorms,omitTermFreqAndPositions,sortMissingLast,required,
> required=true}' from value '01353d2a-229f-4d24-b0ee-5885669e6e29'*
>
> In solr log throw the next error.
> Caused by: java.lang.NumberFormatException: For input string:
> "c06eb490-7034-46d5-ad20-bd6fd8873786" at
> java.lang.NumberFormatException.forInputString(NumberFormatException.java:65)
>
> Seems like something is wrong with key values when the schema change (by
> migration) from id (integer) to uuid (string) in items tables maybe?

Since Solr is saying that 'search.resourceid' is of type 'sint', it appears
that your Solr schema for the 'search' core was not updated.

--
Mark H. Wood
Lead Technology Analyst

University Library
Indiana University - Purdue University Indianapolis
755 W. Michigan Street
Indianapolis, IN 46202
317-274-0749
www.ulib.iupui.edu
signature.asc

Sergio Luis Alegría

unread,
May 30, 2022, 11:12:02 AM5/30/22
to dspac...@googlegroups.com
Hi Mark, thanks for your answer.
I really do all the steps to upgrade my installation, so, i don't know why this behavior is, I don't know why solr schema not upgrade.

Could you guide me to solve this problem? 


--
All messages to this mailing list should adhere to the Code of Conduct: https://www.lyrasis.org/about/Pages/Code-of-Conduct.aspx
---
You received this message because you are subscribed to a topic in the Google Groups "DSpace Technical Support" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/dspace-tech/1PYor1C9g-I/unsubscribe.
To unsubscribe from this group and all its topics, send an email to dspace-tech...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/dspace-tech/Yo4SLnT6tOvaVNrG%40IUPUI.Edu.
Reply all
Reply to author
Forward
0 new messages