Page MenuHomePhabricator

Enabling a second wiki in an already provisioned instance does not initialize cirrussearch for that wiki
Open, Needs TriagePublic

Description

Reproduction steps:
provision a vagrant instance with cirrussearch enabled
add the mobilefrontend role
re-provision cirrussearch

Result:
searching for 'main' on the new mobile wiki has no results

Expected result:
searching for 'main' on the new mobile wiki returns 'Main_Page'

Event Timeline

EBernhardson claimed this task.
EBernhardson raised the priority of this task from to Needs Triage.
EBernhardson updated the task description. (Show Details)
EBernhardson added a subscriber: EBernhardson.
Restricted Application added a subscriber: Aklapper. · View Herald TranscriptJul 2 2015, 5:02 PM
bd808 added a subscriber: bd808.Oct 14 2015, 10:35 PM

I think the problem here is the guard condition on the Exec['build_search_index'] resource in role::cirrussearch.

exec { 'build_search_index':
    # lint:ignore:80chars
    command => '/usr/local/bin/foreachwiki extensions/CirrusSearch/maintenance/updateSearchIndexConfig.php --startOver && /usr/local/bin/foreachwiki extensions/CirrusSearch/maintenance/forceSearchIndex.php',
    onlyif  => '/usr/local/bin/mwscript extensions/CirrusSearch/maintenance/cirrusNeedsToBeBuilt.php --quiet',
    # lint:endignore
    user    => 'www-data',
    require => [
        Class['::mediawiki::multiwiki'],
        Mediawiki::Extension['CirrusSearch'],
        Exec['update_all_databases'],
    ]
}

I think the onlyif there will only check the default wiki, so if it has an index then nothing will be reindexed.

Aklapper removed EBernhardson as the assignee of this task.Jun 19 2020, 4:16 PM

This task has been assigned to the same task owner for more than two years. Resetting task assignee due to inactivity, to decrease task cookie-licking and to get a slightly more realistic overview of plans. Please feel free to assign this task to yourself again if you still realistically work or plan to work on this task - it would be welcome!

For tips how to manage individual work in Phabricator (noisy notifications, lists of task, etc.), see https://phabricator.wikimedia.org/T228575#6237124 for available options.
(For the records, two emails were sent to assignee addresses before resetting assignees. See T228575 for more info and for potential feedback. Thanks!)