Hi,
here is the error log when i run drush updb
[notice] Update started: menu_link_content_post_update_make_menu_link_content_revisionable
> [error] Error: Call to a member function getConfigDependencyKey() on null in Drupal\user\Plugin\views\filter\Roles->calculateDependencies() (line 92 of /var/www/html/d8.materio.com/public_html/web/core/modules/user/src/Plugin/views/filter/Roles.php) #0 /var/www/html/d8.materio.com/public_html/web/core/lib/Drupal/Core/Plugin/PluginDependencyTrait.php(75): Drupal\user\Plugin\views\filter\Roles->calculateDependencies()
> #1 /var/www/html/d8.materio.com/public_html/web/core/lib/Drupal/Core/Plugin/PluginDependencyTrait.php(93): Drupal\views\Plugin\views\display\DisplayPluginBase->getPluginDependencies(Object(Drupal\user\Plugin\views\filter\Roles))
> #2 [internal function]: Drupal\views\Plugin\views\display\DisplayPluginBase->calculatePluginDependencies(Object(Drupal\user\Plugin\views\filter\Roles), 21)
> #3 /var/www/html/d8.materio.com/public_html/web/core/modules/views/src/Plugin/views/display/DisplayPluginBase.php(960): array_walk(Array, Array)
> #4 /var/www/html/d8.materio.com/public_html/web/core/lib/Drupal/Core/Plugin/PluginDependencyTrait.php(75): Drupal\views\Plugin\views\display\DisplayPluginBase->calculateDependencies()
> #5 /var/www/html/d8.materio.com/public_html/web/core/lib/Drupal/Core/Plugin/PluginDependencyTrait.php(93): Drupal\Core\Config\Entity\ConfigEntityBase->getPluginDependencies(Object(Drupal\views\Plugin\views\display\DefaultDisplay))
> #6 /var/www/html/d8.materio.com/public_html/web/core/modules/views/src/Entity/View.php(290): Drupal\Core\Config\Entity\ConfigEntityBase->calculatePluginDependencies(Object(Drupal\views\Plugin\views\display\DefaultDisplay))
> #7 /var/www/html/d8.materio.com/public_html/web/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php(319): Drupal\views\Entity\View->calculateDependencies()
> #8 /var/www/html/d8.materio.com/public_html/web/core/modules/views/src/Entity/View.php(300): Drupal\Core\Config\Entity\ConfigEntityBase->preSave(Object(Drupal\Core\Config\Entity\ConfigEntityStorage))
> #9 /var/www/html/d8.materio.com/public_html/web/core/lib/Drupal/Core/Entity/EntityStorageBase.php(490): Drupal\views\Entity\View->preSave(Object(Drupal\Core\Config\Entity\ConfigEntityStorage))
> #10 /var/www/html/d8.materio.com/public_html/web/core/lib/Drupal/Core/Entity/EntityStorageBase.php(445): Drupal\Core\Entity\EntityStorageBase->doPreSave(Object(Drupal\views\Entity\View))
> #11 /var/www/html/d8.materio.com/public_html/web/core/lib/Drupal/Core/Config/Entity/ConfigEntityStorage.php(263): Drupal\Core\Entity\EntityStorageBase->save(Object(Drupal\views\Entity\View))
> #12 /var/www/html/d8.materio.com/public_html/web/modules/contrib/devel/webprofiler/src/Entity/Decorators/Config/ConfigEntityStorageDecorator.php(108): Drupal\Core\Config\Entity\ConfigEntityStorage->save(Object(Drupal\views\Entity\View))
> #13 /var/www/html/d8.materio.com/public_html/web/core/lib/Drupal/Core/Entity/EntityBase.php(394): Drupal\webprofiler\Entity\Decorators\Config\ConfigEntityStorageDecorator->save(Object(Drupal\views\Entity\View))
> #14 /var/www/html/d8.materio.com/public_html/web/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php(613): Drupal\Core\Entity\EntityBase->save()
> #15 /var/www/html/d8.materio.com/public_html/web/core/modules/views/src/EventSubscriber/ViewsEntitySchemaSubscriber.php(202): Drupal\Core\Config\Entity\ConfigEntityBase->save()
> #16 /var/www/html/d8.materio.com/public_html/web/core/lib/Drupal/Core/Entity/EntityTypeEventSubscriberTrait.php(47): Drupal\views\EventSubscriber\ViewsEntitySchemaSubscriber->onEntityTypeUpdate(Object(Drupal\Core\Entity\ContentEntityType), Object(Drupal\Core\Entity\ContentEntityType))
> #17 /var/www/html/d8.materio.com/public_html/web/modules/contrib/devel/webprofiler/src/EventDispatcher/TraceableEventDispatcher.php(76): Drupal\views\EventSubscriber\ViewsEntitySchemaSubscriber->onEntityTypeEvent(Object(Drupal\Core\Entity\EntityTypeEvent), 'entity_type.def...', Object(Drupal\webprofiler\EventDispatcher\TraceableEventDispatcher))
> #18 /var/www/html/d8.materio.com/public_html/web/core/lib/Drupal/Core/Entity/EntityTypeListener.php(138): Drupal\webprofiler\EventDispatcher\TraceableEventDispatcher->dispatch('entity_type.def...', Object(Drupal\Core\Entity\EntityTypeEvent))
> #19 /var/www/html/d8.materio.com/public_html/web/core/lib/Drupal/Core/Entity/EntityDefinitionUpdateManager.php(229): Drupal\Core\Entity\EntityTypeListener->onFieldableEntityTypeUpdate(Object(Drupal\Core\Entity\ContentEntityType), Object(Drupal\Core\Entity\ContentEntityType), Array, Array, Array)
> #20 /var/www/html/d8.materio.com/public_html/web/core/modules/menu_link_content/menu_link_content.post_update.php(100): Drupal\Core\Entity\EntityDefinitionUpdateManager->updateFieldableEntityType(Object(Drupal\Core\Entity\ContentEntityType), Array, Array)
> #21 /var/www/html/d8.materio.com/public_html/vendor/drush/drush/src/Commands/core/UpdateDBCommands.php(289): menu_link_content_post_update_make_menu_link_content_revisionable(Array)
> #22 /var/www/html/d8.materio.com/public_html/vendor/drush/drush/includes/batch.inc(251): Drush\Commands\core\UpdateDBCommands::updateDoOnePostUpdate('menu_link_conte...', Object(DrushBatchContext))
> #23 /var/www/html/d8.materio.com/public_html/vendor/drush/drush/includes/batch.inc(196): _drush_batch_worker()
> #24 /var/www/html/d8.materio.com/public_html/vendor/drush/drush/includes/batch.inc(99): _drush_batch_command('29116')
> #25 /var/www/html/d8.materio.com/public_html/vendor/drush/drush/src/Commands/core/UpdateDBCommands.php(155): drush_batch_command('29116')
> #26 [internal function]: Drush\Commands\core\UpdateDBCommands->process('29116', Array)
> #27 /var/www/html/d8.materio.com/public_html/vendor/consolidation/annotated-command/src/CommandProcessor.php(257): call_user_func_array(Array, Array)
> #28 /var/www/html/d8.materio.com/public_html/vendor/consolidation/annotated-command/src/CommandProcessor.php(212): Consolidation\AnnotatedCommand\CommandProcessor->runCommandCallback(Array, Object(Consolidation\AnnotatedCommand\CommandData))
> #29 /var/www/html/d8.materio.com/public_html/vendor/consolidation/annotated-command/src/CommandProcessor.php(178): Consolidation\AnnotatedCommand\CommandProcessor->validateRunAndAlter(Array, Array, Object(Consolidation\AnnotatedCommand\CommandData))
> #30 /var/www/html/d8.materio.com/public_html/vendor/consolidation/annotated-command/src/AnnotatedCommand.php(302): Consolidation\AnnotatedCommand\CommandProcessor->process(Object(Symfony\Component\Console\Output\ConsoleOutput), Array, Array, Object(Consolidation\AnnotatedCommand\CommandData))
> #31 /var/www/html/d8.materio.com/public_html/vendor/symfony/console/Command/Command.php(255): Consolidation\AnnotatedCommand\AnnotatedCommand->execute(Object(Drush\Symfony\DrushArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput))
> #32 /var/www/html/d8.materio.com/public_html/vendor/symfony/console/Application.php(978): Symfony\Component\Console\Command\Command->run(Object(Drush\Symfony\DrushArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput))
> #33 /var/www/html/d8.materio.com/public_html/vendor/symfony/console/Application.php(255): Symfony\Component\Console\Application->doRunCommand(Object(Consolidation\AnnotatedCommand\AnnotatedCommand), Object(Drush\Symfony\DrushArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput))
> #34 /var/www/html/d8.materio.com/public_html/vendor/symfony/console/Application.php(148): Symfony\Component\Console\Application->doRun(Object(Drush\Symfony\DrushArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput))
> #35 /var/www/html/d8.materio.com/public_html/vendor/drush/drush/src/Runtime/Runtime.php(118): Symfony\Component\Console\Application->run(Object(Drush\Symfony\DrushArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput))
> #36 /var/www/html/d8.materio.com/public_html/vendor/drush/drush/src/Runtime/Runtime.php(49): Drush\Runtime\Runtime->doRun(Array, Object(Symfony\Component\Console\Output\ConsoleOutput))
> #37 /var/www/html/d8.materio.com/public_html/vendor/drush/drush/drush.php(72): Drush\Runtime\Runtime->run(Array)
> #38 /var/www/html/d8.materio.com/public_html/vendor/drush/drush/includes/preflight.inc(18): require('/var/www/html/d...')
> #39 phar:///usr/local/bin/drush/bin/drush.php(141): drush_main()
> #40 /usr/local/bin/drush(10): require('phar:///usr/loc...')
> #41 {main}.
> Error: Call to a member function getConfigDependencyKey() on null in /var/www/html/d8.materio.com/public_html/web/core/modules/user/src/Plugin/views/filter/Roles.php on line 92 #0 /var/www/html/d8.materio.com/public_html/web/core/lib/Drupal/Core/Plugin/PluginDependencyTrait.php(75): Drupal\user\Plugin\views\filter\Roles->calculateDependencies()
> #1 /var/www/html/d8.materio.com/public_html/web/core/lib/Drupal/Core/Plugin/PluginDependencyTrait.php(93): Drupal\views\Plugin\views\display\DisplayPluginBase->getPluginDependencies(Object(Drupal\user\Plugin\views\filter\Roles))
> #2 [internal function]: Drupal\views\Plugin\views\display\DisplayPluginBase->calculatePluginDependencies(Object(Drupal\user\Plugin\views\filter\Roles), 21)
> #3 /var/www/html/d8.materio.com/public_html/web/core/modules/views/src/Plugin/views/display/DisplayPluginBase.php(960): array_walk(Array, Array)
> #4 /var/www/html/d8.materio.com/public_html/web/core/lib/Drupal/Core/Plugin/PluginDependencyTrait.php(75): Drupal\views\Plugin\views\display\DisplayPluginBase->calculateDependencies()
> #5 /var/www/html/d8.materio.com/public_html/web/core/lib/Drupal/Core/Plugin/PluginDependencyTrait.php(93): Drupal\Core\Config\Entity\ConfigEntityBase->getPluginDependencies(Object(Drupal\views\Plugin\views\display\DefaultDisplay))
> #6 /var/www/html/d8.materio.com/public_html/web/core/modules/views/src/Entity/View.php(290): Drupal\Core\Config\Entity\ConfigEntityBase->calculatePluginDependencies(Object(Drupal\views\Plugin\views\display\DefaultDisplay))
> #7 /var/www/html/d8.materio.com/public_html/web/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php(319): Drupal\views\Entity\View->calculateDependencies()
> #8 /var/www/html/d8.materio.com/public_html/web/core/modules/views/src/Entity/View.php(300): Drupal\Core\Config\Entity\ConfigEntityBase->preSave(Object(Drupal\Core\Config\Entity\ConfigEntityStorage))
> #9 /var/www/html/d8.materio.com/public_html/web/core/lib/Drupal/Core/Entity/EntityStorageBase.php(490): Drupal\views\Entity\View->preSave(Object(Drupal\Core\Config\Entity\ConfigEntityStorage))
> #10 /var/www/html/d8.materio.com/public_html/web/core/lib/Drupal/Core/Entity/EntityStorageBase.php(445): Drupal\Core\Entity\EntityStorageBase->doPreSave(Object(Drupal\views\Entity\View))
> #11 /var/www/html/d8.materio.com/public_html/web/core/lib/Drupal/Core/Config/Entity/ConfigEntityStorage.php(263): Drupal\Core\Entity\EntityStorageBase->save(Object(Drupal\views\Entity\View))
> #12 /var/www/html/d8.materio.com/public_html/web/modules/contrib/devel/webprofiler/src/Entity/Decorators/Config/ConfigEntityStorageDecorator.php(108): Drupal\Core\Config\Entity\ConfigEntityStorage->save(Object(Drupal\views\Entity\View))
> #13 /var/www/html/d8.materio.com/public_html/web/core/lib/Drupal/Core/Entity/EntityBase.php(394): Drupal\webprofiler\Entity\Decorators\Config\ConfigEntityStorageDecorator->save(Object(Drupal\views\Entity\View))
> #14 /var/www/html/d8.materio.com/public_html/web/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php(613): Drupal\Core\Entity\EntityBase->save()
> #15 /var/www/html/d8.materio.com/public_html/web/core/modules/views/src/EventSubscriber/ViewsEntitySchemaSubscriber.php(202): Drupal\Core\Config\Entity\ConfigEntityBase->save()
> #16 /var/www/html/d8.materio.com/public_html/web/core/lib/Drupal/Core/Entity/EntityTypeEventSubscriberTrait.php(47): Drupal\views\EventSubscriber\ViewsEntitySchemaSubscriber->onEntityTypeUpdate(Object(Drupal\Core\Entity\ContentEntityType), Object(Drupal\Core\Entity\ContentEntityType))
> #17 /var/www/html/d8.materio.com/public_html/web/modules/contrib/devel/webprofiler/src/EventDispatcher/TraceableEventDispatcher.php(76): Drupal\views\EventSubscriber\ViewsEntitySchemaSubscriber->onEntityTypeEvent(Object(Drupal\Core\Entity\EntityTypeEvent), 'entity_type.def...', Object(Drupal\webprofiler\EventDispatcher\TraceableEventDispatcher))
> #18 /var/www/html/d8.materio.com/public_html/web/core/lib/Drupal/Core/Entity/EntityTypeListener.php(138): Drupal\webprofiler\EventDispatcher\TraceableEventDispatcher->dispatch('entity_type.def...', Object(Drupal\Core\Entity\EntityTypeEvent))
> #19 /var/www/html/d8.materio.com/public_html/web/core/lib/Drupal/Core/Entity/EntityDefinitionUpdateManager.php(229): Drupal\Core\Entity\EntityTypeListener->onFieldableEntityTypeUpdate(Object(Drupal\Core\Entity\ContentEntityType), Object(Drupal\Core\Entity\ContentEntityType), Array, Array, Array)
> #20 /var/www/html/d8.materio.com/public_html/web/core/modules/menu_link_content/menu_link_content.post_update.php(100): Drupal\Core\Entity\EntityDefinitionUpdateManager->updateFieldableEntityType(Object(Drupal\Core\Entity\ContentEntityType), Array, Array)
> #21 /var/www/html/d8.materio.com/public_html/vendor/drush/drush/src/Commands/core/UpdateDBCommands.php(289): menu_link_content_post_update_make_menu_link_content_revisionable(Array)
> #22 /var/www/html/d8.materio.com/public_html/vendor/drush/drush/includes/batch.inc(251): Drush\Commands\core\UpdateDBCommands::updateDoOnePostUpdate('menu_link_conte...', Object(DrushBatchContext))
> #23 /var/www/html/d8.materio.com/public_html/vendor/drush/drush/includes/batch.inc(196): _drush_batch_worker()
> #24 /var/www/html/d8.materio.com/public_html/vendor/drush/drush/includes/batch.inc(99): _drush_batch_command('29116')
> #25 /var/www/html/d8.materio.com/public_html/vendor/drush/drush/src/Commands/core/UpdateDBCommands.php(155): drush_batch_command('29116')
> #26 [internal function]: Drush\Commands\core\UpdateDBCommands->process('29116', Array)
> #27 /var/www/html/d8.materio.com/public_html/vendor/consolidation/annotated-command/src/CommandProcessor.php(257): call_user_func_array(Array, Array)
> #28 /var/www/html/d8.materio.com/public_html/vendor/consolidation/annotated-command/src/CommandProcessor.php(212): Consolidation\AnnotatedCommand\CommandProcessor->runCommandCallback(Array, Object(Consolidation\AnnotatedCommand\CommandData))
> #29 /var/www/html/d8.materio.com/public_html/vendor/consolidation/annotated-command/src/CommandProcessor.php(178): Consolidation\AnnotatedCommand\CommandProcessor->validateRunAndAlter(Array, Array, Object(Consolidation\AnnotatedCommand\CommandData))
> #30 /var/www/html/d8.materio.com/public_html/vendor/consolidation/annotated-command/src/AnnotatedCommand.php(302): Consolidation\AnnotatedCommand\CommandProcessor->process(Object(Symfony\Component\Console\Output\ConsoleOutput), Array, Array, Object(Consolidation\AnnotatedCommand\CommandData))
> #31 /var/www/html/d8.materio.com/public_html/vendor/symfony/console/Command/Command.php(255): Consolidation\AnnotatedCommand\AnnotatedCommand->execute(Object(Drush\Symfony\DrushArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput))
> #32 /var/www/html/d8.materio.com/public_html/vendor/symfony/console/Application.php(978): Symfony\Component\Console\Command\Command->run(Object(Drush\Symfony\DrushArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput))
> #33 /var/www/html/d8.materio.com/public_html/vendor/symfony/console/Application.php(255): Symfony\Component\Console\Application->doRunCommand(Object(Consolidation\AnnotatedCommand\AnnotatedCommand), Object(Drush\Symfony\DrushArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput))
> #34 /var/www/html/d8.materio.com/public_html/vendor/symfony/console/Application.php(148): Symfony\Component\Console\Application->doRun(Object(Drush\Symfony\DrushArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput))
> #35 /var/www/html/d8.materio.com/public_html/vendor/drush/drush/src/Runtime/Runtime.php(118): Symfony\Component\Console\Application->run(Object(Drush\Symfony\DrushArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput))
> #36 /var/www/html/d8.materio.com/public_html/vendor/drush/drush/src/Runtime/Runtime.php(49): Drush\Runtime\Runtime->doRun(Array, Object(Symfony\Component\Console\Output\ConsoleOutput))
> #37 /var/www/html/d8.materio.com/public_html/vendor/drush/drush/drush.php(72): Drush\Runtime\Runtime->run(Array)
> #38 /var/www/html/d8.materio.com/public_html/vendor/drush/drush/includes/preflight.inc(18): require('/var/www/html/d...')
> #39 phar:///usr/local/bin/drush/bin/drush.php(141): drush_main()
> #40 /usr/local/bin/drush(10): require('phar:///usr/loc...')
> #41 {main}
> [warning] Drush command terminated abnormally. Check for an exit() in your Drupal site.
Comments
Comment #2
cilefen commentedI think this may have been reported previously. I’ll try to check on that later.
Comment #3
bachbach commentedi think you mean this thread https://www.drupal.org/project/drupal/issues/3052318
i saw it but the error is not exactly the same
anyway, i tried the patch from here https://www.drupal.org/project/drupal/issues/3052492
and upgrade went well
i spoke to quick, now i can't load the site, i have a 504 gateway Time-out error without any log (with php execution time to 150)i had some issue with my docker environement sorrythe patch did the trick
Comment #7
quietone commentedAs reported in #3 this was fixed by using the patch in #3052492: ViewsEntitySchemaSubscriber should not make an entity update fail if a view cannot be resaved.
Closing as a duplicate of that issue.