(7.0) Bitstreams missing after Simple Archive Import

240 views
Skip to first unread message

Tyler Mobley

unread,
Oct 21, 2021, 1:15:51 PM10/21/21
to DSpace Technical Support
This morning I expunged a list of items in a collection successfully and then used the command line import on Dspace 7 to import a zipfile of new items to that collection arranged in Simple Archive format. All the items come in correctly except for the primary bitstreams which are all PDFs. In the script output I can see lines per item where said file is being set as primary bitstream as per the contents manifest. However, the only thing appearing publicly apart from metadata is the included license.txt file.

I'm not receiving any errors that I can find during the import. Any ideas?

Thanks!
Tyler

Tim Donohue

unread,
Oct 21, 2021, 5:10:30 PM10/21/21
to Tyler Mobley, DSpace Technical Support
Hi Tyler,

Are there any errors in the backend logs (dspace.log or Tomcat logs)?  If you aren't seeing errors from the commandline process, it's possible they are showing up in the logs instead. 

Tim



From: dspac...@googlegroups.com <dspac...@googlegroups.com> on behalf of Tyler Mobley <mob...@cofc.edu>
Sent: Thursday, October 21, 2021 12:15 PM
To: DSpace Technical Support <dspac...@googlegroups.com>
Subject: [dspace-tech] (7.0) Bitstreams missing after Simple Archive Import
 
--
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 on the web visit https://groups.google.com/d/msgid/dspace-tech/abf20f2a-bdb0-43fe-aa29-38f0b6f3c6f7n%40googlegroups.com.

Tyler Mobley

unread,
Oct 22, 2021, 10:38:43 AM10/22/21
to DSpace Technical Support
Hi Tim,

I'm not seeing anything specific. In dspace.log I am getting occasional long stacktraces about a connection reset by peer error that I imagine is probably a firewall issue more than anything else. For a second I thought it might be related, but I see the same trace in there today and haven't run the import again since posting here. Catalina logs don't seem to have anything. Maybe my logging is misconfigured. I'll take a look. Would permissions on the files in the zip have any effect? I  don't get why a license.txt would make it through but not a PDF though.

Thanks,
Tyler

Tim Donohue

unread,
Oct 22, 2021, 11:24:06 AM10/22/21
to Tyler Mobley, DSpace Technical Support
I don't believe permissions in the Zip would have an impact.

You may also want to double check that the Zip file is structured as described in Simple Archive Format: 
https://wiki.lyrasis.org/display/DSDOC7x/Importing+and+Exporting+Items+via+Simple+Archive+Format#ImportingandExportingItemsviaSimpleArchiveFormat-DSpaceSimpleArchiveFormat

Pay close attention to the "contents" file which must obviously list all files you want to import.

Another option to try is unzipping​ the content into directories and just importing from the directories. Maybe there's something odd going on with the unzipping here?  I'm honestly not sure.

I'm slightly surprised there's no errors anywhere...but, maybe that means it's doing exactly what it thinks you want. Maybe the PDF file isn't listed in the "contents" file and so it's being ignored?

Tim

Sent: Friday, October 22, 2021 9:38 AM

To: DSpace Technical Support <dspac...@googlegroups.com>
Subject: Re: [dspace-tech] (7.0) Bitstreams missing after Simple Archive Import
 

Tyler Mobley

unread,
Mar 22, 2022, 9:58:01 AM3/22/22
to DSpace Technical Support
Circling back to this. I'm now on 7.1.1 and gave this another run this morning. I don't see any particular errors, the items are loaded and indexed in solr, and now I see that in the full item view only my license.txt file listed. HOWEVER, when I login and go to edit the item, the proper files ARE there under the bitstreams tab. I can download and view them as wanted. I'm also seeing though that these files are not being set as primary and when I edit and click the toggle to make them primary and save the changes don't seem to stick. Any idea? Permissions problem? Theme problem? Including a sample of my contents file below from the import.

BINNICKER-BACHELORSESSAY-2013.pdf       bundle:CONTENT  primary:true
LICENSE.txt     bundle:LICENSE

Thanks!

Tyler

Tyler Mobley

unread,
Mar 24, 2022, 11:10:22 AM3/24/22
to DSpace Technical Support
OK, after looking at the console responses I'm seeing the following sequence when I go to edit a bitstream, check toggle to make it primary, then click Save. In the interface I receive the green 'changes saved' alert. But the changes don't occur per what's here:

Cross-Origin Read Blocking (CORB) blocked cross-origin response https://api-d.library.cofc.edu/server/api/core/bitstreams/8c205262-d366-48fd-abcf-7e7f303e6a50/content with MIME type application/pdf. 

bitstreams:1 Form submission canceled because the form is not connected

dspace-rest-response-parsing.service.ts:155 The response for 'https://api-d.library.cofc.edu/server/api/core/items/5738204b-4cb0-4bc2-b0ed-5a36a5627b16/bundles?page=0&size=9999' has the self link 'https://api-d.library.cofc.edu/server/api/core/items/5738204b-4cb0-4bc2-b0ed-5a36a5627b16/bundles?page=0&size=1000'. These don't match. This could mean there's an issue with the REST endpoint


Tyler

Tim Donohue

unread,
Mar 24, 2022, 3:48:56 PM3/24/22
to Tyler Mobley, DSpace Technical Support
Hi Tyler,

I can verify that the "Primary Bitstream" toggle when editing a Bitstream doesn't appear to work properly for me either.

I've just created a ticket and added it to our project board for more analysis: 
https://github.com/DSpace/dspace-angular/issues/1578

Tim


Sent: Thursday, March 24, 2022 10:10 AM

Tyler Mobley

unread,
Mar 24, 2022, 3:50:16 PM3/24/22
to DSpace Technical Support
Thanks, Tim!

Tyler Mobley

unread,
Mar 24, 2022, 3:58:40 PM3/24/22
to DSpace Technical Support
Tim, not to pile on, but could you also check and verify if you get the following error in console and a blank screen when hitting the 'upload' button on the bitstream tab when editing an item? I thought I'd upload a new file to an existing item to see if at least that new file would show up in the public item view, but it appears I found a different problem. Going to upgrade to 7.2 UI tomorrow to see if that's the problem.

ERROR TypeError: You provided 'undefined' where a stream was expected. You can provide an Observable, Promise, Array, or Iterable.

Tyler

Tim Donohue

unread,
Mar 24, 2022, 4:09:29 PM3/24/22
to Tyler Mobley, DSpace Technical Support
I believe that was fixed in 7.2, as part of this PR (which fixed several issues in the edit bitstream form): https://github.com/DSpace/dspace-angular/pull/1417

Tim

Sent: Thursday, March 24, 2022 2:58 PM

To: DSpace Technical Support <dspac...@googlegroups.com>

Mobley, Tyler

unread,
Mar 24, 2022, 4:10:06 PM3/24/22
to Tim Donohue, DSpace Technical Support
Great. I’ll sort that out tomorrow then. Thanks For all the guidance. 

Thanks,
Tyler Mobley
Digital Services Coordinator
Director, Lowcountry Digital Library
College of Charleston Libraries

From: Tim Donohue <tim.d...@lyrasis.org>
Sent: Thursday, March 24, 2022 4:09:22 PM
To: Mobley, Tyler <mob...@cofc.edu>; DSpace Technical Support <dspac...@googlegroups.com>
Subject: EXTERNAL: Re: [dspace-tech] (7.0) Bitstreams missing after Simple Archive Import
 
CAUTION: This email originated from outside of the organization. Do not click links or open attachments unless you recognize the sender and know the content is safe.
Reply all
Reply to author
Forward
0 new messages