reverted: --- b/core/includes/install.core.inc +++ a/core/includes/install.core.inc @@ -159,12 +159,6 @@ install_display_output($output, $state); } elseif ($state['installation_finished']) { - // Truncate cache_container table. - // See https://www.drupal.org/project/drupal/issues/3103529. - if (Database::getConnection()->schema()->tableExists('cache_container')) { - Database::getConnection()->truncate('cache_container')->execute(); - } - // Redirect to the newly installed site. $finish_url = ''; if (isset($install_state['profile_info']['distribution']['install']['finish_url'])) { only in patch2: unchanged: --- a/core/lib/Drupal/Core/Installer/InstallerRedirectTrait.php +++ b/core/lib/Drupal/Core/Installer/InstallerRedirectTrait.php @@ -72,7 +72,12 @@ protected function shouldRedirectToInstaller(\Exception $exception, Connection $ // Redirect if the database is empty. if ($connection) { try { - return !$connection->schema()->tableExists('sessions'); + if(!$connection->schema()->tableExists('sessions')) { + // Ensure that the container cache is clean before redirecting to the + // installer. + \Drupal::service('kernel')->invalidateContainer(); + return TRUE; + } } catch (\Exception $e) { // If we still have an exception at this point, we need to be careful