You have requested a non-existent service "config.factory" during install from custom configuration

Created on 3 August 2025, about 1 month ago

Problem/Motivation

When install Drupal from custom config that has kint enabled, this error is thrown and the install fails.

I edited the config to disable kint and remove kint.settings.yml, then the install worked fine.

An AJAX HTTP error occurred.

HTTP Result Code: 500

Debugging information follows.

Path: /core/install.php?langcode=en&existing_config=1&profile=minimal&id=1&op=do_nojs&op=do

StatusText: error

ResponseText: The website encountered an unexpected error. Try again later.Symfony\Component\DependencyInjection\Exception\ServiceNotFoundException: You have requested a non-existent service "config.factory". in Symfony\Component\DependencyInjection\ContainerBuilder->getDefinition() (line 1042 of /app/vendor/symfony/dependency-injection/ContainerBuilder.php).Symfony\Component\DependencyInjection\ContainerBuilder->getDefinition() (Line: 608)

Symfony\Component\DependencyInjection\ContainerBuilder->doGet() (Line: 571)

Symfony\Component\DependencyInjection\ContainerBuilder->get() (Line: 425)

Drupal::config() (Line: 62)

include_once() (Line: 410)

Drupal\Core\Hook\HookCollectorPass->collectModuleHookImplementations() (Line: 375)

Drupal\Core\Hook\HookCollectorPass::collectAllHookImplementations() (Line: 137)

Drupal\Core\Hook\HookCollectorPass->process() (Line: 73)

Symfony\Component\DependencyInjection\Compiler\Compiler->compile() (Line: 814)

Symfony\Component\DependencyInjection\ContainerBuilder->compile() (Line: 1399)

Drupal\Core\DrupalKernel->compileContainer() (Line: 915)

Drupal\Core\DrupalKernel->initializeContainer() (Line: 21)

Drupal\Core\Installer\InstallerKernel->initializeContainer() (Line: 506)

Drupal\Core\DrupalKernel->boot() (Line: 427)

install_begin_request() (Line: 119)

install_drupal() (Line: 53)

Steps to reproduce

Start a Drupal install from custom config that has kint enabled.

🐛 Bug report
Status

Active

Version

2.1

Component

Code

Created by

🇨🇦Canada lindsay.wils

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

Comments & Activities

Production build 0.71.5 2024