Config Schema is incorrect?

Created on 31 July 2024, 5 months ago
Updated 17 August 2024, 4 months ago

Problem/Motivation

When trying to update drupal from10.2.3 to 10.3.1, I face following error during system_post_update_add_langcode_to_all_translatable_config post_update:

>  [notice] Update started: system_post_update_add_langcode_to_all_translatable_config
>  [notice] Processed 50 items of 1047.
>  [notice] Processed 100 items of 1047.
>  [notice] Processed 150 items of 1047.
>  [notice] Processed 200 items of 1047.
>  [notice] Processed 250 items of 1047.
>  [notice] Processed 300 items of 1047.
>  [notice] Processed 350 items of 1047.
>  [notice] Processed 400 items of 1047.
>  [notice] Processed 450 items of 1047.
>  [notice] Processed 500 items of 1047.
>  [notice] Processed 550 items of 1047.
>  [notice] Processed 600 items of 1047.
>  [notice] Processed 650 items of 1047.
>  [notice] Processed 700 items of 1047.
>  [notice] Processed 750 items of 1047.
>  [notice] Processed 800 items of 1047.
>  [notice] Processed 850 items of 1047.
>  [notice] Processed 900 items of 1047.
>  [error]  AssertionError: Failed on config name 'view_custom_table.tables' in assert() (line 264 of /var/www/html/web/core/modules/system/system.post_update.php) #0 /var/www/html/web/core/modules/system/system.post_update.php(264): assert(false, 'Failed on confi...')
> #1 /var/www/html/vendor/drush/drush/src/Commands/core/UpdateDBCommands.php(280): system_post_update_add_langcode_to_all_translatable_config(Array)
> #2 /var/www/html/vendor/drush/drush/includes/batch.inc(257): Drush\Commands\core\UpdateDBCommands::updateDoOnePostUpdate('system_post_upd...', Array)
> #3 /var/www/html/vendor/drush/drush/includes/batch.inc(204): _drush_batch_worker()
> #4 /var/www/html/vendor/drush/drush/includes/batch.inc(75): _drush_batch_command('22565')
> #5 /var/www/html/vendor/drush/drush/src/Commands/core/UpdateDBCommands.php(136): drush_batch_command('22565')
> #6 [internal function]: Drush\Commands\core\UpdateDBCommands->process('22565', Array)
> #7 /var/www/html/vendor/consolidation/annotated-command/src/CommandProcessor.php(276): call_user_func_array(Array, Array)
> #8 /var/www/html/vendor/consolidation/annotated-command/src/CommandProcessor.php(212): Consolidation\AnnotatedCommand\CommandProcessor->runCommandCallback(Array, Object(Consolidation\AnnotatedCommand\CommandData))
> #9 /var/www/html/vendor/consolidation/annotated-command/src/CommandProcessor.php(176): Consolidation\AnnotatedCommand\CommandProcessor->validateRunAndAlter(Array, Array, Object(Consolidation\AnnotatedCommand\CommandData))
> #10 /var/www/html/vendor/consolidation/annotated-command/src/AnnotatedCommand.php(391): Consolidation\AnnotatedCommand\CommandProcessor->process(Object(Symfony\Component\Console\Output\ConsoleOutput), Array, Array, Object(Consolidation\AnnotatedCommand\CommandData))
> #11 /var/www/html/vendor/symfony/console/Command/Command.php(326): Consolidation\AnnotatedCommand\AnnotatedCommand->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput))
> #12 /var/www/html/vendor/symfony/console/Application.php(1096): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput))
> #13 /var/www/html/vendor/symfony/console/Application.php(324): Symfony\Component\Console\Application->doRunCommand(Object(Consolidation\AnnotatedCommand\AnnotatedCommand), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput))
> #14 /var/www/html/vendor/symfony/console/Application.php(175): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput))
> #15 /var/www/html/vendor/drush/drush/src/Runtime/Runtime.php(110): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput))
> #16 /var/www/html/vendor/drush/drush/src/Runtime/Runtime.php(40): Drush\Runtime\Runtime->doRun(Array, Object(Symfony\Component\Console\Output\ConsoleOutput))
> #17 /var/www/html/vendor/drush/drush/drush.php(139): Drush\Runtime\Runtime->run(Array)
> #18 /var/www/html/vendor/drush/drush/drush(4): require('/var/www/html/v...')
> #19 /var/www/html/vendor/bin/drush(119): include('/var/www/html/v...')
> #20 {main}. 
> AssertionError: Failed on config name 'view_custom_table.tables' in /var/www/html/web/core/modules/system/system.post_update.php on line 264 #0 /var/www/html/web/core/modules/system/system.post_update.php(264): assert(false, 'Failed on confi...')
> #1 /var/www/html/vendor/drush/drush/src/Commands/core/UpdateDBCommands.php(280): system_post_update_add_langcode_to_all_translatable_config(Array)
> #2 /var/www/html/vendor/drush/drush/includes/batch.inc(257): Drush\Commands\core\UpdateDBCommands::updateDoOnePostUpdate('system_post_upd...', Array)
> #3 /var/www/html/vendor/drush/drush/includes/batch.inc(204): _drush_batch_worker()
> #4 /var/www/html/vendor/drush/drush/includes/batch.inc(75): _drush_batch_command('22565')
> #5 /var/www/html/vendor/drush/drush/src/Commands/core/UpdateDBCommands.php(136): drush_batch_command('22565')
> #6 [internal function]: Drush\Commands\core\UpdateDBCommands->process('22565', Array)
> #7 /var/www/html/vendor/consolidation/annotated-command/src/CommandProcessor.php(276): call_user_func_array(Array, Array)
> #8 /var/www/html/vendor/consolidation/annotated-command/src/CommandProcessor.php(212): Consolidation\AnnotatedCommand\CommandProcessor->runCommandCallback(Array, Object(Consolidation\AnnotatedCommand\CommandData))
> #9 /var/www/html/vendor/consolidation/annotated-command/src/CommandProcessor.php(176): Consolidation\AnnotatedCommand\CommandProcessor->validateRunAndAlter(Array, Array, Object(Consolidation\AnnotatedCommand\CommandData))
> #10 /var/www/html/vendor/consolidation/annotated-command/src/AnnotatedCommand.php(391): Consolidation\AnnotatedCommand\CommandProcessor->process(Object(Symfony\Component\Console\Output\ConsoleOutput), Array, Array, Object(Consolidation\AnnotatedCommand\CommandData))
> #11 /var/www/html/vendor/symfony/console/Command/Command.php(326): Consolidation\AnnotatedCommand\AnnotatedCommand->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput))
> #12 /var/www/html/vendor/symfony/console/Application.php(1096): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput))
> #13 /var/www/html/vendor/symfony/console/Application.php(324): Symfony\Component\Console\Application->doRunCommand(Object(Consolidation\AnnotatedCommand\AnnotatedCommand), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput))
> #14 /var/www/html/vendor/symfony/console/Application.php(175): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput))
> #15 /var/www/html/vendor/drush/drush/src/Runtime/Runtime.php(110): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput))
> #16 /var/www/html/vendor/drush/drush/src/Runtime/Runtime.php(40): Drush\Runtime\Runtime->doRun(Array, Object(Symfony\Component\Console\Output\ConsoleOutput))
> #17 /var/www/html/vendor/drush/drush/drush.php(139): Drush\Runtime\Runtime->run(Array)
> #18 /var/www/html/vendor/drush/drush/drush(4): require('/var/www/html/v...')
> #19 /var/www/html/vendor/bin/drush(119): include('/var/www/html/v...')
> #20 {main}
>  [warning] Drush command terminated abnormally.

In ProcessBase.php line 171:
                                                                                                                                                            
  Unable to decode output into JSON: Syntax error                                                                                                           
                                                                                                                                                            
  AssertionError: Failed on config name 'view_custom_table.tables' in assert() (line 264 of /var/www/html/web/core/modules/system/system.post_update.php).  
                                                                                                                                                            

Failed to run drush updb -y: exit status 1

Comment https://www.drupal.org/project/drupal/issues/3458431#comment-15669854 Improve developer experience for 10.3.x upgrade by informing where typed config fails Needs review is saying it's due to an incorrect config schema.

My only Views Custom Table related config is in view_custom_table.tables.yml

🐛 Bug report
Status

Fixed

Version

2.0

Component

Code

Created by

🇫🇷France louis-cuny

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

Comments & Activities

Production build 0.71.5 2024