Last modified: 2014-08-14 13:32:09 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 T67439, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 65439 - No Update of elasticsearch index when changing wiki
No Update of elasticsearch index when changing wiki
Status: RESOLVED WORKSFORME
Product: MediaWiki extensions
Classification: Unclassified
CirrusSearch (Other open bugs)
REL1_22-branch
All Linux
: Unprioritized major (vote)
: ---
Assigned To: Nobody - You can work on this!
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2014-05-17 15:23 UTC by keyler
Modified: 2014-08-14 13:32 UTC (History)
3 users (show)

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


Attachments

Description keyler 2014-05-17 15:23:52 UTC
I noticed that my wiki (1.22.5) does not update the elasticsearch (1.1.1) index. I now have to run 
 cd /var/www/wiki/extensions/CirrusSearch/maintenance
 php updateSearchIndexConfig.php --startOver
 php forceSearchIndex.php --forceUpdate
so that the search is up to date. Is this a known bug in the old 1.22 version?
I am on the "latest" version of CirrusSearch from February. The newer versions are only for mw-"master" :-(.
Comment 1 Nik Everett 2014-05-19 21:35:31 UTC
Bleh.  Its not a known bug, no.  You should be safe to take the 1.22 branch.  The last time I backported things to it was when I did 1.0 support.  I'll backport master to it soon but I'm travelling the next two weeks.  I'll find time in there to do it though.

Are you, perchance, not running jobs?
Comment 2 Chad H. 2014-06-03 21:52:00 UTC
(In reply to Nik Everett from comment #1)
> Are you, perchance, not running jobs?

That'd be my guess. I can't replicate and haven't had this problem before. Please feel free to reopen if you can replicate and it's not a job issue.

If you don't have runJobs running in any sort of cron have a look at https://www.mediawiki.org/wiki/Manual:$wgJobRunRate to adjust how often jobs are run in the browser.
Comment 3 keyler 2014-06-10 15:27:50 UTC
No, I am not running jobs. I will try Chad's suggestion. Thank you both.
And I will also update all wikis to 1.23.0 next week as it was finally released last week. Hope CirrusSearch will still work ;-)
Thank you guys...
Comment 4 keyler 2014-06-12 07:41:34 UTC
ok, your were right: maintenance/runJobs.php did the job! Ir ran for about 30 seconds with lots of "cirrusSearchLinksUpdate" stuff. Now the index is up to date :-)

But why doesn't CirrusSearch do it itself? I have no "jobs" running, is there a good way to fix this?
Comment 5 keyler 2014-08-14 13:32:09 UTC
This did the magic in LocalSettings.php
 
$wgRunJobsAsync = false;

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


Navigation
Links