Hi,
After all, I managed to solve the problem. Probably it may be even better,
but here's how I solved it:
we exported to a text file (internal_id.txt) the paths of all bitstreams
using the following query:
select
substring(b.internal_id for 2) || '/' || substring(b.internal_id from 3
for 2) || '/' || substring(b.internal_id from 5 for 2) || '/' ||
b.internal_id as bitstream_path
from
bitstream b
After that I checked the existence of those bistreams in the assetstore
with this little script:
#!/bin/sh
homedspace=/home/dspace
assetd=$homedspace/assetstore
for i in `cat $homedspace/internal_id.txt`;
do
bitstr="$assetd/$i"
if [ ! -f $fbitstr ]; then
echo "$i"
fi;
done
I hope this can helps somebody...
luni, 15 aprilie 2019, 10:08:38 UTC+3, Liviu Petcu a scris:
>
> Hi,
>
> I have tried to export a collection using packager:
>
> dspace packager -a -d -t AIP -e user@myrepo -i 123456789/2594
> /home/dspace/123456789-2594.zip
>
> but this fails with this message:
>
> Disseminating DSpace COLLECTION [ hdl=123456789/2594 ] to
> /home/dspace/123456789-2594.zip
>
> Also disseminating all child objects (recursive mode)..
> This may take a while, please check your logs for ongoing status while we
> process each package.
> Exception: java.io.FileNotFoundException:
> /home/dspace/dspace/assetstore/24/53/70/24537062703407880406826961992454636643
>
> (No such file or directory)
> java.io.IOException: java.io.FileNotFoundException:
> /home/dspace/dspace/assetstore/24/53/70/24537062703407880406826961992454636643
>
> (No such file or directory)
> ...
>
> I want to correct this. I have tried to use the REST interface to find
> out which items have missing bitstreams, but I have not found a way. Please,
> can someone give me some advice to solve this problem.
>
> DSpace version: 6.0
> DB: Postgresql 9.6
> OS: Centos 7.3
>
> Thank you.
>
>
--
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 [email protected].
To post to this group, send email to [email protected].
Visit this group at https://groups.google.com/group/dspace-tech.
For more options, visit https://groups.google.com/d/optout.