System & Maintenance Jobs Won't Stop Running
Permalink 2 users found helpfulSo, on one of my sites, I recently ran the default "Scheduled Jobs" under System& Maintenance on the dashboard.
Strangely, step 1, Index Search Engine, has been running for over a day now. There is a little spinning wheel icon next to it, and it says the started time was 9AM yesterday.
I can click "Run Checked", and it re-runs the tasks, and completes tasks 2 and 3, but task 1 (Index Search Engine) just keeps on going. Is it really stuck running? And how should I resolve this? I'm worried about the implications this may have for memory usage on the server, or otherwise.
Thanks in advance
Fatal error: Call to a member function getInstance() on a non-object in /home/wvi/westlakevillageinn.com/updates/concrete5.4.1/concrete/libraries/database_indexed_search.php on line 137
Additionally, I noticed that the site keeps getting flagged by Dreamhost for using having too many processes running. I wonder if it's related?
I may try copying the entire site and a MYSQL db dump to localhost and seeing if it's still trying to index. If not, maybe I'll throw a new instance of the MYSQL db up on the server and see if linking it up helps at all.
I'm really having problems with this -- in fact, it's caused Dreamhost to pull the plug on the site several times over the last two weeks.
Any other recommendations are really appreciated, especially since it's nearly impossible to get anyone from dreamhost to respond to you. Is it possible that changing the php_value memory_limit in .htaccess isn't overriding the php.ini file on dreamhost?
Firstly, the spinner in the dashboard is no indication that the job is actually running - just that nothing told the spinner to stop spinning! Go to your database in phpMyAdmin and browse the Jobs table. The job statuses should all be 'ENABLED'. Change them if they're not. This should stop the spinner spinning.
Secondly, the cause of the issue... I've found that this is usually a corrupt object cache. You didn't mention which version of C5 you are running?? Try deleting EVERYTHING from inside files/cache and (if_exists) files/cache_objects. Then re-run the job from the dashboard.
Lemme know how you get on!
Jon
Checked the jobs table before -- it is indeed set to "RUNNING".
If I delete everything inside /files/cache and /files/cache_objects will there potentially be any ill-effects on the site? The site is live.
Also, you mean /files/cache not /concrete/files/cache, correct?
And yes, /files/cache/, don't delete anything inside your concrete folder! And ensure you don't delete the folders themselves either!
Jon
Also, I get this error if I try to access the direct URL to run the jobs
Fatal error: Call to a member function getInstance() on a non-object in /home/wvi/westlakevillageinn.com/updates/concrete5.4.1/concrete/libraries/database_indexed_search.php on line 137
Any other ideas?
Then try this:http://www.concrete5.org/community/forums/chat/scheduled-jobs-like-...
I'll keep digging...
Jon
I'm not really clear on that solution -- did he say he replaced his /models directory with a clean copy?
I notice the error I posted in my previous reply is being pulled from the /updates directory...is this normal?
I would be happy to reinstall a clean copy of C5, but I'm not sure if there's an easy way to rebuild the site structure and pages without doing it from scratch?
Also, I'm on dreamhost, not bluehost. There is no SimpleScripts or cpanel.
I removed the ProBlog package recently, but that shouldn't affect my whole C5 installation...I also recently installed ProEvents.
Thanks again for your assistance, Jon!
Does anyone have any ideas as to the next steps I should take save for rebuilding the entire site?
Im not sure that this is causing any issues as far as the issues with your host though. With WHM/Cpanel you can monitor processes and there does not seems to be any stuck processes even though the animated .gif is still spinning in the dashboard.
Maybe Concrete5 needs to look at one of the un-fixable sites like we have to figure out what is really going on. This looks like an issue that is coming up often now.
C
Can someone from the official C5 team chime in? I may try emailing Franz or Andrew, as they had been responsive to my email in the past.
I'm facing the smae problems!!
I hope their ll be soon a solution.
Philipp
any ideas anyone? i have re installed both but no luck.
In my case it was after I had to manually remove lots of pages from the Blog add-on after it went haywire duplicating posts after the 5.4.1 update. I ran the re-index to update everything. Since then I've had issues with javascript with one add-on (Billboards) and currently cannot any products to the cart in eCommerce - not sure if any of this is related.
Any news on how to solve it?
If it helps I get the following java error:
SyntaxError: Parse error
Hope that helps!
The file:
/concrete/libraries/database_indexed_search.php
Copy this into your top level libraries folder and change the following code:
$bi = $b->getInstance(); if (!is_object($b)) { continue; }
to this:
if (!is_object($b)) { continue; } else { $bi = $b->getInstance(); }
This worked for me!
Thanks to pixelhander for this.
$bi = $b->getInstance(); if(method_exists($bi,'getSearchableContent')){ $searchableContent = $bi->getSearchableContent(); if(strlen(trim($searchableContent))) $text .= strip_tags(str_ireplace($tagsToSpaces,' ',$searchableContent)).' '; }
this is from the database_indexed_search.php file.
Thanks!
&force=1
My blog post on the topic -http://nwlinux.co/7V
(I found a site with the same code back from 1.3.2.2)
I copied the job url (at the bottom of that screen) and pasted it into my browser and ran it that way. Once it finally loaded it stopped the job on that screen.
Don't know why - it just worked. I don't think it had any effect on memory usage though...
Hope that helps!