Update aborted by system_post_update_sort_all_config. Drush command terminated abnormally. Output is empty.

Created on 13 December 2021, over 2 years ago
Updated 6 September 2024, 1 day ago

Problem/Motivation

After upgrading successfully from DRUPAL 9.2.9 to DRUPAL 9.3.0 via the COMPOSER command "composer update", I tried to upgrade the database with DRUSH command "drush updatedb".

Then the "sort_all_config" post-update script stopped with the error "[warning] Drush command terminated abnormally."

Steps to reproduce

 ---------- ---------------------- ------------- ------------------------------
  Module     Update ID              Type          Description
 ---------- ---------------------- ------------- ------------------------------
  system     sort_all_config        post-update   Sort all configuration
                                                  according to its schema.
  taxonomy   clear_views_argument   post-update   Clear the cache after
             _validator_plugins_c                 deprecating Term views
             ache                                 argument validator.
  user       update_roles           post-update   Calculate role dependencies
                                                  and remove non-existent
                                                  permissions.
  views      sort_identifier        post-update   Add the identifier option to
                                                  all sort handler
                                                  configurations.
 ---------- ---------------------- ------------- ------------------------------


 Do you wish to run the specified pending updates? (yes/no) [yes]:
 >

>  [notice] Update started: system_post_update_sort_all_config
>  [warning] Drush command terminated abnormally.

In ProcessBase.php line 155:

  Output is empty.

Proposed resolution

Workarounds, which are all for contrib modules.
Uninstall additional themes, #37
Uninstall Bario theme, #48 (and others)
Uninstall Gutenberg module, #53
If using the module link_target, see #60

Remaining tasks

Add Steps to reproduce

User interface changes

API changes

Data model changes

Release notes snippet

💬 Support request
Status

Closed: works as designed

Version

11.0 🔥

Component
System 

Last updated 1 day ago

No maintainer
Created by

🇫🇷France teddyvermeulin

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

  • best regard

    I am new to drupal and I have the same error, can you help me thanks

    my site is in drupal 9.5.7 and when executing update.php through the browser I get the error.

  • 🇪🇸Spain einarulfhednar

    Hello,

    I re-rolled the #51 patch for the 9.5.7 Drupal core.

    Thanks, I hope it helps.

  • Open in Jenkins → Open on Drupal.org →
    Environment: PHP 8.1 & MySQL 5.7 updated deps
    last update over 1 year ago
    Patch Failed to Apply
  • 🇪🇸Spain einarulfhednar

    Hello again,

    Sorry for the duplicity of comments: I am new and this is my first time.

    I attach the correct file.

    Thank you.

  • 🇩🇪Germany florianboehme

    Any news here? I tried to update from 9.2.21 to 9.3.15 and get the same error:

    In ProcessBase.php line 171:
                                                                                                                                                                                              
      [InvalidArgumentException]                                                                                                                                                              
      Unable to decode output into JSON: Syntax error                                                                                                                                         
                                                                                                                                                                                              
      Fatal error: Allowed memory size of 134217728 bytes exhausted (tried to allocate 262144 bytes) in /core/lib/Drupal/Core/Config/TypedConfigManage  
      r.php on line 200                                                                                                                                                                       
                                                                                                                                                                                              
      Fatal error: Allowed memory size of 134217728 bytes exhausted (tried to allocate 262144 bytes) in /vendor/drush/drush/src/Boot/DrupalBoot8.php on line 305
    
  • 🇮🇳India Monali_sin

    Hi @einarulfhednar

    I have applied the patch provided by you but some how it worked then again getting the same error.

    Drush updb giving the below error

    [notice] core.entity_form_display.paragraph.banner_a_3_0.default
    > [notice] core.entity_form_display.paragraph.banner_a_4_0.default
    > [notice] core.entity_form_display.paragraph.banner_b_3_0.default
    > Killed

    In ProcessBase.php line 155:

    Output is empty.

    Thanks
    Monali

  • 🇬🇧United Kingdom longwave UK

    Both "Fatal error: Allowed memory size of X bytes exhausted" and "Killed" in #69 and #70 imply that Drush is running out of memory when processing the updates - increase your memory_limit if possible.

  • Status changed to Closed: works as designed 1 day ago
  • 🇳🇿New Zealand quietone New Zealand

    Steps to reproduce were asked for 2 years ago and have not been provided. Ways to work around are in the Issue Summary and #71 explains that at least one error is that drush is running out of memory.

    The Drupal Core issue queue is not the ideal place for support requests (that option is mostly there for filing support issues for contributed modules and themes). There are several support options listed on our support page (Community > Support at the top of Drupal.org) and there is Drupal Slack . Drupal Slack and the Forums, which are our two main support mechanisms in the Drupal community.

Production build 0.71.5 2024