NEW 7.6 index-discovery error

382 views
Skip to first unread message

amtuan...@gmail.com

unread,
Jul 7, 2023, 7:21:40 AM7/7/23
to DSpace Technical Support
I just upgraded to 7.6 from 7.5 and got a new error when running index-discovery.
See error below. Any help is appreciated. Thanks!

$ /dspace/bin/dspace index-discovery -b

The script has started

(Re)building index from scratch.

org.apache.solr.client.solrj.impl.HttpSolrClient$RemoteSolrException: Error from server at http://10.0.0.243:8983/solr/search: Exception writing document id Item-000117c0-b46c-4823-9916-6afc3bd1e534 to the index; possible analysis error: cannot change field "edit" from index options=DOCS_AND_FREQS_AND_POSITIONS to inconsistent index options=DOCS

        at org.apache.solr.client.solrj.impl.HttpSolrClient.executeMethod(HttpSolrClient.java:681)

        at org.apache.solr.client.solrj.impl.HttpSolrClient.request(HttpSolrClient.java:266)

        at org.apache.solr.client.solrj.impl.HttpSolrClient.request(HttpSolrClient.java:248)

        at org.apache.solr.client.solrj.SolrRequest.process(SolrRequest.java:214)

        at org.apache.solr.client.solrj.SolrClient.add(SolrClient.java:177)

        at org.apache.solr.client.solrj.SolrClient.add(SolrClient.java:138)

        at org.apache.solr.client.solrj.SolrClient.add(SolrClient.java:156)

        at org.dspace.discovery.indexobject.IndexFactoryImpl.writeDocument(IndexFactoryImpl.java:147)

        at org.dspace.discovery.indexobject.ItemIndexFactoryImpl.writeDocument(ItemIndexFactoryImpl.java:642)

        at org.dspace.discovery.indexobject.ItemIndexFactoryImpl.writeDocument(ItemIndexFactoryImpl.java:81)

        at org.dspace.discovery.SolrServiceImpl.update(SolrServiceImpl.java:170)

        at org.dspace.discovery.SolrServiceImpl.indexContent(SolrServiceImpl.java:159)

        at org.dspace.discovery.SolrServiceImpl.updateIndex(SolrServiceImpl.java:349)

        at org.dspace.discovery.SolrServiceImpl.updateIndex(SolrServiceImpl.java:336)

        at org.dspace.discovery.SolrServiceImpl.createIndex(SolrServiceImpl.java:304)

        at org.dspace.discovery.IndexClient.internalRun(IndexClient.java:117)

        at org.dspace.scripts.DSpaceRunnable.run(DSpaceRunnable.java:104)

        at org.dspace.app.launcher.ScriptLauncher.executeScript(ScriptLauncher.java:149)

        at org.dspace.app.launcher.ScriptLauncher.handleScript(ScriptLauncher.java:131)

        at org.dspace.app.launcher.ScriptLauncher.main(ScriptLauncher.java:98)

DSpace Technical Support

unread,
Jul 13, 2023, 3:49:40 PM7/13/23
to DSpace Technical Support
Hi,

This is an odd error because there was no change to the "edit" field in Solr between DSpace 7.5 and 7.6.   However, I can verify that the "edit" field was first **added** in DSpace 7.5: https://github.com/DSpace/DSpace/blob/main/dspace/solr/search/conf/schema.xml#L268

It almost sounds like, to me, either you customized this schema.xml (which is unlikely), or maybe you didn't have the latest "schema.xml" installed when you upgraded to DSpace 7.6?
Maybe try step 9 again in the Backend upgrade docs?  https://wiki.lyrasis.org/display/DSDOC7x/Upgrading+DSpace#UpgradingDSpace-UpgradingtheBackendSteps

That should walk you through ensuring you have the correct schema.xml installed in Solr, then you should restart Solr & finally re-run "./dspace index-discovery -b".

If that doesn't help, then I'd recommend checking your DSpace log files and/or Solr logs to see if other errors are occurring.  This error on its own seems quite odd, but maybe it is being caused by a different error.

Tim

amtuan...@gmail.com

unread,
Jul 22, 2023, 10:18:59 AM7/22/23
to DSpace Technical Support
I deleted all data/files in solr and recreated the cores. Seem to be ok now. Thanks!
Reply all
Reply to author
Forward
0 new messages