Page MenuHomePhabricator

unhelpful update.php failure from FlowUpdateWorkflowPageId.php maintenance script
Open, LowPublic

Description

On my local wiki I updated extensions/Flow to master and ran maintenance/update.php. But Flow wasn't actually enabled in LocalSettings.php, so I enabled it and re-ran maintenance/update.php. This time I got an error, see below.

The first bug is update.php doesn't report the script that failed. It's maintenance/FlowUpdateWorkflowPageId.php but this string doesn't appear in the output anywhere. It should.

I'm not sure why there's a failure, but it's probably a rare edge case. Note all the failed workflow updates have [workflow_title_text] => LQT_Import_NN. My Flow installation is very old and I guess I tested an early version of LQT conversion ;-) . Flow seems working OK on the talk pages I tried.

...*_from_namespace column of backlink tables already populated.
...Update 'FlowUpdateRecentChanges' already logged as completed.
...Update 'FlowSetUserIp' already logged as completed.
...Update 'FlowUpdateUserWiki' already logged as completed.
...Update 'FlowUpdateRevisionTypeId' already logged as completed.
...Update 'FlowPopulateLinksTables' already logged as completed.
Processing 15 rows
Completed
Updated 47  workflows
Failed: 4

Array
(
    [0] => stdClass Object
        (
            [workflow_id] => $������
            [workflow_wiki] => my_wiki
            [workflow_namespace] => 3
            [workflow_page_id] => 0
            [workflow_title_text] => LQT_Import_13
            [workflow_name] => 
            [workflow_last_update_timestamp] => 20141108204217
            [workflow_lock_state] => 0
            [workflow_type] => topic
        )

    [1] => stdClass Object
        (
            [workflow_id] => $���,���1�
            [workflow_wiki] => my_wiki
            [workflow_namespace] => 3
            [workflow_page_id] => 0
            [workflow_title_text] => LQT_Import_12
            [workflow_name] => 
            [workflow_last_update_timestamp] => 20141107164930
            [workflow_lock_state] => 0
            [workflow_type] => topic
        )

    [2] => stdClass Object
        (
            [workflow_id] => &Dc����?�
            [workflow_wiki] => my_wiki
            [workflow_namespace] => 3
            [workflow_page_id] => 0
            [workflow_title_text] => LQT_Import_12
            [workflow_name] => 
            [workflow_last_update_timestamp] => 20141108202929
            [workflow_lock_state] => 0
            [workflow_type] => discussion
        )

    [3] => stdClass Object
        (
            [workflow_id] => &D��/��?�
            [workflow_wiki] => my_wiki
            [workflow_namespace] => 3
            [workflow_page_id] => 0
            [workflow_title_text] => LQT_Import_13
            [workflow_name] => 
            [workflow_last_update_timestamp] => 20141108204148
            [workflow_lock_state] => 0
            [workflow_type] => discussion
        )

)
...Update 'FlowCreateMentionTemplate' already logged as completed.
Set the local repo temp zone container to be private.
Purging caches...done.

Event Timeline

• Spage raised the priority of this task from to Low.
• Spage updated the task description. (Show Details)
• Spage subscribed.
Restricted Application added a subscriber: • Aklapper. · View Herald Transcript

Hi @Spage. I got a similar bug which I reported in T122887, but in my case the failed updates lead to some discussion disappearing from the wiki. (I had less than 10, so it was easy to see, but maybe some threads are gone from your local wiki as well...?)

I had the same problem when upgrading from 1.25 to 1.26, and it is also similar to T122329.
You can see my comment T122329#2355471 for the upgrade path I used.