Re: [Dspace-tech] DSpace Logs

2011-11-08 Thread amutsikiwa
Thanks. I managed to  make a copy of cocoon.log , checker.log and 
handle-plugin.log  and managed to recover 2GB. Now I am wondering of the 
dspace.log.2010-12-21 and   dspace.log.2010-12-21.solr which one are necessary 
for computation of access statistics.

 

From: Peter Dietz [mailto:pdiet...@gmail.com] 
Sent: Monday, November 07, 2011 7:27 PM
To: amutsikiwa
Cc: dspace-tech@lists.sourceforge.net
Subject: Re: [Dspace-tech] DSpace Logs

 

Hi Admire,

 

There is interesting information that lives in old logs. You could in the 
future build something to count how many queries have been performed on your 
system, see how popular your RSS feeds are, look at errors users encounter, etc.

 

So, if your concerned with space and backup time, you could either move your 
old logs off of your production server, and move them to another server that 
works more as an archive. Or.. you could just tar/zip up some old logs to 
compress them which will save a massive amount of space. So that when you need 
the logs in the future, you can just extract them.

 

The dspace.log logs are important. Cocoon.log is not important.

I wouldn't recommend altering the contents of dspace.log, but if you've had 
debug mode on for an extended period of time, you might want to remove debug 
entries.

 

 

Peter Dietz




On Mon, Nov 7, 2011 at 5:03 AM, amutsikiwa amutsik...@uzlib.uz.ac.zw wrote:

Hi

 

I have been running dspace for a while. Now my dspace directory is over 13GB in 
size. My assetstore directory is under 700MB. My dspace log is the one that is 
over 9GB.  The size is taking a toll on my backup. I know I have to preserve 
the logs  in the interest of access statistics. But  I believe not all the log 
entries contribute to  access statistics. So   I am wondering which log entries 
can  I delete from the log directory?

 

 

 

Kind Regards,

 

Admire Mutsikiwa

ICT Projects Manager

Library IT

University of Zimbabwe

Tel:+263-4-303276

Cel:+263-772-239187 tel:%2B263-772-239187 

 

 


The University of Zimbabwe is eternally grateful to the tremendous support it 
received from both local and international partners at its fundraising dinner. 
Partnerships supported are partnerships solidified; w e hope to continue 
working together with you our partners in our teaching and research journey. 
May the Lord richly bless you. 

Website: www.fundraising.uz.ac.zw 

 


--
RSA(R) Conference 2012
Save $700 by Nov 18
Register now
http://p.sf.net/sfu/rsa-sfdev2dev1
___
DSpace-tech mailing list
DSpace-tech@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/dspace-tech

 




The University of Zimbabwe is eternally grateful to the tremendous support
it received from both local and international partners at its fundraising
dinner.  Partnerships supported are partnerships solidified; we hope to
continue working together with you our partners in our teaching and research
journey.  May the Lord richly bless you.

Website: www.fundraising.uz.ac.zw



--
RSA(R) Conference 2012
Save $700 by Nov 18
Register now
http://p.sf.net/sfu/rsa-sfdev2dev1___
DSpace-tech mailing list
DSpace-tech@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/dspace-tech


Re: [Dspace-tech] 1.7.2 memory errors

2011-11-08 Thread helix84
I'm not familiar with the jsvc setup you're using, so I'm not sure
which one of those java/jsvc processes _actually_ runs dspace. Just to
make sure, if you already didn't do it, restart the whole server to
get rid of any processes from your previous configuration. Then you
should be fine.

You probably know that now the correct way for you to
start/stop/restart dspace is to use service dspace start, service
dspace start, service dspace start respectively.

Regards,
~~helix84

--
RSA(R) Conference 2012
Save $700 by Nov 18
Register now
http://p.sf.net/sfu/rsa-sfdev2dev1
___
DSpace-tech mailing list
DSpace-tech@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/dspace-tech


[Dspace-tech] Ldap hierarchical and multiple urls to authenticate

2011-11-08 Thread Álvaro López Criado
Hi everybody:

¿is there any configuration to login to multiple LDAP server?
I mean, i've got one LDAP server ( active directory ) but to access to
different threads i have different URLs.
Using LDAP authentication method and dspace.cfg i can only put ONE of this
server so i can't login with users that belongs to other threads...
Any help?
Thanks in advance


-- 
Álvaro López
--
RSA(R) Conference 2012
Save $700 by Nov 18
Register now
http://p.sf.net/sfu/rsa-sfdev2dev1___
DSpace-tech mailing list
DSpace-tech@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/dspace-tech


Re: [Dspace-tech] Ldap hierarchical and multiple urls to authenticate

2011-11-08 Thread helix84
On Tue, Nov 8, 2011 at 10:10, Álvaro López Criado alo...@arvo.es wrote:
 ¿is there any configuration to login to multiple LDAP server?
 I mean, i've got one LDAP server ( active directory ) but to access to
 different threads i have different URLs.
 Using LDAP authentication method and dspace.cfg i can only put ONE of this
 server so i can't login with users that belongs to other threads...

I'm not sure if I understand your LDAP hierarchy correctly. Do you
have different groups of users in different contexts
(ldap://example.com/o=org,ou=department1 and
ldap://example.com/o=org,ou=department2) or on diferrent LDAP servers
(ldap://ldapserver1.com/o=org,ou=department1 and
ldap://ldapserver2.com/o=org,ou=department2)?

In the first case, the solution is to use hierarchical LDAP which does
search before it does the actual bind. In the second case I don't
believe there's an out-of-the-box solution - you would either have to
implement a class to do that yourself in DSpace or, preferably,
rethink your LDAP directory structure.

Regards,
~~helix84

--
RSA(R) Conference 2012
Save $700 by Nov 18
Register now
http://p.sf.net/sfu/rsa-sfdev2dev1
___
DSpace-tech mailing list
DSpace-tech@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/dspace-tech


Re: [Dspace-tech] 1.7.2 memory errors

2011-11-08 Thread Swanepoel, Barrie
I had a discussion with a developer here and he had me change the startup 
script to:

CATALINA_OPTS=-Djava.library.path=/home/jfclere/jakarta-tomcat-connectors/jni/native/.libs
 -Xmx4096M -Xms2048M -Dfile.encoding=UTF-8 -XX:+UseConcMarkSweepGC 
-XX:+CMSPermGenSweepingEnabled -XX:+CMSClassUnloadingEnabled 
-XX:MaxPermSize=512M

It seems fine but off course I have to keep monitoring!

I will appreciate if the list could have a discussion around the optimum memory 
allocations for this as well as the Postgresql.

My situation is: 24 Gb on board.

As you can see -Xmx4096M -Xms2048M for the startup as well as MaxPermSize=512M 
for Perm size.

Also my postgresql.conf is shared_buffers=1024Mb

I see it mentioned that one can take half of onboard mem for the Catalina?

Any thoughts? Will it have any advantages or even disadvantages? (Don’t want to 
waste memory!)

Thanks

Barrie Swanepoel
Systems Administrator
University of Johannesburg
Library and Information Centre
PO Box 524
Auckland Park
Johannesburg
Republic of South Africa
Tel: +27 11 559 2347
Cell: 082 565 7743




-Original Message-
From: ivan.ma...@gmail.com [mailto:ivan.ma...@gmail.com] On Behalf Of helix84
Sent: 08 November 2011 10:57 AM
To: Swanepoel, Barrie
Cc: dspace-tech
Subject: Re: [Dspace-tech] 1.7.2 memory errors

I'm not familiar with the jsvc setup you're using, so I'm not sure which one of 
those java/jsvc processes _actually_ runs dspace. Just to make sure, if you 
already didn't do it, restart the whole server to get rid of any processes from 
your previous configuration. Then you should be fine.

You probably know that now the correct way for you to start/stop/restart dspace 
is to use service dspace start, service dspace start, service dspace 
start respectively.

Regards,
~~helix84



This email and all contents are subject to the following disclaimer:

http://disclaimer.uj.ac.za
--
RSA(R) Conference 2012
Save $700 by Nov 18
Register now
http://p.sf.net/sfu/rsa-sfdev2dev1
___
DSpace-tech mailing list
DSpace-tech@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/dspace-tech


Re: [Dspace-tech] 1.7.2 memory errors

2011-11-08 Thread helix84
On Tue, Nov 8, 2011 at 12:45, Swanepoel, Barrie barr...@uj.ac.za wrote:
 I will appreciate if the list could have a discussion around the optimum 
 memory allocations for this as well as the Postgresql.

Here's a starting page for performance tuning. Make sure to look at
Postgres there.

https://wiki.duraspace.org/display/DSPACE/HowToPerformanceTuneForDspace

Of course, this is not specific to DSpace, so you'll probably get more
information on Tomcat pages and mailing lists.

Also there's no panacea for DSpace memory issues and no generic
optimal setting. Monitoring is essential for proper performance
tuning, so you might want to watch memory usage in Tomcat over a
longer time period to better understand its requirements in your
particular usage scenario. I suggest you look at
http://www.lambdaprobe.org/ but there are quite a few tools that can
do this.

That all said, I don't think you need to worry too much with just
several thousand items in your repository. But of course it's
important to learn it if your repository will grow to hundreds of
thousands.

Regards,
~~helix84

--
RSA(R) Conference 2012
Save $700 by Nov 18
Register now
http://p.sf.net/sfu/rsa-sfdev2dev1
___
DSpace-tech mailing list
DSpace-tech@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/dspace-tech


Re: [Dspace-tech] DSPACE Rest API (problem)

2011-11-08 Thread Dennis Tobar
mmm...

I just see the pom.xml file in dspace-rest (svn) and in the parent
node appears version1.8.0-SNAPSHOT/version. You must replace
this line with you dspace version.

In step 5a) you must copy any pom.xml from anywhere (pe: /modules/jspui).

On Tue, Nov 8, 2011 at 3:03 AM, Abhishek Raval abhis...@webinito.com wrote:
 Hello Dennis,

 thanks for the help ..

 i m still not getting wat to do in step 5a) ???. i just take pom.xml
 from ../modules/jspui  put into ../modules/rest/is it right ?

 pom.xml file need to edit or not ???


 On Mon, Nov 7, 2011 at 5:02 PM, Dennis Tobar dennis.to...@gmail.com wrote:

 Hi,

 I think that you must rename the dspace version in pom.xml in the
 dspace-rest directory, because pom is looking for dspace 1.8.0. Snapshot,
 but I think that you aren't using that version.

 I just playing with it around two months ago, an this was the first
 problem to resolve.

 Regards,
 Dennis Tobar

 El 07/11/2011 07:47, Abhishek Raval abhis...@webinito.com escribió:

 
  Hello,
 
 
   I m trying to integrate DSPACE REST-API into dspace-1.7.2. During
  the RD i found some steps to follow through which i can do that. steps are
  below.
 
  1) Create a new directory for the REST module source code -
  dspace-src/dspace-rest.
 
  2) Checkout the source code from
  http://scm.dspace.org/svn/repo/modules/dspace-rest/trunk/ into the new
  directory.
 
  3) Incorporate the new module into your project by adding a new module
  element for dspace-rest to the 'all' profile in dspace-src/pom.xml.
 
  4) Tell Maven to use your new local module by adding a new profile to
  dspace-src/dspace/pom.xml. If you don't do this the project will build okay
  but won't be using your local source code for that module.
 
  5) Create a new directory dspace-src/dspace/modules/rest.
 
  5a) Add a sub-directory src/main/webapp and a pom.xml to the directory
  created in 5. (Copy the pom from any other modules/ module).
 
  6) Add a profile to dspace-src/dspace/modules/pom.xml.
 
  7) Rebuild your project.
 
 
 
  aftr doing this when i m trying to perform mvn package it gives me
  error as per below
 
 
  D:\dspace-agro\dspace-rest\dspace-1.7.2-src-releasemvn package
  [INFO] Scanning for projects...
  Downloading:
  http://source.sakaiproject.org/maven2//org/dspace/dspace-parent/1.8
  .0-SNAPSHOT/dspace-parent-1.8.0-SNAPSHOT.pom
  [WARNING] Unable to get resource
  'org.dspace:dspace-parent:pom:1.8.0-SNAPSHOT' f
  rom repository sakaiproject repository
  (http://source.sakaiproject.org/maven2/):
   Error transferring file: source.sakaiproject.org
  [INFO]
  
  [ERROR] FATAL ERROR
  [INFO]
  
  [INFO] Error building POM (may not be this project's POM).
 
 
  Project ID: org.dspace:dspace-rest:war:null
 
  Reason: Cannot find parent: org.dspace:dspace-parent for project:
  org.dspace:dsp
  ace-rest:war:null for project org.dspace:dspace-rest:war:null
 
 
 
  anyone have any idea abt this how do i go farther on this ?
 
 
 







-- 
Dennis Tobar Calderón
Ingeniero en Informática UTEM
Licenciado en Ciencias de la Ingeniería UTEM

--
RSA(R) Conference 2012
Save $700 by Nov 18
Register now
http://p.sf.net/sfu/rsa-sfdev2dev1
___
DSpace-tech mailing list
DSpace-tech@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/dspace-tech


[Dspace-tech] checker error when run as a cron job

2011-11-08 Thread Debashree Pati
Hi,

When I run checker from the command line, it works fine. 
However, when I set it up as a cron job, it logs the following error:

Problem listing checksum results codes: java.lang.ClassNotFoundException:
java.sql.SQLException: java.lang.ClassNotFoundException:
at 
org.dspace.storage.rdbms.DatabaseManager.initialize(DatabaseManager.java:1711)
at 
org.dspace.storage.rdbms.DatabaseManager.getConnection(DatabaseManager.java:618)
at 
org.dspace.checker.ChecksumResultDAO.listAllCodes(ChecksumResultDAO.java:131)
at org.dspace.checker.ResultsPruner.prune(ResultsPruner.java:258)
at org.dspace.app.checker.ChecksumChecker.main(ChecksumChecker.java:170)
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:212)

Anybody has had similar problem? Can someone help explain the cause.

Thanks,
Debashree
OhioLINK

--
RSA(R) Conference 2012
Save $700 by Nov 18
Register now
http://p.sf.net/sfu/rsa-sfdev2dev1
___
DSpace-tech mailing list
DSpace-tech@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/dspace-tech


Re: [Dspace-tech] checker error when run as a cron job

2011-11-08 Thread George S Kozak
Debashree:

I ran into a similar problem.  I had to place the checker into a script that 
explicitly invoked the Class Paths and library paths.  For some reason, cron 
was not picking these up even though I was invoking it under the DSpace userid. 
 This cropped up after we moved from Solaris to Linux.

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

From: Debashree Pati [dp...@ohiolink.edu]
Sent: Tuesday, November 08, 2011 2:57 PM
To: dspace-tech@lists.sourceforge.net
Subject: [Dspace-tech] checker error when run as a cron job

Hi,

When I run checker from the command line, it works fine.
However, when I set it up as a cron job, it logs the following error:

Problem listing checksum results codes: java.lang.ClassNotFoundException:
java.sql.SQLException: java.lang.ClassNotFoundException:
at 
org.dspace.storage.rdbms.DatabaseManager.initialize(DatabaseManager.java:1711)
at 
org.dspace.storage.rdbms.DatabaseManager.getConnection(DatabaseManager.java:618)
at 
org.dspace.checker.ChecksumResultDAO.listAllCodes(ChecksumResultDAO.java:131)
at org.dspace.checker.ResultsPruner.prune(ResultsPruner.java:258)
at org.dspace.app.checker.ChecksumChecker.main(ChecksumChecker.java:170)
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:212)

Anybody has had similar problem? Can someone help explain the cause.

Thanks,
Debashree
OhioLINK

--
RSA(R) Conference 2012
Save $700 by Nov 18
Register now
http://p.sf.net/sfu/rsa-sfdev2dev1
___
DSpace-tech mailing list
DSpace-tech@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/dspace-tech

--
RSA(R) Conference 2012
Save $700 by Nov 18
Register now
http://p.sf.net/sfu/rsa-sfdev2dev1
___
DSpace-tech mailing list
DSpace-tech@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/dspace-tech