How to disable klaro?

345 views
Skip to first unread message

Night Librarian

unread,
Nov 25, 2022, 2:20:58 PM11/25/22
to DSpace Technical Support
I had a suggestion to disable klaro to solve a downloading problem on my DSpace 7.4, but I am not sure how to do that.  Can someone give me a hint?

Mohammad S. AlMutairi

unread,
Nov 25, 2022, 3:53:06 PM11/25/22
to DSpace Technical Support
You should completely ignore that suggestion and here is why (  https://github.com/kiprotect/klaro ). I think the issue you have is caused by how the migration from the Windows server to the Linux was done and is related to the handle server specifically because it's down. As a suggestion try to change one of the the items (e56a5422-b32b-4000-95dd-86467ef21c35) dc.​identifier.​uri from https://hdl.handle.net/your-handle-prefix/1916 to https://your-server-domain-name/handle/your-handle-prefix/1916 and try to access it and download it and see if that helps isolate the handle server is the cause.

Hope It help.

Night Librarian

unread,
Nov 25, 2022, 6:47:04 PM11/25/22
to DSpace Technical Support
Thank you for the suggestion.  I changed the dc.identifier.uri from https://hdl.handle.net/your-handle-prefix/1916 by https://my-server-domain-name/handle/my-handle-prefix/1916. Now, if I try to open 
https://my-server-domain-name/handle/my-handle-prefix/1916 in the browser, I get 404 page not found.  If I search for the item's title in all of DSpace, and then try to download the pdf from there, I still can see the pdf in the browser, but downloading it still doesn't work.

In terms of Handle server, I wonder whether copy/pasting [dspace]/handle-server directory's content from someone who has 7.4 on Ubuntu 20.04 would fix my issue?

Mohammad S. AlMutairi

unread,
Nov 25, 2022, 7:42:38 PM11/25/22
to DSpace Technical Support
On Saturday, November 26, 2022 at 2:47:04 AM UTC+3 Night Librarian wrote:
Thank you for the suggestion.  I changed the dc.identifier.uri from https://hdl.handle.net/your-handle-prefix/1916 by https://my-server-domain-name/handle/my-handle-prefix/1916. Now, if I try to open 
https://my-server-domain-name/handle/my-handle-prefix/1916 in the browser, I get 404 page not found.  If I search for the item's title in all of DSpace, and then try to download the pdf from there, I still can see the pdf in the browser, but downloading it still doesn't work.
 For this debugging session try to comment out handle.canonical.prefix = https://hdl.handle.net/ in dspace.cfg and restart tomcat and see if that's help.

 
In terms of Handle server, I wonder whether copy/pasting [dspace]/handle-server directory's content from someone who has 7.4 on Ubuntu 20.04 would fix my issue?
That's actually how I moved the handle server from the old server to the newer one not long ago and it worked. It will save you sending a newer generated sitebndl.zip to the HNR folks.

1) Copy the old [dspace]/handle-server folder from the old Windows server to the newer ubuntu server.
2) chown -R tomcat-user:tomcat-user [dspace]/handle-server
3) Check and change the private IP to the new private IP if it was changed in [dspace]/handle-server/config.dct
3) Check and change the public IP and the Private IP to match the new ones in [dspace]/handle-server/local_addresses
4) run [dspace]/bin/make-handle-config
5) start the handle server
6) check the handle server logs or run this command to see if it's running using ( ss -nlp | grep ":8000\|:2641" )

Hope it help

Mohammad S. AlMutairi

unread,
Nov 25, 2022, 8:12:32 PM11/25/22
to DSpace Technical Support
On Saturday, November 26, 2022 at 2:47:04 AM UTC+3 Night Librarian wrote:
In terms of Handle server, I wonder whether copy/pasting [dspace]/handle-server directory's content from someone who has 7.4 on Ubuntu 20.04 would fix my issue?
My English is becoming a barrier to read things the right way or convey the ideas in a good way (Sorry about that). Copying the folder from someone else's server won't help or do much but copying your old working handle-server folder from the Windows server to the new Ubuntu server will do so just follow the steps you see in the previous post if you still have access to your old server and can get a copy of the old handle-server folder.

Mohammad S. AlMutairi

unread,
Nov 26, 2022, 12:56:35 PM11/26/22
to DSpace Technical Support
One thing I noticed you should take care of too is If the handle server you trying to start is installed on the same server you installed DSpace on you need to open port 2641 and port 8000 on the public firewall and on the server too if you have a firewall running on your Ubuntu server. ( These ports are blocked right now and inaccessible so you have to open them to complete your handle server setup).

Good luck 

Night Librarian

unread,
Nov 29, 2022, 4:55:38 PM11/29/22
to DSpace Technical Support
Thank you.

So, I followed the instructions. Copied my Windows handle-server (from 2015, when I was running Dspace 4) to Ubuntu. Replaced 7.4 handle-server by the old one. Changed permissions to tomcat:tomcat. Ran make-handle-config. Ran start-handle-server. There was no output/feedback for these last two commands, but maybe it's not expected.  Checked whether something is listening on 2641 and 8000.  It doesn't look like it.


sudo mv /dspace/handle-server/ /dspace/handle-server_original

sudo cp -R Downloads/handle-server_2015 /dspace/

sudo chown -R tomcat:tomcat /dspace/handle-server

sudo /dspace/bin/make-handle-config

sudo /dspace/bin/start-handle-server

sudo ss -nlp | grep ":8000\|:2641"

               no output for this command

sudo netstat -an | grep 2641

               no output for this command either


So, I looked at handle-server/logs/error.log and saw this error, which is exactly the same error I had when I was trying to fix it a few weeks ago:

"2022-11-29 17:10:05.677-0400" 25 Started new run.
"2022-11-29 17:10:05.678-0400" 25 Handle.net Server Software version 9.3.0
Unable to initialize server signature object: java.lang.Exception: Unable to decrypt
java.lang.Exception: Unable to decrypt
    at net.handle.hdllib.Util.decrypt(Util.java:1472)
    at net.handle.server.HandleServer.initKeysAndCertsAndSignatures(HandleServer.java:509)
    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)
java.lang.Exception: Unable to decrypt
    at net.handle.hdllib.Util.decrypt(Util.java:1472)
    at net.handle.server.HandleServer.initKeysAndCertsAndSignatures(HandleServer.java:509)
    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)
Shutting down...


A few weeks ago, in a related conversation - https://groups.google.com/g/dspace-community/c/hyIZ2sPPS9w/m/WmmfVyEoBQAJ - Tim said that the NoClassDefFoundError in the log may imply that have an older "dspace-api-*.jar" or "handle-*.jar" in my [dspace]/lib/ directory that is causing problems.  He suggested that I run "mvn -U clean package" and then "ant update" to see what happens.  I did and, unfortunatelly, the problem remains.

Tim suggested that if that fails, "then we'd need more info on your setup... you may want to check your dependencies are correct, etc."

I am very grateful for the support I get in this group and I will provide any info that can help fix it. Here is the content of my /dspace/lib/ directory:

total 153M
drwxr-sr-x  2 tomcat tomcat   20K Nov  8 12:15 ./
drwxrwsr-x 24 tomcat tomcat  4.0K Nov 29 16:57 ../
-rw-r--r--  1 root   tomcat   62K Aug 23 22:22 activation-1.1.jar
-rw-r--r--  1 root   tomcat  5.3K Nov  8 11:48 additions-7.4.jar
-rw-r--r--  1 root   tomcat  2.2M Aug 23 22:24 ant-1.10.11.jar
-rw-r--r--  1 root   tomcat  220K Aug 23 22:29 ant-contrib-1.0b3.jar
-rw-r--r--  1 root   tomcat   19K Aug 23 22:24 ant-launcher-1.10.11.jar
-rw-r--r--  1 root   tomcat  435K Aug 23 22:24 antlr-2.7.7.jar
-rw-r--r--  1 root   tomcat   27K Aug 23 22:24 aopalliance-repackaged-2.6.1.jar
-rw-r--r--  1 root   tomcat  244K Aug 23 22:24 apache-el-8.5.35.1.jar
-rw-r--r--  1 root   tomcat  988K Aug 23 22:24 apache-jsp-8.5.35.1.jar
-rw-r--r--  1 root   tomcat   21K Aug 23 22:24 apache-jsp-9.4.15.v20190215.jar
-rw-r--r--  1 root   tomcat   13K Aug 23 22:24 apache-jstl-9.4.15.v20190215.jar
-rw-r--r--  1 root   tomcat  106K Nov  8 11:45 apache-mime4j-core-0.8.4.jar
-rw-r--r--  1 root   tomcat  336K Nov  8 11:45 apache-mime4j-dom-0.8.4.jar
-rw-r--r--  1 root   tomcat  119K Aug 23 22:24 asm-8.0.1.jar
-rw-r--r--  1 root   tomcat   33K Aug 23 22:30 asm-analysis-7.1.jar
-rw-r--r--  1 root   tomcat   50K Aug 23 22:30 asm-tree-7.1.jar
-rw-r--r--  1 root   tomcat   80K Aug 23 22:30 asm-util-7.1.jar
-rw-r--r--  1 root   tomcat 1021K Nov  8 11:45 aws-java-sdk-core-1.12.261.jar
-rw-r--r--  1 root   tomcat  641K Nov  8 11:45 aws-java-sdk-kms-1.12.261.jar
-rw-r--r--  1 root   tomcat  1.2M Nov  8 11:45 aws-java-sdk-s3-1.12.261.jar
-rw-r--r--  1 root   tomcat  679K Aug 23 22:25 bcel-6.4.0.jar
-rw-r--r--  1 root   tomcat  111K Nov  8 11:45 bcmail-jdk15on-1.70.jar
-rw-r--r--  1 root   tomcat  942K Nov  8 11:45 bcpkix-jdk15on-1.70.jar
-rw-r--r--  1 root   tomcat  5.6M Nov  8 11:45 bcprov-jdk15on-1.70.jar
-rw-r--r--  1 root   tomcat  472K Nov  8 11:45 bcutil-jdk15on-1.70.jar
-rw-r--r--  1 root   tomcat   90K Aug 23 22:24 boilerpipe-1.1.0.jar
-rw-r--r--  1 root   tomcat  5.2K Aug 23 22:30 builder-commons-1.0.2.jar
-rw-r--r--  1 root   tomcat  3.5M Aug 23 22:22 byte-buddy-1.11.13.jar
-rw-r--r--  1 root   tomcat   51K Aug 23 22:29 cache-api-1.1.0.jar
-rw-r--r--  1 root   tomcat  203K Nov  8 11:45 checker-qual-3.10.0.jar
-rw-r--r--  1 root   tomcat  210K Aug 23 22:22 checker-qual-3.5.0.jar
-rw-r--r--  1 root   tomcat   63K Aug 23 22:24 classmate-1.3.0.jar
-rw-r--r--  1 root   tomcat   43K Aug 23 22:24 cnri-servlet-container-3.0.0.jar
-rw-r--r--  1 root   tomcat  1.9K Aug 23 22:24 cnri-servlet-container-lib-3.0.0.jar
-rw-r--r--  1 root   tomcat   35K Aug 23 22:24 cnriutil-2.0.jar
-rw-r--r--  1 root   tomcat  242K Aug 23 22:22 commons-beanutils-1.9.4.jar
-rw-r--r--  1 root   tomcat   53K Aug 23 22:24 commons-cli-1.4.jar
-rw-r--r--  1 root   tomcat  278K Aug 23 22:24 commons-codec-1.10.jar
-rw-r--r--  1 root   tomcat  575K Aug 23 22:22 commons-collections-3.2.2.jar
-rw-r--r--  1 root   tomcat  734K Aug 23 22:22 commons-collections4-4.1.jar
-rw-r--r--  1 root   tomcat  995K Nov  8 11:45 commons-compress-1.21.jar
-rw-r--r--  1 root   tomcat  618K Nov  8 11:44 commons-configuration2-2.8.0.jar
-rw-r--r--  1 root   tomcat   51K Nov  8 11:45 commons-csv-1.9.0.jar
-rw-r--r--  1 root   tomcat  203K Aug 23 22:24 commons-dbcp2-2.8.0.jar
-rw-r--r--  1 root   tomcat  143K Aug 23 22:24 commons-digester-1.8.1.jar
-rw-r--r--  1 root   tomcat   54K Aug 23 22:24 commons-exec-1.3.jar
-rw-r--r--  1 root   tomcat   69K Aug 23 22:24 commons-fileupload-1.3.3.jar
-rw-r--r--  1 root   tomcat  270K Aug 23 22:22 commons-io-2.7.jar
-rw-r--r--  1 root   tomcat  278K Aug 23 22:24 commons-lang-2.6.jar
-rw-r--r--  1 root   tomcat  574K Nov  8 11:44 commons-lang3-3.12.0.jar
-rw-r--r--  1 root   tomcat   61K Aug 23 22:22 commons-logging-1.2.jar
-rw-r--r--  1 root   tomcat  2.2M Aug 23 22:24 commons-math3-3.6.1.jar
-rw-r--r--  1 root   tomcat  132K Aug 23 22:24 commons-pool2-2.9.0.jar
-rw-r--r--  1 root   tomcat  212K Aug 23 22:25 commons-text-1.9.jar
-rw-r--r--  1 root   tomcat  171K Aug 23 22:24 commons-validator-1.5.0.jar
-rw-r--r--  1 root   tomcat  114K Aug 23 22:30 concurrentlinkedhashmap-lru-1.4.2.jar
-rw-r--r--  1 root   tomcat  9.2K Aug 23 22:24 coverity-escapers-1.1.1.jar
-rw-r--r--  1 root   tomcat  110K Aug 23 22:24 curvesapi-1.06.jar
-rw-r--r--  1 root   tomcat   75K Nov  8 11:45 dd-plist-1.23.jar
-rw-r--r--  1 root   tomcat   96K Aug 23 22:24 dec-0.1.2.jar
-rw-r--r--  1 root   tomcat  301K Aug 23 22:24 dnsjava-2.1.7.jar
-rw-r--r--  1 root   tomcat  3.3M Nov  8 11:48 dspace-api-7.4.jar
-rw-r--r--  1 root   tomcat   63K Nov  8 11:48 dspace-api-lang-7.4.0.jar
-rw-r--r--  1 root   tomcat  137K Nov  8 11:49 dspace-oai-7.4.jar
-rw-r--r--  1 root   tomcat   94K Nov  8 11:45 dspace-services-7.4.jar
-rw-r--r--  1 root   tomcat  2.7M Aug 23 22:24 ecj-3.14.0.jar
-rw-r--r--  1 root   tomcat  1.7M Aug 23 22:29 ehcache-3.4.0.jar
-rw-r--r--  1 root   tomcat   15K Nov  8 11:45 error_prone_annotations-2.7.1.jar
-rw-r--r--  1 root   tomcat  4.6K Aug 23 22:22 failureaccess-1.0.1.jar
-rw-r--r--  1 root   tomcat  305K Aug 23 22:24 FastInfoset-1.2.15.jar
-rw-r--r--  1 root   tomcat  615K Nov  8 11:45 flyway-core-8.4.4.jar
-rw-r--r--  1 root   tomcat  1.5M Aug 23 22:24 fontbox-2.0.24.jar
-rw-r--r--  1 root   tomcat   63K Aug 23 22:25 funders-model-2.0.0.jar
-rw-r--r--  1 root   tomcat   45K Aug 23 22:24 geoip2-2.11.0.jar
-rw-r--r--  1 root   tomcat  195K Aug 23 22:24 google-api-client-1.23.0.jar
-rw-r--r--  1 root   tomcat  298K Aug 23 22:24 google-api-services-analytics-v3-rev145-1.23.0.jar
-rw-r--r--  1 root   tomcat  350K Aug 23 22:24 google-http-client-1.23.0.jar
-rw-r--r--  1 root   tomcat   11K Nov  8 11:45 google-http-client-gson-1.41.7.jar
-rw-r--r--  1 root   tomcat  6.6K Aug 23 22:24 google-http-client-jackson2-1.23.0.jar
-rw-r--r--  1 root   tomcat   80K Nov  8 11:45 google-oauth-client-1.33.3.jar
-rw-r--r--  1 root   tomcat  244K Nov  8 11:45 gson-2.9.0.jar
-rw-r--r--  1 root   tomcat  2.9M Nov  8 11:45 guava-31.0.1-jre.jar
-rw-r--r--  1 root   tomcat  2.0M Aug 23 22:24 guava-jdk5-17.0.jar
-rw-r--r--  1 root   tomcat  1.7M Aug 23 22:25 handle-9.3.0.jar
-rw-r--r--  1 root   tomcat   78K Nov  8 11:45 hibernate-commons-annotations-5.1.2.Final.jar
-rw-r--r--  1 root   tomcat  7.2M Nov  8 11:45 hibernate-core-5.6.5.Final.jar
-rw-r--r--  1 root   tomcat   13K Nov  8 11:45 hibernate-jcache-5.6.5.Final.jar
-rw-r--r--  1 root   tomcat  111K Nov  8 11:45 hibernate-jpa-2.1-api-1.0.2.Final.jar
-rw-r--r--  1 root   tomcat  186K Nov  8 11:45 hibernate-jpamodelgen-5.6.5.Final.jar
-rw-r--r--  1 root   tomcat  1.2M Nov  8 11:45 hibernate-validator-6.0.23.Final.jar
-rw-r--r--  1 root   tomcat   38K Nov  8 11:45 hibernate-validator-cdi-6.0.23.Final.jar
-rw-r--r--  1 root   tomcat  196K Aug 23 22:24 hk2-api-2.6.1.jar
-rw-r--r--  1 root   tomcat  199K Aug 23 22:24 hk2-locator-2.6.1.jar
-rw-r--r--  1 root   tomcat  129K Aug 23 22:24 hk2-utils-2.6.1.jar
-rw-r--r--  1 root   tomcat   29K Nov  8 11:45 http2-client-9.4.44.v20210927.jar
-rw-r--r--  1 root   tomcat  202K Nov  8 11:45 http2-common-9.4.48.v20220622.jar
-rw-r--r--  1 root   tomcat   51K Nov  8 11:45 http2-hpack-9.4.44.v20210927.jar
-rw-r--r--  1 root   tomcat   42K Nov  8 11:45 http2-http-client-transport-9.4.44.v20210927.jar
-rw-r--r--  1 root   tomcat   60K Nov  8 11:45 http2-server-9.4.48.v20220622.jar
-rw-r--r--  1 root   tomcat  763K Aug 23 22:24 httpclient-4.5.13.jar
-rw-r--r--  1 root   tomcat  114K Aug 23 22:24 httpclient-cache-4.2.6.jar
-rw-r--r--  1 root   tomcat  321K Nov  8 11:45 httpcore-4.4.15.jar
-rw-r--r--  1 root   tomcat   41K Nov  8 11:45 httpmime-4.5.13.jar
-rw-r--r--  1 root   tomcat   12M Aug 23 22:24 icu4j-62.1.jar
-rw-r--r--  1 root   tomcat  158K Aug 23 22:24 im4java-1.4.0.jar
-rw-r--r--  1 root   tomcat  553K Aug 23 22:25 ion-java-1.0.2.jar
-rw-r--r--  1 root   tomcat   25K Aug 23 22:24 istack-commons-runtime-3.0.7.jar
-rw-r--r--  1 root   tomcat  8.6K Aug 23 22:22 j2objc-annotations-1.3.jar
-rw-r--r--  1 root   tomcat  1.3M Nov  8 11:45 jackcess-4.0.1.jar
-rw-r--r--  1 root   tomcat   82K Nov  8 11:45 jackcess-encrypt-4.0.1.jar
-rw-r--r--  1 root   tomcat   74K Nov  8 11:45 jackson-annotations-2.12.6.jar
-rw-r--r--  1 root   tomcat  357K Nov  8 11:45 jackson-core-2.12.6.jar
-rw-r--r--  1 root   tomcat  1.5M Nov  8 11:45 jackson-databind-2.12.6.1.jar
-rw-r--r--  1 root   tomcat   61K Nov  8 11:45 jackson-dataformat-cbor-2.12.6.jar
-rw-r--r--  1 root   tomcat  614K Aug 23 22:24 jai-imageio-core-1.4.0.jar
-rw-r--r--  1 root   tomcat   25K Aug 23 22:24 jakarta.annotation-api-1.3.5.jar
-rw-r--r--  1 root   tomcat   18K Aug 23 22:24 jakarta.inject-2.6.1.jar
-rw-r--r--  1 root   tomcat  138K Aug 23 22:24 jakarta.ws.rs-api-2.1.6.jar
-rw-r--r--  1 root   tomcat  226K Nov  8 11:45 jandex-2.4.2.Final.jar
-rw-r--r--  1 root   tomcat  106K Aug 23 22:24 java-libpst-0.9.3.jar
-rw-r--r--  1 root   tomcat  762K Aug 23 22:25 javassist-3.25.0-GA.jar
-rw-r--r--  1 root   tomcat   56K Aug 23 22:24 javax.activation-api-1.2.0.jar
-rw-r--r--  1 root   tomcat   26K Aug 23 22:22 javax.annotation-api-1.3.2.jar
-rw-r--r--  1 root   tomcat  2.5K Aug 23 22:24 javax.inject-1.jar
-rw-r--r--  1 root   tomcat  644K Aug 23 22:22 javax.mail-1.6.2.jar
-rw-r--r--  1 root   tomcat  161K Aug 23 22:24 javax.persistence-api-2.2.jar
-rw-r--r--  1 root   tomcat   94K Aug 23 22:22 javax.servlet-api-3.1.0.jar
-rw-r--r--  1 root   tomcat   28K Aug 23 22:24 javax.transaction-api-1.3.jar
-rw-r--r--  1 root   tomcat  126K Aug 23 22:24 jaxb-api-2.3.1.jar
-rw-r--r--  1 root   tomcat  249K Aug 23 22:25 jaxb-core-2.3.0.1.jar
-rw-r--r--  1 root   tomcat  1.1M Aug 23 22:25 jaxb-impl-2.3.1.jar
-rw-r--r--  1 root   tomcat  1.1M Aug 23 22:24 jaxb-runtime-2.3.1.jar
-rw-r--r--  1 root   tomcat  227K Aug 23 22:24 jaxen-1.1.6.jar
-rw-r--r--  1 root   tomcat   75K Nov  8 11:45 jbibtex-1.0.20.jar
-rw-r--r--  1 root   tomcat  150K Aug 23 22:24 jbig2-imageio-3.0.3.jar
-rw-r--r--  1 root   tomcat   60K Nov  8 11:45 jboss-logging-3.4.3.Final.jar
-rw-r--r--  1 root   tomcat   26K Aug 23 22:24 jboss-transaction-api_1.2_spec-1.1.1.Final.jar
-rw-r--r--  1 root   tomcat   17K Aug 23 22:24 jcl-over-slf4j-1.7.25.jar
-rw-r--r--  1 root   tomcat   86K Aug 23 22:24 jdbm-1.0.jar
-rw-r--r--  1 root   tomcat  321K Nov  8 11:45 jdom2-2.0.6.1.jar
-rw-r--r--  1 root   tomcat   51K Aug 23 22:24 jempbox-1.8.16.jar
-rw-r--r--  1 root   tomcat  2.9M Aug 23 22:24 jena-arq-2.13.0.jar
-rw-r--r--  1 root   tomcat  1.5M Aug 23 22:24 jena-core-2.13.0.jar
-rw-r--r--  1 root   tomcat  135K Aug 23 22:24 jena-iri-1.1.2.jar
-rw-r--r--  1 root   tomcat  579K Aug 23 22:24 jena-tdb-1.1.2.jar
-rw-r--r--  1 root   tomcat  255K Nov  8 11:45 jersey-client-2.35.jar
-rw-r--r--  1 root   tomcat  1.2M Nov  8 11:45 jersey-common-2.35.jar
-rw-r--r--  1 root   tomcat   77K Nov  8 11:45 jersey-hk2-2.35.jar
-rw-r--r--  1 root   tomcat   17K Nov  8 11:45 jetty-alpn-client-9.4.44.v20210927.jar
-rw-r--r--  1 root   tomcat   17K Nov  8 11:45 jetty-alpn-java-client-9.4.44.v20210927.jar
-rw-r--r--  1 root   tomcat   17K Nov  8 11:45 jetty-alpn-java-server-9.4.48.v20220622.jar
-rw-r--r--  1 root   tomcat   18K Nov  8 11:48 jetty-alpn-server-9.4.48.v20220622.jar
-rw-r--r--  1 root   tomcat   85K Aug 23 22:24 jetty-annotations-9.4.15.v20190215.jar
-rw-r--r--  1 root   tomcat  318K Nov  8 11:45 jetty-client-9.4.44.v20210927.jar
-rw-r--r--  1 root   tomcat   25K Nov  8 11:48 jetty-continuation-9.4.48.v20220622.jar
-rw-r--r--  1 root   tomcat   62K Nov  8 11:45 jetty-deploy-9.4.48.v20220622.jar
-rw-r--r--  1 root   tomcat  230K Nov  8 11:45 jetty-http-9.4.48.v20220622.jar
-rw-r--r--  1 root   tomcat  179K Nov  8 11:45 jetty-io-9.4.48.v20220622.jar
-rw-r--r--  1 root   tomcat   49K Aug 23 22:24 jetty-jndi-9.4.15.v20190215.jar
-rw-r--r--  1 root   tomcat   62K Aug 23 22:24 jetty-plus-9.4.15.v20190215.jar
-rw-r--r--  1 root   tomcat  196K Aug 23 22:24 jetty-schemas-3.1.2.jar
-rw-r--r--  1 root   tomcat  116K Nov  8 11:48 jetty-security-9.4.48.v20220622.jar
-rw-r--r--  1 root   tomcat  716K Nov  8 11:45 jetty-server-9.4.48.v20220622.jar
-rw-r--r--  1 root   tomcat  143K Nov  8 11:45 jetty-servlet-9.4.48.v20220622.jar
-rw-r--r--  1 root   tomcat  106K Nov  8 11:45 jetty-servlets-9.4.48.v20220622.jar
-rw-r--r--  1 root   tomcat  570K Nov  8 11:45 jetty-util-9.4.48.v20220622.jar
-rw-r--r--  1 root   tomcat   66K Nov  8 11:45 jetty-util-ajax-9.4.48.v20220622.jar
-rw-r--r--  1 root   tomcat  138K Nov  8 11:45 jetty-webapp-9.4.48.v20220622.jar
-rw-r--r--  1 root   tomcat   67K Nov  8 11:45 jetty-xml-9.4.48.v20220622.jar
-rw-r--r--  1 root   tomcat  229K Aug 23 22:24 jhighlight-1.0.3.jar
-rw-r--r--  1 root   tomcat   74K Aug 23 22:24 jmatio-1.5.jar
-rw-r--r--  1 root   tomcat   27K Nov  8 11:45 jmespath-java-1.12.261.jar
-rw-r--r--  1 root   tomcat  611K Aug 23 22:24 joda-time-2.9.2.jar
-rw-r--r--  1 root   tomcat   61K Aug 23 22:25 json-20180130.jar
-rw-r--r--  1 root   tomcat  119K Aug 23 22:24 jsonld-java-0.5.1.jar
-rw-r--r--  1 root   tomcat  496K Aug 23 22:30 jtwig-core-5.87.0.RELEASE.jar
-rw-r--r--  1 root   tomcat   36K Aug 23 22:30 jtwig-reflection-5.87.0.RELEASE.jar
-rw-r--r--  1 root   tomcat  4.3K Aug 23 22:30 jtwig-spring-5.87.0.RELEASE.jar
-rw-r--r--  1 root   tomcat  6.2K Aug 23 22:30 jtwig-spring-boot-starter-5.87.0.RELEASE.jar
-rw-r--r--  1 root   tomcat   17K Aug 23 22:30 jtwig-web-5.87.0.RELEASE.jar
-rw-r--r--  1 root   tomcat  4.5K Aug 23 22:22 jul-to-slf4j-1.7.25.jar
-rw-r--r--  1 root   tomcat  216K Aug 23 22:24 juniversalchardet-1.0.3.jar
-rw-r--r--  1 root   tomcat  151K Nov  8 11:45 junrar-7.4.1.jar
-rw-r--r--  1 root   tomcat  223K Aug 23 22:24 libthrift-0.9.2.jar
-rw-r--r--  1 root   tomcat  2.2K Aug 23 22:22 listenablefuture-9999.0-empty-to-avoid-conflict-with-guava.jar
-rw-r--r--  1 root   tomcat  204K Aug 23 22:24 log4j-1.2-api-2.17.1.jar
-rw-r--r--  1 root   tomcat  295K Aug 23 22:22 log4j-api-2.17.1.jar
-rw-r--r--  1 root   tomcat  1.8M Aug 23 22:22 log4j-core-2.17.1.jar
-rw-r--r--  1 root   tomcat   31K Aug 23 22:22 log4j-jul-2.17.1.jar
-rw-r--r--  1 root   tomcat   24K Aug 23 22:22 log4j-slf4j-impl-2.17.1.jar
-rw-r--r--  1 root   tomcat   36K Aug 23 22:24 log4j-web-2.17.1.jar
-rw-r--r--  1 root   tomcat  3.5M Nov  8 11:45 lucene-core-8.11.1.jar
-rw-r--r--  1 root   tomcat   22K Aug 23 22:24 maxmind-db-1.2.2.jar
-rw-r--r--  1 root   tomcat  720K Nov  8 11:45 metadata-extractor-2.16.0.jar
-rw-r--r--  1 root   tomcat  124K Aug 23 22:24 mets-1.5.2.jar
-rw-r--r--  1 root   tomcat  295K Aug 23 22:24 netty-buffer-4.1.68.Final.jar
-rw-r--r--  1 root   tomcat  329K Aug 23 22:24 netty-codec-4.1.68.Final.jar
-rw-r--r--  1 root   tomcat  638K Aug 23 22:24 netty-common-4.1.68.Final.jar
-rw-r--r--  1 root   tomcat  511K Aug 23 22:24 netty-handler-4.1.68.Final.jar
-rw-r--r--  1 root   tomcat   37K Nov  8 11:45 netty-resolver-4.1.68.Final.jar
-rw-r--r--  1 root   tomcat  468K Aug 23 22:24 netty-transport-4.1.68.Final.jar
-rw-r--r--  1 root   tomcat  138K Nov  8 11:45 netty-transport-native-epoll-4.1.68.Final.jar
-rw-r--r--  1 root   tomcat   40K Nov  8 11:45 netty-transport-native-unix-common-4.1.68.Final.jar
-rw-r--r--  1 root   tomcat   22K Nov  8 11:45 oclc-harvester2-1.0.0.jar
-rw-r--r--  1 root   tomcat  231K Nov  8 11:45 opencsv-5.6.jar
-rw-r--r--  1 root   tomcat  3.2M Aug 23 22:25 orcid-model-3.0.2.jar
-rw-r--r--  1 root   tomcat   20K Aug 23 22:24 osgi-resource-locator-1.0.3.jar
-rw-r--r--  1 root   tomcat  190K Aug 23 22:30 parboiled-core-1.3.1.jar
-rw-r--r--  1 root   tomcat   77K Aug 23 22:30 parboiled-java-1.3.1.jar
-rw-r--r--  1 root   tomcat  136K Nov  8 11:45 parso-2.0.14.jar
-rw-r--r--  1 root   tomcat  2.7M Aug 23 22:24 pdfbox-2.0.24.jar
-rw-r--r--  1 root   tomcat  261K Nov  8 11:45 pdfbox-debugger-2.0.25.jar
-rw-r--r--  1 root   tomcat   81K Nov  8 11:45 pdfbox-tools-2.0.25.jar
-rw-r--r--  1 root   tomcat  2.8M Nov  8 11:45 poi-5.2.0.jar
-rw-r--r--  1 root   tomcat  1.9M Nov  8 11:45 poi-ooxml-5.2.0.jar
-rw-r--r--  1 root   tomcat  5.6M Nov  8 11:45 poi-ooxml-lite-5.2.0.jar
-rw-r--r--  1 root   tomcat  1.9M Nov  8 11:45 poi-scratchpad-5.2.0.jar
-rw-r--r--  1 root   tomcat 1021K Nov  8 11:45 postgresql-42.4.1.jar
-rw-r--r--  1 root   tomcat  250K Nov  8 11:45 rome-1.18.0.jar
-rw-r--r--  1 root   tomcat  576K Nov  8 11:45 rome-modules-1.18.0.jar
-rw-r--r--  1 root   tomcat  7.2K Nov  8 11:45 rome-utils-1.18.0.jar
-rw-r--r--  1 root   tomcat  4.9M Aug 23 22:30 Saxon-HE-9.8.0-14.jar
-rw-r--r--  1 root   tomcat   41K Aug 23 22:22 slf4j-api-1.7.25.jar
-rw-r--r--  1 root   tomcat  323K Nov  8 11:45 snakeyaml-1.29.jar
-rw-r--r--  1 root   tomcat  1.9M Aug 23 22:24 snappy-java-1.1.7.6.jar
-rw-r--r--  1 root   tomcat  2.3M Nov  8 11:45 solr-solrj-8.11.1.jar
-rw-r--r--  1 root   tomcat   24K Aug 23 22:24 SparseBitSet-1.2.jar
-rw-r--r--  1 root   tomcat  375K Nov  8 11:44 spring-aop-5.3.20.jar
-rw-r--r--  1 root   tomcat  683K Nov  8 11:44 spring-beans-5.3.20.jar
-rw-r--r--  1 root   tomcat  1.4M Nov  8 11:45 spring-boot-2.6.8.jar
-rw-r--r--  1 root   tomcat  1.6M Nov  8 11:45 spring-boot-autoconfigure-2.6.8.jar
-rw-r--r--  1 root   tomcat   86K Aug 23 22:30 spring-boot-configuration-processor-2.0.0.RELEASE.jar
-rw-r--r--  1 root   tomcat  4.7K Nov  8 11:45 spring-boot-starter-2.6.8.jar
-rw-r--r--  1 root   tomcat  4.7K Nov  8 11:45 spring-boot-starter-cache-2.6.8.jar
-rw-r--r--  1 root   tomcat  4.7K Nov  8 11:44 spring-boot-starter-log4j2-2.6.8.jar
-rw-r--r--  1 root   tomcat  1.3M Nov  8 11:44 spring-context-5.3.20.jar
-rw-r--r--  1 root   tomcat  183K Nov  8 11:44 spring-context-support-5.3.20.jar
-rw-r--r--  1 root   tomcat  1.5M Nov  8 11:44 spring-core-5.3.20.jar
-rw-r--r--  1 root   tomcat  283K Nov  8 11:44 spring-expression-5.3.20.jar
-rw-r--r--  1 root   tomcat   24K Nov  8 11:44 spring-jcl-5.3.20.jar
-rw-r--r--  1 root   tomcat  419K Nov  8 11:45 spring-jdbc-5.3.20.jar
-rw-r--r--  1 root   tomcat  200K Nov  8 11:45 spring-orm-5.3.20.jar
-rw-r--r--  1 root   tomcat  326K Nov  8 11:45 spring-tx-5.3.20.jar
-rw-r--r--  1 root   tomcat  1.6M Nov  8 11:48 spring-web-5.3.20.jar
-rw-r--r--  1 root   tomcat 1005K Nov  8 11:48 spring-webmvc-5.3.20.jar
-rw-r--r--  1 root   tomcat  192K Nov  8 11:45 stax2-api-4.2.1.jar
-rw-r--r--  1 root   tomcat   36K Aug 23 22:24 stax-ex-1.8.jar
-rw-r--r--  1 root   tomcat  202K Aug 23 22:24 taglibs-standard-impl-1.2.5.jar
-rw-r--r--  1 root   tomcat   40K Aug 23 22:24 taglibs-standard-spec-1.2.5.jar
-rw-r--r--  1 root   tomcat   89K Aug 23 22:24 tagsoup-1.2.1.jar
-rw-r--r--  1 root   tomcat  647K Nov  8 11:45 tika-core-2.3.0.jar
-rw-r--r--  1 root   tomcat   59K Nov  8 11:45 tika-parser-apple-module-2.3.0.jar
-rw-r--r--  1 root   tomcat   66K Nov  8 11:45 tika-parser-audiovideo-module-2.3.0.jar
-rw-r--r--  1 root   tomcat   18K Nov  8 11:45 tika-parser-cad-module-2.3.0.jar
-rw-r--r--  1 root   tomcat   29K Nov  8 11:45 tika-parser-code-module-2.3.0.jar
-rw-r--r--  1 root   tomcat   20K Nov  8 11:45 tika-parser-crypto-module-2.3.0.jar
-rw-r--r--  1 root   tomcat   18K Nov  8 11:45 tika-parser-digest-commons-2.3.0.jar
-rw-r--r--  1 root   tomcat   14K Nov  8 11:45 tika-parser-font-module-2.3.0.jar
-rw-r--r--  1 root   tomcat   15K Nov  8 11:45 tika-parser-html-commons-2.3.0.jar
-rw-r--r--  1 root   tomcat   52K Nov  8 11:45 tika-parser-html-module-2.3.0.jar
-rw-r--r--  1 root   tomcat   52K Nov  8 11:45 tika-parser-image-module-2.3.0.jar
-rw-r--r--  1 root   tomcat  9.7K Nov  8 11:45 tika-parser-mail-commons-2.3.0.jar
-rw-r--r--  1 root   tomcat   29K Nov  8 11:45 tika-parser-mail-module-2.3.0.jar
-rw-r--r--  1 root   tomcat  650K Nov  8 11:45 tika-parser-microsoft-module-2.3.0.jar
-rw-r--r--  1 root   tomcat  146K Nov  8 11:45 tika-parser-miscoffice-module-2.3.0.jar
-rw-r--r--  1 root   tomcat   20K Nov  8 11:45 tika-parser-news-module-2.3.0.jar
-rw-r--r--  1 root   tomcat   39K Nov  8 11:45 tika-parser-ocr-module-2.3.0.jar
-rw-r--r--  1 root   tomcat   95K Nov  8 11:45 tika-parser-pdf-module-2.3.0.jar
-rw-r--r--  1 root   tomcat   26K Nov  8 11:45 tika-parser-pkg-module-2.3.0.jar
-rw-r--r--  1 root   tomcat  1.4M Nov  8 11:45 tika-parsers-standard-package-2.3.0.jar
-rw-r--r--  1 root   tomcat  120K Nov  8 11:45 tika-parser-text-module-2.3.0.jar
-rw-r--r--  1 root   tomcat   36K Nov  8 11:45 tika-parser-xml-module-2.3.0.jar
-rw-r--r--  1 root   tomcat   16K Nov  8 11:45 tika-parser-xmp-commons-2.3.0.jar
-rw-r--r--  1 root   tomcat   40K Nov  8 11:45 tika-parser-zip-commons-2.3.0.jar
-rw-r--r--  1 root   tomcat   69K Aug 23 22:24 txw2-2.3.1.jar
-rw-r--r--  1 root   tomcat   91K Aug 23 22:24 validation-api-2.0.1.Final.jar
-rw-r--r--  1 root   tomcat  519K Nov  8 11:45 velocity-engine-core-2.3.jar
-rw-r--r--  1 root   tomcat  119K Aug 23 22:24 vorbis-java-core-0.8.jar
-rw-r--r--  1 root   tomcat   25K Aug 23 22:24 vorbis-java-tika-0.8.jar
-rw-r--r--  1 root   tomcat  1.6M Nov  8 11:45 woodstox-core-6.2.4.jar
-rw-r--r--  1 root   tomcat  1.4M Nov  8 11:45 xercesImpl-2.12.2.jar
-rw-r--r--  1 root   tomcat  216K Aug 23 22:24 xml-apis-1.4.01.jar
-rw-r--r--  1 root   tomcat  2.1M Nov  8 11:45 xmlbeans-5.0.3.jar
-rw-r--r--  1 root   tomcat  130K Nov  8 11:45 xmpbox-2.0.25.jar
-rw-r--r--  1 root   tomcat  140K Nov  8 11:45 xmpcore-6.1.11.jar
-rw-r--r--  1 root   tomcat  319K Aug 23 22:30 xoai-3.3.0.jar
-rw-r--r--  1 root   tomcat  114K Aug 23 22:38 xz-1.9.jar
-rw-r--r--  1 root   tomcat  1.2M Nov  8 11:45 zookeeper-3.6.2.jar
-rw-r--r--  1 root   tomcat  245K Aug 23 22:24 zookeeper-jute-3.6.2.jar

Once again, thank you for your help!

Mohammad S. AlMutairi

unread,
Nov 29, 2022, 9:35:32 PM11/29/22
to DSpace Technical Support
You welcome. The ( Unable to decrypt) do differ from the old issue you reported before which was (Exception in thread "main" java.lang.NoClassDefFoundError: com/sleepycat/je/DatabaseException - This one caused if you did not add the handle plugin into config.dct as in step 3 below). The Unable to decrypt is showing up because there was a passphrase set for the privkey.bin in the old Windows server so you need to remove it to go with the stream and with what DSpace documentation recommends ( Click Here ).

1) To remove the old passphrase. Do: (You might need to change the path to reflect where you have dspace and the handle-server folders).
a) java -cp /dspace/lib/handle-9.3.0.jar net.handle.apps.tools.KeyUtil dspace/handle-server/privkey.bin
b) Type your old passphrase
c) Type 2 (Save private key without encryption)
d) Type 3 (Exit)
e) /dspace/bin/start-handle-server
f) ss -nlp | grep ":2641\|:8000"


That should make the handle server starts but I recommend you to go for a fresh handle server installation instead since in either setup you have to contact CNRI to get your service information updated so go for a fresh handle server installation instead.
# Take a backup of the handle-server folder first and do:
# Careful here.
1) rm -rf /dspace/handle-server/*
2) /dspace/bin/dspace make-handle-config /dspace/handle-server/
Through what network-accessible IP address should clients connect to this server? [127.0.1.1]: x.x.x.x          <--- Server Public IP
If different, enter the IP address to which the server should bind. [159.0.214.179]: 192.168.100.x                    <--- Server Private IP
Would you like to encrypt your private key?(y/n) [y]: no                                                                                               <-- You should say no but you can say yes if you do, you have to enter this passphrase every time the handle server need to be started (DSpace recommends not to encrypt it).

3) vi /dspace/handle-server/config.dct
# You need to add the handle plugin part and you need to replace every occurrence of YOUR_PREFIX with your allotted prefix you have in dspace.cfg/local.cfg.
  "server_config" = {
    "storage_type" = "CUSTOM"
    "storage_class" = "org.dspace.handle.HandlePlugin"
    "enable_txn_queue" = "no"

    "server_admins" = (
      "300:0.NA/YOUR_PREFIX"
    )

    "replication_admins" = (
      "300:0.NA/YOUR_PREFIX"
    )

    "max_session_time" = "86400000"
    "this_server_id" = "1"
    "max_auth_time" = "60000"
    "server_admin_full_access" = "yes"
    "case_sensitive" = "no"
    "auto_homed_prefixes" = (
      "0.NA/YOUR_PREFIX"
    )

4) chown -R tomcat:tomcat /dspace/handle-server

5) /dspace/bin/start-handle-server

6) ss -nlp | grep ":8000\|:2641"

7) Make sure port 2641/udp, 2641/tcp and 8000/tcp are opend on the public firewall and the server firewall if you have one running.

8) Send the generated /dspace/handle-server/sitebndl.zip to hdla...@cnri.reston.va.us ... You should include your name, organization name, and your prefix that needs to be updated in the email.

That should be it & I hope it helps you to get it up and running again.
Message has been deleted

Mohammad S. AlMutairi

unread,
Nov 30, 2022, 7:39:43 PM11/30/22
to Night Librarian, DSpace Technical Support
On Wed, Nov 30, 2022 at 8:27 PM Night Librarian <stani...@gmail.com> wrote:
Wow!

$ sudo netstat -an | grep 8000
tcp6       0      0 140.230.24.101:8000     :::*                    LISTEN    
$ sudo netstat -an | grep 2641
tcp6       0      0 140.230.24.101:2641     :::*                    LISTEN    
udp6       0      0 140.230.24.101:2641     :::*      

And since we already were registered with CNRI, it started running right away!  Thank you so very much!
Glad to hear it's working for you. 👍
 

I have other issues (with downloading) that I will have to solve, but I will do it in a separate thread at https://groups.google.com/g/dspace-tech/c/VvIy1U119E4/m/qphirgovAgAJ

Once again - million thanks.
You are welcome. Always.

 
--
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/wiI45y7xSRs/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/9006d4a6-7fa3-4f88-9db4-6fc5824fad7fn%40googlegroups.com.

Mohammad S. AlMutairi

unread,
Dec 4, 2022, 8:27:33 PM12/4/22
to DSpace Technical Support
You got the 404 page not found error because you needed to run [dspace]/index-discovery after the change you have made to this item. Try the steps you see below. It should fix it.
1) /dspace/bin/dspace database migrate
2) /dspace/bin/dspace database validate
3) /dspace/bin/dspace database status
4) Change using pgAdmin https://hdl.handle.net/your-handle-prefix/1916 to https://your-server-domain-name/handle/your-handle-prefix/1916
5) /dspace/bin/dspace index-discovery -f -i e56a5422-b32b-4000-95dd-86467ef21c35
6) Copy over the old assetstore folder from the old server to the new Ubuntu server into /dspace/assetstore folder.
7) Try to access this item you changed and try download to PDF file.

You are a stubborn man I must admin :-).
Hop it helps you.
On Saturday, November 26, 2022 at 2:47:04 AM UTC+3 Night Librarian wrote:

Night Librarian

unread,
Dec 6, 2022, 7:41:39 PM12/6/22
to DSpace Technical Support
Thank you kindly!

Good thing I haven't read your post earlier, otherwise I would freak out.  :)  I am sure it would work but having to do "database migrate" again just sends shivers down my spine!  I followed the path of least resistance, suggested by Tim in https://groups.google.com/g/dspace-tech/c/VvIy1U119E4.  It was scary too, but I replaced the post-migration assetstore by the pre-migration one, and then batch copied the handful of items submitted post-migration (and which I did not corrupt during the migration).  

And since you helped me fix the Handle Server, I can now access all my items both in DSpace and using https://hdl.handle.net/my-handle-prefix/<item number>.

Thanks again.  I still have tons of work to do but fixing the items not displaying/downloading and Handle server not working were two major whales and they are of my system thanks to wonderful support from this group!
Reply all
Reply to author
Forward
0 new messages