Problems when uninstalling the module

Created on 23 June 2025, 10 days ago

Problem/Motivation

When uninstalling the module, i get this
Error message
User warning: Symfony\Component\DependencyInjection\Exception\ServiceNotFoundException thrown while calling __toString on a Drupal\Core\StringTranslation\TranslatableMarkup object in /var/www/html/drupal/web/core/lib/Drupal/Component/DependencyInjection/Container.php on line 159: You have requested a non-existent service "msqrole.manager". in Drupal\Core\StringTranslation\TranslatableMarkup->__toString() (line 20 of core/lib/Drupal/Component/Utility/ToStringTrait.php).
The selected modules could not be uninstalled, either due to a website problem or due to the uninstall confirmation form timing out.

There had been orphaned configurations, which prompted me to install and immediately uninstall the module in hopes this would delete the residual configurations.

Steps to reproduce

Install the module, then uninstall it

Proposed resolution

Remaining tasks

User interface changes

API changes

Data model changes

🐛 Bug report
Status

Active

Version

1.0

Component

Code

Created by

🇩đŸ‡ĒGermany a8w4 Frankfurt am Main

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

Comments & Activities

  • Issue created by @a8w4
  • 🇩đŸ‡ĒGermany a8w4 Frankfurt am Main

    The following is the remnant of the incomplete uninstall:

    [notice] Module msqrole has an entry in the system.schema key/value storage, but is not installed. <a href="https://www.drupal.org/node/3137656">More information about this error</a>.
    
  • 🇧đŸ‡ĒBelgium RandalV

    Hi @a8w4,

    Thanks for your report!
    I'm unable to reproduce this issue though, would it be possible to share the exact steps / paths where this issue occurs?
    As well as let me know if it's reproduceable on a clean D11?

    Thanks in advance!

  • 🇩đŸ‡ĒGermany a8w4 Frankfurt am Main

    Oopsie daisy, sorry I forgot to mention: it was on Drupal 10.4.6

  • 🇧đŸ‡ĒBelgium RandalV
  • 🇧đŸ‡ĒBelgium RandalV

    Hi @a8w4,

    I'm afraid I'm still not able to reproduce this â˜šī¸
    I followed these steps:
    - `composer create-project drupal/recommended-project:10.4.6 sandbox-10`
    - `ddev config && ddev start`
    - `ddev composer require drush/drush drupal/msqrole && ddev drush pm:enable msqrole`
    - `ddev drush pmu msqrole`

    I also tried installing and uninstalling via the UI, it seems to always have worked.

    Could it be possible there was just some corrupt caching or config in your project at the time?
    If there's any more clues as to how this could be recreated, I'm happy to look further!

Production build 0.71.5 2024