25

In the CMS the progress indicator for tasks is stuck and not completing its jobs. What can I do to resolve this?

task indicators

  • I'm getting that error also :/ – Sean O'Grady Sep 5 '14 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? – veritascs Jan 21 '15 at 20:39
37

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 – Sean O'Grady Sep 5 '14 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 '14 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. – narration_sd Dec 11 '14 at 1:09
  • 3
    Would 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. – m9dfukc Apr 23 '15 at 12:43
  • 1
    @certainlyakey just depends on what you have your craft/config/db.php's tablePrefix config setting set to. – Brad Bell Dec 29 '16 at 20:47

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.