craftcms / craftcms/cms

[4.x]: Error: Invalid owner ID stops garbage collection on site during a GC command

Open
#16,035 1 comment 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

bug craft4
Dominant language
PHP
Stars
3.6k
Forks
705
Avg merge
1d 5h
Merged PRs (30d)
134

Description

What happened?
Description

Running garbage collection ...
> purging unsaved drafts that have gone stale ... Error: Invalid owner ID: 658913

Steps to reproduce
  1. Run php craft gc or php craft gc --delete-all-trashed=1
Expected behavior

Garbage collection to complete

Actual behavior

Garbage collection is stuck and garbage will not be removed automatically or trough running command.

Craft CMS version

Craft Pro 4.11.0.2

PHP version

8.2.25

Operating system and version

Linux 5.15.0-121-generic

Database type and version

MySQL 8.0.39

Image driver and version

No response

Installed plugins and versions

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by reproducing the issue with php craft gc and php craft gc --delete-all-trashed=1 on the reported Craft CMS, PHP, and MySQL versions. Trace the garbage-collection step that purges stale unsaved drafts and determine why an invalid owner ID stops the command; done means garbage collection completes and removes eligible garbage.

Written by the indexing model from the issue text.

Assessment

Tech stack
mysql, php
Domain
backend, database
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.