Hi Andrea, kudos!

All I had to do was run the legacy commands and create the missing 
"reports" directory - thank you! 

Now, if these are the legacy statistics, where are the new one and how can 
I import old stat into it?

dspace@dspace-novo:/opt/dspace/deploy/bin> ./dspace stat-initial
dspace@dspace-novo:/opt/dspace/deploy/bin> ./dspace stat-general
dspace@dspace-novo:/opt/dspace/deploy/bin> ./dspace stat-monthly
dspace@dspace-novo:/opt/dspace/deploy/bin> ./dspace stat-report-initial
Unable to write to output file 
/opt/dspace/deploy/reports//report-2005-1.html
dspace@dspace-novo:/opt/dspace/deploy/bin> mkdir /opt/dspace/deploy/reports
dspace@dspace-novo:/opt/dspace/deploy/bin> ./dspace stat-report-initial
dspace@dspace-novo:/opt/dspace/deploy/bin> ./dspace stat-report-general
dspace@dspace-novo:/opt/dspace/deploy/bin> ./dspace stat-report-monthly

Em quinta-feira, 17 de dezembro de 2015 18:08:31 UTC-2, Andrea Schweer 
escreveu:
>
> Hi,
>
> On 18/12/15 04:39, Tiago Delboni wrote:
>
> Hi!
>
> I'm working on upgrading DSpace from 1.8.2 to 5.4. I guess was able to put 
> everything working but the statistics. Everytime I click the Statistics 
> menu, in JSPUI, DSpace come out with a Internal Server Error.
> Bellow is the relevant part gattered from dspace.log. Any ideas how to 
> fix it? 
>
> Also, I would like to know if I can keep the historical statistics I have 
> on 1.8.x. What I did, trying to achieve this, was to copy the contents from 
> [dspace1.8]/log and [dspace1.8]/solr/statistics/data to [dspace5.4] and 
> ran [dspace5.4]/bin/dspace solr-reindex-statistics.
>
>
> The statistics page you're referring to (compare 
> http://demo.dspace.org/jspui/statistics) is not related to the Solr-based 
> usage statistics at all. Instead, this page is showing the legacy 
> statistics populated from the log files and the .dat / .html files 
> generated from the log files via the stat-* commands listed in the "Legacy 
> statistics" section here: 
> https://wiki.duraspace.org/display/DSDOC5x/Command+Line+Operations#CommandLineOperations-Legacystatistics
>
> My guess is that you didn't copy over the contents of the report directory 
> (that holds these .dat and .html files); looking at the code at the line 
> below supports that. The location of the report directory is configured in 
> dspace.cfg:
>
> https://github.com/DSpace/DSpace/blob/dspace-5_x/dspace/config/dspace.cfg#L1741
>
> So you might like to check what you have yours set to and copy the 
> directory across from your 1.8 [dspace] directory tree to your 5.x 
> directory tree.
>
> 2015-12-17 13:15:12,864 WARN  
> org.dspace.app.webui.servlet.InternalErrorServlet @ 
> :session_id=0CFF63BC0604F2B56DD0EE375E575ED9:internal_error:-- URL Was: 
> https://dspace-novo.almg.gov.br/jspui/statistics
> -- Method: GET
> -- Parameters were:
>
> java.lang.NullPointerException
>         at 
> org.dspace.app.webui.servlet.StatisticsServlet.showStatistics(StatisticsServlet.java:121)
>
>
>
> https://github.com/DSpace/DSpace/blob/dspace-5_x/dspace-jspui/src/main/java/org/dspace/app/webui/servlet/StatisticsServlet.java#L121
>
> cheers,
> Andrea
>
> -- 
> Dr Andrea Schweer
> IRR Technical Specialist, ITS Information Systems
> The University of Waikato, Hamilton, New Zealand
> +64-7-837 9120
>
>

-- 
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 post to this group, send email to [email protected].
Visit this group at https://groups.google.com/group/dspace-tech.
For more options, visit https://groups.google.com/d/optout.

Reply via email to