Page 1 of 1

ResourceSpace Error - server settings?

Posted: 2017-05-21T15:37:38-07:00
by Sibko
ResourceSpace is a digital asset management tool, so I upload a hires image and it converts it into 3 smaller versions.

I have installed the software in the past on an old provider with no issue but Im trying a number of time on MediaTemple (GRID) and always hit the same wall so finally going to figure out whats going on.

Image

All original Images seem to upload fine and if the images are small it works as expected but if the image is over about 6-7 meg the 3 small versions including thumbnails, are incomplete or missing althogether. Its doing a conversion in most cases so I assume its finding ImageMagick I just need to work out why its creating incomplete images.

There is a log for each image which is reporting no errors.

Someone suggested in might be the host limited CPU and terminating the process.

In the install check for RS I get OK for ImageMagick - Version: ImageMagick 6.7.7-10 2016-12-22 Q16 , althou in the MediaTemple documentation It says ImageMagick is not available to php5 and an opendir must be enabled in php.ini so im not sure if its there or not. When I do add the required line opendir it breaks the page.

I have altered php file max and execution times in htaccess

Any ideas what might be happening

Re: ResourceSpace Error - server settings?

Posted: 2017-05-21T15:47:35-07:00
by fmw42
You may be exceeding your tmp directory space limitations. Also your version of ImageMagick is over 200 versions old. You might consider upgrading it. Also look at

convert -list resource

to see how your IM policy.xml file is limiting you.

Re: ResourceSpace Error - server settings?

Posted: 2017-05-21T16:00:26-07:00
by Sibko
Thanks for the replay, its a shared server so I dont have much control over the version. I might have to go to a more independent solution.

fmw42 wrote: 2017-05-21T15:47:35-07:00 You may be exceeding your tmp directory space limitations. Also your version of ImageMagick is over 200 versions old. You might consider upgrading it. Also look at

convert -list resource

to see how your IM policy.xml file is limiting you.

Re: ResourceSpace Error - server settings?

Posted: 2017-05-21T16:14:55-07:00
by fmw42
What do you get from

Code: Select all

convert -list resource
If it does not work, then your version of IM is too old. You should check with your hosting service to ask them what limitation you have.

Re: ResourceSpace Error - server settings?

Posted: 2017-05-21T17:34:43-07:00
by Sibko
Im pretty ignorest with command line stuff but using a couple of PHP scripts I get:

Version return code is 0

Version: ImageMagick 6.7.7-10 2016-12-22 Q16 http://www.imagemagick.org
Copyright: Copyright (C) 1999-2012 ImageMagick Studio LLC
Features: OpenMP

Version: ImageMagick 6.7.7-10 2016-12-22 Q16 http://www.imagemagick.org Copyright: Copyright (C) 1999-2012 ImageMagick Studio LLC Features: OpenMP imagick not installed
Fatal error: Class 'Imagick' not found



fmw42 wrote: 2017-05-21T16:14:55-07:00 What do you get from

Code: Select all

convert -list resource
If it does not work, then your version of IM is too old. You should check with your hosting service to ask them what limitation you have.

Re: ResourceSpace Error - server settings?

Posted: 2017-05-21T18:14:20-07:00
by fmw42
try

Code: Select all

<?php
exec("convert -list resource",$out,$returnval);
foreach($out as $text)
{echo "$text<br>";}
?>
or

Code: Select all

<?php
exec("/usr/bin/convert -list resource",$out,$returnval);
foreach($out as $text)
{echo "$text<br>";}
?>

or

Code: Select all

<?php
exec("/usr/local/bin/convert -list resource",$out,$returnval);
foreach($out as $text)
{echo "$text<br>";}
?>

Which are the two most likely paths to ImageMagick.

Re: ResourceSpace Error - server settings?

Posted: 2017-05-21T18:22:12-07:00
by fmw42
You should get back something like:

Resource limits:
Width: 214.7MP
Height: 214.7MP
Area: 17.18GP
Memory: 8GiB
Map: 16GiB
Disk: unlimited
File: 192
Thread: 4
Throttle: 0
Time: unlimited

This only tells you how ImageMagick is limited. Your hosting service may have limits in its OS for each user. So you probably should check with your hosting service.

Re: ResourceSpace Error - server settings?

Posted: 2017-05-21T18:26:23-07:00
by Sibko
if i run all three I get

01
File Area Memory Map Disk Thread Time
-------------------------------------------------------------------------------
4500 33.6GB 15.646GiB 31.292GiB unlimited 16 unlimited



02
File Area Memory Map Disk Thread Time
-------------------------------------------------------------------------------
4500 33.6GB 15.646GiB 31.292GiB unlimited 16 unlimited
File Area Memory Map Disk Thread Time
-------------------------------------------------------------------------------
4500 33.6GB 15.646GiB 31.292GiB unlimited 16 unlimited



03
File Area Memory Map Disk Thread Time
-------------------------------------------------------------------------------
4500 33.6GB 15.646GiB 31.292GiB unlimited 16 unlimited
File Area Memory Map Disk Thread Time
-------------------------------------------------------------------------------
4500 33.6GB 15.646GiB 31.292GiB unlimited 16 unlimited

Re: ResourceSpace Error - server settings?

Posted: 2017-05-21T18:53:49-07:00
by fmw42
I don't see anything that would really limit you. I would check with your hosting service about any other limits they are putting on your user account/directory

Re: ResourceSpace Error - server settings?

Posted: 2017-05-22T16:02:17-07:00
by Sibko
Support send back complicated instructions for installing the PHP5 extenstion for ImageMagicK

I find it odd that smaller images work and larger ones break, I would have thought all would break if the extension was missing?

Re: ResourceSpace Error - server settings?

Posted: 2017-05-22T16:15:19-07:00
by fmw42
Perhaps they do not understand your issue or you have not explained it well to them. I would not think you need a new PHP, but perhaps the old one was very limiting.

Re: ResourceSpace Error - server settings?

Posted: 2017-05-22T17:41:51-07:00
by Sibko
quite possibly.

I did find someone reporting a similar issues on the google group and I think it turned out to be because his IM was out of date, so if I can work out the SSH instructions and update to custom install of a new version it might fix the issue.