Thumbnails error

69 views
Skip to first unread message

Stefana Breitwieser

unread,
Jul 1, 2020, 11:04:37 AM7/1/20
to DSpace Technical Support
Hi all,

I'm running into a thumbnails error. I'm trying to create thumbnails for a particular collection:

dspace filter-media -i 123456789/12345

This works for the vast majority of items. However, about 5% generate a pop-up window that Image Magick has stopped working. When you close the pop up it generates the error:

File: filename.pdf.jpg
ERROR filtering, skipping bitstream:

org.im4java.core.CommandException: org.im4java.core.CommandException: convert.exe: unable to open image `C\:Users\me\my\filepath'\file': No such file or directory @ error/blob.c/OpenBlob/2701.
org.im4java.core.CommandException: org.im4java.core.CommandException: convert.exe: unable to open image `C\:Users\me\my\filepath\file': No such file or directory @ error/blob.c/OpenBlob/2701.
        at org.im4java.core.ImageCommand.run(ImageCommand.java:219)
        at org.dspace.app.mediafilter.ImageMagickThumbnailFilter.getThumbnailFile(ImageMagickThumbnailFilter.java:126)
        at org.dspace.app.mediafilter.ImageMagickPdfThumbnailFilter.getDestinationStream(ImageMagickPdfThumbnailFilter.j
ava:25)
        at org.dspace.app.mediafilter.MediaFilterManager.processBitstream(MediaFilterManager.java:734)
        at org.dspace.app.mediafilter.MediaFilterManager.filterBitstream(MediaFilterManager.java:550)
        at org.dspace.app.mediafilter.MediaFilterManager.filterItem(MediaFilterManager.java:500)
        at org.dspace.app.mediafilter.MediaFilterManager.applyFiltersItem(MediaFilterManager.java:468)
        at org.dspace.app.mediafilter.MediaFilterManager.applyFiltersCollection(MediaFilterManager.java:446)
        at org.dspace.app.mediafilter.MediaFilterManager.main(MediaFilterManager.java:357)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
        at java.lang.reflect.Method.invoke(Unknown Source)
        at org.dspace.app.launcher.ScriptLauncher.runOneCommand(ScriptLauncher.java:226)
        at org.dspace.app.launcher.ScriptLauncher.main(ScriptLauncher.java:78)
Caused by: org.im4java.core.CommandException: convert.exe: unable to open image `C\:Users\me\my\filepath\file'': No such file or directory @ error/blob.c/OpenBlob/2701.
        at org.im4java.core.ImageCommand.finished(ImageCommand.java:253)
        at org.im4java.process.ProcessStarter.run(ProcessStarter.java:314)
        at org.im4java.core.ImageCommand.run(ImageCommand.java:215)
        ... 14 more

The error/blob.c/OpenBlob/2701 seems to relate to a permissions issue, but since it's successfully creating thumbnails for the majority of other files, I seem to have the correct permissions. The file path isn't overly long and I'm an administrator on our server. When I repeat the script, it's always the same files that generate the error every time. Any idea what might be happening here?

Additionally, because it generates the Windows pop-up error, I have to manually click "close program" every time for the script to continue. Is there a way to get it to fail more gracefully?

Thank you for any help you might have,

Stefana Breitwieser
Digital Archivist
Icahn School of Medicine at Mount Sinai

Mark H. Wood

unread,
Jul 2, 2020, 8:08:20 AM7/2/20
to DSpace Technical Support
On Tue, Jun 30, 2020 at 12:12:40PM -0700, Stefana Breitwieser wrote:
> Hi all,
>
> I'm running into a thumbnails error. I'm trying to create thumbnails for a
> particular collection:
>
> dspace filter-media -i 123456789/12345
> >
>
> This works for the vast majority of items. However, about 5% generate a
> pop-up window that Image Magick has stopped working. When you close the pop
> up it generates the error:
>
> File: filename.pdf.jpg
> > ERROR filtering, skipping bitstream:
> >
> > org.im4java.core.CommandException: org.im4java.core.CommandException:
> > convert.exe: unable to open image `C\:Users\me\my\filepath'\file': No such
> > file or directory @ error/blob.c/OpenBlob/2701.
[snip]
>
> The error/blob.c/OpenBlob/2701 seems to relate to a permissions issue, but
> since it's successfully creating thumbnails for the majority of other
> files, I seem to have the correct permissions. The file path isn't overly
> long and I'm an administrator on our server. When I repeat the script, it's
> always the same files that generate the error every time. Any idea what
> might be happening here?

I would check permissions throughout the assetstore, to see if a few
directories have different ownership or permissions. Running a
command-line tool as a user other than the DSpace user, for example,
can create files or directories in the assetstore that DSpace cannot
open.

--
Mark H. Wood
Lead Technology Analyst

University Library
Indiana University - Purdue University Indianapolis
755 W. Michigan Street
Indianapolis, IN 46202
317-274-0749
www.ulib.iupui.edu
signature.asc

stefanabr...@gmail.com

unread,
Jul 28, 2020, 4:57:39 PM7/28/20
to DSpace Technical Support
Thanks for your response, Mark. Do you know if how to check/update assetstore permissions is documented anywhere?

Stefana Breitwieser
Digital Archivist
Icahn School of Medicine at Mount Sinai

Mark H. Wood

unread,
Jul 31, 2020, 10:25:55 AM7/31/20
to DSpace Technical Support
On Tue, Jul 28, 2020 at 01:57:39PM -0700, stefanabr...@gmail.com wrote:
> Thanks for your response, Mark. Do you know if how to check/update
> assetstore permissions is documented anywhere?

I can't think of any place where this is documented, but it's really
simple: everything in and below [dspace]/assetstore (and any
additional assetstores that you may have) should be owned by the user
that runs Tomcat and should grant read/write permission to that user.

I ran a quick experiment on a test instance of DSpace. On this system
Tomcat is run by the user 'tomcat'. I am using GNU 'find'. This
command should list all files in 'assetstore' NOT owned by the user
'tomcat', *provided* that your current directory is the [dspace]
directory and the assetstore is a subdirectory named "assetstore":

find assetstore -not -user tomcat

This command should list all files under 'assetstore' that are not
read/write for the owner, regardless of other permissions:

find assetstore -not -perm -600
signature.asc

Alan Orth

unread,
Aug 7, 2020, 7:16:11 AM8/7/20
to DSpace Technical Support
Original poster is using Windows. Recursively change the permissions of the assetstore to your Windows user and try filter-media again.

Regards,

--
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...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/dspace-tech/20200731142551.GC3259%40IUPUI.Edu.

stefanabr...@gmail.com

unread,
Aug 26, 2020, 11:04:55 AM8/26/20
to DSpace Technical Support
Thanks to you both for your help!
Reply all
Reply to author
Forward
0 new messages