Hey,

a few weeks ago our production site suddenly started redirecting users to the core/install.php page out of the blue. Without any deploy or changes in infrastructure, the problem started to occur more and more up until every single page request was directed towards the core/install page.

After a cache clear, the issue was resolved for a short while, but it always comes back after some minutes-hours.

We reviewed our LAMP stack (max_allowed_packets, disk spaces, processes, load ...) but nothing solved the problem.

Stack is a load-balanced AWS infrastructure (different web nodes, 1 db node) with memcache.
When we disable memcache, the problem only appears once every few hours, with memcache enabled the issue arises all the time, so probably memcache is a catalyst rather then a cause for the huge spike.

Seems not load-related, as we have +- the same number of occurences at 4 am as we have at 5 pm for example.

What we did try:

- Catch requests to core/install.php and throw a 404 page (to exclude bots from indexing / crawling this page and exclude them)
- Disable memcache / change memcache version
- Review MySQL settings
- Review most common google results for this problem
- Different memcache strategies (different tables in memcache vs mysql cache)
- Upgrade Drupal to the latest minor
- Reverted Drupal to an earlier version

But we're kinda clueless lately + running the site without memcache for the moment as this minimises the problem for now.

Comments

KevinVanRansbeeck created an issue. See original summary.

cilefen’s picture

When debugging an issue like this, I would consider all the places in the codebase where 'install.php' is mentioned:

$ git grep install\.php core/lib core/includes/ | egrep -v '(//|\*) '
core/includes/install.core.inc:      $url = Url::fromUri('base:install.php', ['query' => $install_state['parameters'], 'script' => '']);
core/includes/install.core.inc:  return 'core/install.php?' . UrlHelper::buildQuery($install_state['parameters']);
core/lib/Drupal/Core/DrupalKernel.php:        $response = new RedirectResponse($request->getBasePath() . '/core/install.php', 302, ['Cache-Control' => 'no-cache']);
core/lib/Drupal/Core/DrupalKernel.php:      return new RedirectResponse($request->getBasePath() . '/core/install.php', 302, ['Cache-Control' => 'no-cache']);
core/lib/Drupal/Core/EventSubscriber/ExceptionDetectNeedsInstallSubscriber.php:        $event->setResponse(new RedirectResponse($request->getBasePath() . '/core/install.php', 302, ['Cache-Control' => 'no-cache']));

At just a guess, it's in DrupalKernel::handle and Database::getConnectionInfo returns false for some reason.

Version: 8.7.x-dev » 8.8.x-dev

Drupal 8.7.9 was released on November 6 and is the final full bugfix release for the Drupal 8.7.x series. Drupal 8.7.x will not receive any further development aside from security fixes. Sites should prepare to update to 8.8.0 on December 4, 2019. (Drupal 8.8.0-beta1 is available for testing.)

Bug reports should be targeted against the 8.8.x-dev branch from now on, and new development or disruptive changes should be targeted against the 8.9.x-dev branch. For more information see the Drupal 8 and 9 minor version schedule and the Allowed changes during the Drupal 8 and 9 release cycles.

Version: 8.8.x-dev » 8.9.x-dev

Drupal 8.8.7 was released on June 3, 2020 and is the final full bugfix release for the Drupal 8.8.x series. Drupal 8.8.x will not receive any further development aside from security fixes. Sites should prepare to update to Drupal 8.9.0 or Drupal 9.0.0 for ongoing support.

Bug reports should be targeted against the 8.9.x-dev branch from now on, and new development or disruptive changes should be targeted against the 9.1.x-dev branch. For more information see the Drupal 8 and 9 minor version schedule and the Allowed changes during the Drupal 8 and 9 release cycles.

Version: 8.9.x-dev » 9.2.x-dev

Drupal 8 is end-of-life as of November 17, 2021. There will not be further changes made to Drupal 8. Bugfixes are now made to the 9.3.x and higher branches only. For more information see the Drupal core minor version schedule and the Allowed changes during the Drupal core release cycle.

Version: 9.2.x-dev » 9.3.x-dev
cilefen’s picture

Status: Active » Closed (outdated)

I am closing this support request because there have been no recent comments.

The Drupal Core issue queue is not the ideal place for support requests. Consider other sources of support.