composer update breaks system

Created on 6 February 2025, about 2 months ago

Problem/Motivation

Ran composer update on a fresh Drupal CMS installation and is broke the system

composer update
Loading composer repositories with package information
Updating dependencies
Lock file operations: 0 installs, 21 updates, 0 removals
  - Upgrading drupal/ai (1.0.3 => 1.0.4)
  - Upgrading drupal/ai_image_alt_text (1.0.0 => 1.0.1)
  - Upgrading drupal/ai_provider_openai (1.0.1 => 1.0.2)
  - Upgrading drupal/autosave_form (1.9.0 => 1.10.0)
  - Upgrading drupal/core (11.1.1 => 11.1.2)
  - Upgrading drupal/core-composer-scaffold (11.1.1 => 11.1.2)
  - Upgrading drupal/core-project-message (11.1.1 => 11.1.2)
  - Upgrading drupal/core-recommended (11.1.1 => 11.1.2)
  - Upgrading drupal/drupal_cms_admin_ui (1.0.0 => 1.0.2)
  - Upgrading drupal/drupal_cms_ai (1.0.1 => 1.0.2)
  - Upgrading drupal/drupal_cms_content_type_base (1.0.1 => 1.0.2)
  - Upgrading drupal/drupal_cms_image (1.0.1 => 1.0.2)
  - Upgrading drupal/drupal_cms_person (1.0.1 => 1.0.2)
  - Upgrading drupal/drupal_cms_seo_tools (1.0.1 => 1.0.2)
  - Upgrading drupal/drupal_cms_starter (1.0.1 => 1.0.2)
  - Upgrading drupal/leaflet (10.2.35 => 10.2.36)
  - Upgrading drupal/login_emailusername (3.0.0 => 3.0.1)
  - Upgrading drupal/scheduler (2.2.0 => 2.2.1)
  - Upgrading drupal/scheduler_content_moderation_integration (3.0.3 => 3.0.4)
  - Upgrading drupal/smart_date (4.2.1 => 4.2.2)
  - Upgrading twig/twig (v3.16.0 => v3.19.0)
Writing lock file
Installing dependencies from lock file (including require-dev)
Package operations: 0 installs, 21 updates, 0 removals
  - Downloading twig/twig (v3.19.0)
  - Downloading drupal/core (11.1.2)
  - Downloading drupal/scheduler (2.2.1)
  - Downloading drupal/scheduler_content_moderation_integration (3.0.4)
  - Downloading drupal/drupal_cms_image (1.0.2)
  - Downloading drupal/autosave_form (1.10.0)
  - Downloading drupal/drupal_cms_content_type_base (1.0.2)
  - Downloading drupal/ai (1.0.4)
  - Downloading drupal/ai_provider_openai (1.0.2)
  - Downloading drupal/ai_image_alt_text (1.0.1)
  - Downloading drupal/drupal_cms_ai (1.0.2)
  - Downloading drupal/smart_date (4.2.2)
  - Downloading drupal/leaflet (10.2.36)
  - Downloading drupal/drupal_cms_person (1.0.2)
  - Downloading drupal/drupal_cms_seo_tools (1.0.2)
  - Downloading drupal/login_emailusername (3.0.1)
  - Downloading drupal/drupal_cms_admin_ui (1.0.2)
  - Downloading drupal/drupal_cms_starter (1.0.2)
  - Upgrading drupal/core-composer-scaffold (11.1.1 => 11.1.2): Extracting archive
  - Upgrading drupal/core-project-message (11.1.1 => 11.1.2): Extracting archive
  - Upgrading twig/twig (v3.16.0 => v3.19.0): Extracting archive
  - Upgrading drupal/core (11.1.1 => 11.1.2): Extracting archive
  - Upgrading drupal/core-recommended (11.1.1 => 11.1.2)
  - Upgrading drupal/scheduler (2.2.0 => 2.2.1): Extracting archive
  - Upgrading drupal/scheduler_content_moderation_integration (3.0.3 => 3.0.4): Extracting archive
  - Upgrading drupal/drupal_cms_image (1.0.1 => 1.0.2): Extracting archive
  - Upgrading drupal/autosave_form (1.9.0 => 1.10.0): Extracting archive
  - Upgrading drupal/drupal_cms_content_type_base (1.0.1 => 1.0.2): Extracting archive
  - Upgrading drupal/ai (1.0.3 => 1.0.4): Extracting archive
  - Upgrading drupal/ai_provider_openai (1.0.1 => 1.0.2): Extracting archive
  - Upgrading drupal/ai_image_alt_text (1.0.0 => 1.0.1): Extracting archive
  - Upgrading drupal/drupal_cms_ai (1.0.1 => 1.0.2): Extracting archive
  - Upgrading drupal/smart_date (4.2.1 => 4.2.2): Extracting archive
  - Upgrading drupal/leaflet (10.2.35 => 10.2.36): Extracting archive
  - Upgrading drupal/drupal_cms_person (1.0.1 => 1.0.2): Extracting archive
  - Upgrading drupal/drupal_cms_seo_tools (1.0.1 => 1.0.2): Extracting archive
  - Upgrading drupal/login_emailusername (3.0.0 => 3.0.1): Extracting archive
  - Upgrading drupal/drupal_cms_admin_ui (1.0.0 => 1.0.2): Extracting archive
  - Upgrading drupal/drupal_cms_starter (1.0.1 => 1.0.2): Extracting archive
Generating optimized autoload files
59 packages you are using are looking for funding.
Use the `composer fund` command to find out more!
Scaffolding files for drupal/core:
  - Copy [project-root]/recipes/README.txt from assets/scaffold/files/recipes.README.txt
No security vulnerability advisories found.

Only error I could find after visiting the /admin or /user/edit section:

The website encountered an unexpected error. Try again later.

2025/02/06 14:05:06 [error] 16638#30552104: *1 FastCGI sent in stderr: "PHP message: Uncaught PHP Exception LogicException: "The complete set of cache contexts for a variation cache item must contain all of the initial cache contexts, missing: workspace." at /Users/rie/Documents/GitHub/cms/web/core/lib/Drupal/Core/Cache/VariationCache.php line 47" while reading response header from upstream, client: 127.0.0.1, server: , request: "GET /node/add/page HTTP/1.1", upstream: "fastcgi://unix:/Users/ie/Library/Application Support/Herd/herd.sock:", host: "cms.test", referrer: "http://cms.test/"

I checked the error with several different AI systems and apparently it has to do with cached "workspaces".

There is no such module installed.
drush pmu workspaces

In PmCommands.php line 187:

The following module(s) are not installed: workspaces. No modules to uninstall.

So forcing cache would be useless I would think. Unless, Drupal CMS has modified it somehow?

πŸ› Bug report
Status

Needs work

Component

General

Created by

πŸ‡¨πŸ‡¦Canada netgeek123

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

Comments & Activities

  • Issue created by @netgeek123
  • πŸ‡ΊπŸ‡ΈUnited States phenaproxima Massachusetts

    Huh, this is an interesting one. You're correct Drupal CMS doesn't install Workspaces, but we also don't do anything specific with cache contexts or anything like that. (Ignore the AIs, they don't know what the hell they're talking about.)

    Looks like the most salient part of the error is this:

    The complete set of cache contexts for a variation cache item must contain all of the initial cache contexts, missing: workspace.

    Did you run drush updatedb after updating? That is usually very necessary to get Drupal's database fully up-to-date after doing a code update. Can you try that, followed by a drush cr, and tell me if the error persists for you?

  • πŸ‡¦πŸ‡ΉAustria robwj

    Hello

    i have the same or similar problem after the update to the latest drupal cms 1.0.2 version with composer.

    i found out when i uninstall the navigation module, the error is gone.

    i use drupal-cms in a ddev installation and i activated the workspaces + ui module and configured some workspaces.
    workspaces are in the core but not activated by default.
    and the error comes up after the latest update to drupal cms 1.0.2

    i found this https://www.drupal.org/forum/support/upgrading-drupal/2025-02-11/update-... β†’
    and they mentioned https://www.drupal.org/project/drupal/issues/3425081 ✨ Integrate with Workspaces Active

    so we need to wait for a new stable drupal core release to get this fixed?
    i didn't tried the core dev fix mentioned in the issue.
    so i can't say for sure if this is related

Production build 0.71.5 2024