Migrating SOLR stats from DSpace 5 to 6?

282 views
Skip to first unread message

Anne Lawrence

unread,
Aug 7, 2019, 11:13:11 AM8/7/19
to DSpace Technical Support
We are migrating from DSpace 5 to 6. We created a new instance of DSpace 6 and copied the database to it. We migrated this database to DSpace 6 and ran the SOLR indexing successfully. (One thing new about the 6 instance is that we are using nginx, so we had to configure that.) In DSpace 5, we found that solr-export-statistics and solr-import-statistics appeared to do nothing, so we tarred and  copied the /dspace/solr/statistics/ to new machines as a way of migrating the SOLR stats. When we did this for this new DSpace 6 instance, no statistics display, probably because the SOLR records use IDs rather than UUIDs. I notice that there is a tool scheduled for DSpace 6.4, "Upgrade Legacy DSpace Object Identifiers (pre-6x statistics) to DSpace 6x UUID Identifiers," but we'd prefer not to wait for that. Does anyone have suggestions for working this out?

Thanks,

Anne Lawrence
Repository Application Administrator
Virginia Tech

Terry Brady

unread,
Aug 7, 2019, 1:17:43 PM8/7/19
to Anne Lawrence, DSpace Technical Support
Anne, 

If you have a test system that you can test with, I recommend you try running the following tool..


In the meantime, some of the XMLUI statistics pages should have logic to use either the UUID or the legacy id.  

Terry

--
All messages to this mailing list should adhere to the DuraSpace Code of Conduct: https://duraspace.org/about/policies/code-of-conduct/
---
You received this message because you are subscribed to the Google Groups "DSpace Technical Support" group.
To unsubscribe from this group and stop receiving emails from it, send an email to dspace-tech...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/dspace-tech/19c907af-a94d-4bdf-a156-fac3fed34af2%40googlegroups.com.


--
Terry Brady
Applications Programmer Analyst
Georgetown University Library Information Technology
425-298-5498 (Seattle, WA)

Mark H. Wood

unread,
Aug 8, 2019, 1:54:24 PM8/8/19
to DSpace Technical Support
On Wed, Aug 07, 2019 at 10:17:30AM -0700, Terry Brady wrote:
> If you have a test system that you can test with, I recommend you try
> running the following tool..
>
> https://github.com/DSpace/DSpace/blob/dspace-6_x/dspace-api/src/main/java/org/dspace/util/SolrUpgradePre6xStatistics.java

I agree. This is easy to patch in, as it is contained in a single
class that can be run using 'bin/dspace dsrun
org.dspace.util.SolrUpgradePre6xStatistics' once the single source
file has been added to [dspace-source] and compiled. I've needed to
do this on 5_x and 6_x test instances recently, and I'm planning to
add it to a production 6.2 instance that was upgraded from 5_x.

--
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

Nason Bimbe

unread,
May 11, 2020, 8:30:57 AM5/11/20
to DSpace Technical Support
I patched a test 6.3 instance and ran the the code using  'bin/dspace dsrun
org.dspace.util.SolrUpgradePre6xStatistics'. The 'legacy' label has been removed from the Total Visits and Total Visits Per Month entries. The File Visits are still showing the 'legacy' label.

It looks like the code is not resolving the IDs of the Bitstreams for the download statistics.

Nason Bimbe
Reply all
Reply to author
Forward
0 new messages