Last modified: 2014-08-18 14:48:33 UTC

Wikimedia Bugzilla is closed!

Wikimedia migrated from Bugzilla to Phabricator. Bug reports are handled in Wikimedia Phabricator.
This static website is read-only and for historical purposes. It is not possible to log in and except for displaying bug reports and their history, links might be broken. See T71387, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 69387 - CirrusSearch: Index not updated automatically
CirrusSearch: Index not updated automatically
Status: RESOLVED FIXED
Product: MediaWiki extensions
Classification: Unclassified
CirrusSearch (Other open bugs)
REL1_23-branch
Other Linux
: Highest normal (vote)
: ---
Assigned To: Nik Everett
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2014-08-11 09:01 UTC by keyler
Modified: 2014-08-18 14:48 UTC (History)
3 users (show)

See Also:
Web browser: ---
Mobile Platform: ---
Assignee Huggle Beta Tester: ---


Attachments

Description keyler 2014-08-11 09:01:45 UTC
Since a couple of months the search indexes of our wikis are not updated anymore on the fly. I have to run the maintenance script "maintenance/runJobs.php". 
We use mw1.23.2. The "jobrate" is not set to 0 in the LocalSettings.php file ;-)
Help would as always be appreciated....
Comment 1 keyler 2014-08-11 09:07:53 UTC
Still the same bug as: https://bugzilla.wikimedia.org/show_bug.cgi?id=65439
Comment 2 Nik Everett 2014-08-13 19:16:23 UTC
Are other jobs running?  Like, does runJobs.php pick up lots of other, non-cirrus stuff?
Comment 3 keyler 2014-08-14 06:26:27 UTC
Hallo Nik, no it does not. 
runJobs.php just picks up CirrusSearch. I am on mw1.23.2 and on these wikis I use the CirrusSeach Extension for 1.23.x (not master).

This is how runJobs.php looks like

2014-08-14 06:05:30 htmlCacheUpdate Windows_7_Pro pages=array(1) rootJobSignature=76d97e7bf1ad98b6ba40570536cb2558b9fc50da rootJobTimestamp=20140811054116 STARTING
2014-08-14 06:05:30 htmlCacheUpdate Windows_7_Pro pages=array(1) rootJobSignature=76d97e7bf1ad98b6ba40570536cb2558b9fc50da rootJobTimestamp=20140811054116 t=2 good
2014-08-14 06:05:30 htmlCacheUpdate Windows_7_Pro pages=array(1) rootJobSignature=6eda7dd7967f9cb9c2b12e2b73cfd21c84f71958 rootJobTimestamp=20140811054116 STARTING
2014-08-14 06:05:30 htmlCacheUpdate Windows_7_Pro pages=array(1) rootJobSignature=6eda7dd7967f9cb9c2b12e2b73cfd21c84f71958 rootJobTimestamp=20140811054116 t=0 good
2014-08-14 06:05:30 cirrusSearchLinksUpdatePrioritized Wien addedLinks=array(0) removedLinks=array(0) prioritize=1 STARTING
2014-08-14 06:05:32 cirrusSearchLinksUpdatePrioritized Wien addedLinks=array(0) removedLinks=array(0) prioritize=1 t=1748 good
2014-08-14 06:05:32 cirrusSearchLinksUpdatePrioritized Website addedLinks=array(0) removedLinks=array(0) prioritize=1 STARTING
2014-08-14 06:05:32 cirrusSearchLinksUpdatePrioritized Website addedLinks=array(0) removedLinks=array(0) prioritize=1 t=344 good
2014-08-14 06:05:32 cirrusSearchLinksUpdatePrioritized Wien addedLinks=array(0) removedLinks=array(0) prioritize=1 STARTING
2014-08-14 06:05:32 cirrusSearchLinksUpdatePrioritized Wien addedLinks=array(0) removedLinks=array(0) prioritize=1 t=252 good
2014-08-14 06:05:32 cirrusSearchLinksUpdatePrioritized Windows_7_Pro addedLinks=array(0) removedLinks=array(0) prioritize=1 STARTING
2014-08-14 06:05:32 cirrusSearchLinksUpdatePrioritized Windows_7_Pro addedLinks=array(0) removedLinks=array(0) prioritize=1 t=158 good
2014-08-14 06:05:32 cirrusSearchLinksUpdatePrioritized Windows_7_Pro addedLinks=array(1) removedLinks=array(0) prioritize=1 STARTING
2014-08-14 06:05:33 cirrusSearchLinksUpdatePrioritized Windows_7_Pro addedLinks=array(1) removedLinks=array(0) prioritize=1 t=164 good
2014-08-14 06:05:33 cirrusSearchLinksUpdatePrioritized Kategorie:Wien addedLinks=array(0) removedLinks=array(0) prioritize=1 STARTING
2014-08-14 06:05:33 cirrusSearchLinksUpdatePrioritized Kategorie:Wien addedLinks=array(0) removedLinks=array(0) prioritize=1 t=241 good
2014-08-14 06:05:33 cirrusSearchLinksUpdateSecondary Windows_7_Pro addedLinks=array(1) removedLinks=array(0) STARTING
2014-08-14 06:05:33 cirrusSearchLinksUpdateSecondary Windows_7_Pro addedLinks=array(1) removedLinks=array(0) t=11 good
Comment 4 Nik Everett 2014-08-14 13:03:18 UTC
Those first few jobs aren't part of Cirrus - the htmlCacheUpdate job I mean.  It really looks like jobs just aren't picking up and cirrus is the most noticeable thing.

I think you can get better logging out of jobs running with this:
$wgDebugLogGroups['runJobs'] = "some_absolute_path_to_a_log_file.log";

Does that file grow during normal browsing?

It might be worth cronning runJob.php every minute or something rather then digging into it....  I've never liked how we kick of jobs - its so breaky.
Comment 5 keyler 2014-08-14 13:16:14 UTC
oh ok then.... thank you Nik!

I just wanted to make sure everythin g is working as is sould be and thanks to your help I saw this in the log:

2014-08-14 13:13:32 server21 wiki_23: Running 10 job(s) via '/wiki/index.php?title=Special%3ARunJobs&tasks=jobs&maxjobs=10&sigexpiry=1408022016&signature=ddc8289c816abe9ad80f61671de94a2fed0cbae8'
2014-08-14 13:13:32 kc-server21 wiki_23: Failed to start cron API: received 'HTTP/1.1 404 Not Found
Comment 7 keyler 2014-08-14 13:28:30 UTC
OK, now I found the problem. Jobs were all having problems not just CirrusSearch.
This did the magic in LocalSettings.php
 
$wgRunJobsAsync = false;

Thank you Nik for pointing me in the right direction. Still strange that MW1.22 and MW1.23 have this "job" problem on some wikis...
Comment 8 Nik Everett 2014-08-14 13:38:16 UTC
Uhg.....  I'm not a happy camper about the way jobs are run.....  And we're (the foundation) moving further and further from what other folks will be doing: we're migrating to a permanently resident hhvm server.  Its way faster but its can't be used at all without hhvm. 

I'll mark the issue resolved though.
Comment 9 keyler 2014-08-14 14:00:37 UTC
Could you put this "workaround" into the README? Am am very sure this will happen to more and more CirrusSearch users with MW1.22 and 1.23 and so on.
Comment 10 Nik Everett 2014-08-14 16:00:06 UTC
Good call.  Reopening and assigning to myself to do just that.
Comment 11 Gerrit Notification Bot 2014-08-15 17:16:43 UTC
Change 154289 had a related patch set uploaded by Manybubbles:
Add quick and dirty job queue fix

https://gerrit.wikimedia.org/r/154289
Comment 12 Gerrit Notification Bot 2014-08-18 14:43:35 UTC
Change 154289 merged by jenkins-bot:
Add quick and dirty job queue fix to README

https://gerrit.wikimedia.org/r/154289
Comment 13 keyler 2014-08-18 14:48:33 UTC
Thanks

Note You need to log in before you can comment on or make changes to this bug.


Navigation
Links