/usr/bin/convert doesnt work but /opt/cloudlinux/bin/convert work properly
Announcement
Collapse
No announcement yet.
cl hybrid, cagefs and convert
Collapse
X
-
I am experiencing a wired problem with the convert. All php applications tested so far such as gallery 2 and Piwigo encountered the same problem. Below is fr om the apache error log:
identify: UnableToOpenConfigureFile `delegates.xml.
identify: NoDecodeDelegateForThisImageFormat `/home/user/public_html/piwigo/upload/2012/12/06/20121206083947-762736ec.jpg.
convert: UnableToOpenConfigureFile `colors.xml.
convert: UnableToOpenConfigureFile `delegates.xml.
convert: NoDecodeDelegateForThisImageFormat `/home/user/public_html/gallery/var/thumbs/k2img--593ad0eb7c87de0784f8909d9d55f452a094bb8d.jpg.
convert: MissingAnImageFilename `/home/user/public_html/gallery/var/thumbs/k2img--593ad0eb7c87de0784f8909d9d55f452a094bb8d.jpg.
The convert is present in the cagefs and seems to work properly from the console:
bash-3.2$ wh ereis convert
convert: /usr/bin/convert /opt/cloudlinux/bin/convert
bash-3.2$ /usr/bin/convert -v
Version: ImageMagick 6.2.8 05/08/12 Q16 file:/usr/share/ImageMagick-6.2.8/doc/index.html
When I reconfigure the gallery2 to use /opt/cloudlinux/bin/convert it converts without any problems.
The server runs cpanel latest, cent5 hybrid with latest cagefs. The imagemagick.cfg is present
[/etc/cagefs/conf.d]# cat imagemagick.cfg
[imagemagick]
comment=Image Magick
paths=/usr/bin/convert, /usr/bin/identify, /usr/bin/gm, /usr/bin/combine, /usr/bin/composite, /usr/local/lib/ImageMagick-6.6.7, /usr/local/bin/convert, /usr/local/bin/identify, /usr/local/bin/gm, /usr/local/bin/combine, /usr/local/bin/composite
I have php selector installed but the issue is present even with the Native version and no problem present when the use is out of cagefs.
Any thoughts will be appreciated.
Regards
-
Thank you Igor, your reply rang a bell.
The ImageMagick was installed via the cpanel script /scripts/installimagemagick, the imagemagick.cfg was the default that was set by the cagefs install. I have added:
/usr/lib64/ImageMagick-6.2.8
in the cfg file and this has resolved the issue. I am not sure if it has occurred due to the fact that imagemagick was installed after cagefs or just because the default conf does not work for the cpanel installimagemagick script. Still, on my box the needed files are under the directory above.
Thank you for your help. Problem solved
Regards,
Comment
-
If ImageMagick was installed after CageFS, and cagefsctl --update wasn executed after that -- it would be a problem. As well as missing line with location of ImageMagick.
Basically -- any time you update any software on the server, you should run cagefsctl --update
Comment
-
I have run the cagefsctl --upd ate many times since the imagemagick was installed but I guess without the correct path in the config it didnt help much. I am wondering if the convert would have been installed prior the cagefs the correct paths would have been added in the imagemagick.cfg.
You might consider this in the future as the fresh install of the cPanel does not se tup the ImageMagick by default and other users might have the same issue on cPanel servers after clean install. Additionally, I am not sure if the cnf files can support wildcard, for example "/usr/lib64/ImageMagick-*" so you can make it universal for all 64bit cpanel users.
Anyway, thank you for your time
Comment
Comment