Last modified: 2014-07-16 15:34:18 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 T69465, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 67465 - Missing index warning not catched forceSearchIndex.php
Missing index warning not catched forceSearchIndex.php
Status: RESOLVED FIXED
Product: MediaWiki extensions
Classification: Unclassified
CirrusSearch (Other open bugs)
unspecified
All All
: Unprioritized normal (vote)
: ---
Assigned To: Nobody - You can work on this!
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2014-07-03 09:15 UTC by Antoine "hashar" Musso (WMF)
Modified: 2014-07-16 15:34 UTC (History)
3 users (show)

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


Attachments

Description Antoine "hashar" Musso (WMF) 2014-07-03 09:15:40 UTC
On beta cluster, I have added the cawiki and eswiki new wiki. I followed the instruction at https://wikitech.wikimedia.org/wiki/Nova_Resource:Deployment-prep/Add_a_wiki#Step_3_:_Setup_Search to populate the search index.   Since they are not created yet, the script spurt a couple Warning that you might want to catch to report a nice error message.


deployment-bastion:~$ mwscript extensions/CirrusSearch/maintenance/forceSearchIndex.php --wiki cawiki --batch-size=50
PHP Warning:  Search backend error during sending 1 documents to the content index after 42.  IndexMissingException[[cawiki_content] missing] [Called from CirrusSearch\ElasticsearchIntermediary::failure in /mnt/srv/scap-stage-dir/php-master/extensions/CirrusSearch/includes/ElasticsearchIntermediary.php at line 97] in /mnt/srv/scap-stage-dir/php-master/includes/debug/Debug.php on line 303

Warning: Search backend error during sending 1 documents to the content index after 42.  IndexMissingException[[cawiki_content] missing] [Called from CirrusSearch\ElasticsearchIntermediary::failure in /mnt/srv/scap-stage-dir/php-master/extensions/CirrusSearch/includes/ElasticsearchIntermediary.php at line 97] in /mnt/srv/scap-stage-dir/php-master/includes/debug/Debug.php on line 303
[              cawiki] Indexed 1 pages ending at 1 at 2/second
Indexed a total of 1 pages at 2/second
Comment 1 Antoine "hashar" Musso (WMF) 2014-07-03 09:25:19 UTC
I blow up / created the indices with:

mwscript extensions/CirrusSearch/maintenance/updateOneSearchIndexConfig.php --wiki eswiki --startOver --indexType general

mwscript extensions/CirrusSearch/maintenance/updateOneSearchIndexConfig.php --wiki eswiki --startOver --indexType content


Then repopulated:

mwscript extensions/CirrusSearch/maintenance/forceSearchIndex.php --wiki eswiki --batch-size=50


So this bug is just about catching the warning nicely.
Comment 2 Chad H. 2014-07-03 16:32:23 UTC
Why weren't they created? Did addWiki give some kind of error? What was its output?
Comment 3 Antoine "hashar" Musso (WMF) 2014-07-03 16:38:47 UTC
When creating eswiki and cawiki on both wikis I got a permission denied opening /tmp/mw-UIDGenerator-squidhtcppurge-48  it is only writable by apache, not by mwdeploy.  That somehow prevented the index creation.

Unfortunately I killed the terminal backlog in both cases so I am missing the exact stacktrace.
Comment 4 Gerrit Notification Bot 2014-07-07 17:02:08 UTC
Change 144480 had a related patch set uploaded by Chad:
Bail early when index doesn't exist

https://gerrit.wikimedia.org/r/144480
Comment 5 Gerrit Notification Bot 2014-07-16 15:34:05 UTC
Change 144480 merged by jenkins-bot:
Bail early when index doesn't exist

https://gerrit.wikimedia.org/r/144480

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


Navigation
Links