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

Post any defects you find in the released or beta versions of the ImageMagick software here. Include the ImageMagick version, OS, and any command-line required to reproduce the problem. Got a patch for a bug? Post it here.
Post Reply
hilal
Posts: 1
Joined: 2015-12-02T01:39:43-07:00
Authentication code: 1151

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

Post 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.
User avatar
glennrp
Posts: 1147
Joined: 2006-04-01T08:16:32-07:00
Location: Maryland 39.26.30N 76.16.01W

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

Post by glennrp »

What version of ImageMagick is installed on your server?
Post Reply