David Ghedini

Linux, Java, Oracle, and PostgreSQL


David Ghedini

Thursday Mar 21, 2019

DSpace: Display Number of Items in Community

To display the number of submissions for each Community, change value of "webui.strengths.show" from "false" to "true" in dspace.cfg as show below:

Note: By default, an index count will be performed in real time when pages are loaded. If you wish to prevent this, uncomment "webui.strengths.cache = true" and set the value to "false"

# Whether to display collection and community strengths (i.e. item counts)
# XMLUI only makes strengths available to themes if this is set to true!
# To show strengths in the XMLUI, you also need to create or use a theme which
# displays them.
webui.strengths.show = true

# if showing strengths, should they be counted in real time or
# fetched from cache?
#
# Counts fetched in real time will perform an actual count of the
# index contents every time a page with this feature is requested,
# which may not scale as well as a cached count.
# The default behaviour is to use a cache.
# webui.strengths.cache = true

Bookmark and Share



Monday Dec 07, 2015

DSpace Handle Server: java.lang.Exception: Incorrect passphrase

The solution is provided by Rafael Carreres Paredes at

http://osdir.com/ml/db.dspace.user/2007-07/msg00300.html

I had a bit of trouble locating it, however, so hopefully this will help the next person:

After issuing './bin/start-handle-server' there is no error displayed but handle server is not running.

The /dspace/log/handle-server.log shows:


Enter the passphrase for this server's authentication private key: 
Note: Your passphrase will be displayed as it is entered
Error: Incorrect passphrase
       (see the error log for details.)

Shutting down...


And in /handle-server/error.log:


Unable to initialize server signature object: java.lang.Exception: Incorrect passphrase
java.lang.Exception: Incorrect passphrase
	at net.handle.hdllib.Util.decrypt(Util.java:1083)
	at net.handle.server.HandleServer.(HandleServer.java:306)
	at net.handle.server.AbstractServer.getInstance(AbstractServer.java:72)
	at net.handle.server.Main.initialize(Main.java:152)
	at net.handle.server.Main.main(Main.java:75)



SSH and navigate to your dspace lib directory.

Navigate to your /lib directory and use the java key util as below (be sure to substitute paths for your privkey to your own):


 java -cp handle-6.2.jar net.handle.apps.tools.KeyUtil /var/lib/dspace-5.4/handle-server/privkey.bin



It starts an interactive session in which you will be asked for your password (the one you set handle configuration) and then give the option of 'Save private key without encryption'


Enter the passphrase for this private key:
Note: Your passphrase will be displayed as it is entered
MyPassword

Choose an operation:
  1: Encrypt private key with passphrase
  2: Save private key without encryption
  3: Exit
2
Warning: data not encrypted
Private key saved to file: /var/lib/dspace-5.4/dspace/handle-server/privkey.bin

Choose an operation:
  1: Encrypt private key with passphrase
  2: Save private key without encryption
  3: Exit
3




Check that you handle server is now running as well as logs.

Bookmark and Share




Main Menu

Built With

Pages

LinkedIn

Tag Cloud

Hosted by:

Navigation

Visitors

Sponsors

petiole Cloud

Feeds