Page MenuHomePhabricator

populateContentTables.php fails multiple times
Closed, ResolvedPublic

Description

I'm trying to upgrade from 1.25 to 1.35 and update.php fails.

I was told to run populateContentTables.php and it fails every time. I was told to report this here.

... revision processed up to revision id 2938367 of 2938367 (0 rows in 58.083928108215 seconds)
Done populating revision table. Processed 0 rows in 58.083951950073 seconds
Populating archive...
... archive processed up to revision id 501 of 2937910 (0 rows in 0.00063204765319824 seconds)
... archive processed up to revision id 1001 of 2937910 (0 rows in 0.00086402893066406 seconds)
... archive processed up to revision id 1501 of 2937910 (0 rows in 0.0010199546813965 seconds)
... archive processed up to revision id 2001 of 2937910 (0 rows in 0.001154899597168 seconds)
Failed to populate content table archive row batch starting at 2002 due to exception: MediaWiki\Storage\BlobAccessException: Unable to fetch blob at tt:2275 in /.../includes/Storage/SqlBlobStore.php:295
Stack trace:
#0 /.../maintenance/populateContentTables.php(374): MediaWiki\Storage\SqlBlobStore->getBlob('tt:2275')
#1 /.../maintenance/populateContentTables.php(276): PopulateContentTables->fillMissingFields(Object(stdClass), 'wikitext', 'tt:2275')
#2 /.../maintenance/populateContentTables.php(230): PopulateContentTables->populateContentTablesForRowBatch(Object(Wikimedia\Rdbms\ResultWrapper), 2002, 'archive')
#3 /.../maintenance/populateContentTables.php(97): PopulateContentTables->populateTable('archive')
#4 /.../maintenance/doMaintenance.php(107): PopulateContentTables->execute()
#5 /.../maintenance/populateContentTables.php(388): require_once('/var/www/vhosts...')
#6 {main}

Related support desk thread: https://www.mediawiki.org/wiki/Topic:Vx24eca9xu10ixj6

Event Timeline

Change 641332 had a related patch set uploaded (by Ammarpad; owner: Ammarpad):
[mediawiki/core@master] Handle BlobAccessException exception

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

Change 641332 merged by jenkins-bot:
[mediawiki/core@master] Handle BlobAccessException exception

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

Ammarpad claimed this task.