Problem/Motivation

Good morning,
First of all, thank you for this form.
Is it possible that updating to the latest release 8.x-1.3 is causing these issues in Drupal 10.6.7?
And what does that actually mean?
_______________________________________
The website encountered an unexpected error. Try again later.
Symfony\Component\DependencyInjection\Exception\ServiceCircularReferenceException: Circular reference detected for service "config.factory", path: "exception.fast_404_html -> config.factory -> config.typed -> cache.discovery -> cache.backend.file_system -> logger.factory -> logger.filelog". in Drupal\Component\DependencyInjection\Container->get() (line 149 of core/lib/Drupal/Component/DependencyInjection/Container.php).
Drupal\Component\DependencyInjection\Container->get() (Line: 438)
Drupal\Component\DependencyInjection\Container->resolveServicesAndParameters() (Line: 239)
Drupal\Component\DependencyInjection\Container->createService() (Line: 179)
Drupal\Component\DependencyInjection\Container->get() (Line: 438)
Drupal\Component\DependencyInjection\Container->resolveServicesAndParameters() (Line: 275)
Drupal\Component\DependencyInjection\Container->createService() (Line: 179)
Drupal\Component\DependencyInjection\Container->get() (Line: 438)
Drupal\Component\DependencyInjection\Container->resolveServicesAndParameters() (Line: 239)
Drupal\Component\DependencyInjection\Container->createService() (Line: 179)
Drupal\Component\DependencyInjection\Container->get() (Line: 98)
Drupal\Core\Cache\ChainedFastBackendFactory->get() (Line: 110)
Drupal\Core\Cache\CacheFactory->get()
call_user_func_array() (Line: 257)
Drupal\Component\DependencyInjection\Container->createService() (Line: 179)
Drupal\Component\DependencyInjection\Container->get() (Line: 438)
Drupal\Component\DependencyInjection\Container->resolveServicesAndParameters() (Line: 239)
Drupal\Component\DependencyInjection\Container->createService() (Line: 179)
Drupal\Component\DependencyInjection\Container->get() (Line: 438)
Drupal\Component\DependencyInjection\Container->resolveServicesAndParameters() (Line: 239)
Drupal\Component\DependencyInjection\Container->createService() (Line: 179)
Drupal\Component\DependencyInjection\Container->get() (Line: 438)
Drupal\Component\DependencyInjection\Container->resolveServicesAndParameters() (Line: 239)
Drupal\Component\DependencyInjection\Container->createService() (Line: 179)
Drupal\Component\DependencyInjection\Container->get() (Line: 105)
Drupal\Component\EventDispatcher\ContainerAwareEventDispatcher->dispatch() (Line: 239)
Symfony\Component\HttpKernel\HttpKernel->handleThrowable() (Line: 91)
Symfony\Component\HttpKernel\HttpKernel->handle() (Line: 53)
Drupal\Core\StackMiddleware\Session->handle() (Line: 48)
Drupal\Core\StackMiddleware\KernelPreHandle->handle() (Line: 28)
Drupal\Core\StackMiddleware\ContentLength->handle() (Line: 32)
Drupal\big_pipe\StackMiddleware\ContentLength->handle() (Line: 116)
Drupal\page_cache\StackMiddleware\PageCache->pass() (Line: 90)
Drupal\page_cache\StackMiddleware\PageCache->handle() (Line: 48)
Drupal\Core\StackMiddleware\ReverseProxyMiddleware->handle() (Line: 51)
Drupal\Core\StackMiddleware\NegotiationMiddleware->handle() (Line: 36)
Drupal\Core\StackMiddleware\AjaxPageState->handle() (Line: 51)
Drupal\Core\StackMiddleware\StackedHttpKernel->handle() (Line: 741)
Drupal\Core\DrupalKernel->handle() (Line: 19)
____________________________________________________________

Thank you for your kind replay

Steps to reproduce

Proposed resolution

Remaining tasks

User interface changes

API changes

Data model changes

Issue fork filecache-3586982

Command icon Show commands

Start within a Git clone of the project using the version control instructions.

Or, if you do not have SSH keys set up on git.drupalcode.org:

Comments

senzaesclusiva created an issue. See original summary.

pfrenssen made their first commit to this issue’s fork.

pfrenssen’s picture

Version: 8.x-1.3 » 8.x-1.x-dev
Category: Support request » Bug report

Thanks for the report! From the backtrace it looks like the circular dependency arises when the File Cache and File Log modules are installed at the same time.

I have posted a fix, but I haven't been able to try it out myself yet. Can you please check if this solves the problem? Thanks!

pfrenssen’s picture

Status: Active » Needs review
senzaesclusiva’s picture

Hi @pfrenssen
I ran a thorough test to pinpoint the problem:

- Fresh install of D10.6.7
- Installed and enabled Filecache

- When attempting to install Filelog:
[error] Symfony\Component\DependencyInjection\Exception\ServiceCircularReferenceException: Circular reference detected for service "cache.backend.file_system", path: "http_kernel -> http_middleware.ajax_page_state -> http_middleware.negotiation -> http_middleware.reverse_proxy -> http_middleware.page_cache -> cache.page -> cache.backend.file_system -> logger.factory -> logger.filelog -> config.factory -> config.storage -> cache.config". in Drupal\Component\DependencyInjection\Container->get() (line 149 of /var/www/html/web/core/lib/Drupal/Component/DependencyInjection/Container.php) #0 /var/www/html/web/core/lib/Drupal/Core/Cache/ChainedFastBackendFactory.php(98): Drupal\Component\DependencyInjection\Container->get() ----and so on....
------

Applied your patches
- Installation and config of Filelog succeeded without errors

Now both are working correctly, so I’d say you’ve hit the nail on the head regarding what was causing the issue.

Many thank for your prompt and helpful debugging :)