Handle server won't start

122 views
Skip to first unread message

euler

unread,
Oct 14, 2024, 7:17:22 PM10/14/24
to DSpace Technical Support
Dear All,

I just migrated a DSpace instance running version 8.0 to a different VPS. Previously, I had no problem running the handle server, but after migrating to this new VPS, and doing all the necessary changes, I can't seem to make the handle server run. Below is the error when I run ./dspace start-handle-server

"2024-10-15 07:04:30.843+0800" 25 Started new run.
"2024-10-15 07:04:30.843+0800" 25 Handle.net Server Software version 9.3.1
Exception in thread "main" java.lang.NoSuchFieldError: id_alg_zlibCompress
        at org.bouncycastle.asn1.cms.CMSObjectIdentifiers.<clinit>(Unknown Source)
        at org.bouncycastle.operator.DefaultSignatureNameFinder.<clinit>(Unknown Source)
        at org.bouncycastle.operator.jcajce.OperatorHelper.<clinit>(Unknown Source)
        at org.bouncycastle.operator.jcajce.JcaContentSignerBuilder.<init>(Unknown Source)
        at net.handle.util.X509HSCertificateGenerator.generateWithCnAndUid(X509HSCertificateGenerator.java:108)
        at net.handle.util.X509HSCertificateGenerator.generateWithUid(X509HSCertificateGenerator.java:83)
        at net.handle.util.X509HSCertificateGenerator.generate(X509HSCertificateGenerator.java:56)
        at net.handle.server.HandleServer.buildCertificate(HandleServer.java:222)
        at net.handle.server.HandleServer.initKeysAndCertsAndSignatures(HandleServer.java:522)
        at net.handle.server.HandleServer.<init>(HandleServer.java:366)
        at net.handle.server.AbstractServer.getInstance(AbstractServer.java:120)
        at net.handle.server.Main.initialize(Main.java:255)
        at net.handle.server.Main.main(Main.java:122)

I want to mention that issuing the command [dspace]/bin/make-handle-config doesn't do anything, so I end up using [dspace]/bin/dspace dsrun net.handle.server.SimpleSetup [dspace]/handle-server command which asked me the usual questions when setting up the handle server.

The VPS's OS is Ubuntu 22.04 LTS, which is also the same as the previous VPS. Please give me any advice on this.

Thanks in advance,
euler

Nemiz, Elvi

unread,
Oct 16, 2024, 11:21:55 PM10/16/24
to DSpace Technical Support
Dear Colleagues,

I want to ask for help regarding this issue. I can't start the handle server. I have tried deleting the .m2 directory to trigger downloading dependencies, I also upgrade my openjdk from 17 to 18. I also tried checking out the dspace-8_x branch. I've lost track of how many times I've run mvn clean -U package. Below are the errors from the log files when I run start-handle-server:

==> /dspace/handle-server/logs/error.log-202410 <==

        at org.bouncycastle.operator.jcajce.JcaContentSignerBuilder.<init>(Unknown Source)
        at net.handle.util.X509HSCertificateGenerator.generateWithCnAndUid(X509HSCertificateGenerator.java:108)
        at net.handle.util.X509HSCertificateGenerator.generateWithUid(X509HSCertificateGenerator.java:83)
        at net.handle.util.X509HSCertificateGenerator.generate(X509HSCertificateGenerator.java:56)
        at net.handle.server.HandleServer.buildCertificate(HandleServer.java:222)
        at net.handle.server.HandleServer.initKeysAndCertsAndSignatures(HandleServer.java:522)
        at net.handle.server.HandleServer.<init>(HandleServer.java:366)
        at net.handle.server.AbstractServer.getInstance(AbstractServer.java:120)
        at net.handle.server.Main.initialize(Main.java:255)
        at net.handle.server.Main.main(Main.java:122)


==> /dspace/log/handle-server.log <==
Handle.Net Server Software version 9.3.1

==> /dspace/handle-server/logs/error.log-202410 <==
"2024-10-17 11:06:38.085+0800" 25 Started new run.
"2024-10-17 11:06:38.085+0800" 25 Handle.net Server Software version 9.3.1

Exception in thread "main" java.lang.NoSuchFieldError: id_alg_zlibCompress
        at org.bouncycastle.asn1.cms.CMSObjectIdentifiers.<clinit>(Unknown Source)
        at org.bouncycastle.operator.DefaultSignatureNameFinder.<clinit>(Unknown Source)
        at org.bouncycastle.operator.jcajce.OperatorHelper.<clinit>(Unknown Source)
        at org.bouncycastle.operator.jcajce.JcaContentSignerBuilder.<init>(Unknown Source)
        at net.handle.util.X509HSCertificateGenerator.generateWithCnAndUid(X509HSCertificateGenerator.java:108)
        at net.handle.util.X509HSCertificateGenerator.generateWithUid(X509HSCertificateGenerator.java:83)
        at net.handle.util.X509HSCertificateGenerator.generate(X509HSCertificateGenerator.java:56)
        at net.handle.server.HandleServer.buildCertificate(HandleServer.java:222)
        at net.handle.server.HandleServer.initKeysAndCertsAndSignatures(HandleServer.java:522)
        at net.handle.server.HandleServer.<init>(HandleServer.java:366)
        at net.handle.server.AbstractServer.getInstance(AbstractServer.java:120)
        at net.handle.server.Main.initialize(Main.java:255)
        at net.handle.server.Main.main(Main.java:122)

Just so you know, the handle server is working perfectly on the previous server. I just moved/migrated this instance to a new VPS. I'm at lost of the cause why the handle server won't start. I'm troubleshooting this issue for almost 2 days now. Any help would be greatly appreciated.

Thanks in advance!

Best regards,
euler
--
All messages to this mailing list should adhere to the Code of Conduct: https://www.lyrasis.org/about/Pages/Code-of-Conduct.aspx
---
You received this message because you are subscribed to a topic in the Google Groups "DSpace Technical Support" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/dspace-tech/801kScESBcs/unsubscribe.
To unsubscribe from this group and all its topics, send an email to dspace-tech...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/dspace-tech/3cfdb197-9e40-4b5c-9fc9-8c0fe4bb5ea5n%40googlegroups.com.

Mehmet Demirel

unread,
Nov 11, 2024, 3:36:09 AM11/11/24
to DSpace Technical Support
I started having the same problem.
Were you able to solve the problem?

euler

unread,
Nov 11, 2024, 7:25:57 PM11/11/24
to DSpace Technical Support
Hi Mehmet,

I made the handle server work by downgrading the bouncycastle dependency from 1.78.1 to 1.78.

~/dspace-src$ git diff
diff --git a/pom.xml b/pom.xml
index 4e2df6abf0..3fe91fd379 100644
--- a/pom.xml
+++ b/pom.xml
@@ -45,7 +45,7 @@
         <slf4j.version>2.0.11</slf4j.version>
         <tika.version>2.9.2</tika.version>
         <!-- Sync BouncyCastle & ASM with whatever version Tika uses -->
-        <bouncycastle.version>1.78.1</bouncycastle.version>
+        <bouncycastle.version>1.78</bouncycastle.version>
         <asm.version>8.0.1</asm.version>
         <!-- Jersey is used to integrate with external sources/services -->
         <jersey.version>3.1.5</jersey.version>


I hope this helps others who have the same issue. I have no idea why it did not work for this specific server when I have other repositories that I have installed with no problem using the 1.78.1 version of bouncycastle.

Best regards,
euler

Mehmet Demirel

unread,
Nov 12, 2024, 3:06:30 AM11/12/24
to DSpace Technical Support
Thank you very much
Reply all
Reply to author
Forward
0 new messages