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

On Wednesday, September 7, 2022 at 1:45:38 PM UTC-5 [email protected] wrote:

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

-- 
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 the Google Groups 
"DSpace Technical Support" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/dspace-tech/6407009c-5b69-460c-8e34-309b226a6922n%40googlegroups.com.

Reply via email to