Problem/Motivation
I should be able to uninstall this module without errors.
Steps to reproduce
Install drupal 9.5.4
composer require drupal/content_sync
Add $content_directories['sync'] = __DIR__ . '/content/sync';
to settings.php
drush en content_sync
drush pmu content sync
Observe error:
[error] Error: APC must be enabled to use APCUIterator in APCUIterator->__construct() (line 270 of /app/web/core/lib/Drupal/Core/Cache/ApcuBackend.php) #0 /app/web/core/lib/Drupal/Core/Cache/ApcuBackend.php(270): APCUIterator->__construct('/^drupal\\.apcu_...', 4294967295, 100, 1)
#1 /app/web/core/lib/Drupal/Core/Cache/ApcuBackend.php(223): Drupal\Core\Cache\ApcuBackend->getIterator('/^drupal\\.apcu_...')
#2 /app/web/core/lib/Drupal/Core/Cache/ChainedFastBackend.php(271): Drupal\Core\Cache\ApcuBackend->removeBin()
#3 /app/web/core/lib/Drupal/Core/Extension/ModuleInstaller.php(592): Drupal\Core\Cache\ChainedFastBackend->removeBin()
#4 /app/web/core/lib/Drupal/Core/Extension/ModuleInstaller.php(514): Drupal\Core\Extension\ModuleInstaller->removeCacheBins('content_sync')
#5 /app/web/core/lib/Drupal/Core/ProxyClass/Extension/ModuleInstaller.php(91): Drupal\Core\Extension\ModuleInstaller->uninstall(Array, true)
#6 /app/vendor/drush/drush/src/Drupal/Commands/pm/PmCommands.php(195): Drupal\Core\ProxyClass\Extension\ModuleInstaller->uninstall(Array, true)
#7 [internal function]: Drush\Drupal\Commands\pm\PmCommands->uninstall(Array, Array)
#8 /app/vendor/consolidation/annotated-command/src/CommandProcessor.php(257): call_user_func_array(Array, Array)
#9 /app/vendor/consolidation/annotated-command/src/CommandProcessor.php(212): Consolidation\AnnotatedCommand\CommandProcessor->runCommandCallback(Array, Object(Consolidation\AnnotatedCommand\CommandData))
#10 /app/vendor/consolidation/annotated-command/src/CommandProcessor.php(176): Consolidation\AnnotatedCommand\CommandProcessor->validateRunAndAlter(Array, Array, Object(Consolidation\AnnotatedCommand\CommandData))
#11 /app/vendor/consolidation/annotated-command/src/AnnotatedCommand.php(390): Consolidation\AnnotatedCommand\CommandProcessor->process(Object(Symfony\Component\Console\Output\ConsoleOutput), Array, Array, Object(Consolidation\AnnotatedCommand\CommandData))
#12 /app/vendor/symfony/console/Command/Command.php(255): Consolidation\AnnotatedCommand\AnnotatedCommand->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput))
#13 /app/vendor/symfony/console/Application.php(1039): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput))
#14 /app/vendor/symfony/console/Application.php(275): Symfony\Component\Console\Application->doRunCommand(Object(Consolidation\AnnotatedCommand\AnnotatedCommand), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput))
#15 /app/vendor/symfony/console/Application.php(149): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput))
#16 /app/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))
#17 /app/vendor/drush/drush/src/Runtime/Runtime.php(51): Drush\Runtime\Runtime->doRun(Array, Object(Symfony\Component\Console\Output\ConsoleOutput))
#18 /app/vendor/drush/drush/drush.php(77): Drush\Runtime\Runtime->run(Array)
#19 /app/vendor/drush/drush/drush(4): require('/app/vendor/dru...')
#20 /app/vendor/bin/drush(117): include('/app/vendor/dru...')
#21 {main}.