Page MenuHomePhabricator

Discussions vanished on update
Open, Needs TriagePublic

Description

I'm trying to upgrade a mediawiki installation to 1.26 and it seems to work except that some flow boards are not there anymore after the update.

Although I don't use $wgFlowOccupyPages, I also tried running the suggested update scripts:

php maintenance/populateContentModel.php --ns=all --table=page
php extensions/Flow/maintenance/FlowUpdateRevContentModelFromOccupyPages.php

Attached is the output of php maintenance/update.php, at the end it says:

Completed
Updated 1  workflows
Failed: 5

and then it pretty-prints some data structure that look like they have something to do with the missing discussions.

What is a tiny bit scarry is that I only get this error message once, i.e. if I re-run update.php, there is no failure anymore so I'm worried that the update removes the data from the database :-/

Event Timeline

gregoire raised the priority of this task from to Needs Triage.
gregoire updated the task description. (Show Details)
gregoire subscribed.
Restricted Application added subscribers: StudiesWorld, Aklapper. · View Herald Transcript

It is not re-running because it keeps track of which maintenance scripts have already run. You can force it to re-run by running the individual script (maintenance/FlowUpdateWorkflowPageId.php in this case) with --force.

But someone will need to figure out the underlying problems.

See also T122329: Flow\Exception\FlowException from line 159 of Flow/includes/Formatter/ChangesListQuery.php: Revision not found in revisionCache which may or may not be related.

I think I tried maintenance/FlowUpdateWorkflowPageId.php --force but it didn't print the failure again either (but I'm note sure and I reverted to the last version for now).

I'm wondering whether it can be cased by the same architecture-dependent math that caused T109528?

I had the same problem when upgrading from 1.25 to 1.26, and it is also similar to T122329 (in my case 70 failed and 0 updated).
You can see my comment T122329#2355471 for the upgrade path I used.