Re: [dspace-tech] Public service announcement: Recent Ubuntu ImageMagick update breaks PDF thumbnails

2018-12-02 Thread Alan Orth
Dear list,

Another recent update in Debian / Ubuntu has broken PDF thumbnail
generation in DSpace 5 and 6, though this time it is the Ghostscript
package rather than ImageMagick. You should see errors like this when you
try to run filter-media:

org.im4java.core.InfoException: org.im4java.core.CommandException:
org.im4java.core.CommandException: identify: FailedToExecuteCommand `"gs"
-q -dQUIET -dSAFER -dBATCH -dNOPAUSE -dNOPROMPT -dMaxBitmap=5
-dAlignToPixels=0 -dGridFitTT=2 "-sDEVICE=pngalpha" -dTextAlphaBits=4
-dGraphicsAlphaBits=4 "-r72x72" -dFirstPage=1 -dLastPage=1
"-sOutputFile=/tmp/magick-12989PcFN0DnJOej7%d"
"-f/tmp/magick-129895Bmp44lvUfxo" "-f/tmp/magick-12989C0QFG51fktLF"' (-1) @
error/delegate.c/ExternalDelegateCommand/461.

See Ubuntu Security Notice 3831-1[0] as well as a StackOverflow discussion
from this past weekend[1]. In this case it seems that there is a bug[2] in
the upstream Ghostscript project related to the pngalpha device and there
is currently no packaged version with a fix. One workaround for now,
suggested in the StackOverflow discussion, is to use the png16m output
device instead of pngalpha. I have confirmed that this works on standalone
invocations of `gs`, but I am not sure what implications this has for
speed, memory, or the quality of thumbnails.

Regards,

[0] https://usn.ubuntu.com/3831-1/
[1]
https://stackoverflow.com/questions/53560755/ghostscript-9-26-update-breaks-imagick-readimage-for-multipage-pdf
[2] https://bugs.ghostscript.com/show_bug.cgi?id=699815

On Fri, Oct 12, 2018 at 6:44 PM Alan Orth  wrote:

> Great idea, Tim! I just logged it in Jira as DS-4052.
>
> https://jira.duraspace.org/browse/DS-4052
>
> Regards,
>
> On Thu, Oct 11, 2018 at 7:23 PM Tim Donohue 
> wrote:
>
>> Alan,
>>
>> Could you create a "documentation" ticket for this in our JIRA system (as
>> that's sometimes an easier place to find "known issues")?  This sounds like
>> something we should get into the official documentation, and having a
>> ticket to remind us (and as a place to add additional questions/comments)
>> would be useful.
>>
>> Thanks,
>>
>> Tim
>>
>> On Thu, Oct 11, 2018 at 12:27 AM Alan Orth  wrote:
>>
>>> Dear DSpace people,
>>>
>>> Recently I noticed that our PDFs were not getting thumbnails generated
>>> for them. I ran the filter-media script manually and saw an error like this:
>>>
>>> org.im4java.core.InfoException: org.im4java.core.CommandException:
>>> org.im4java.core.CommandException: identify: not authorized
>>> `/tmp/impdfthumb5039464037201498062.pdf' @ error/constitute.c/ReadImage/412.
>>>
>>> According to an Ubuntu Security Notice from 2018-10 the Ubuntu
>>> developers have decided to disable PDF processing by default in their
>>> ImageMagick[0] package. This affects all currently supported Ubuntu
>>> long-term support releases.
>>>
>>> If you are using DSpace 5.x or 6.x with ImageMagick thumbnail support,
>>> you will need to change your system's ImageMagick policy.xml file to
>>> re-enable PDF processing. On Ubuntu 16.04 the file is
>>> /etc/ImageMagick-6/policy.xml. Delete or comment out the following line:
>>>
>>> 
>>>
>>> Regards,
>>>
>>> [0] https://usn.ubuntu.com/3785-1/
>>> --
>>> Alan Orth
>>> alan.o...@gmail.com
>>> https://picturingjordan.com
>>> https://englishbulgaria.net
>>> https://mjanja.ch
>>> "In heaven all the interesting people are missing." ―Friedrich Nietzsche
>>>
>>> --
>>> 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+unsubscr...@googlegroups.com.
>>> To post to this group, send email to dspace-tech@googlegroups.com.
>>> Visit this group at https://groups.google.com/group/dspace-tech.
>>> For more options, visit https://groups.google.com/d/optout.
>>>
>> --
>> Tim Donohue
>> Technical Lead for DSpace & DSpaceDirect
>> DuraSpace.org | DSpace.org | DSpaceDirect.org
>>
>
>
> --
> Alan Orth
> alan.o...@gmail.com
> https://picturingjordan.com
> https://englishbulgaria.net
> https://mjanja.ch
> "In heaven all the interesting people are missing." ―Friedrich Nietzsche
>


-- 
Alan Orth
alan.o...@gmail.com
https://picturingjordan.com
https://englishbulgaria.net
https://mjanja.ch
"In heaven all the interesting people are missing." ―Friedrich Nietzsche

-- 
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+unsubscr...@googlegroups.com.
To post to this group, send email to dspace-tech@googlegroups.com.
Visit this group at https://groups.

[dspace-tech] dsapace build failure,fails to locate jdk.tools:jdk.tools:jar:1.6 in JDK

2018-12-02 Thread Mwayi Mchuchu
[INFO] 

[INFO] Reactor Summary:
[INFO] 
[INFO] DSpace Parent Project .. SUCCESS [  
0.961 s]
[INFO] DSpace Services Framework :: API and Implementation  SUCCESS [  
4.810 s]
[INFO] DSpace Kernel :: API and Implementation  SUCCESS [ 
17.450 s]
[INFO] DSpace Addon Modules ... SUCCESS [  
0.011 s]
[INFO] DSpace Kernel :: Additions and Local Customizations  SUCCESS [  
0.353 s]
[INFO] DSpace XML-UI (Manakin)  SUCCESS [  
7.706 s]
[INFO] DSpace XML-UI (Manakin) :: Local Customizations  SUCCESS [ 
12.285 s]
[INFO] DSpace JSP-UI .. SUCCESS [  
2.949 s]
[INFO] DSpace JSP-UI :: Local Customizations .. SUCCESS [  
5.673 s]
[INFO] DSpace RDF . SUCCESS [  
5.981 s]
[INFO] DSpace RDF :: Local Customizations . SUCCESS [  
8.591 s]
[INFO] DSpace REST :: API and Implementation .. SUCCESS [ 
11.184 s]
[INFO] DSpace REST :: Local Customizations  SUCCESS [  
7.801 s]
[INFO] DSpace SWORD ... SUCCESS [  
3.606 s]
[INFO] DSpace SWORD :: Local Customizations ... SUCCESS [  
5.379 s]
[INFO] DSpace SWORD v2  SUCCESS [  
3.050 s]
[INFO] DSpace SWORD v2 :: Local Customizations  SUCCESS [  
5.510 s]
[INFO] Apache Solr Webapp . SUCCESS [ 
13.231 s]
[INFO] DSpace SOLR :: Local Customizations  FAILURE [  
0.767 s]
[INFO] DSpace OAI-PMH . SKIPPED
[INFO] DSpace OAI-PMH :: Local Customizations . SKIPPED
[INFO] DSpace Assembly and Configuration .. SKIPPED
[INFO] DSpace XML-UI Mirage2 Theme  SKIPPED
[INFO] 

[INFO] BUILD FAILURE
[INFO] 

[INFO] Total time: 01:58 min
[INFO] Finished at: 2018-12-01T10:29:46+02:00
[INFO] Final Memory: 75M/254M
[INFO] 

[ERROR] Failed to execute goal on project solr: Could not resolve 
dependencies for project org.dspace.modules:solr:war:6.3: Could not find 
artifact jdk.tools:jdk.tools:jar:1.6 at specified path 
/usr/lib/jvm/java-11-openjdk-amd64/../lib/tools.jar -> [Help 1]
[ERROR] 
[ERROR] To see the full stack trace of the errors, re-run Maven with the -e 
switch.
[ERROR] Re-run Maven using the -X switch to enable full debug logging.
[ERROR] 
[ERROR] For more information about the errors and possible solutions, 
please read the following articles:
[ERROR] [Help 1] 
http://cwiki.apache.org/confluence/display/MAVEN/DependencyResolutionException
[ERROR] 
[ERROR] After correcting the problems, you can resume the build with the 
command
[ERROR]   mvn  -rf :solr



I have installed JDK-8, seems its looking in JAVA-11-openjdk, should i try 
install JDK 11? when i run JAVA --version it displayed my java is JDK-10. 
Lol am kinda confused anyway all am looking for is to get read of the 
problem, i tried the proxy setting still didn't work. What could i have 
done wrong or missed here.

-- 
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+unsubscr...@googlegroups.com.
To post to this group, send email to dspace-tech@googlegroups.com.
Visit this group at https://groups.google.com/group/dspace-tech.
For more options, visit https://groups.google.com/d/optout.


[dspace-tech] Re: how to change the path to storage dspace

2018-12-02 Thread genevieve . turner
I would look into symbolic links.  We have our instance on Linux and we 
have a few assetstores (assetstore, assetstore2, assetstore3, etc.).  These 
are all symbolic links to other storage locations.  You can also create 
symbolic links in Windows, I would do a search around the net on how to do 
so.  To use the increasing number of assetstores you change the value of 
assetstore.incoming for wherever you currently want your files to be 
uploaded to (e.g. for assetstore3 this value would be 2).

You could also change the value of assetstore.dir (Note I have not done 
this and longer term if you want multiple assetstores then you would need 
to use symbolic links anyway).



On Saturday, 1 December 2018 17:33:09 UTC+11, Ze Victor Harry wrote:
>
> hello again everyone can anybody tell me how to change the path for 
> storage?by default it is uploading to the directory where dspace is 
> installed that is the C:\ drive but my data is huge and i want to save in 
> another drive(D:\).
>
> Assay
>

-- 
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+unsubscr...@googlegroups.com.
To post to this group, send email to dspace-tech@googlegroups.com.
Visit this group at https://groups.google.com/group/dspace-tech.
For more options, visit https://groups.google.com/d/optout.