Hi Sean,

> Anybody have any idea what I've done wrong here? I get the following
> error when I try to run stat-initial or stat-monthy:
> 
> [EMAIL PROTECTED]:/dspace$ bin/stat-initial
> Exception in thread "main" org.postgresql.util.PSQLException: ERROR:
> syntax error at or near "FROM"
> 
> This is on a 1.5 installation.

You'll be pleased to know that you've not done anything wrong - it is a
small bug in 1.5, which has been fixed ready for 1.5.1

You need to update the following file:

/dspace-api/src/main/java/org/dspace/app/statistics/LogAnalyser.java

You can download an up to date version from:

http://dspace.svn.sourceforge.net/viewvc/dspace/branches/dspace-1_5_x/dspace
-api/src/main/java/org/dspace/app/statistics/LogAnalyser.java

(or http://tinyurl.com/dspace15-stat-patch)

You'll then need to recompile and redeploy DSpace, and it should then work.

> Could it be a configuration problem? In 1.4 I know I had to set
> $start_year and $start_month in the stat-* files, but that no longer
> seems to be the case. Is there somewhere else I should be setting that
> information?

start.year and start.month should now be set in [dspace]/config/dstat.cfg

start.year = 2005
start.month = 1

Thanks,


Stuart
_________________________________________________________________

Gwasanaethau Gwybodaeth                      Information Services
Prifysgol Aberystwyth                      Aberystwyth University

            E-bost / E-mail: [EMAIL PROTECTED]
                 Ffon / Tel: (01970) 622860
_________________________________________________________________


-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
DSpace-tech mailing list
DSpace-tech@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/dspace-tech

Reply via email to