DB Update Causes error on Cron

Created on 7 March 2023, over 1 year ago
Updated 3 January 2024, 6 months ago

Problem/Motivation

After updating my site to 8.x-1.0-beta3 I get the following error when I run cron.

Drupal\purge\Plugin\Purge\Purger\Exception\BadPluginBehaviorException: Only NOT_SUPPORTED, PROCESSING, SUCCEEDED and FAILED are valid outbound states. in Drupal\purge\Plugin\Purge\Invalidation\InvalidationBase->setStateContext() (line 144 of /app/web/modules/contrib/purge/src/Plugin/Purge/Invalidation/InvalidationBase.php).

Steps to reproduce

  • Update site to 8.x-1.0-beta3
  • Run DB update script
  • Try to run cron and get error

I did this twice to ensure it wasn't an issue with my local.

πŸ› Bug report
Status

Active

Version

2.0

Component

Code

Created by

πŸ‡ΊπŸ‡ΈUnited States johnpicozzi Providence, RI

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

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

  • πŸ‡©πŸ‡ͺGermany IT-Cru Munich

    @johnpicozzi: I also get this error message after update from 8.x-1.0-beta2 to 8.x-1.0-beta3 and first I thought it has something to do with my custom purge Queuer plugin.

    For me it was resolved after I re-edit on deployed PROD env my Drupal cloudflare settings under /admin/config/services/cloudflare which finally updated Cloudflare zone config in this 2 steps config form. Maybe update hook handles this a little bit in a wrong way?

  • First commit to issue fork.
  • Open on Drupal.org β†’
    Core: 9.5.x + Environment: PHP 8.0 & MySQL 5.7
    last update about 1 year ago
    Not currently mergeable.
  • @redbrickone opened merge request.
  • Open in Jenkins β†’ Open on Drupal.org β†’
    Core: 9.5.x + Environment: PHP 8.0 & MySQL 5.7
    last update about 1 year ago
    59 pass
  • @redbrickone opened merge request.
  • πŸ‡ΊπŸ‡ΈUnited States redbrickone

    Hi I have encountered the same issue on this version of Cloudflare as well. I am unable to modify the config values on the prod site to get these errors gone. I've created a patch that can be used to allow you to edit the Cloudflare admin config form which will let you enable a Zone & bypass these errors. It seems the root issue does stem from the drush DB updates after updating to this version. This is a workaround for those who need to get past these errors but the root issue should probably still be looked into. The MR in comment #6 should do the trick.

  • First commit to issue fork.
  • πŸ‡ΊπŸ‡ΈUnited States johnpicozzi Providence, RI

    Since posting this I have updated to Drupal 10.2 and I'm using the 2.0.0 Alpha 1 Version of the module. I'm still seeing this error when running cron in my logs. I think the MR needs to be reviewed to work with this version of the module. Also based on the comment above it seems the root cause still needs to be investigated.

    Updating this to Version 2.0.0 Alpha 1.

Production build 0.69.0 2024