In the CMS the progress indicator for tasks is stuck and not completing its jobs. What can I do to resolve this?
-
I'm getting that error also :/– Seán O'GradySep 5, 2014 at 13:52
-
Answer below is legit. I've had this happen a few times and it's the same scenario you have there (two image trans followed by a delete stale template cache). Coincidence or bug?– veritascsJan 21, 2015 at 20:39
1 Answer
More of a "How do I debug stuck tasks" answer, but it should help you.
Open up your craft_tasks table. You'll see one task in with a 'status' of 'running' and if you refresh the table several times, the 'currentStep' value for that task is no longer incrementing. That's your stuck task.
Set that task's status to 'pending', and reload any page in the control panel to re-trigger the task.
If it gets stuck again, immediately go to your craft/storage/runtime/logs
folder and check for a phperrors.log
file. If that exists, it will likely hold the error message for why the task is hung.
90% of the time, when a task gets stuck, it's because it has ran into some environmental limitation (PHP max_execution_time, memory_limit, etc.).
Update:
Just added a help article for this here: https://craftcms.com/support/stuck-tasks
-
Is the max_execution_time php ini hardcoded into GD/Image.php? I keep running into
Maximum execution time of 30 seconds exceeded in /var/www/craft.lovindublin.com/craft/app/vendor/imagine/imagine/lib/Imagine/Gd/Image.php on line 584
but my php_info says it's 300 Sep 5, 2014 at 17:12 -
Must be coming from something else then. If you're running things like FastCGI or nginx or Suhosin or mod_security, they each have their own (differently named) functionally equivalent settings.– Brad Bell ♦Sep 5, 2014 at 17:25
-
Intriguing. Fix in new help text cleared it. Five weeks running (I was busy), no idea what caused. Probably GoDaddy, where this installation was client-stuck...thanks, Brad, as always. Dec 11, 2014 at 1:09
-
3Would be nice to have an option to do this manually from the CP. Unfortunately on our server there is no phpmyadmin installed which makes this task very inconvenient.– m9dfukcApr 23, 2015 at 12:43
-
1@certainlyakey just depends on what you have your
craft/config/db.php
'stablePrefix
config setting set to.– Brad Bell ♦Dec 29, 2016 at 20:47