Page 1 of 1

Large tmp files and error (message 'unable to extend cache `': No space left on device)

Posted: 2015-12-02T01:50:06-07:00
by hilal
I am using ImageMagick php classes library to creating thumbnails and crop images in our website.
after few days the website goes down, when I check the server status I found the tmp folder was full
I checked the tmp files I found files with imagick prefix and some of this files was too big size, about (500 M, 700 M, 1.5 G) .
in error log I found this error:
----------------------------------------------------
[Tue Dec 01 16:36:32 2015] [error] [client 209.59.182.200] PHP Fatal error: Uncaught exception 'ImagickException' with message 'unable to extend cache `': No space left on device @ error/cache.c/OpenPixelCache/3663' in /home/lapedraelhajjar/application/default/controllers/ImagickController.php:103\nStack trace:\n#0 /home/lapedraelhajjar/application/default/controllers/ImagickController.php(103): Imagick->cropthumbnailimage('970', '375')\n#1 /home/lapedraelhajjar/application/default/controllers/ImagickController.php(63): ImagickController->cropThumbnailImage('maps/lapera-map...', '970', '375', '/home/lapedrael...')\n#2 /home/lapedraelhajjar/library-1.12.8/Zend/Controller/Action.php(513): ImagickController->indexAction()\n#3 /home/lapedraelhajjar/library-1.12.8/Zend/Controller/Dispatcher/Standard.php(289): Zend_Controller_Action->dispatch('indexAction')\n#4 /home/lapedraelhajjar/library-1.12.8/Zend/Controller/Front.php(946): Zend_Controller_Dispatcher_Standard->dispatch(Object(Sws_Controller_Request_Http), Object(Zend_Controller_Response_Http))\n#5 /home/lapedraelhajjar/public_html/index.php( in /home/lapedraelhajjar/application/default/controllers/ImagickController.php on line 103,
----------------------------------------------------

What is My error, and what caused?
how to fix this problem to not happening again?

Thanks.

Re: Large tmp files and error (message 'unable to extend cache `': No space left on device)

Posted: 2015-12-02T09:05:35-07:00
by glennrp
What version of ImageMagick is installed on your server?

Re: Large tmp files and error (message 'unable to extend cache `': No space left on device)

Posted: 2015-12-02T09:13:40-07:00
by magick