FreeBSD install: ImageMagick convert available (!) (not - avail). RMagick is. (solved, need leading spaces in configuration.yml)
Added by David Gessel over 6 years ago
Problem¶
I've installed on FreeBSD and things are running nicely aside from a few quirks, one of which is that ImageMagick convert doesn't seem to be available.
# grep convert production.log Imagemagick's convert binary (convert) not available Imagemagick's convert binary (convert) not available
But
# convert Version: ImageMagick 6.9.9-28 Q16 amd64 2018-09-22 http://www.imagemagick.org Copyright: © 1999-2018 ImageMagick Studio LLC License: http://www.imagemagick.org/script/license.php Features: Cipher DPC Delegates (built-in): bzlib fftw fpx freetype jbig jng jpeg lcms lqr lzma png raw tiff webp xml zlib Usage: convert [options ...] file [ [options ...] file ...] [options ...] file
And in configuration.yml
Error¶
production: email_delivery: delivery_method: :smtp smtp_settings: enable_starttls_auto: true address: "myserver" port: 587 domain: "myserver" authentication: :plain user_name: "send@myserver" password: "password" rmagick_font_path: /usr/local/share/fonts/dejavu/DejaVuSans.ttf imagemagick_convert_command: /usr/local/bin/convert
Email works, so the configuration file is being read. The convert binary is available and works. I can execute it as the user "redmine".
I've found lots of fixes for RMagick, but that's working fine. It seems problems with "convert" are less frequent. :/
I've restarted the server, redmine, and done the usual re-raking. All to no avail so far.
Solution¶
DOH - the variable definitions in configuration.yml also need their leading spaces, or they are, in fact, ignored and the path specified isn't actually specified.
production: email_delivery: delivery_method: :smtp smtp_settings: enable_starttls_auto: true address: "myserver" port: 587 domain: "myserver" authentication: :plain user_name: "send@myserver" password: "password" rmagick_font_path: /usr/local/share/fonts/dejavu/DejaVuSans.ttf imagemagick_convert_command: /usr/local/bin/convert