Import backup assetstore

19 views
Skip to first unread message

José Geraldo

unread,
Sep 13, 2019, 10:19:37 AM9/13/19
to DSpace Technical Support
Hello everyone,

I received a backup of an assetstore that was in S3 AWS and the assetstore has the following structure:

bitstreams assetstore/data/id_internal

asssestore.PNG


I would like your help how to import this structure into the local assetstore structure in Dspace 6.3:

[dspace]/assetstore/12/34/56/12345678901234567890123456789012345678
asssestore.PNG

José Geraldo

unread,
Sep 13, 2019, 10:33:12 AM9/13/19
to DSpace Technical Support
I used the script below to create the correct structure and run index-discovery -b, but still returning the error below:

psql postgresql://localhost:5432/dspace -U dspace -t -c "COPY (select b.internal_id, substring(b.internal_id for 2) || '/' || substring(b.internal_id from 3 for 2) || '/' || substring(b.internal_id from 5 for 2 ) as bitstream_path from bitstream b) TO STDOUT (format csv, delimiter ';')"  > /tmp/internal_id

Error:

Caused by: java.lang.NullPointerException
	at org.dspace.storage.bitstore.BitstreamStorageServiceImpl.retrieve(BitstreamStorageServiceImpl.java:216)
	at org.dspace.content.BitstreamServiceImpl.retrieve(BitstreamServiceImpl.java:278)
	at org.dspace.app.xmlui.cocoon.BitstreamReader.setup(BitstreamReader.java:399)
	at sun.reflect.GeneratedMethodAccessor108.invoke(Unknown Source)
	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
	at java.lang.reflect.Method.invoke(Method.java:498)
	at org.apache.cocoon.core.container.spring.avalon.PoolableProxyHandler.invoke(PoolableProxyHandler.java:71)
	at com.sun.proxy.$Proxy96.setup(Unknown Source)
	at org.apache.cocoon.components.pipeline.AbstractProcessingPipeline.setupReader(AbstractProcessingPipeline.java:560)
	... 75 more



--
All messages to this mailing list should adhere to the DuraSpace Code of Conduct: https://duraspace.org/about/policies/code-of-conduct/
---
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 view this discussion on the web visit https://groups.google.com/d/msgid/dspace-tech/d555e204-9922-4716-8c47-fb1af1284b85%40googlegroups.com.


--
At.te,

José Geraldo

Reply all
Reply to author
Forward
0 new messages