Problem when uploading items via API (DSpace 7.6.1)

118 views
Skip to first unread message

Jan Skůpa

unread,
Feb 12, 2025, 6:45:03 AMFeb 12
to DSpace Technical Support
Hi,
we have a problem when uploading items from our information system via API (DSpace 7.6.1), when some items are not uploaded correctly - bitstream ORIGINAL is not loaded (although I can see it in the administration and a tumbnail is generated).
When viewing the item page, the error message "Error obtaining files for this item 500 An exception has occurred" appears. When viewing the Bistreams page in the admin interface, I found this in the Dev console "ERROR TypeError: Cannot read properties of undefined (reading 'lastModified')"
I can see the PDF in the admin, but I can't delete it, I can rename it and download it, but not delete it.
Does anyone know what could be the problem? Thank you!

Jan

John Sarris

unread,
Feb 14, 2025, 5:15:42 AMFeb 14
to DSpace Technical Support
Hi,

Have you checked the permissions in the directories where the bitstreams are stored?
Try also to provide more info through the log file...

Greetings,

John

Donny Gil Pineda

unread,
Feb 14, 2025, 6:26:57 AMFeb 14
to John Sarris, DSpace Technical Support

Si usas Nginx tendrías que dar permisos allí a los archivos entiendo que en el dspace 7.6 solo suben archivos hasta 1 mb mayor a ese peso de archivo no deja subir. Es por eso que se tiene que dar pemiso


--
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 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 visit https://groups.google.com/d/msgid/dspace-tech/31ead082-d840-4247-853c-87c1b92963b1n%40googlegroups.com.

Jan Skůpa

unread,
Feb 18, 2025, 3:20:02 AMFeb 18
to DSpace Technical Support
Thanks, but I didn't read anything sensible in the log. The correct permissions also occurred to me, but it's strange that some records work and some don't.

Dne pátek 14. února 2025 v 12:26:57 UTC+1 uživatel Donny Gil Pineda napsal:

Soukaïna Mahboub Mehboub

unread,
Feb 18, 2025, 4:59:10 AMFeb 18
to DSpace Technical Support
I have encountered the same issue few months ago, in my case it was Tomcat. It lacked reading/writing permissions. 

El dia dimarts, 18 de febrer del 2025 a les 9:20:02 UTC+1, Jan Skůpa va escriure:

Jan Skůpa

unread,
Feb 18, 2025, 8:33:46 AMFeb 18
to DSpace Technical Support
Thanks, is it about permissions for /dspace/assetstore or some settings in tomcat?


Dne úterý 18. února 2025 v 10:59:10 UTC+1 uživatel Soukaïna Mahboub Mehboub napsal:

Soukaïna Mahboub Mehboub

unread,
Feb 18, 2025, 9:08:57 AMFeb 18
to Jan Skůpa, DSpace Technical Support
Hi Jan, 

Yes, Tomcat needs to read/write the assetstore, make sure you restart tomcat (and be more reboot friendly  :) in general) .
 
In this thread, @imilos explains it better: https://gist.github.com/otuoma/4b2b23a6358cae99bd437e7a1492ade1#:~:text=The%20asset%20directory,assure%20proper%20permissions.





Missatge de Jan Skůpa <skup...@gmail.com> del dia dt., 18 de febr. 2025 a les 14:33:
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/BYqWyDWikko/unsubscribe.
To unsubscribe from this group and all its topics, send an email to dspace-tech...@googlegroups.com.
To view this discussion visit https://groups.google.com/d/msgid/dspace-tech/d8abfe14-0eaf-4add-a3b5-d6c3fbf0dcacn%40googlegroups.com.

Jan Skůpa

unread,
Mar 11, 2025, 7:19:37 AMMar 11
to DSpace Technical Support
Hi all,
Update:
We found empty bundles in the "problem records", but looking in the database there are bitstreams in the empty bundles (found in bundle2bitstreams). If we marked all these bitstreams as deleted, error 500 disappeared and the record is now functional.
Any idea how this happened and why the bistreams are not showing up in the frontend?
Interestingly, there was no bistream in the ORIGINAL bundle, but there were bistreams in the THUMBNAIL and TEXT bundles.
Thanks for any ideas.
Jan
Dne úterý 18. února 2025 v 15:08:57 UTC+1 uživatel Soukaïna Mahboub Mehboub napsal:
Reply all
Reply to author
Forward
0 new messages