Site crash on uninstall

Created on 25 June 2024, 5 days ago
Updated 26 June 2024, 4 days ago

Problem/Motivation

When using composer to remove the group module, it causes a fatal site error.

The website encountered an unexpected error. Try again later.
Symfony\Component\DependencyInjection\Exception\ServiceCircularReferenceException: Circular reference detected for service "renderer", path: "router_listener -> router -> router.no_access_checks -> url_generator -> renderer -> render_cache -> variation_cache_factory -> form_ajax_subscriber -> form_ajax_response_builder -> main_content_renderer.ajax". in Drupal\Component\DependencyInjection\Container->get() (line 149 of core/lib/Drupal/Component/DependencyInjection/Container.php).

Steps to reproduce

Having installed the module, run the following composer command:

composer remove 'drupal/group'

./composer.json has been updated
Running composer update drupal/group
Loading composer repositories with package information
Updating dependencies
Lock file operations: 0 installs, 0 updates, 4 removals
  - Removing drupal/entity (1.4.0)
  - Removing drupal/flexible_permissions (1.1.0)
  - Removing drupal/group (3.2.2)
  - Removing drupal/variationcache (1.5.0)
Writing lock file
Installing dependencies from lock file (including require-dev)
Package operations: 0 installs, 0 updates, 4 removals
  - Removing drupal/variationcache (1.5.0)
  - Removing drupal/group (3.2.2)
  - Removing drupal/flexible_permissions (1.1.0)
  - Removing drupal/entity (1.4.0)
Deleting /var/www/wiki.ilocater.nd.edu/web/modules/contrib/variationcache - deleted
Deleting /var/www/wiki.ilocater.nd.edu/web/modules/contrib/flexible_permissions - deleted
Deleting /var/www/wiki.ilocater.nd.edu/web/modules/contrib/entity - deleted
 0/1 [>---------------------------]   0%Deleting /var/www/wiki.ilocater.nd.edu/web/modules/contrib/group - deleted

Readding the module, resolves the issue:

composer require 'drupal/group'

./composer.json has been updated
Running composer update drupal/group
Loading composer repositories with package information
Updating dependencies
Lock file operations: 4 installs, 0 updates, 0 removals
  - Locking drupal/entity (1.4.0)
  - Locking drupal/flexible_permissions (1.1.0)
  - Locking drupal/group (3.2.2)
  - Locking drupal/variationcache (1.5.0)
Writing lock file
Installing dependencies from lock file (including require-dev)
Package operations: 4 installs, 0 updates, 0 removals
  - Installing drupal/variationcache (1.5.0): Extracting archive
  - Installing drupal/flexible_permissions (1.1.0): Extracting archive
  - Installing drupal/entity (1.4.0): Extracting archive
  - Installing drupal/group (3.2.2): Extracting archive

Proposed resolution

This feels like there is something being left/disturbed in the uninstall process. Not sure what the next steps are.

Remaining tasks

  1. Identify root cause of issue
  2. Implement fix

User interface changes

API changes

Data model changes

πŸ› Bug report
Status

Active

Version

3.2

Component

Code

Created by

πŸ‡¬πŸ‡§United Kingdom jc8654

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

Comments & Activities

  • Issue created by @jc8654
  • πŸ‡¬πŸ‡§United Kingdom jc8654

    Some further digging:

    Going to update.php highlighted the site was then missing the following modules for the core:

    entity
    variationcache

    Maybe the uninstaller is removing these unintentionally?

  • First commit to issue fork.
Production build 0.69.0 2024