[Dspace-tech] Handle Configuration in DSPace 1.4.1/Windows 2003

216 views
Skip to first unread message

Jayan Chirayath Kurian

unread,
Aug 24, 2015, 5:13:17 PM8/24/15
to dspac...@lists.sourceforge.net

Hi!

 

From CNRI I received the handle 10220. I have listening ports 2641 (TCP) and 8000 (TCP). The handler is started as follows (A). The url of an uploaded item is http://hdl.handle.net/10220/62562 . While accessing the URL the following error is displayed (B). The dspace config handler parameter is updated with 10220.

 

(1)  In my repository all items except the single uploaded item (10220/62562) are having the default handler (123456789). How to run the update-handle-prefix script on Windows? Will this affect the handler service?

 

(2) The protocol to be enabled for 2641 port is TCP or UDP?

 

Please suggest.

Thanks

Jayan

 

 

(A)

 

E:\DSpace\bin>dsrun -Dlog4j.configuration=log4j-handle-plugin.properties net.han

dle.server.Main E:\dspace\handle-server

 

UDP handle Request Listener:

   address: /155.69.24.194

      port: 2641

TCP handle Request Listener:

Starting UDP request handlers:    address: /155.69.24.194

.      port: 2641

Starting TCP request handlers: .HTTP handle Request Listener:

   address: /155.69.24.194

      port: 8000

Starting HTTP request handlers: ...................

..........DONE

..............

 

 

(B)

 

2007/08/07 11:07:59 GMT+08:00" 75 class net.handle.server.HandleServer: error getting values: HandleException (HANDLE_DOES_NOT_EXIST)

HandleException (HANDLE_DOES_NOT_EXIST)

            at org.dspace.handle.HandlePlugin.getRawHandleValues(HandlePlugin.java:263)

            at net.handle.server.HandleServer.doResolution(HandleServer.java:2601)

            at net.handle.server.HandleServer.processRequest(HandleServer.java:1229)

            at net.handle.server.HandleServer.processRequest(HandleServer.java:1188)

            at net.handle.server.HdlHttpRequestHandler.handleHtmlRequest(HdlHttpRequestHandler.java:687)

            at net.handle.server.HdlHttpRequestHandler.run(HdlHttpRequestHandler.java:537)

            at java.lang.Thread.run(Unknown Source)

"2007/08/07 11:21:31 GMT+08:00" 25 Started new run.

Saving global values to: C:\Documents and Settings\Administrator\.handle\root_info

"2007/08/07 11:21:39 GMT+08:00" 50 unspecified max_handlers count, using default: 200

"2007/08/07 11:21:39 GMT+08:00" 50 unspecified max_handlers count, using default: 200

"2007/08/07 11:21:39 GMT+08:00" 50 unspecified max_handlers count, using default: 200

"2007/08/07 11:22:20 GMT+08:00" 75 class net.handle.server.HdlTcpRequestHandler: Exception processing request: HandleException (MESSAGE_FORMAT_ERROR) Invalid message length: 168626701

Stuart Lewis [sdl]

unread,
Aug 24, 2015, 5:13:21 PM8/24/15
to Jayan Chirayath Kurian, dspac...@lists.sourceforge.net
Hi Jayan,

> (1) In my repository all items except the single uploaded item (10220/62562)
> are having the default handler (123456789). How to run the
> update-handle-prefix script on Windows? Will this affect the handler service?

You might find it easier to first apply this patch:

http://sourceforge.net/tracker/index.php?func=detail&aid=1642563&group_id=19
984&atid=319984

This uses Java rather than a Unix shell script to make the changes.

It should not affect the service at all - all it does is change the
identifiers in the database to use your new handle value.

(As always - test first on a backup!)

> (2) The protocol to be enabled for 2641 port is TCP or UDP?

UDP is better if you can.

Thanks,


Stuart
_________________________________________________________________

Gwasanaethau Gwybodaeth Information Services
Prifysgol Cymru Aberystwyth University of Wales Aberystwyth

E-bost / E-mail: Stuart...@aber.ac.uk
Ffon / Tel: (01970) 622860
_________________________________________________________________


Jayan Chirayath Kurian

unread,
Aug 24, 2015, 5:13:22 PM8/24/15
to Jayan Chirayath Kurian, dspac...@lists.sourceforge.net, Stuart Lewis [sdl], Masud (Simon) Idris

Thanks Stuart.

 

The handle works fine. The problem was with the dspace url in the dspace-config file.

 

http://hdl.handle.net/10220/62562

 

For starting the handle server at the command prompt

> E:\DSpace\bin>dsrun -Dlog4j.configuration=log4j-handle-plugin.properties net.han

dle.server.Main E:\dspace\handle-server

 

In this case I need to leave the command line window open for the handle server to function. If I close the command line window, handle server stops. Is there a way to use “javaw” to run the handle so that the process runs at the background. I have given a password (“passphrase for the server cert) for the handler setup. In this case how to give the password for the handle server to startup running the process at the background. Please suggest

 

Thanks,

Jayan

 


Stuart Lewis [sdl]

unread,
Aug 24, 2015, 5:13:23 PM8/24/15
to Jayan Chirayath Kurian, dspac...@lists.sourceforge.net, Masud (Simon) Idris
Hi Jayan,

> For starting the handle server at the command prompt
>> E:\DSpace\bin>dsrun -Dlog4j.configuration=log4j-handle-plugin.properties
>> net.han
> dle.server.Main E:\dspace\handle-server
>
> In this case I need to leave the command line window open for the handle
> server to function. If I close the command line window, handle server stops.
> Is there a way to use ³javaw² to run the handle so that the process runs at
> the background.

For a possible solution, take a look at:

http://cadair.aber.ac.uk/dspace/handle/2160/318

(See slides number 4 & 5)

Cheers,

Jayan Chirayath Kurian

unread,
Aug 24, 2015, 5:13:52 PM8/24/15
to dspac...@lists.sourceforge.net, Masud (Simon) Idris, Stuart Lewis [sdl]

Thanks Stuart, Graham, and Masud for your help.

 

Steps for handler installation

 

(1)     Open ports 2641 and 8000

(2)     E:\dspace\bin> dsrun net.handle.server.SimpleSetup E:\dspace\handle-server

(3)     I gave empty Pass phrase in the last two steps for (2) to enable handler startup as a windows service

a.       Generating keys for: Server Certification

b.       Generating keys for: Administration

(4)     Apply for the global identifier at CNRI

(5)     Check the DSpace config file for the correct DSpace URL and update the handler prefix.

(6)     C:\DSpace\bin>dsrun -Dlog4j.configuration=log4j-handle-plugin.properties net.handle.server.Main E:\dspace\handle-server

 

a.       Reference : http://sunsite.utk.edu/diglib/dspace/#handle

 

OR

 

(7)     To run handle as a windows service, please refer to Grahams/Stuart mail

a.       http://www.mail-archive.com/dspac...@lists.sourceforge.net/msg01440.html

b.       http://cadair.aber.ac.uk/dspace/handle/2160/318

 

 

Thanks,

Jayan

Jayan Chirayath Kurian

unread,
Aug 24, 2015, 5:13:54 PM8/24/15
to Stuart Lewis [sdl], dspac...@lists.sourceforge.net
Hi! Stuart,

The prefix update works fine on my windows machine. Thanks.

In the code text_value = overlay ( text_value placing '" + newH + "' " +
"from 23 for " + oldH.length() + ") where text_value like "
+
"'http://hdl.handle.net/" + oldH + "%'";


(1) The number 23 refers to the length of http://hdl.handle.net/ plus
one for replacement of new handler id?
(2) the metadata_field_id for http://hdl.handle.net/ is always 25 ?
(3) While reindexing I got this error which was got rid off by bringing
down tomcat.

Indexing all Items in DSpace.... ... Done
Re-creating search index... Error re-indexing:
java.io.IOException: Cannot delete C:\DSPace\search\_2d.cfs

Regards,
Jayan

-----Original Message-----
From: Stuart Lewis [sdl] [mailto:s...@aber.ac.uk]
Sent: Tuesday, August 07, 2007 5:08 PM
To: Jayan Chirayath Kurian; dspac...@lists.sourceforge.net
Subject: Re: [Dspace-tech] Handle Configuration in DSPace 1.4.1/Windows
2003

Reply all
Reply to author
Forward
0 new messages