[4.x]: Error: Invalid owner ID stops garbage collection on site during a GC command
Nobody has claimed this yet.
- 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
- 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
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- 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