Repository navigation
Description
Search first
- I searched and no similar issues were found
What Happened?
I experienced this bug on both Windows and Mac, which hinders graph-loading process. Its diagnosis and local repair were completed with help from GPT/Codex.
The following sections were written by Codex. As I understood it, the followings should describe the issue and the reproduction steps faithfully. With agent's help, I also reproduced the bug, and the log is attached in "Reproduce the bug".
Hope this helps!
Cause and result
Converting a parent tag to an ordinary page leaves child tags' Extends references pointing to that page. If the page is then recycled and removed by the 30-day GC, a child can lose its only parent. Validation fails and the graph cannot open:
DB write failed with invalid data
:outliner-op :recycle-gc
:logseq.property.class/extends — missing required key
Reproduce the Bug
- In a new DB graph, create tags
ParentandChild. Set Child's onlyExtendsvalue to Parent. - Convert Parent from a tag to an ordinary page. Child still extends Parent.
- Recycle the Parent page.
- Let the 30-day retention expire and ensure GC is due. In an isolated test, I simulated this by backdating Parent's
:logseq.property/deleted-atby 31 days and setting:logseq.kv/recycle-last-gc-atto0, with GC temporarily bypassed only during fixture preparation. - Reopen the graph with the unmodified worker. Startup fails with the error above.
The synthetic graph passed read-only validation before GC. The attached fixture reproduces the failure without private graph data.
The following log is produced from the above steps: repro-worker.log
Expected Behavior
What happened
The graph stays on the loading screen and never becomes usable. The database worker exits during startup recycle GC with DB write failed with invalid data. Closing and reopening Logseq repeats the same failure, so the graph cannot be accessed through the UI to repair it.
What I would expect
Ideally, I would expect Logseq to load the graph normally. Refusing to load and function due to an operation taken 30 days ago is confusing.
Screenshots
No response
Desktop or Mobile Platform Information
Logseq DB 2.0.2, macOS 15.5 arm64, worker revision 533ac43.
The same issues have also appeared in my Windows host. Though the above diagnosis is done on my Mac.
Additional Context
Related issues i found are:
- #1312: undo does not restore child tags' parents after deleting a parent tag.
- #1424: page-to-block conversion leaves stale child references.
This report concerns a different chain: parent tag → ordinary page → recycle expiry → GC removes the child's only Extends target → graph startup fails. I did not find an existing report of this exact sequence.
Are you willing to submit a PR? If you know how to fix the bug.
- I'm willing to submit a PR (Thank you!)
Activity
fix(db): a tag converted to a page no longer leaves its child tags to…
yuxi-liu-wired commentedon Oct 27, 2026
Thanks for the precise report and the steps, they reproduced on current master as written. The fix is in #13786:
GJCPP commentedon Oct 28, 2026
Hi, thanks for your feedback. Glad to know it's already fixed. I will close the issue now.
fix(db): a tag converted to a page no longer leaves its child tags to…
fix(db): a tag converted to a page no longer leaves its child tags to…
fix(db): a tag converted to a page no longer leaves its child tags to…
fix(db): a tag converted to a page no longer leaves its child tags to…
fix(db): a tag converted to a page no longer leaves its child tags to…
fix(db): a tag converted to a page no longer leaves its child tags to…
fix(db): a tag converted to a page no longer leaves its child tags to…
fix(db): a tag converted to a page no longer leaves its child tags to…
fix(db): a tag converted to a page no longer leaves its child tags to…
fix(db): a tag converted to a page no longer leaves its child tags to…
fix(db): a tag converted to a page no longer leaves its child tags to…
3 remaining items
fix(db): a tag converted to a page no longer leaves its child tags to…
fix(db): a tag converted to a page no longer leaves its child tags to…
fix(db): a tag converted to a page no longer leaves its child tags to…
fix(db): a tag converted to a page no longer leaves its child tags to…
fix(db): a tag converted to a page no longer leaves its child tags to…
fix(db): a tag converted to a page no longer leaves its child tags to…
fix(db): a tag converted to a page no longer leaves its child tags to…
fix(db): a tag converted to a page no longer leaves its child tags to…
fix(db): a tag converted to a page no longer leaves its child tags to…
fix(db): a tag converted to a page no longer leaves its child tags to…
fix(db): a tag converted to a page no longer leaves its child tags to…
fix(db): a tag converted to a page no longer leaves its child tags to…
fix(db): a tag converted to a page no longer leaves its child tags to…
fix(db): a tag converted to a page no longer leaves its child tags to…
fix(db): a tag converted to a page no longer leaves its child tags to…