DSpace 7.3 Statistical Report Configuration - Help

62 views
Skip to first unread message

Jeff Garcia

unread,
Sep 7, 2022, 2:45:38 PM9/7/22
to DSpace Technical Support
Hello, 

I am having trouble with DSpace Report Config for basic web statistics. We want to enable these statistics for our repository.

I am trying to run this in the CLI and I keep getting errors.

C:\dspace-backend>docker-compose -p d7 -f docker-compose-cli.yml run --rm dspace-cli stat-general
time="2022-09-07T14:29:57-04:00" level=warning msg="Found orphan containers ([dspace dspacedb dspacesolr]) for this project. If you removed or renamed this service in your compose file, you can run this command with the --remove-orphans flag to clean it up."

C:\dspace-backend>docker-compose -p d7 -f docker-compose-cli.yml run --rm dspace-cli stat-initial
time="2022-09-07T14:31:44-04:00" level=warning msg="Found orphan containers ([dspace dspacedb dspacesolr]) for this project. If you removed or renamed this service in your compose file, you can run this command with the --remove-orphans flag to clean it up."

C:\dspace-backend>docker-compose -p d7 -f docker-compose-cli.yml run --rm dspace-cli stat-monthly
time="2022-09-07T14:32:12-04:00" level=warning msg="Found orphan containers ([dspace dspacedb dspacesolr]) for this project. If you removed or renamed this service in your compose file, you can run this command with the --remove-orphans flag to clean it up."

C:\dspace-backend>docker-compose -p d7 -f docker-compose-cli.yml run --rm dspace-cli stat-report-monthly
time="2022-09-07T14:36:22-04:00" level=warning msg="Found orphan containers ([dspace dspacedb dspacesolr]) for this project. If you removed or renamed this service in your compose file, you can run this command with the --remove-orphans flag to clean it up."
Failed to read input file: /dspace/log/dspace-log-monthly-2022-9.dat
Exception: null
java.lang.NullPointerException
        at org.dspace.app.statistics.ReportGenerator.processReport(ReportGenerator.java:421)
        at org.dspace.app.statistics.ReportGenerator.processReport(ReportGenerator.java:290)
        at org.dspace.app.statistics.CreateStatReport.statReportMonthly(CreateStatReport.java:381)
        at org.dspace.app.statistics.CreateStatReport.main(CreateStatReport.java:151)
        at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
        at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
        at java.base/java.lang.reflect.Method.invoke(Method.java:566)
        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)

C:\dspace-backend>docker-compose -p d7 -f docker-compose-cli.yml run --rm dspace-cli stat-report-initial
time="2022-09-07T14:36:49-04:00" level=warning msg="Found orphan containers ([dspace dspacedb dspacesolr]) for this project. If you removed or renamed this service in your compose file, you can run this command with the --remove-orphans flag to clean it up."
Failed to read input file: /dspace/log/dspace-log-monthly-2005-1.dat
Exception: null
java.lang.NullPointerException
        at org.dspace.app.statistics.ReportGenerator.processReport(ReportGenerator.java:421)
        at org.dspace.app.statistics.ReportGenerator.processReport(ReportGenerator.java:290)
        at org.dspace.app.statistics.CreateStatReport.statReportInitial(CreateStatReport.java:347)
        at org.dspace.app.statistics.CreateStatReport.main(CreateStatReport.java:147)
        at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
        at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
        at java.base/java.lang.reflect.Method.invoke(Method.java:566)
        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)

C:\dspace-backend>docker-compose -p d7 -f docker-compose-cli.yml run --rm dspace-cli stat-report-general
time="2022-09-07T14:37:53-04:00" level=warning msg="Found orphan containers ([dspace dspacedb dspacesolr]) for this project. If you removed or renamed this service in your compose file, you can run this command with the --remove-orphans flag to clean it up."
Failed to read input file: /dspace/log/dspace-log-general-2022-9-7.dat
Exception: null
java.lang.NullPointerException
        at org.dspace.app.statistics.ReportGenerator.processReport(ReportGenerator.java:421)
        at org.dspace.app.statistics.ReportGenerator.processReport(ReportGenerator.java:290)
        at org.dspace.app.statistics.CreateStatReport.statReportGeneral(CreateStatReport.java:306)
        at org.dspace.app.statistics.CreateStatReport.main(CreateStatReport.java:143)
        at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
        at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
        at java.base/java.lang.reflect.Method.invoke(Method.java:566)
        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 is appreciated, 

Thank you. 

Tim Donohue

unread,
Sep 12, 2022, 10:27:54 AM9/12/22
to DSpace Technical Support
Hi,

Unfortunately, these log-based statistical reports have not been added/updated for DSpace 7.x.  This feature is listed in our "Tier 3: Medium Priority" TODO list here: https://wiki.lyrasis.org/display/DSPACE/DSpace+Release+7.0+Status#DSpaceRelease7.0Status-Tier3:MediumPriority

So, this means, it's not surprising that these scripts do not yet work at this time.  I don't yet know which release will bring this feature to 7.x, but it's not likely to come in 7.4 (due in Oct) as the feature isn't started yet.  Perhaps in 7.5 (due in Feb) or 7.6 (due in June) will bring this feature to DSpace 7.

Tim

Reply all
Reply to author
Forward
0 new messages