[dspace-tech] Filter-media identify error
Greeting, I have the following problem when running a *filter-media -i 11626/117*. The process starts running but stops suddenly with the following error message in *dspace.log* - SKIPPED: bitstream 8524934d-a163-42df-8da7-9b3232f1fc02 (item: 11626/117) because 'Document_for_testing.pdf.txt' already exists - ERROR filtering, skipping bitstream: - Caused by: java.io.FileNotFoundException: identify My installation have the next configurations: - Windows 10 - DSpace 6.3 - PostgreSQL 9.6 I'm using a user with sufficient permissions and the item was successfully imported by Batch. Thanks for your time. -- 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+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/dspace-tech/18daed99-0ff3-4cb8-b3fd-b481286571dcn%40googlegroups.com. C:\dspace\dspace_63\bin> .\dspace filter-media -i 11626/117 Using DSpace installation in: C:\dspace\dspace_63 WARNING: An illegal reflective access operation has occurred WARNING: Illegal reflective access by org.postgresql.jdbc.TimestampUtils (file:/C:/dspace/dspace_63/lib/postgresql-9.4.1211.jar) to field java.util.TimeZone.defaultTimeZone WARNING: Please consider reporting this to the maintainers of org.postgresql.jdbc.TimestampUtils WARNING: Use --illegal-access=warn to enable warnings of further illegal reflective access operations WARNING: All illegal access operations will be denied in a future release SKIPPED: bitstream 8524934d-a163-42df-8da7-9b3232f1fc02 (item: 11626/117) because 'Document_for_testing.pdf.txt' already exists File: Document_for_testing.pdf.jpg ERROR filtering, skipping bitstream: Item Handle: 11626/117 Bundle Name: ORIGINAL File Size: 28727493 Checksum: be0d52adfb7ec0a6e7e870549d5a612a (MD5) Asset Store: 0 org.im4java.core.InfoException: org.im4java.core.CommandException: java.io.FileNotFoundException: identify org.im4java.core.InfoException: org.im4java.core.CommandException: java.io.FileNotFoundException: identify at org.im4java.core.Info.getBaseInfo(Info.java:360) at org.im4java.core.Info.(Info.java:151) at org.dspace.app.mediafilter.ImageMagickThumbnailFilter.getImageFile(ImageMagickThumbnailFilter.java:149) at org.dspace.app.mediafilter.ImageMagickPdfThumbnailFilter.getDestinationStream(ImageMagickPdfThumbnailFilter.java:27) at org.dspace.app.mediafilter.MediaFilterServiceImpl.processBitstream(MediaFilterServiceImpl.java:358) at org.dspace.app.mediafilter.MediaFilterServiceImpl.filterBitstream(MediaFilterServiceImpl.java:217) at org.dspace.app.mediafilter.MediaFilterServiceImpl.filterItem(MediaFilterServiceImpl.java:180) at org.dspace.app.mediafilter.MediaFilterServiceImpl.applyFiltersItem(MediaFilterServiceImpl.java:158) at org.dspace.app.mediafilter.MediaFilterCLITool.main(MediaFilterCLITool.java:315) at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.base/java.lang.reflect.Method.invoke(Method.java:566) at org.dspace.app.launcher.ScriptLauncher.runOneCommand(ScriptLauncher.java:229) at org.dspace.app.launcher.ScriptLauncher.main(ScriptLauncher.java:81) Caused by: org.im4java.core.CommandException: java.io.FileNotFoundException: identify at org.im4java.core.ImageCommand.run(ImageCommand.java:219) at org.im4java.core.Info.getBaseInfo(Info.java:342) ... 14 more Caused by: java.io.FileNotFoundException: identify at org.im4java.process.ProcessStarter.searchForCmd(ProcessStarter.java:661) at org.im4java.process.ProcessStarter.startProcess(ProcessStarter.java:403) at org.im4java.process.ProcessStarter.run(ProcessStarter.java:312) at org.im4java.core.ImageCommand.run(ImageCommand.java:215) ... 15 more
[dspace-tech] Re: Filter-media identify error
Hello, I tried to do this forcing the command but i receive the same message error about not find an identify - .\dspace filter-media -f -i 11626/117 - ERROR filtering, skipping bitstream: - org.im4java.core.InfoException: org.im4java.core.CommandException: java.io.FileNotFoundException: identify I also verified that the imagemagick and ghostscript system variables were declared and discoverable by *dspace.cfg* Additionally, I run commands for the creation of covers from pdf to jpg through cmd and they are solved without problems. Note: Now written from my email, by accident I had responded by my company email. El Saturday, December 10, 2022 a la(s) 10:00:44 AM UTC-3, alo...@gmail.com escribió: > Hi, > > Try to force it with -f: ( C:\dspace\dspace_63\bin\dspace filter-media -h > ). > On Saturday, December 10, 2022 at 7:24:37 AM UTC+3 Jordan Gamonal Pérez > wrote: > >> Greeting, >> >> I have the following problem when running a *filter-media -i 11626/117*. >> The process starts running but stops suddenly with the following error >> message in *dspace.log* >> >> >>- SKIPPED: bitstream 8524934d-a163-42df-8da7-9b3232f1fc02 (item: >>11626/117) because 'Document_for_testing.pdf.txt' already exists >>- ERROR filtering, skipping bitstream: >>- Caused by: java.io.FileNotFoundException: identify >> >> My installation have the next configurations: >> >>- Windows 10 >>- DSpace 6.3 >>- PostgreSQL 9.6 >> >> I'm using a user with sufficient permissions and the item was >> successfully imported by Batch. >> >> Thanks for your time. >> > -- 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+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/dspace-tech/0e0010ca-a2b2-41de-a545-facec83718dfn%40googlegroups.com.
[dspace-tech] Re: Filter-media identify error
Hi, I would like to inform you that the indicated steps helped me to solve the problem, and I thank you very much. Regarding the routes, I use the common slashes, I have already tried the backslashes before and they need to be escaped, which is not very readable in the end. El Tuesday, December 13, 2022 a la(s) 12:09:30 AM UTC-3, alo...@gmail.com escribió: > There was a typo in step 4. I'm not sure if dspace or im4java are > forgiving about the backslash so it it's safer to always use forward slash. > 4) edit dspace.cfg and set the value for > (org.dspace.app.mediafilter.ImageMagickThumbnailFilter.ProcessStarter = 'c: > */*imagemagick') and Restart Tomcat. > > On Sunday, December 11, 2022 at 9:50:29 AM UTC+3 Mohammad S. AlMutairi > wrote: > >> You can try the steps you see below if the above suggestion didn't fix >> the issue you have (Not much information provided about the server setup so >> I'm guessing here). Anyway, Try the steps you see below. it should fix it >> no matter what was the cause of the issue you have. >> >> 1) Uninstall the old ImageMagick you have. >> 2) Remove the IM4JAVA_TOOLPATH environment variable if you had it set. >> 3) Download the latest ImageMagick version >> <https://imagemagick.org/script/download.php#windows> and install it >> with the legacy utilities option. NB: You must choose the installation path >> to be (c:\imagemagick) or (C:\dspace\dspace_63\imagemagick). The idea of >> the path part is to avoid spaces in the folders names. >> 4) edit dspace.cfg and set the value for >> (org.dspace.app.mediafilter.ImageMagickThumbnailFilter.ProcessStarter >> = 'c:\imagemagick') and Restart Tomcat. >> 5) Create the IM4JAVA_TOOLPATH environment in the system environment >> using (setx /m IM4JAVA_TOOLPATH "c:\imagemagick") or in the logged in >> user environment using (setx IM4JAVA_TOOLPATH "c:\imagemagick"). >> 6) Restart the server or just Logged out log back in and try it. >> >> Hope it helps you. >> On Sunday, December 11, 2022 at 6:28:57 AM UTC+3 Mohammad S. AlMutairi >> wrote: >> >>> Hello, >>> >>> I see the issue you have now "There was three issues in the first post" >>> :-). It seems identify.exe is not installed on your Windows 10. Can you >>> make sure you see it in the ImageMagick installation folder first? (dir >>> C:\Path-to-ImageMagick\identify.exe) or (dir /s \identify.exe). If it can >>> not be found you need to reinstall the ImageMagick package again but this >>> time make sure "Install legacy utilities (e.g Convert)" is ticked to >>> have it installed and just try it after rebooting your server to be sure. >>> Here is the ImageMagick download link: >>> https://imagemagick.org/script/download.php#windows >>> >>> Cheers >>> >>> Hope it help. >>> >>> >>> On Saturday, December 10, 2022 at 10:29:39 PM UTC+3 Jordan Gamonal Pérez >>> wrote: >>> >>>> Hello, >>>> >>>> I tried to do this forcing the command but i receive the same message >>>> error about not find an identify >>>> >>>>- .\dspace filter-media -f -i 11626/117 >>>>- ERROR filtering, skipping bitstream: >>>>- org.im4java.core.InfoException: >>>>org.im4java.core.CommandException: java.io.FileNotFoundException: >>>> identify >>>> >>>> I also verified that the imagemagick and ghostscript system variables >>>> were declared and discoverable by *dspace.cfg* Additionally, I run >>>> commands for the creation of covers from pdf to jpg through cmd and they >>>> are solved without problems. >>>> >>>> Note: Now written from my email, by accident I had responded by my >>>> company email. >>>> >>>> El Saturday, December 10, 2022 a la(s) 10:00:44 AM UTC-3, >>>> alo...@gmail.com escribió: >>>> >>>>> Hi, >>>>> >>>>> Try to force it with -f: ( C:\dspace\dspace_63\bin\dspace filter-media >>>>> -h ). >>>>> On Saturday, December 10, 2022 at 7:24:37 AM UTC+3 Jordan Gamonal >>>>> Pérez wrote: >>>>> >>>>>> Greeting, >>>>>> >>>>>> I have the following problem when running a *filter-media -i >>>>>> 11626/117*. The process starts running but stops suddenly with the >>>>>> following erro