stats-util error

74 views
Skip to first unread message

James Holobetz

unread,
Oct 27, 2023, 3:32:50 PM10/27/23
to DSpace Technical Support
Hello All,

I am receiving this error when attempting to reindex the bitstreams using stats-util -b:

holobetj ~ $ sudo -u dspace /opt/dspace/bin/dspace stats-util -b
Exception: Invalid UUID string: 8240-unmigrated
java.lang.IllegalArgumentException: Invalid UUID string: 8240-unmigrated
        at java.base/java.util.UUID.fromString1(UUID.java:280)
        at java.base/java.util.UUID.fromString(UUID.java:258)
        at org.dspace.content.BitstreamServiceImpl.findByIdOrLegacyId(BitstreamServiceImpl.java:452)
        at org.dspace.content.BitstreamServiceImpl.findByIdOrLegacyId(BitstreamServiceImpl.java:43)
        at org.dspace.statistics.SolrLoggerServiceImpl.reindexBitstreamHits(SolrLoggerServiceImpl.java:1484)
        at org.dspace.statistics.util.StatisticsClient.main(StatisticsClient.java:99)
        at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:77)
        at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
        at java.base/java.lang.reflect.Method.invoke(Method.java:568)
        at org.dspace.app.launcher.ScriptLauncher.runOneCommand(ScriptLauncher.java:277)
        at org.dspace.app.launcher.ScriptLauncher.handleScript(ScriptLauncher.java:133)
        at org.dspace.app.launcher.ScriptLauncher.main(ScriptLauncher.java:98)

Any help would be greatly appreciated.

James Holobetz



James Holobetz

unread,
Nov 15, 2023, 5:10:55 PM11/15/23
to DSpace Technical Support
After doing a fair amount of detective work, I have found through Solr Admin queries and examining some of the csv files created by the solr-export-statistics tool that there are a lot of xxxx-unmigrated entries creatd by the solr-upgrade-statistics-6x tool ( If a UUID value cannot be found for a legacy id, the legacy id will be converted to the form "xxxx-unmigrated" where xxxx is the legacy id.) These  "xxxx-unmigrated"  legacy IDs are inconsistently in the id, owningComm, owningColl, and scopeId (so far as I can tell right now). There is a lot of them (42 GB of csv files in the export dump). How do I correct these values as they are breaking the stats-util tool?

Thank you,

James Holobetz
Reply all
Reply to author
Forward
0 new messages