You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@taverna.apache.org by Ian Dunlop <ia...@gmail.com> on 2016/08/23 15:56:25 UTC

player portal image magick error

Hello,

With docker it all works but I wanted to run the portal outside it to make
debugging easier. But of course I got an error when uploading a workflow:


   - Diagram Paperclip::Errors::NotIdentifiedByImageMagickError

From development log

Command :: file -b --mime
'/tmp/image_123432070214370880320160823-18831-ln4fte'
Command :: identify -format '%wx%h,%[exif:orientation]'
'/tmp/76f4a67e378439c2501975a8de824cc020160823-18831-fkmog1[0]' 2>/dev/null
[paperclip] An error was received while processing:
#<Paperclip::Errors::NotIdentifiedByImageMagickError:
Paperclip::Errors::NotIdentifiedByImageMagickError>

Any ideas? ImageMagick was  installed from apt on ubuntu 14.04, ruby 1.9.3

Cheers,

Ian

Re: player portal image magick error

Posted by Ian Dunlop <ia...@gmail.com>.
Hello,

It's some sort of identify/imagemagickissue. If you  get rid of the
paperclip styles in app/model/workflow.rb then it works. But that kind of
defeats the point. Seems like it is a known issue
https://github.com/thoughtbot/paperclip/issues/1405.

So, I went to the Dockerfile that Finn created

https://hub.docker.com/r/fbacall/taverna-player-portal/~/dockerfile/

and installed the packages it recommends that  were not already present on
my machine:
apt-get install -y libtool libmagickwand-dev graphviz

I have the feeling  it may be libmagickwand that sorted it out.

and it now works.

Cheers,

Ian

On 23 August 2016 at 16:56, Ian Dunlop <ia...@gmail.com> wrote:

> Hello,
>
> With docker it all works but I wanted to run the portal outside it to make
> debugging easier. But of course I got an error when uploading a workflow:
>
>
>    - Diagram Paperclip::Errors::NotIdentifiedByImageMagickError
>
> From development log
>
> Command :: file -b --mime '/tmp/image_123432070214370880320160823-
> 18831-ln4fte'
> Command :: identify -format '%wx%h,%[exif:orientation]' '/tmp/
> 76f4a67e378439c2501975a8de824cc020160823-18831-fkmog1[0]' 2>/dev/null
> [paperclip] An error was received while processing: #<Paperclip::Errors::
> NotIdentifiedByImageMagickError: Paperclip::Errors::
> NotIdentifiedByImageMagickError>
>
> Any ideas? ImageMagick was  installed from apt on ubuntu 14.04, ruby 1.9.3
>
> Cheers,
>
> Ian
>