[Dspace-tech] DSpace: Internal Server Error

2011-11-28 Thread shiva kumara
Hi All,



This is from Shivakumara RM, working as librarian in Bangalore. I have
installed Dspace 1.7.0 on Windows Platform. It was working fine and
then *windows
patches has been installed* by system admin afterwards dspace home page
will open but there is no communities and collection, which I have been
created. In home page it shows that internal server error!!!.

I have noticed that there is no dspace database in postgres. What could be
the problem.

Kindly let me know the solution to the above problem.

I am getting the following email alert.






An internal server error occurred on http://192.168.14.29:8080/jspui:

Date:   11/26/11 12:54 PM
Session ID: 38766249CE22429083240949F243D800
User:   Anonymous
IP address: 192.168.14.29

-- URL Was: http://192.168.14.29:8080/jspui/feed/rss_1.0/site
-- Method: GET
-- Parameters were:


Exception:
org.postgresql.util.PSQLException: Connection refused. Check that the
hostname and port are correct and that the postmaster is accepting TCP/IP
connections.
   at
org.postgresql.core.v3.ConnectionFactoryImpl.openConnectionImpl(ConnectionFactoryImpl.java:122)
   at
org.postgresql.core.ConnectionFactory.openConnection(ConnectionFactory.java:65)
   at
org.postgresql.jdbc2.AbstractJdbc2Connection.init(AbstractJdbc2Connection.java:116)
   at
org.postgresql.jdbc3.AbstractJdbc3Connection.init(AbstractJdbc3Connection.java:30)
   at
org.postgresql.jdbc3.Jdbc3Connection.init(Jdbc3Connection.java:24)
   at org.postgresql.Driver.makeConnection(Driver.java:369)
   at org.postgresql.Driver.connect(Driver.java:245)
   at java.sql.DriverManager.getConnection(Unknown Source)
   at java.sql.DriverManager.getConnection(Unknown Source)
   at
org.apache.commons.dbcp.DriverManagerConnectionFactory.createConnection(DriverManagerConnectionFactory.java:75)
   at
org.apache.commons.dbcp.PoolableConnectionFactory.makeObject(PoolableConnectionFactory.java:582)
   at
org.apache.commons.pool.impl.GenericObjectPool.borrowObject(GenericObjectPool.java:974)
   at
org.apache.commons.dbcp.PoolingDataSource.getConnection(PoolingDataSource.java:106)
   at
org.dspace.storage.rdbms.DatabaseManager.getConnection(DatabaseManager.java:588)
   at org.dspace.core.Context.init(Context.java:95)
   at org.dspace.app.webui.util.UIUtil.obtainContext(UIUtil.java:98)
   at
org.dspace.app.webui.servlet.DSpaceServlet.processRequest(DSpaceServlet.java:100)
   at
org.dspace.app.webui.servlet.DSpaceServlet.doGet(DSpaceServlet.java:67)
   at javax.servlet.http.HttpServlet.service(HttpServlet.java:621)
   at javax.servlet.http.HttpServlet.service(HttpServlet.java:722)
   at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:306)
   at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210)
   at
org.dspace.utils.servlet.DSpaceWebappServletFilter.doFilter(DSpaceWebappServletFilter.java:78)
   at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:244)
   at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210)
   at
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:240)
   at
org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:161)
   at
org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:164)
   at
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:108)
   at
org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:118)
   at
org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:379)
   at
org.apache.coyote.http11.Http11AprProcessor.process(Http11AprProcessor.java:282)
   at
org.apache.coyote.http11.Http11AprProtocol$Http11ConnectionHandler.process(Http11AprProtocol.java:357)
   at
org.apache.tomcat.util.net.AprEndpoint$SocketProcessor.run(AprEndpoint.java:1687)
   at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(Unknown
Source)
   at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
   at java.lang.Thread.run(Unknown Source)
Caused by: java.net.ConnectException: Connection refused: connect
   at java.net.PlainSocketImpl.socketConnect(Native Method)
   at java.net.PlainSocketImpl.doConnect(Unknown Source)
   at java.net.PlainSocketImpl.connectToAddress(Unknown Source)
   at java.net.PlainSocketImpl.connect(Unknown Source)
   at java.net.SocksSocketImpl.connect(Unknown Source)
   at java.net.Socket.connect(Unknown Source)
   at java.net.Socket.connect(Unknown Source)
   at java.net.Socket.init(Unknown Source)
   at java.net.Socket.init(Unknown Source)
   at org.postgresql.core.PGStream.init(PGStream.java:60)
   at
org.postgresql.core.v3.ConnectionFactoryImpl.openConnectionImpl(ConnectionFactoryImpl.java:77)
   

Re: [Dspace-tech] DSpace: Internal Server Error

2011-11-28 Thread helix84
On Mon, Nov 28, 2011 at 10:41, shiva kumara shivu...@gmail.com wrote:
 This is from Shivakumara RM, working as librarian in Bangalore. I have
 installed Dspace 1.7.0 on Windows Platform. It was working fine and then
 windows patches has been installed by system admin afterwards dspace home
 page will open but there is no communities and collection, which I have been
 created. In home page it shows that internal server error!!!.

 I have noticed that there is no dspace database in postgres. What could be
 the problem.

 Kindly let me know the solution to the above problem.

 I am getting the following email alert.

This error just means that DSpace cannot connect to the database, it
doesn't say that the database is empty. This is most likely because
you forgot to set database information in dspace. During the upgrade,
you probably didn't fill in configuration options of your
institutution in the new dspace.cfg in
[dspace-src]/dspace/config/dspace.cfg which gets copied to
[dspace]/config/dspace.cfg. You can still find a backup of the old
dspace.cfg in [dspace]/config-[date_of_upgrade]/dspace.cfg. Please,
follow the manual when doing upgrades, this wouldn't happen.

If the database is really empty, you'll have to restore it from
backup. This could have happened if you used ant fresh_install instead
of ant update when upgrading. Again, please follow the manual closely.

Regards,
~~helix84

--
All the data continuously generated in your IT infrastructure 
contains a definitive record of customers, application performance, 
security threats, fraudulent activity, and more. Splunk takes this 
data and makes sense of it. IT sense. And common sense.
http://p.sf.net/sfu/splunk-novd2d
___
DSpace-tech mailing list
DSpace-tech@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/dspace-tech


Re: [Dspace-tech] How to clear all monthly reports and start from the beginning

2011-11-28 Thread Evelthon Prodromou
Hello again,

I am asking once more in case someone missed my last email. It will be
really helpful if anyone can point me to the right direction.

I did the following since my last email. I edited dstat.cfg and changed
start.year to 2001 and start.month to 11. I then cleared 
/[dspace]/reports and executed /dspace stat-initial/. Still the same
problem.


Many thanks,


Evelthon


On 11/19/2011 11:58 PM, Evelthon Prodromou wrote:
 Hello everyone,

 I am facing an issue with dspace 17.0 and monthly reports. We are moving
 collections from greenstone to dspace. The monthly reports worked fine
 up to 02/2011.  Seems like whenever a stat-* command is run it returns
 the error below.
 -
 Exception: ERROR: more than one row returned by a subquery used as an
 expression
 org.postgresql.util.PSQLException: ERROR: more than one row returned by
 a subquery used as an expression
 at
 org.postgresql.core.v3.QueryExecutorImpl.receiveErrorResponse(QueryExecutorImpl.java:1531)
 at
 org.postgresql.core.v3.QueryExecutorImpl.processResults(QueryExecutorImpl.java:1313)
 at
 org.postgresql.core.v3.QueryExecutorImpl.execute(QueryExecutorImpl.java:188)
 at
 org.postgresql.jdbc2.AbstractJdbc2Statement.execute(AbstractJdbc2Statement.java:452)
 at
 org.postgresql.jdbc2.AbstractJdbc2Statement.executeWithFlags(AbstractJdbc2Statement.java:354)
 at
 org.postgresql.jdbc2.AbstractJdbc2Statement.executeQuery(AbstractJdbc2Statement.java:258)
 at
 org.apache.commons.dbcp.DelegatingPreparedStatement.executeQuery(DelegatingPreparedStatement.java:96)
 at
 org.apache.commons.dbcp.DelegatingPreparedStatement.executeQuery(DelegatingPreparedStatement.java:96)
 at
 org.apache.commons.dbcp.DelegatingPreparedStatement.executeQuery(DelegatingPreparedStatement.java:96)
 at
 org.dspace.storage.rdbms.DatabaseManager.query(DatabaseManager.java:284)
 at
 org.dspace.storage.rdbms.DatabaseManager.querySingle(DatabaseManager.java:330)
 at
 org.dspace.app.statistics.LogAnalyser.getNumItems(LogAnalyser.java:1249)
 at
 org.dspace.app.statistics.LogAnalyser.processLogs(LogAnalyser.java:498)
 at
 org.dspace.app.statistics.CreateStatReport.statInitial(CreateStatReport.java:259)
 at
 org.dspace.app.statistics.CreateStatReport.main(CreateStatReport.java:129)
 at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
 at
 sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
 at
 sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
 at java.lang.reflect.Method.invoke(Method.java:597)
 at
 org.dspace.app.launcher.ScriptLauncher.main(ScriptLauncher.java:183)

 -
  Since we have not yet gone public on dspace, it is of no problem to
 just clear everything out and start our monthly reports from scratch.
 Any pointers on how can that be accomplished?

 Thanks



 --
 All the data continuously generated in your IT infrastructure 
 contains a definitive record of customers, application performance, 
 security threats, fraudulent activity, and more. Splunk takes this 
 data and makes sense of it. IT sense. And common sense.
 http://p.sf.net/sfu/splunk-novd2d


 ___
 DSpace-tech mailing list
 DSpace-tech@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/dspace-tech

attachment: prodromou_evelthon.vcf--
All the data continuously generated in your IT infrastructure 
contains a definitive record of customers, application performance, 
security threats, fraudulent activity, and more. Splunk takes this 
data and makes sense of it. IT sense. And common sense.
http://p.sf.net/sfu/splunk-novd2d___
DSpace-tech mailing list
DSpace-tech@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/dspace-tech


[Dspace-tech] Turning off SOLR stats

2011-11-28 Thread Michael White
Hi,

Our SOLR stats have been flaky for a while but have now reached the point where 
they are bringing our server down, so I want to turn them off completely (until 
I can find time to work on it and get them working properly), but this doesn't 
seem as simple as I hoped it would be!

It was a long time ago that I set this up, so can't remember how I turned them 
on (and can't find anything specific in the documentation). I've tried a couple 
of things in dspace.cfg (e.g. commenting out solr.log.server), but, although 
this seems to have stopped the errors, I still see LoggerUsageEventListener 
lines in the logs, and the View Statistics button is still there (using 
JSPUI).

Anyone have any pointers how to completely disable the SOLR stats (so that 
DSpace isn't trying to log events, and, perhaps more importantly, so that the 
View Statistics button disappears)?

Cheers,

Mike

Michael White 
Research Management System (RMS) Project
Information Services
S8, Library
University of Stirling 
Stirling SCOTLAND 
FK9 4LA 
Email: michael.wh...@stir.ac.uk 
Tel: +44 (0) 1786 466877 
Fax: +44 (0) 1786 466880
http://www.is.stir.ac.uk/aboutis/teams/aldt/eld.php



-- 
The Sunday Times Scottish University of the Year 2009/2010
The University of Stirling is a charity registered in Scotland, 
 number SC 011159.


--
All the data continuously generated in your IT infrastructure 
contains a definitive record of customers, application performance, 
security threats, fraudulent activity, and more. Splunk takes this 
data and makes sense of it. IT sense. And common sense.
http://p.sf.net/sfu/splunk-novd2d
___
DSpace-tech mailing list
DSpace-tech@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/dspace-tech


Re: [Dspace-tech] Harvesting from

2011-11-28 Thread Tim Donohue
Hi,

I think you need to leave off the ?verb=Identify just like in the 
previous example that you said worked.

So, the harvesting provider URL should be:
http://imlsdcc.grainger.uiuc.edu/gateway.net/oai.aspx/iwmi.catalog.cgiar.org/oaisteriwmipubs.xml

- Tim

On 11/23/2011 7:44 AM, Webshet, Sisay (ILRI) wrote:
 Hi,

 I used the corrected version when I tried including 'y'
 The error as 'OAI did not respond to ListMetadataFormats query (ore:null ; 
 :null)'

 Thanks

 -Original Message-
 From: ivan.ma...@gmail.com [mailto:ivan.ma...@gmail.com] On Behalf Of helix84
 Sent: Wednesday, November 23, 2011 4:41 PM
 To: Webshet, Sisay (ILRI)
 Cc: dspace-tech@lists.sourceforge.net
 Subject: Re: [Dspace-tech] Harvesting from

 On Wed, Nov 23, 2011 at 14:18, Webshet, Sisay (ILRI)
 s.webs...@cgiar.org  wrote:
 http://imlsdcc.grainger.uiuc.edu/gateway.net/oai.aspx/iwmi.catalog.cgiar.org/oaisteriwmipubs.xml?verb=Identif

 Just to point out the obvious, you're missing an y at the end of the
 URL (Identify).

 Regards,
 ~~helix84
 --
 All the data continuously generated in your IT infrastructure
 contains a definitive record of customers, application performance,
 security threats, fraudulent activity, and more. Splunk takes this
 data and makes sense of it. IT sense. And common sense.
 http://p.sf.net/sfu/splunk-novd2d
 ___
 DSpace-tech mailing list
 DSpace-tech@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/dspace-tech

--
All the data continuously generated in your IT infrastructure 
contains a definitive record of customers, application performance, 
security threats, fraudulent activity, and more. Splunk takes this 
data and makes sense of it. IT sense. And common sense.
http://p.sf.net/sfu/splunk-novd2d
___
DSpace-tech mailing list
DSpace-tech@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/dspace-tech


Re: [Dspace-tech] Turning off SOLR stats

2011-11-28 Thread George S Kozak
Michael:

Our Solr Stats at Cornell University, also, began to give us troubles, so what 
I did to (sort of) shut them down is simply remove the button from the 
Community, Collection and Item pages.  That way, the Solr stats run in the 
background  but since no one is requesting any reports, the CPU usage is normal 
and we no longer have any problems.  I am not sure if this will be of help to 
you or whether you are using the XMLUI or JSPUI, but I found it fairly easy in 
the JSPUI to remove the buttons requesting statistics and can give you the 
exact lines to remove, if you want.

George Kozak
Digital Library Specialist
Cornell University Library Information Technologies (CUL-IT)
501 Olin Library
Cornell University
Ithaca, NY 14853
607-255-8924

-Original Message-
From: Michael White [mailto:michael.wh...@stir.ac.uk] 
Sent: Monday, November 28, 2011 7:38 AM
To: DSpace-tech@lists.sourceforge.net
Subject: [Dspace-tech] Turning off SOLR stats

Hi,

Our SOLR stats have been flaky for a while but have now reached the point where 
they are bringing our server down, so I want to turn them off completely (until 
I can find time to work on it and get them working properly), but this doesn't 
seem as simple as I hoped it would be!

It was a long time ago that I set this up, so can't remember how I turned them 
on (and can't find anything specific in the documentation). I've tried a couple 
of things in dspace.cfg (e.g. commenting out solr.log.server), but, although 
this seems to have stopped the errors, I still see LoggerUsageEventListener 
lines in the logs, and the View Statistics button is still there (using 
JSPUI).

Anyone have any pointers how to completely disable the SOLR stats (so that 
DSpace isn't trying to log events, and, perhaps more importantly, so that the 
View Statistics button disappears)?

Cheers,

Mike

Michael White
Research Management System (RMS) Project Information Services S8, Library 
University of Stirling Stirling SCOTLAND
FK9 4LA
Email: michael.wh...@stir.ac.uk
Tel: +44 (0) 1786 466877
Fax: +44 (0) 1786 466880
http://www.is.stir.ac.uk/aboutis/teams/aldt/eld.php



--
The Sunday Times Scottish University of the Year 2009/2010 The University of 
Stirling is a charity registered in Scotland,  number SC 011159.


--
All the data continuously generated in your IT infrastructure contains a 
definitive record of customers, application performance, security threats, 
fraudulent activity, and more. Splunk takes this data and makes sense of it. IT 
sense. And common sense.
http://p.sf.net/sfu/splunk-novd2d
___
DSpace-tech mailing list
DSpace-tech@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/dspace-tech

--
All the data continuously generated in your IT infrastructure 
contains a definitive record of customers, application performance, 
security threats, fraudulent activity, and more. Splunk takes this 
data and makes sense of it. IT sense. And common sense.
http://p.sf.net/sfu/splunk-novd2d
___
DSpace-tech mailing list
DSpace-tech@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/dspace-tech


Re: [Dspace-tech] Turning off SOLR stats

2011-11-28 Thread Michael White
Thanks George,

 so what I did to (sort of) shut them down is simply remove the button from 
 the 
 Community, Collection and Item pages

OK - I had hoped that I could get rid of these via Configuration, but I'm 
guessing not :-( 

One problem I have is that one of our sys admins recently deleted the DSpace 
source code from my server (he thought he was helping to clear disk space, not 
realising that I have substantially customised our DSpace source code! Oh, and 
he deleted it from both DEV and PRODUCTION - don't ask!), so, until I have time 
to reconstruct my customised code I am a little handicapped in what I can do - 
I guess I could just update these JSPs in the expanded WAR file though (Yuck!) 
. . .

Cheers,

Mike

Michael White 
Research Management System (RMS) Project
Information Services
S8, Library
University of Stirling 
Stirling SCOTLAND 
FK9 4LA 
Email: michael.wh...@stir.ac.uk 
Tel: +44 (0) 1786 466877 
Fax: +44 (0) 1786 466880
http://www.is.stir.ac.uk/aboutis/teams/aldt/eld.php


-Original Message-
From: George S Kozak [mailto:g...@cornell.edu] 
Sent: 28 November 2011 14:53
To: Michael White; DSpace-tech@lists.sourceforge.net
Subject: RE: Turning off SOLR stats

Michael:

Our Solr Stats at Cornell University, also, began to give us troubles, so what 
I did to (sort of) shut them down is simply remove the button from the 
Community, Collection and Item pages.  That way, the Solr stats run in the 
background  but since no one is requesting any reports, the CPU usage is normal 
and we no longer have any problems.  I am not sure if this will be of help to 
you or whether you are using the XMLUI or JSPUI, but I found it fairly easy in 
the JSPUI to remove the buttons requesting statistics and can give you the 
exact lines to remove, if you want.

George Kozak
Digital Library Specialist
Cornell University Library Information Technologies (CUL-IT)
501 Olin Library
Cornell University
Ithaca, NY 14853
607-255-8924

-Original Message-
From: Michael White [mailto:michael.wh...@stir.ac.uk] 
Sent: Monday, November 28, 2011 7:38 AM
To: DSpace-tech@lists.sourceforge.net
Subject: [Dspace-tech] Turning off SOLR stats

Hi,

Our SOLR stats have been flaky for a while but have now reached the point where 
they are bringing our server down, so I want to turn them off completely (until 
I can find time to work on it and get them working properly), but this doesn't 
seem as simple as I hoped it would be!

It was a long time ago that I set this up, so can't remember how I turned them 
on (and can't find anything specific in the documentation). I've tried a couple 
of things in dspace.cfg (e.g. commenting out solr.log.server), but, although 
this seems to have stopped the errors, I still see LoggerUsageEventListener 
lines in the logs, and the View Statistics button is still there (using 
JSPUI).

Anyone have any pointers how to completely disable the SOLR stats (so that 
DSpace isn't trying to log events, and, perhaps more importantly, so that the 
View Statistics button disappears)?

Cheers,

Mike

Michael White
Research Management System (RMS) Project Information Services S8, Library 
University of Stirling Stirling SCOTLAND
FK9 4LA
Email: michael.wh...@stir.ac.uk
Tel: +44 (0) 1786 466877
Fax: +44 (0) 1786 466880
http://www.is.stir.ac.uk/aboutis/teams/aldt/eld.php



--
The Sunday Times Scottish University of the Year 2009/2010 The University of 
Stirling is a charity registered in Scotland,  number SC 011159.


--
All the data continuously generated in your IT infrastructure contains a 
definitive record of customers, application performance, security threats, 
fraudulent activity, and more. Splunk takes this data and makes sense of it. IT 
sense. And common sense.
http://p.sf.net/sfu/splunk-novd2d
___
DSpace-tech mailing list
DSpace-tech@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/dspace-tech



-- 
The Sunday Times Scottish University of the Year 2009/2010
The University of Stirling is a charity registered in Scotland, 
 number SC 011159.


--
All the data continuously generated in your IT infrastructure 
contains a definitive record of customers, application performance, 
security threats, fraudulent activity, and more. Splunk takes this 
data and makes sense of it. IT sense. And common sense.
http://p.sf.net/sfu/splunk-novd2d
___
DSpace-tech mailing list
DSpace-tech@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/dspace-tech


Re: [Dspace-tech] Turning off SOLR stats

2011-11-28 Thread George S Kozak
Michael:

If you don't have the source, what you could do, in the time being, is go into 
your tomcat directory tomcat/webapps/jspui/
Then you can modify 
collection-home.jsp
community-home.jsp
display-item.jsp

I would backup each file first and then go into each JSP and remove lines 
similar to what I have listed below (which are somewhere near the bottom of 
each listing):
  div align=center
   form method=get action=%= request.getContextPath() 
%/displaystats
   input type=hidden name=handle value=%= 
collection.getHandle() %/
   input type=submit name=submit_simple 
value=fmt:message key=jsp.collection-home.display-statistics/ /
   /form
  /div

You don't need to restart tomcat.  This will take effect immediately, and you 
can see if this helps.  If not, you can simply replace the jsp files back to 
what they were before with the copies you made.

George Kozak
Digital Library Specialist
Cornell University Library Information Technologies (CUL-IT)
501 Olin Library
Cornell University
Ithaca, NY 14853
607-255-8924


-Original Message-
From: Michael White [mailto:michael.wh...@stir.ac.uk] 
Sent: Monday, November 28, 2011 10:09 AM
To: George S Kozak; DSpace-tech@lists.sourceforge.net
Subject: RE: Turning off SOLR stats

Thanks George,

 so what I did to (sort of) shut them down is simply remove the button 
 from the Community, Collection and Item pages

OK - I had hoped that I could get rid of these via Configuration, but I'm 
guessing not :-( 

One problem I have is that one of our sys admins recently deleted the DSpace 
source code from my server (he thought he was helping to clear disk space, not 
realising that I have substantially customised our DSpace source code! Oh, and 
he deleted it from both DEV and PRODUCTION - don't ask!), so, until I have time 
to reconstruct my customised code I am a little handicapped in what I can do - 
I guess I could just update these JSPs in the expanded WAR file though (Yuck!) 
. . .

Cheers,

Mike

Michael White
Research Management System (RMS) Project Information Services S8, Library 
University of Stirling Stirling SCOTLAND
FK9 4LA
Email: michael.wh...@stir.ac.uk
Tel: +44 (0) 1786 466877
Fax: +44 (0) 1786 466880
http://www.is.stir.ac.uk/aboutis/teams/aldt/eld.php


-Original Message-
From: George S Kozak [mailto:g...@cornell.edu]
Sent: 28 November 2011 14:53
To: Michael White; DSpace-tech@lists.sourceforge.net
Subject: RE: Turning off SOLR stats

Michael:

Our Solr Stats at Cornell University, also, began to give us troubles, so what 
I did to (sort of) shut them down is simply remove the button from the 
Community, Collection and Item pages.  That way, the Solr stats run in the 
background  but since no one is requesting any reports, the CPU usage is normal 
and we no longer have any problems.  I am not sure if this will be of help to 
you or whether you are using the XMLUI or JSPUI, but I found it fairly easy in 
the JSPUI to remove the buttons requesting statistics and can give you the 
exact lines to remove, if you want.

George Kozak
Digital Library Specialist
Cornell University Library Information Technologies (CUL-IT)
501 Olin Library
Cornell University
Ithaca, NY 14853
607-255-8924

-Original Message-
From: Michael White [mailto:michael.wh...@stir.ac.uk]
Sent: Monday, November 28, 2011 7:38 AM
To: DSpace-tech@lists.sourceforge.net
Subject: [Dspace-tech] Turning off SOLR stats

Hi,

Our SOLR stats have been flaky for a while but have now reached the point where 
they are bringing our server down, so I want to turn them off completely (until 
I can find time to work on it and get them working properly), but this doesn't 
seem as simple as I hoped it would be!

It was a long time ago that I set this up, so can't remember how I turned them 
on (and can't find anything specific in the documentation). I've tried a couple 
of things in dspace.cfg (e.g. commenting out solr.log.server), but, although 
this seems to have stopped the errors, I still see LoggerUsageEventListener 
lines in the logs, and the View Statistics button is still there (using 
JSPUI).

Anyone have any pointers how to completely disable the SOLR stats (so that 
DSpace isn't trying to log events, and, perhaps more importantly, so that the 
View Statistics button disappears)?

Cheers,

Mike

Michael White
Research Management System (RMS) Project Information Services S8, Library 
University of Stirling Stirling SCOTLAND
FK9 4LA
Email: michael.wh...@stir.ac.uk
Tel: +44 (0) 1786 466877
Fax: +44 (0) 1786 466880
http://www.is.stir.ac.uk/aboutis/teams/aldt/eld.php



--
The Sunday Times Scottish University of the Year 2009/2010 The University of 
Stirling is a charity registered in Scotland,  number SC 011159.


--
All the data continuously generated in your IT infrastructure contains a 
definitive record of customers, 

Re: [Dspace-tech] Turning off SOLR stats

2011-11-28 Thread Michael White
 If you don't have the source, what you could do, in the time being, is 
 go into your tomcat directory tomcat/webapps/jspui/ Then you can modify 
 collection-home.jsp community-home.jsp display-item.jsp

Thanks George,

This is what I was hoping to avoid, but I guess it's what I'll have to do (as 
it doesn't seem to be possible to turn this off via config) - as I said, 
Yuck! ;-)

Cheers,

Mike

Michael White 
Research Management System (RMS) Project
Information Services
S8, Library
University of Stirling 
Stirling SCOTLAND 
FK9 4LA 
Email: michael.wh...@stir.ac.uk 
Tel: +44 (0) 1786 466877 
Fax: +44 (0) 1786 466880
http://www.is.stir.ac.uk/aboutis/teams/aldt/eld.php





-- 
The Sunday Times Scottish University of the Year 2009/2010
The University of Stirling is a charity registered in Scotland, 
 number SC 011159.


--
All the data continuously generated in your IT infrastructure 
contains a definitive record of customers, application performance, 
security threats, fraudulent activity, and more. Splunk takes this 
data and makes sense of it. IT sense. And common sense.
http://p.sf.net/sfu/splunk-novd2d
___
DSpace-tech mailing list
DSpace-tech@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/dspace-tech


[Dspace-tech] SOLR connection issues

2011-11-28 Thread Poulter, Dale
Good morning,

We upgraded to 1.8 and everything seems to be working fine.  However, when we 
attempted to turn on the discovery portion of the mirage theme following the 
steps outlined in 
https://wiki.duraspace.org/display/DSDOC18/Discovery#Discovery-EnablingDiscovery
 and ran dspace update-discovery-index we received the errors below.  Has 
anyone encountered this error or have suggestions?  Thank you.



bash-3.00# ./dspace update-discovery-index
Exception: Error executing query
org.dspace.discovery.SearchServiceException: Error executing query
at 
org.dspace.discovery.SolrServiceImpl.cleanIndex(SolrServiceImpl.java:375)
at org.dspace.discovery.IndexClient.main(IndexClient.java:119)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at 
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at 
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at org.dspace.app.launcher.ScriptLauncher.main(ScriptLauncher.java:183)
Caused by: org.apache.solr.client.solrj.SolrServerException: Error executing 
query
at 
org.apache.solr.client.solrj.request.QueryRequest.process(QueryRequest.java:95)
at org.apache.solr.client.solrj.SolrServer.query(SolrServer.java:118)
at 
org.dspace.discovery.SolrServiceImpl.getSolr(SolrServiceImpl.java:100)
at 
org.dspace.discovery.SolrServiceImpl.cleanIndex(SolrServiceImpl.java:348)
... 6 more
Caused by: org.apache.solr.common.SolrException: Internal Server Error

Internal Server Error

request: http://localhost:8080/solr/search/select?q=search.resourcetype:2 AND 
search.resourceid:1wt=javabinversion=2
at 
org.apache.solr.client.solrj.impl.CommonsHttpSolrServer.request(CommonsHttpSolrServer.java:435)
at 
org.apache.solr.client.solrj.impl.CommonsHttpSolrServer.request(CommonsHttpSolrServer.java:244)
at 
org.apache.solr.client.solrj.request.QueryRequest.process(QueryRequest.java:89)
... 9 more



--Dale

---
Dale Poulter
Automation Coordinator
Library Information Technology Services
Vanderbilt University
419 21st Avenue South, Room 812
Nashville, TN  37203-2427
(615)343-5388
(615)343-8834 (fax)
(615)207-9705 (cell)
dale.poul...@vanderbilt.edumailto:dale.poul...@vanderbilt.edu

--
All the data continuously generated in your IT infrastructure 
contains a definitive record of customers, application performance, 
security threats, fraudulent activity, and more. Splunk takes this 
data and makes sense of it. IT sense. And common sense.
http://p.sf.net/sfu/splunk-novd2d___
DSpace-tech mailing list
DSpace-tech@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/dspace-tech


Re: [Dspace-tech] SOLR connection issues

2011-11-28 Thread Mark Diggory
Your Solr server is no longer accessible on localhost for the client to use, I 
would double-check that your solr search and statistics host:port 
configurations in the dspace.cfg and/or modules/discovery.cfg are correct for 
your system.

Mark

On Nov 28, 2011, at 7:49 AM, Poulter, Dale wrote:

 Good morning,
  
 We upgraded to 1.8 and everything seems to be working fine.  However, when we 
 attempted to turn on the discovery portion of the mirage theme following the 
 steps outlined in 
 https://wiki.duraspace.org/display/DSDOC18/Discovery#Discovery-EnablingDiscovery
  and ran dspace update-discovery-index we received the errors below.  Has 
 anyone encountered this error or have suggestions?  Thank you.
  
  
  
 bash-3.00# ./dspace update-discovery-index
 Exception: Error executing query
 org.dspace.discovery.SearchServiceException: Error executing query
 at 
 org.dspace.discovery.SolrServiceImpl.cleanIndex(SolrServiceImpl.java:375)
 at org.dspace.discovery.IndexClient.main(IndexClient.java:119)
 at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
 at 
 sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
 at 
 sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
 at java.lang.reflect.Method.invoke(Method.java:597)
 at 
 org.dspace.app.launcher.ScriptLauncher.main(ScriptLauncher.java:183)
 Caused by: org.apache.solr.client.solrj.SolrServerException: Error executing 
 query
 at 
 org.apache.solr.client.solrj.request.QueryRequest.process(QueryRequest.java:95)
 at org.apache.solr.client.solrj.SolrServer.query(SolrServer.java:118)
 at 
 org.dspace.discovery.SolrServiceImpl.getSolr(SolrServiceImpl.java:100)
 at 
 org.dspace.discovery.SolrServiceImpl.cleanIndex(SolrServiceImpl.java:348)
 ... 6 more
 Caused by: org.apache.solr.common.SolrException: Internal Server Error
  
 Internal Server Error
  
 request: http://localhost:8080/solr/search/select?q=search.resourcetype:2 AND 
 search.resourceid:1wt=javabinversion=2
 at 
 org.apache.solr.client.solrj.impl.CommonsHttpSolrServer.request(CommonsHttpSolrServer.java:435)
 at 
 org.apache.solr.client.solrj.impl.CommonsHttpSolrServer.request(CommonsHttpSolrServer.java:244)
 at 
 org.apache.solr.client.solrj.request.QueryRequest.process(QueryRequest.java:89)
 ... 9 more
  
  
  
 --Dale
  
 ---
 Dale Poulter
 Automation Coordinator
 Library Information Technology Services
 Vanderbilt University
 419 21st Avenue South, Room 812  
 Nashville, TN  37203-2427
 (615)343-5388
 (615)343-8834 (fax)
 (615)207-9705 (cell)
 dale.poul...@vanderbilt.edu


-- 
 
Mark Diggory
2888 Loker Avenue East, Suite 305, Carlsbad, CA. 92010
Esperantolaan 4, Heverlee 3001, Belgium
http://www.atmire.com


--
All the data continuously generated in your IT infrastructure 
contains a definitive record of customers, application performance, 
security threats, fraudulent activity, and more. Splunk takes this 
data and makes sense of it. IT sense. And common sense.
http://p.sf.net/sfu/splunk-novd2d___
DSpace-tech mailing list
DSpace-tech@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/dspace-tech


[Dspace-tech] allowSetPassword for LDAP authentication?

2011-11-28 Thread Jason Stirnaman
I'm noticing in DSpace 1.8.0 XMLUI, Mirage theme that the Reset Password 
fields are displayed in my profile page after I've authenticated via LDAP. I 
don't see any configuration to disable that. I thought there used to be 
configuration for that, but I could be thinking of some other app. I see the 
allowSetPassword boolean in 
http://scm.dspace.org/svn/repo/dspace/trunk/dspace-api/src/main/java/org/dspace/authenticate/LDAPAuthentication.java
 so 
Can I set allowSetPassword to false for XMLUI in the config, OR
should I set or override someplace in the theme to make those fields disappear?

Thanks,
Jason

Jason Stirnaman
Biomedical Librarian, Digital Projects
A.R. Dykes Library, University of Kansas Medical Center



Jason Stirnaman
Biomedical Librarian, Digital Projects
A.R. Dykes Library, University of Kansas Medical Center
jstirna...@kumc.edu
913-588-7319



--
All the data continuously generated in your IT infrastructure 
contains a definitive record of customers, application performance, 
security threats, fraudulent activity, and more. Splunk takes this 
data and makes sense of it. IT sense. And common sense.
http://p.sf.net/sfu/splunk-novd2d
___
DSpace-tech mailing list
DSpace-tech@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/dspace-tech


Re: [Dspace-tech] How to clear all monthly reports and start from the beginning

2011-11-28 Thread Stuart Lewis
Hi Evelthon,

If you enable DEBUG logging in DSpace, and then re-run the command, the 
dspace.log file should show the SQL that is failing.  If you could show us 
that, it might help to work out where the error is.  My guess is a bad value in 
the dspace statistics config file, but the SQL should help.

 - 
https://wiki.duraspace.org/display/DSPACE/TechnicalFaq#TechnicalFaq-SettingloggingleveluptoDEBUG

Thanks,


Stuart Lewis
Digital Development Manager
Te Tumu Herenga The University of Auckland Library
Auckland Mail Centre, Private Bag 92019, Auckland 1142, New Zealand
Ph: +64 (0)9 373 7599 x81928



On 29/11/2011, at 1:42 AM, Evelthon Prodromou wrote:

 Hello again,
 
 I am asking once more in case someone missed my last email. It will be really 
 helpful if anyone can point me to the right direction.
 
 I did the following since my last email. I edited dstat.cfg and changed 
 start.year to 2001 and start.month to 11. I then cleared  /[dspace]/reports 
 and executed dspace stat-initial. Still the same problem.
 
 
 Many thanks,
 
 
 Evelthon
 
 On 11/19/2011 11:58 PM, Evelthon Prodromou wrote:
 Hello everyone,
 
 I am facing an issue with dspace 17.0 and monthly reports. We are moving
 collections from greenstone to dspace. The monthly reports worked fine
 up to 02/2011.  Seems like whenever a stat-* command is run it returns
 the error below.
 -
 Exception: ERROR: more than one row returned by a subquery used as an
 expression
 org.postgresql.util.PSQLException: ERROR: more than one row returned by
 a subquery used as an expression
 at
 org.postgresql.core.v3.QueryExecutorImpl.receiveErrorResponse(QueryExecutorImpl.java:1531)
 at
 org.postgresql.core.v3.QueryExecutorImpl.processResults(QueryExecutorImpl.java:1313)
 at
 org.postgresql.core.v3.QueryExecutorImpl.execute(QueryExecutorImpl.java:188)
 at
 org.postgresql.jdbc2.AbstractJdbc2Statement.execute(AbstractJdbc2Statement.java:452)
 at
 org.postgresql.jdbc2.AbstractJdbc2Statement.executeWithFlags(AbstractJdbc2Statement.java:354)
 at
 org.postgresql.jdbc2.AbstractJdbc2Statement.executeQuery(AbstractJdbc2Statement.java:258)
 at
 org.apache.commons.dbcp.DelegatingPreparedStatement.executeQuery(DelegatingPreparedStatement.java:96)
 at
 org.apache.commons.dbcp.DelegatingPreparedStatement.executeQuery(DelegatingPreparedStatement.java:96)
 at
 org.apache.commons.dbcp.DelegatingPreparedStatement.executeQuery(DelegatingPreparedStatement.java:96)
 at
 org.dspace.storage.rdbms.DatabaseManager.query(DatabaseManager.java:284)
 at
 org.dspace.storage.rdbms.DatabaseManager.querySingle(DatabaseManager.java:330)
 at
 org.dspace.app.statistics.LogAnalyser.getNumItems(LogAnalyser.java:1249)
 at
 org.dspace.app.statistics.LogAnalyser.processLogs(LogAnalyser.java:498)
 at
 org.dspace.app.statistics.CreateStatReport.statInitial(CreateStatReport.java:259)
 at
 org.dspace.app.statistics.CreateStatReport.main(CreateStatReport.java:129)
 at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
 at
 sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
 at
 sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
 at java.lang.reflect.Method.invoke(Method.java:597)
 at
 org.dspace.app.launcher.ScriptLauncher.main(ScriptLauncher.java:183)
 
 -
  Since we have not yet gone public on dspace, it is of no problem to
 just clear everything out and start our monthly reports from scratch.
 Any pointers on how can that be accomplished?
 
 Thanks
 
 
 
 --
 All the data continuously generated in your IT infrastructure 
 contains a definitive record of customers, application performance, 
 security threats, fraudulent activity, and more. Splunk takes this 
 data and makes sense of it. IT sense. And common sense.
 
 http://p.sf.net/sfu/splunk-novd2d
 
 ___
 DSpace-tech mailing list
 
 DSpace-tech@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/dspace-tech
 prodromou_evelthon.vcf--
 All the data continuously generated in your IT infrastructure 
 contains a definitive record of customers, application performance, 
 security threats, fraudulent activity, and more. Splunk takes this 
 data and makes sense of it. IT sense. And common sense.
 http://p.sf.net/sfu/splunk-novd2d___
 DSpace-tech mailing list
 DSpace-tech@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/dspace-tech



--
All the data continuously generated in your IT infrastructure 
contains a definitive record of customers, application performance, 
security 

Re: [Dspace-tech] Registering Users via Command Line

2011-11-28 Thread Stuart Lewis
Hi Justin,

This isn't possible right now, however we have created a ticket in our software 
issue tracker to see if we can get this implemented:

- https://jira.duraspace.org/browse/DS-1083

Thanks,


Stuart Lewis
Digital Development Manager
Te Tumu Herenga The University of Auckland Library
Auckland Mail Centre, Private Bag 92019, Auckland 1142, New Zealand
Ph: +64 (0)9 373 7599 x81928



On 24/10/2011, at 8:47 AM, Justin A. Diana wrote:

 Hey all,
  
 Is there a way to register a new user via the command line on the server?  I 
 want to perform the same activity as would happen via the “Register” link on 
 the dspace site, but via some scripted process.
  
 Is that doable?
  
 Thanks in advance!
  
 Justin



--
All the data continuously generated in your IT infrastructure 
contains a definitive record of customers, application performance, 
security threats, fraudulent activity, and more. Splunk takes this 
data and makes sense of it. IT sense. And common sense.
http://p.sf.net/sfu/splunk-novd2d
___
DSpace-tech mailing list
DSpace-tech@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/dspace-tech


[Dspace-tech] Creating new OAI Crosswalks in DSpace 1.7.2

2011-11-28 Thread Shaun Burriss
Hi all

We have recently upgraded from DSpace 1.4.2 to 1.7.2 and used a modified 
version of the OAIDCCrosswalk.java file for an OAI feed to Picture Australia. 
It seems that there has been code changes between versions which means we need 
to rewrite the Crosswalk file again, and we need some help with this.

We require the following imports
import org.dspace.content.Bitstream;
import org.dspace.content.Bundle;
import org.dspace.core.ConfigurationManager;
import org.dspace.app.webui.util.UIUtil;

Are there any guides that can help us with adapting our old crosswalk for the 
new DSpace?

Thanks,
Shaun



--
All the data continuously generated in your IT infrastructure 
contains a definitive record of customers, application performance, 
security threats, fraudulent activity, and more. Splunk takes this 
data and makes sense of it. IT sense. And common sense.
http://p.sf.net/sfu/splunk-novd2d
___
DSpace-tech mailing list
DSpace-tech@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/dspace-tech


Re: [Dspace-tech] DSpace: Internal Server Error

2011-11-28 Thread shiva kumara
Dear Helix84,


Thank you so much for your valuable reply.


 I agree with you, But one more clarification is that I neither upgrade my
postgresql database nor used ant fress_install or ant update command. The
problem was that our windows shows the message that “*this is not genuine
versions*”. I called system admin people and told them to make it genuine
versions.  Then he did the some patches to windows. Now I can’t see dspace
database, only Postgresql 9.0 database can be seen in the database list.



 If the database is really empty, I do not have any backup of the dspace
collection. So what is the procedure to initiate and integrate the new
database with existing dspace.

Kindly assist me to solve this problem.

Thanks a ton,

-- 
Regards
Shivakumara RM
http://sites.google.com/site/aigslibrary
https://sites.google.com/site/shivakumararm/



 This error just means that DSpace cannot connect to the database, it
 doesn't say that the database is empty. This is most likely because
 you forgot to set database information in dspace. During the upgrade,
 you probably didn't fill in configuration options of your
 institutution in the new dspace.cfg in
 [dspace-src]/dspace/config/dspace.cfg which gets copied to
 [dspace]/config/dspace.cfg. You can still find a backup of the old
 dspace.cfg in [dspace]/config-[date_of_upgrade]/dspace.cfg. Please,
 follow the manual when doing upgrades, this wouldn't happen.

 If the database is really empty, you'll have to restore it from
 backup. This could have happened if you used ant fresh_install instead
 of ant update when upgrading. Again, please follow the manual closely.

 Regards,
 ~~helix84

--
All the data continuously generated in your IT infrastructure 
contains a definitive record of customers, application performance, 
security threats, fraudulent activity, and more. Splunk takes this 
data and makes sense of it. IT sense. And common sense.
http://p.sf.net/sfu/splunk-novd2d___
DSpace-tech mailing list
DSpace-tech@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/dspace-tech


[Dspace-tech] DSpace Home gone after modifying breadcrumb trail in search results

2011-11-28 Thread Nemiz, Elvi S.
Dear all,

I successfully modified the breadcrumb trail to link to our institution's
homepage by following the instructions here:
http://pubs.or08.ecs.soton.ac.uk/135/2/OR2008-DSpace-1_5.pdf#page=18 but I
noticed that the DSpace Home link is not showing in search results, only
the added link. How can I make the breadcrumb trail in search results show
Home -- DSpace Home and not just Home? Anybody who have the same issue? We
are using xmlui.

Thanks in advance and regards,
Elvi S. Nemiz
Information Assistant
Library and Data Bank Services Section
Training and Information Division
SEAFDEC Aquaculture Department
Tigbauan, Iloilo
Philippines
--
All the data continuously generated in your IT infrastructure 
contains a definitive record of customers, application performance, 
security threats, fraudulent activity, and more. Splunk takes this 
data and makes sense of it. IT sense. And common sense.
http://p.sf.net/sfu/splunk-novd2d___
DSpace-tech mailing list
DSpace-tech@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/dspace-tech