[Dspace-tech] Handle Server Problem

577 views
Skip to first unread message

George Kozak

unread,
Aug 24, 2015, 12:12:10 PM8/24/15
to dspac...@lists.sourceforge.net
I have run across a problem that I hope someone can help me with.

We have been running DSpace for a while at Cornell University. This week,
I was checking some of our links as we were going live with our
dissertations and theses soon when I discovered that our handles were no
longer working.

I am not sure what is wrong, handles are being generated when items are
installed, but when I try and click on a handle such as
http://hdl.handle.net/1813/57, I am getting "

Error - Handle Cannot Connect to Server".

Since it has been ages that I looked at this and we installed DSpace and
the Handle Server, I wonder if someone could give me some clues to follow
to debug this. Where should I look first to see why this isn't
working? Thanks!


George Kozak
Digital Library Specialist
Library Systems
501 Olin Library
Cornell University
Ithaca, NY 14853
607-255-8924
gs...@cornell.edu



Greg McClellan

unread,
Aug 24, 2015, 12:12:11 PM8/24/15
to George Kozak, dspac...@lists.sourceforge.net
Hi George.

Your handle server probably isn't running. When restarting your
server, make sure you run the dspace/bin/start-handle-server command.

Greg

At 10:03 PM -0500 12/5/03, George Kozak wrote:
>I have run across a problem that I hope someone can help me with.
>
>We have been running DSpace for a while at Cornell University. This
>week, I was checking some of our links as we were going live with
>our dissertations and theses soon when I discovered that our handles
>were no longer working.
>
>I am not sure what is wrong, handles are being generated when items
>are installed, but when I try and click on a handle such as
>http://hdl.handle.net/1813/57, I am getting "
>
>Error - Handle Cannot Connect to Server".
>
>Since it has been ages that I looked at this and we installed DSpace
>and the Handle Server, I wonder if someone could give me some clues
>to follow to debug this. Where should I look first to see why this
>isn't working? Thanks!
>


--
Greg McClellan g...@mit.edu
DSpace Systems Manager 617-452-2748
MIT Libraries

Henry N Jerez

unread,
Aug 24, 2015, 12:12:21 PM8/24/15
to George Kozak, dspac...@lists.sourceforge.net
Hi
Are you sure that the cnri handle server can access your dspace handke
server? namely, is your dspace machine behind a firewall? does it have a
public ip? if behind a firewall are the correct ports open?( cnri webpage
has help on which ports to open.
greetings
Henry Jerez
> -------------------------------------------------------
> This SF.net email is sponsored by: IBM Linux Tutorials.
> Become an expert in LINUX or just sharpen your skills. Sign up for IBM's
> Free Linux Tutorials. Learn everything from the bash shell to sys admin.
> Click now! http://ads.osdn.com/?ad_id=1278&alloc_id=3371&op=click
> _______________________________________________
> DSpace-tech mailing list
> DSpac...@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/dspace-tech
>


S.Shashi Nath

unread,
Aug 24, 2015, 12:12:54 PM8/24/15
to dspac...@lists.sourceforge.net
Hello,

I have installed the handle server alongwith 1.1.1. When I start the
handle server, it just shuts down and error.log has the folowing output :
----------------------------------------------------------------------------
unable to initialize server signature object:
javax.crypto.BadPaddingException: Given final block not properly padded
javax.crypto.BadPaddingException: Given final block not properly padded
at com.sun.crypto.provider.SunJCE_h.b(DashoA6275)
at com.sun.crypto.provider.SunJCE_h.b(DashoA6275)
at com.sun.crypto.provider.DESCipher.engineDoFinal(DashoA6275)
at javax.crypto.Cipher.doFinal(DashoA6275)
at
net.handle.security.provider.SunJceHdlSecurityProvider.decrypt_DES_ECB_PKCS5(Unknown
Source)
at net.handle.hdllib.Util.decrypt(Unknown Source)
at net.handle.server.HandleServer.<init>(Unknown Source)
at net.handle.server.AbstractServer.getInstance(Unknown Source)
at net.handle.server.Main.initialize(Unknown Source)
at net.handle.server.Main.main(Unknown Source)
javax.crypto.BadPaddingException: Given final block not properly padded
at com.sun.crypto.provider.SunJCE_h.b(DashoA6275)
at com.sun.crypto.provider.SunJCE_h.b(DashoA6275)
at com.sun.crypto.provider.DESCipher.engineDoFinal(DashoA6275)
at javax.crypto.Cipher.doFinal(DashoA6275)
at
net.handle.security.provider.SunJceHdlSecurityProvider.decrypt_DES_ECB_PKCS5(Unknown
Source)
at net.handle.hdllib.Util.decrypt(Unknown Source)
at net.handle.server.HandleServer.<init>(Unknown Source)
at net.handle.server.AbstractServer.getInstance(Unknown Source)
at net.handle.server.Main.initialize(Unknown Source)
at net.handle.server.Main.main(Unknown Source)
Shutting down...

------------------------------------------------------------------------------

Because of this we are not able to resolve handles globally. Everything
else is working fine.Dspace is assigning handles without any
problem.

Can somebody help??

Thanks & Regards

S.Shashi Nath


Richard Jones

unread,
Aug 24, 2015, 12:13:17 PM8/24/15
to S.Shashi Nath, dspac...@lists.sourceforge.net
Hi,

I've had this problem before, and although I have yet to find the time to
resolve it, it has been suggested to me that the BadPaddingException is
being thrown because of a difference between the version of the Handle
Server currently available from CNRI and the version supported by 1.1.1 of
DSpace. The recommendation is to install from the handle.jar that comes
with DSpace.

Cheers

Richard
==============================
Richard Jones
Systems Developer
Theses Alive! - www.thesesalive.ac.uk
Edinburgh University Library
r.d....@ed.ac.uk
0131 651 1611


----- Original Message -----
From: "S.Shashi Nath" <sha...@ncsi.iisc.ernet.in>
To: <dspac...@lists.sourceforge.net>
Sent: Thursday, December 18, 2003 9:16 AM
Subject: [Dspace-tech] Handle Server Problem


>

Cameron, Jacob

unread,
Aug 25, 2015, 4:47:13 PM8/25/15
to dspac...@lists.sourceforge.net
I can not get our handle server to run on Windows 7. I am getting the
following error (found in the handle-server directory error.txt file).
Any help would be appreciated.

"2011/05/11 10:26:15 MDT" 25 Started new run.
Saving global values to: C:\Users\dspace\.handle\root_info
Saving global values to: C:\Users\dspace\.handle\root_info
"2011/05/11 10:26:23 MDT" 50 unspecified max_handlers count, using
default: 200
"2011/05/11 10:26:23 MDT" 50 unspecified max_handlers count, using
default: 200
"2011/05/11 10:26:23 MDT" 50 unspecified max_handlers count, using
default: 200
"2011/05/11 10:26:23 MDT" 25 Shutting down server at Wed May 11 10:26:23
MDT 2011
"2011/05/11 10:26:23 MDT" 75 class net.handle.server.HdlUdpInterface:
Error handling request: java.net.SocketException: socket closed
java.net.SocketException: socket closed
at java.net.PlainDatagramSocketImpl.receive0(Native Method)
at java.net.PlainDatagramSocketImpl.receive(Unknown Source)
at java.net.DatagramSocket.receive(Unknown Source)
at
net.handle.server.HdlUdpInterface.serveRequests(HdlUdpInterface.java:156
)
at
net.handle.server.NetworkInterface.run(NetworkInterface.java:150)
at java.lang.Thread.run(Unknown Source)
"2011/05/11 10:26:23 MDT" 75 class net.handle.server.HdlTcpInterface:
Error handling request: java.net.SocketException: socket closed
java.net.SocketException: socket closed
at java.net.PlainSocketImpl.socketAccept(Native Method)
at java.net.PlainSocketImpl.accept(Unknown Source)
at java.net.ServerSocket.implAccept(Unknown Source)
at java.net.ServerSocket.accept(Unknown Source)
"2011/05/11 10:26:23 MDT" 75 class net.handle.server.HdlHttpInterface:
Error handling request: java.net.SocketException: socket closed
at
net.handle.server.HdlTcpInterface.serveRequests(HdlTcpInterface.java:155
)
at
net.handle.server.NetworkInterface.run(NetworkInterface.java:150)
at java.lang.Thread.run(Unknown Source)java.net.SocketException:
socket closed
at java.net.PlainSocketImpl.socketAccept(Native Method)
at java.net.PlainSocketImpl.accept(Unknown Source)
"2011/05/11 02:42:42 MDT" 25 Started new run.
Saving global values to: C:\Users\dspace\.handle\root_info
"2011/05/11 02:42:48 MDT" 50 unspecified max_handlers count, using
default: 200
"2011/05/11 02:42:48 MDT" 50 unspecified max_handlers count, using
default: 200
"2011/05/11 02:42:48 MDT" 50 unspecified max_handlers count, using
default: 200
"2011/05/11 02:42:48 MDT" 25 Shutting down server at Wed May 11 14:42:48
MDT 2011
"2011/05/11 02:42:48 MDT" 75 class net.handle.server.HdlUdpInterface:
Error handling request: java.net.SocketException: socket closed
java.net.SocketException: socket closed
at java.net.PlainDatagramSocketImpl.receive0(Native Method)
at java.net.PlainDatagramSocketImpl.receive(Unknown Source)
at java.net.DatagramSocket.receive(Unknown Source)
at
net.handle.server.HdlUdpInterface.serveRequests(HdlUdpInterface.java:156
)
at
net.handle.server.NetworkInterface.run(NetworkInterface.java:150)
at java.lang.Thread.run(Unknown Source)"2011/05/11 02:42:48 MDT"
75 class net.handle.server.HdlTcpInterface: Error handling request:
java.net.SocketException: socket closed

java.net.SocketException: socket closed
at java.net.PlainSocketImpl.socketAccept(Native Method)
at java.net.PlainSocketImpl.accept(Unknown Source)
at java.net.ServerSocket.implAccept(Unknown Source)
at java.net.ServerSocket.accept(Unknown Source)
at
net.handle.server.HdlTcpInterface.serveRequests(HdlTcpInterface.java:155
)
at
net.handle.server.NetworkInterface.run(NetworkInterface.java:150)
at java.lang.Thread.run(Unknown Source)
"2011/05/11 02:42:48 MDT" 75 class net.handle.server.HdlHttpInterface:
Error handling request: java.net.SocketException: socket closed
java.net.SocketException: socket closed"2011/05/11 03:35:31 MDT" 25
Started new run.
Saving global values to: C:\Users\dspace\.handle\root_info
"2011/05/11 03:36:02 MDT" 50 unspecified max_handlers count, using
default: 200
"2011/05/11 03:36:02 MDT" 50 unspecified max_handlers count, using
default: 200
"2011/05/11 03:36:02 MDT" 50 unspecified max_handlers count, using
default: 200
"2011/05/11 03:36:02 MDT" 25 Shutting down server at Wed May 11 15:36:02
MDT 2011
"2011/05/11 03:36:02 MDT" 75 class net.handle.server.HdlHttpInterface:
Error handling request: java.net.SocketException: socket closed

--
Jake Cameron, BCS(UNB)
Technical Specialist III
Information Systems and Technical Services
University of Lethbridge Library
Phone:(403)329-2756

This e-mail, including any and all attachments, is only for the use of
the intended recipient(s) and may contain information that is
confidential or privileged. If you are not the intended recipient, you
are advised that any dissemination, copying or other use of this e-mail
is prohibited. Please notify the sender of the error in communication by
return e-mail and destroy all copies of this e-mail. Thank you.



Cameron, Jacob

unread,
Aug 25, 2015, 4:47:17 PM8/25/15
to Cameron, Jacob, dspac...@lists.sourceforge.net
I tried a couple of things people suggested such as making sure I was
running the command prompt as an administrator, restarting the server to
make sure no odd java processes were running, and restarting all of the
DSpace services. I still am getting an error when I try to start the
handle server. Could it be due to running an encrypted handle?

I got this error when I tried to start it this morning.

"2011/05/12 07:55:03 MDT" 50 unspecified max_handlers count, using
default: 200
"2011/05/12 07:55:03 MDT" 50 unspecified max_handlers count, using
default: 200
"2011/05/12 07:55:03 MDT" 50 unspecified max_handlers count, using
default: 200
"2011/05/12 07:55:03 MDT" 25 Shutting down server at Thu May 12 07:55:03
MDT 2011
"2011/05/12 07:55:03 MDT" 75 class net.handle.server.HdlUdpInterface:
Error handling request: java.net.SocketException: socket closed
java.net.SocketException: socket closed
at java.net.PlainDatagramSocketImpl.receive0(Native Method)
at java.net.PlainDatagramSocketImpl.receive(Unknown Source)
at java.net.DatagramSocket.receive(Unknown Source)
at
net.handle.server.HdlUdpInterface.serveRequests(HdlUdpInterface.java:156
)
at
net.handle.server.NetworkInterface.run(NetworkInterface.java:150)
"2011/05/12 07:55:03 MDT" 75 class net.handle.server.HdlTcpInterface:
Error handling request: java.net.SocketException: socket closed
at java.lang.Thread.run(Unknown Source)
java.net.SocketException: socket closed
at java.net.PlainSocketImpl.socketAccept(Native Method)
at java.net.PlainSocketImpl.accept(Unknown Source)
at java.net.ServerSocket.implAccept(Unknown Source)
at java.net.ServerSocket.accept(Unknown Source)
at
net.handle.server.HdlTcpInterface.serveRequests(HdlTcpInterface.java:155
)
at
net.handle.server.NetworkInterface.run(NetworkInterface.java:150)
at java.lang.Thread.run(Unknown Source)



--
Jake Cameron, BCS(UNB)
Technical Specialist III
Information Systems and Technical Services
University of Lethbridge Library
Phone:(403)329-2756

This e-mail, including any and all attachments, is only for the use of
the intended recipient(s) and may contain information that is
confidential or privileged. If you are not the intended recipient, you
are advised that any dissemination, copying or other use of this e-mail
is prohibited. Please notify the sender of the error in communication by
return e-mail and destroy all copies of this e-mail. Thank you.


-----Original Message-----
From: Cameron, Jacob [mailto:jacob....@uleth.ca]
Sent: Wednesday, May 11, 2011 3:55 PM
To: dspac...@lists.sourceforge.net
Subject: [Dspace-tech] Handle Server Problem

------------------------------------------------------------------------
------
Achieve unprecedented app performance and reliability
What every C/C++ and Fortran developer should know.
Learn how Intel has extended the reach of its next-generation tools
to help boost performance applications - inlcuding clusters.
http://p.sf.net/sfu/intel-dev2devmay

Evans, Kevin

unread,
Aug 25, 2015, 4:47:19 PM8/25/15
to Cameron, Jacob, dspac...@lists.sourceforge.net
Hi,

If you have restarted the handle and killed any processes, I suggest you
check the relevant ports are open on your network...

This type of thing drove me crazy for the longest time, also when I run the
initial script I answered no to encrypting the handle.

Kevin

Cameron, Jacob

unread,
Aug 25, 2015, 4:47:20 PM8/25/15
to Evans, Kevin, dspac...@lists.sourceforge.net
The ports are open on our firewall. We just upgraded to a new version
of DSpace and the exact same rules for the firewall still apply.

Rukaya Johaadien

unread,
Jan 12, 2018, 4:12:19 AM1/12/18
to DSpace Technical Support
I'm having the same problems 

"2018/01/12 10:47:05 CAT" 75 class net.handle.server.HdlUdpInterface: Error handling request: java.net.SocketException: socket closed
"2018/01/12 10:47:05 CAT" 75 class net.handle.server.HdlTcpInterface: Error handling request: java.net.SocketException: socket closed
"2018/01/12 10:47:05 CAT" 75 class net.handle.server.HdlHttpInterface: Error handling request: java.lang.ThreadDeath

Anyone got any tips on how to resolve the issue?

Tim Donohue

unread,
Jan 12, 2018, 11:39:00 AM1/12/18
to Rukaya Johaadien, DSpace Technical Support
Hi,

You didn't note which version of DSpace you are using.  But, as of DSpace 6.0 (and above), there is now a Windows version of the "start-handle-server" script ( "[dspace]/bin/start-handle-server.bat") which should be used to easily start the Handle Server on Windows.  You also should check to ensure that the ports that the Handle Server is trying to use (usually ports 8000 and 2641) are both open and nothing else is running on them.

If you are already using DSpace 6.x, you may also want to check your DSpace logs to see if additional errors are being reported there when you attempt to start the Handle Server.

Let us know if this is of any help.

- Tim

--
You received this message because you are subscribed to the Google Groups "DSpace Technical Support" group.
To unsubscribe from this group and stop receiving emails from it, send an email to dspace-tech...@googlegroups.com.
To post to this group, send email to dspac...@googlegroups.com.
Visit this group at https://groups.google.com/group/dspace-tech.
For more options, visit https://groups.google.com/d/optout.


--
Tim Donohue
Technical Lead for DSpace & DSpaceDirect
DuraSpace.org | DSpace.org | DSpaceDirect.org

Rukaya Johaadien

unread,
Jan 16, 2018, 3:28:47 AM1/16/18
to Tim Donohue, DSpace Technical Support
Thanks Tim. I'm using DSpace 5 but I need to upgrade to 6 anyway, so I'll try that and see how it goes.

To unsubscribe from this group and stop receiving emails from it, send an email to dspace-tech+unsubscribe@googlegroups.com.

To post to this group, send email to dspac...@googlegroups.com.
Visit this group at https://groups.google.com/group/dspace-tech.
For more options, visit https://groups.google.com/d/optout.
Reply all
Reply to author
Forward
0 new messages