cl hybrid, cagefs and convert
Forum
  1. Forums
  2. CloudLinux and Control Panels
  3. CloudLinux and cPanel
  1. George
  2. 06.12.2012
  3.  Subscribe via email
/usr/bin/convert doesn't work but /opt/cloudlinux/bin/convert work properly
Rate this post:
  1. 06.12.2012 09:12:28
  2. # 1
George Accepted Answer
Posts: 7
Joined: 06.12.2012
0
Votes
Undo
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
  1. 06.12.2012 09:12:41
  2. # 2
Igor Seletskiy Accepted Answer
Posts: 1201
Joined: 09.02.2010
0
Votes
Undo
Something like something is missing from cagefs.
Is that where your ImageMagick installed?
 /usr/local/lib/ImageMagick-6.6.7

Have you executed cagefsctl --update after adding this line?
  1. 06.12.2012 10:12:59
  2. # 3
George Accepted Answer
Posts: 7
Joined: 06.12.2012
0
Votes
Undo
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,
  1. 06.12.2012 10:12:55
  2. # 4
Igor Seletskiy Accepted Answer
Posts: 1201
Joined: 09.02.2010
0
Votes
Undo
If ImageMagick was installed after CageFS, and cagefsctl --update wasn\'t 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
  1. 06.12.2012 10:12:18
  2. # 5
George Accepted Answer
Posts: 7
Joined: 06.12.2012
0
Votes
Undo
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 didn't 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 :)
  • Page :
  • 1


There are no replies made for this post yet.
Be one of the first to reply to this post!
Guest
Submit Your Response
Upload files or images for this discussion by clicking on the upload button below. Supports gif,jpg,png,zip,rar,pdf
• Insert • Remove Upload Files (Maximum File Size: 2 MB)
Captcha
To protect the site from bots and unauthorized scripts, we require that you enter the captcha codes below before posting your question.