how to find a pdf file in assetstore via uuid in dspace 7.2?

626 views
Skip to first unread message

Evaristo Canul López

unread,
Mar 17, 2022, 7:56:18 AM3/17/22
to DSpace Technical Support
Hello

My name is Evaristo.

I am new to dspace.

I am migrating a repository from version 6.x (old server with centos) to the new version 7.2 (new server with ubuntu 20.04, tomcat9, postgresql 12).

I already did the migration.

I can display some pdf files in dspace 7.2 (already migrated), and other files not. When I can't display the pdf file, I get the error:

"Whitelabel Error Page"

I would like to know if the pdf file really exists in the /dspace/assetstore folder

How can I get the path of the pdf file via the uuid? For example if my url was:

https://mydomain.org/items/b23014e0-80fc-4a8e-949c-4fb0b3f35271

Thanks in advance for the support you can give me.

Tim Donohue

unread,
Mar 17, 2022, 10:58:16 AM3/17/22
to DSpace Technical Support
Hi Evaristo,

The location of the PDF file is only available in the database (in the bitstream table).  However, when you encounter a "whitelabel error page" when displaying a specific file, you should see an error in your "dspace.log" directory which notes the exact location where the file was expected to be.  It should be some sort of "File Not Found" error, and it'll list a long filepath in your configured "assetstore.dir" folder (this setting is in dspace.cfg or local.cfg).  

That long filepath is the location where the file was expected to be found.  For more information see the "Storage Layer" docs, especially the "Bitstream Store" section (as DSpace calls files "bitstreams"): https://wiki.lyrasis.org/display/DSDOC7x/Storage+Layer

If you have more questions, let us know on this list.

Tim

Evaristo Canul López

unread,
Mar 28, 2022, 8:31:57 AM3/28/22
to DSpace Technical Support
Thank you Tim Donohue

I was able to physically find the files on the server, and realized that some folders and files did not have the proper permissions.

Being in /dspace/assetstore/

Change the permissions of the directories:
find ./ -type d -exec chmod -R 0744 {} \;

Change file permissions
find ./ -type f -exec chmod -R 0644 {} \;

The above solved my problem

Thank you

Evaristo Canul López

unread,
Mar 28, 2022, 9:05:00 AM3/28/22
to DSpace Technical Support
For directories the permission must be 755
find ./ -type d -exec chmod -R 0755 {} \;
Reply all
Reply to author
Forward
0 new messages