Re: [dspace-tech] Import backup assetstore

2019-09-13 Thread José Geraldo
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




Em sex, 13 de set de 2019 às 11:19, José Geraldo 
escreveu:

> 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
>
> [image: 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
>
> --
> 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+unsubscr...@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

-- 
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+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/dspace-tech/CANP4ikTYpBCDXKyNazf1cZi9iE3CJbfTeaGcniuJm%3DvQYJTVTg%40mail.gmail.com.


[dspace-tech] Import backup assetstore

2019-09-13 Thread José Geraldo
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

[image: 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

-- 
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+unsubscr...@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.