Configuration import failure, permissions related

Created on 11 May 2023, almost 2 years ago
Updated 10 July 2024, 9 months ago

Problem/Motivation

Able to configure module, but trying to re-install site using drush tome:import --yes or drush si --existing-config fails

It seems like this may be related to code around line 153 of rac.module, rac developer had the following to say on Drupal Slack:

Interesting. It doesn't seem like the permissions generator is being called. Typically that would happen in a permissions call back in the project. The class is defiantly there, but it doesn't seem like its getting called. I don't see the permissions.yml file which is where its configured. Can you open an issue on Drupal.org for this? I'll try and work through it tomorrow

Tome error:

In SiteProcess.php line 214:
                                                                                                                                                         
  The command "/var/www/html/vendor/bin/drush tome:import --yes --uri=https://content-au.ddev.site --root=/var/www/html/web" failed.  
                                                                                                                                                         
  Exit Code: 1(General error)                                                                                                                            
                                                                                                                                                         
  Working directory:                                                                                                                                     
                                                                                                                                                         
  Output:                                                                                                                                                
  ================                                                                                                                                       
                                                                                                                                                         
   [ERROR] Error when running "Array"                                                                                                                    
                                                                                                                                                         
   [ERROR]  [notice] Synchronized extensions: uninstall stark.                                                                                           
            [notice] Synchronized extensions: install anonymous_redirect.                                                                                
            [notice] Synchronized extensions: install big_pipe.                                                                                          
            [notice] Synchronized extensions: install bulk_user_registration.                                                                            
            [notice] Synchronized extensions: install coffee.                                                                                            
            [notice] Synchronized extensions: install config.                                                                                            
            [notice] Synchronized extensions: install config_filter.                                                                                     
            [notice] Synchronized extensions: install config_ignore.                                                                                     
            [notice] Synchronized extensions: install config_split.                                                                                      
            [notice] Synchronized extensions: install contact.                                                                                           
            [notice] Synchronized extensions: install content_lock.                                                                                      
            [notice] Synchronized extensions: install ctools.                                                                                            
            [notice] Synchronized extensions: install diff.                                                                                              
            [notice] Synchronized extensions: install drupalauth4ssp.                                                                                    
            [notice] Synchronized extensions: install entity_clone.                                                                                      
            [notice] Synchronized extensions: install entity_display_mode.                                                                               
            [notice] Synchronized extensions: install environment_indicator.                                                                             
            [notice] Synchronized extensions: install gin_login.                                                                                         
            [notice] Synchronized extensions: install help.                                                                                              
            [notice] Synchronized extensions: install linkit.                                                                                            
            [notice] Synchronized extensions: install llv_core.                                                                                          
            [notice] Synchronized extensions: install m4032404.                                                                                          
            [notice] Synchronized extensions: install maxlength.                                                                                         
            [notice] Synchronized extensions: install node_edit_protection.                                                                              
            [notice] Synchronized extensions: install permissions_filter.                                                                                
            [notice] Synchronized extensions: install revision_log_default.                                                                              
            [notice] Synchronized extensions: install robotstxt.                                                                                         
            [notice] Synchronized extensions: install transliterate_filenames.                                                                           
            [notice] Synchronized extensions: install user_expire.                                                                                       
            [notice] Synchronized extensions: install content_lock_timeout.                                                                              
            [notice] Synchronized extensions: install environment_indicator_ui.                                                                          
            [notice] Synchronized extensions: install upgrade_status.                                                                                    
            [notice] Synchronized extensions: install block_content.                                                                                     
            [notice] Synchronized extensions: install breakpoint.                                                                                        
            [notice] Synchronized extensions: install editor.                                                                                            
            [notice] Synchronized extensions: install ckeditor5.                                                                                         
            [notice] Synchronized extensions: install language.                                                                                          
            [notice] Synchronized extensions: install content_translation.                                                                               
            [notice] Synchronized extensions: install contextual.                                                                                        
            [notice] Synchronized extensions: install datetime.                                                                                          
            [notice] Synchronized extensions: install layout_discovery.                                                                                  
            [notice] Synchronized extensions: install field_ui.                                                                                          
            [notice] Synchronized extensions: install taxonomy.                                                                                          
            [notice] Synchronized extensions: install options.                                                                                           
            [notice] Synchronized extensions: install image.                                                                                             
            [notice] Synchronized extensions: install jsonapi.                                                                                           
            [notice] Synchronized extensions: install layout_builder.                                                                                    
            [notice] Synchronized extensions: install link.                                                                                              
            [notice] Synchronized extensions: install media.                                                                                             
            [notice] Synchronized extensions: install views.                                                                                             
            [notice] Synchronized extensions: install media_library.                                                                                     
            [notice] Synchronized extensions: install menu_link_content.                                                                                 
            [notice] Synchronized extensions: install menu_ui.                                                                                           
            [notice] Synchronized extensions: install path.                                                                                              
            [notice] Synchronized extensions: install responsive_image.                                                                                  
            [notice] Synchronized extensions: install toolbar.                                                                                           
            [notice] Synchronized extensions: install shortcut.                                                                                          
            [notice] Synchronized extensions: install telephone.                                                                                         
            [notice] Synchronized extensions: install views_ui.                                                                                          
            [notice] Synchronized extensions: install address.                                                                                           
            [notice] Synchronized extensions: install admin_audit_trail.                                                                                 
            [notice] Synchronized extensions: install admin_audit_trail_auth.                                                                            
            [notice] Synchronized extensions: install admin_audit_trail_file.                                                                            
            [notice] Synchronized extensions: install admin_audit_trail_media.                                                                           
            [notice] Synchronized extensions: install admin_audit_trail_menu.                                                                            
            [notice] Synchronized extensions: install admin_audit_trail_node.                                                                            
            [notice] Synchronized extensions: install redirect.                                                                                          
            [notice] Synchronized extensions: install admin_audit_trail_redirect.                                                                        
            [notice] Synchronized extensions: install admin_audit_trail_taxonomy.                                                                        
            [notice] Synchronized extensions: install admin_audit_trail_user.                                                                            
            [notice] Synchronized extensions: install admin_toolbar.                                                                                     
            [notice] Synchronized extensions: install admin_toolbar_links_access_filter.                                                                 
            [notice] Synchronized extensions: install admin_toolbar_tools.                                                                               
            [notice] Synchronized extensions: install adva.                                                                                              
            [notice] Synchronized extensions: install adva_na.                                                                                           
            [notice] Synchronized extensions: install advanced_text_formatter.                                                                           
            [notice] Synchronized extensions: install allowed_formats.                                                                                   
            [notice] Synchronized extensions: install externalauth.                                                                                      
            [notice] Synchronized extensions: install conditional_fields.                                                                                
            [notice] Synchronized extensions: install config_pages.                                                                                      
            [notice] Synchronized extensions: install consumers.                                                                                         
            [notice] Synchronized extensions: install crop.                                                                                              
            [notice] Synchronized extensions: install decoupled_router.                                                                                  
            [notice] Synchronized extensions: install jsonapi_resources.                                                                                 
            [notice] Synchronized extensions: install jsonapi_menu_items.                                                                                
            [notice] Synchronized extensions: install jsonapi_views.                                                                                     
            [notice] Synchronized extensions: install druxt.                                                                                             
            [notice] Synchronized extensions: install dynamic_entity_reference.                                                                          
            [notice] Synchronized extensions: install entity_reference_revisions.                                                                        
            [notice] Synchronized extensions: install entity_route_context.                                                                              
            [notice] Synchronized extensions: install entity_usage.                                                                                      
            [notice] Synchronized extensions: install exclude_node_title.                                                                                
            [notice] Synchronized extensions: install field_group.                                                                                       
            [notice] Synchronized extensions: install field_permissions.                                                                                 
            [notice] Synchronized extensions: install field_tools.                                                                                       
            [notice] Synchronized extensions: install jquery_ui.                                                                                         
            [notice] Synchronized extensions: install jquery_ui_draggable.                                                                               
            [notice] Synchronized extensions: install focal_point.                                                                                       
            [notice] Synchronized extensions: install gin_toolbar.                                                                                       
            [notice] Synchronized extensions: install image_style_warmer.                                                                                
            [notice] Synchronized extensions: install jsonapi_hypermedia.                                                                                
            [notice] Synchronized extensions: install jsonapi_menu_items_hypermedia.                                                                     
            [notice] Synchronized extensions: install jsonapi_node_preview.                                                                              
            [notice] Synchronized extensions: install jsonapi_node_preview_tab.                                                                          
            [notice] Synchronized extensions: install jsonapi_user_resources.                                                                            
            [notice] Synchronized extensions: install key.                                                                                               
            [notice] Synchronized extensions: install paragraphs.                                                                                        
            [notice] Synchronized extensions: install layout_paragraphs.                                                                                 
            [notice] Synchronized extensions: install paragraphs_library.                                                                                
            [notice] Synchronized extensions: install layout_paragraphs_library.                                                                         
            [notice] Synchronized extensions: install length_indicator.                                                                                  
            [notice] Synchronized extensions: install linky.                                                                                             
            [notice] Synchronized extensions: install linky_revision_ui.                                                                                 
            [notice] Synchronized extensions: install linkychecker.                                                                                      
            [notice] Synchronized extensions: install linkyreplacer.                                                                                     
            [notice] Synchronized extensions: install markup.                                                                                            
            [notice] Synchronized extensions: install masquerade.                                                                                        
            [notice] Synchronized extensions: install media_file_delete.                                                                                 
            [notice] Synchronized extensions: install media_file_delete_entity_usage.                                                                    
            [notice] Synchronized extensions: install media_revisions_ui.                                                                                
            [notice] Synchronized extensions: install token.                                                                                             
            [notice] Synchronized extensions: install metatag.                                                                                           
            [notice] Synchronized extensions: install oembed_providers.                                                                                  
            [notice] Synchronized extensions: install openid_connect.                                                                                    
            [notice] Synchronized extensions: install openid_connect_windows_aad.                                                                        
            [notice] Synchronized extensions: install paragraphs_type_permissions.                                                                       
            [notice] Synchronized extensions: install paragraphs_asymmetric_translation_widgets.                                                         
            [notice] Synchronized extensions: install paragraphs_features.                                                                               
            [notice] Synchronized extensions: install paragraphs_ee.                                                                                     
            [notice] Synchronized extensions: install replicate.                                                                                         
            [notice] Synchronized extensions: install pate.                                                                                              
            [notice] Synchronized extensions: install pathauto.                                                                                          
            [notice] Synchronized extensions: install prevent_homepage_deletion.                                                                         
                                                                                                                                                         
           In Role.php line 207:                                                                                                                         
                                                                                                                                                         
                                                                                                                                                         
             Adding non-existent permissions to a role is not allowed. The incorrect permissions are "RAC_view_anonymous".                               
                                                                                                                                                         
                                                                                                                                                         
                                                                                                                                                         
                                                                                                                                                         
                                                                                                                                                         
                                                                                                                                                         
  Error Output:                                                                                                                                          
  ================                                                                                                                                       
   [warning] Array to string conversion ProcessTrait.php:98                                                                                              
                                                                                                                                                         

 [notice] Message: Content permissions have been rebuilt.

 [success] Cache rebuild complete.
 [error]  Error: Call to a member function isBlocked() on null in Drush\Commands\core\LoginCommands->login() (line 72 of /var/www/html/vendor/drush/drush/src/Commands/core/LoginCommands.php) #0 [internal function]: Drush\Commands\core\LoginCommands->login('', Array)
#1 /var/www/html/vendor/consolidation/annotated-command/src/CommandProcessor.php(257): call_user_func_array(Array, Array)
#2 /var/www/html/vendor/consolidation/annotated-command/src/CommandProcessor.php(212): Consolidation\AnnotatedCommand\CommandProcessor->runCommandCallback(Array, Object(Consolidation\AnnotatedCommand\CommandData))
#3 /var/www/html/vendor/consolidation/annotated-command/src/CommandProcessor.php(176): Consolidation\AnnotatedCommand\CommandProcessor->validateRunAndAlter(Array, Array, Object(Consolidation\AnnotatedCommand\CommandData))
#4 /var/www/html/vendor/consolidation/annotated-command/src/AnnotatedCommand.php(390): Consolidation\AnnotatedCommand\CommandProcessor->process(Object(Symfony\Component\Console\Output\ConsoleOutput), Array, Array, Object(Consolidation\AnnotatedCommand\CommandData))
#5 /var/www/html/vendor/symfony/console/Command/Command.php(312): Consolidation\AnnotatedCommand\AnnotatedCommand->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput))
#6 /var/www/html/vendor/symfony/console/Application.php(1040): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput))
#7 /var/www/html/vendor/symfony/console/Application.php(314): Symfony\Component\Console\Application->doRunCommand(Object(Consolidation\AnnotatedCommand\AnnotatedCommand), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput))
#8 /var/www/html/vendor/symfony/console/Application.php(168): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput))
#9 /var/www/html/vendor/drush/drush/src/Runtime/Runtime.php(124): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput))
#10 /var/www/html/vendor/drush/drush/src/Runtime/Runtime.php(51): Drush\Runtime\Runtime->doRun(Array, Object(Symfony\Component\Console\Output\ConsoleOutput))
#11 /var/www/html/vendor/drush/drush/drush.php(77): Drush\Runtime\Runtime->run(Array)
#12 /var/www/html/vendor/drush/drush/drush(4): require('/var/www/html/v...')
#13 /var/www/html/vendor/bin/drush(120): include('/var/www/html/v...')
#14 {main}. 
Error: Call to a member function isBlocked() on null in /var/www/html/vendor/drush/drush/src/Commands/core/LoginCommands.php on line 72 #0 [internal function]: Drush\Commands\core\LoginCommands->login('', Array)
#1 /var/www/html/vendor/consolidation/annotated-command/src/CommandProcessor.php(257): call_user_func_array(Array, Array)
#2 /var/www/html/vendor/consolidation/annotated-command/src/CommandProcessor.php(212): Consolidation\AnnotatedCommand\CommandProcessor->runCommandCallback(Array, Object(Consolidation\AnnotatedCommand\CommandData))
#3 /var/www/html/vendor/consolidation/annotated-command/src/CommandProcessor.php(176): Consolidation\AnnotatedCommand\CommandProcessor->validateRunAndAlter(Array, Array, Object(Consolidation\AnnotatedCommand\CommandData))
#4 /var/www/html/vendor/consolidation/annotated-command/src/AnnotatedCommand.php(390): Consolidation\AnnotatedCommand\CommandProcessor->process(Object(Symfony\Component\Console\Output\ConsoleOutput), Array, Array, Object(Consolidation\AnnotatedCommand\CommandData))
#5 /var/www/html/vendor/symfony/console/Command/Command.php(312): Consolidation\AnnotatedCommand\AnnotatedCommand->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput))
#6 /var/www/html/vendor/symfony/console/Application.php(1040): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput))
#7 /var/www/html/vendor/symfony/console/Application.php(314): Symfony\Component\Console\Application->doRunCommand(Object(Consolidation\AnnotatedCommand\AnnotatedCommand), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput))
#8 /var/www/html/vendor/symfony/console/Application.php(168): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput))
#9 /var/www/html/vendor/drush/drush/src/Runtime/Runtime.php(124): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput))
#10 /var/www/html/vendor/drush/drush/src/Runtime/Runtime.php(51): Drush\Runtime\Runtime->doRun(Array, Object(Symfony\Component\Console\Output\ConsoleOutput))
#11 /var/www/html/vendor/drush/drush/drush.php(77): Drush\Runtime\Runtime->run(Array)
#12 /var/www/html/vendor/drush/drush/drush(4): require('/var/www/html/v...')
#13 /var/www/html/vendor/bin/drush(120): include('/var/www/html/v...')
#14 {main}
Error: Call to a member function isBlocked() on null in Drush\Commands\core\LoginCommands->login() (line 72 of /var/www/html/vendor/drush/drush/src/Commands/core/LoginCommands.php).
 [warning] Drush command terminated abnormally.

Drush si:

drush si --existing-config

 You are about to:
 * DROP all tables in your 'db' database.

 Do you want to continue? (yes/no) [yes]:
 > 

 [notice] Starting Drupal installation. This takes a while.
 [notice] Performed install task: install_select_language
 [notice] Performed install task: install_select_profile
 [notice] Performed install task: install_load_profile
 [notice] Performed install task: install_verify_requirements
 [notice] Performed install task: install_verify_database_ready
 [notice] Performed install task: install_base_system
 [notice] Performed install task: install_bootstrap_full

In Role.php line 207:
                                                                                                                 
  Adding non-existent permissions to a role is not allowed. The incorrect permissions are "RAC_view_anonymous". 

Steps to reproduce

Proposed resolution

Remaining tasks

User interface changes

API changes

Data model changes

πŸ› Bug report
Status

RTBC

Version

2.0

Component

Code

Created by

πŸ‡¦πŸ‡ΊAustralia realityloop

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

Comments & Activities

Production build 0.71.5 2024