Page MenuHomePhabricator

Elastica/CirrusSearch error on initial start-up
Closed, InvalidPublic

Description

While using stretch-elasticsearch image for development I deleted the elastic data volume. Trying to create indices from scratch with UpdateSearchIndexConfig.php is yielding an error when creating mw_cirrus_metastore.

$ php maintenance/UpdateSearchIndexConfig.php --startOver
Updating cluster ...
indexing namespaces...
mw_cirrus_metastore missing, creating new metastore index.
Creating metastore index... mw_cirrus_metastore_first	Scanning available plugins...
		experimental-highlighter, extra, ingest-geoip, ingest-user-agent
Elastica\Exception\ResponseException from line 182 of /Users/sergio/src/mediawiki/w/extensions/Elastica/vendor/ruflin/elastica/lib/Elastica/Transport/Http.php: class java.lang.Boolean cannot be cast to class java.util.Map (java.lang.Boolean and java.util.Map are in module java.base of loader 'bootstrap')
#0 /Users/sergio/src/mediawiki/w/extensions/Elastica/vendor/ruflin/elastica/lib/Elastica/Request.php(194): Elastica\Transport\Http->exec(Object(Elastica\Request), Array)
#1 /Users/sergio/src/mediawiki/w/extensions/Elastica/vendor/ruflin/elastica/lib/Elastica/Client.php(689): Elastica\Request->send()
#2 /Users/sergio/src/mediawiki/w/extensions/Elastica/vendor/ruflin/elastica/lib/Elastica/Index.php(571): Elastica\Client->request('mw_cirrus_metas...', 'PUT', Array, Array)
#3 /Users/sergio/src/mediawiki/w/extensions/CirrusSearch/includes/MetaStore/MetaStoreIndex.php(201): Elastica\Index->request('mw_cirrus_metas...', 'PUT', Array, Array)
#4 /Users/sergio/src/mediawiki/w/extensions/CirrusSearch/includes/MetaStore/MetaStoreIndex.php(139): CirrusSearch\MetaStore\MetaStoreIndex->createNewIndex()
#5 /Users/sergio/src/mediawiki/w/extensions/CirrusSearch/includes/Maintenance/Maintenance.php(227): CirrusSearch\MetaStore\MetaStoreIndex->createIfNecessary()
#6 /Users/sergio/src/mediawiki/w/extensions/CirrusSearch/maintenance/IndexNamespaces.php(40): CirrusSearch\Maintenance\Maintenance->maybeCreateMetastore()
#7 /Users/sergio/src/mediawiki/w/extensions/CirrusSearch/maintenance/UpdateSearchIndexConfig.php(72): CirrusSearch\Maintenance\IndexNamespaces->execute()
#8 /Users/sergio/src/mediawiki/w/maintenance/includes/MaintenanceRunner.php(309): CirrusSearch\Maintenance\UpdateSearchIndexConfig->execute()
#9 /Users/sergio/src/mediawiki/w/maintenance/doMaintenance.php(85): MediaWiki\Maintenance\MaintenanceRunner->run()
#10 /Users/sergio/src/mediawiki/w/extensions/CirrusSearch/maintenance/UpdateSearchIndexConfig.php(117): require_once('/Users/sergio/s...')
#11 {main}

Event Timeline

Restricted Application added a subscriber: Aklapper. · View Herald Transcript

@Sgs if you are using the master branch of CirrusSearch you should be using the 6.8.23-s0 version of the docker-registry.wikimedia.org/dev/cirrus-elasticsearch image.
See https://www.mediawiki.org/wiki/MediaWiki-Docker/Configuration_recipes/ElasticSearch and https://www.mediawiki.org/wiki/MediaWiki-Docker/Extension/CirrusSearch

Sgs closed this task as Invalid.EditedAug 5 2022, 10:13 AM

@Sgs if you are using the master branch of CirrusSearch you should be using the 6.8.23-s0 version of the docker-registry.wikimedia.org/dev/cirrus-elasticsearch image.
See https://www.mediawiki.org/wiki/MediaWiki-Docker/Configuration_recipes/ElasticSearch and https://www.mediawiki.org/wiki/MediaWiki-Docker/Extension/CirrusSearch

Oops, apologies, that was exactly my scenario, I recycled history command that used the stretch image. Thank you!