Topic on Project:Support desk

Update script fails with error: DBReadOnlyError

1
Summary by .digamma

Another support ticket indicated ReadOnly mode is a problem for the update script. Users can be forced into ReadOnly mode while the scripts continues with write access using code from the reply posted here: Support desk Ticket Response

After enabling write access, script ran to completion with no reported errors. Checking upgrade now...

.digamma (talkcontribs)

During the update from 1.25 -> 1.33 I receive the following output:

[24b9ca57e08535368cd8bf8f] [no req]   Wikimedia\Rdbms\DBReadOnlyError from line 1042 of /w/includes/libs/rdbms/database/Database.php: Database is read-only: This wiki is currently being upgraded to a newer software version. Please check back in a couple of days.

Backtrace:

#0 /w/includes/libs/rdbms/database/Database.php(1205): Wikimedia\Rdbms\Database->assertIsWritableMaster()

#1 /w/includes/installer/MysqlUpdater.php(907): Wikimedia\Rdbms\Database->query(string, string)

#2 /w/includes/installer/DatabaseUpdater.php(489): MysqlUpdater->doPageRandomUpdate()

#3 /w/includes/installer/DatabaseUpdater.php(453): DatabaseUpdater->runUpdates(array, boolean)

#4 /w/maintenance/update.php(205): DatabaseUpdater->doUpdates(array)

#5 /w/maintenance/doMaintenance.php(96): UpdateMediaWiki->execute()

#6 /w/maintenance/update.php(268): require_once(string)

#7 {main}


Do I need to remove the read-only block from LocalSettings during the update?

Thank you!