Skip to content

Bad CRC on archive causes Lanraragi to halt all future scans #1297

@sjames272727

Description

@sjames272727

LRR Version and OS
v0.9.41 (Docker)

Bug Details
I noticed that my library wasn't being fully scanned, Lanraragi was missing ~10,000 items that I couldn't get scanned no matter what I did (tried clearing cache, restarting Shion, and even rebuilt my entire library from scratch).

After some debugging, I realized it was because a failing CRC check on the thumbnail image (first image) in a ZIP file was halting all scans. Deleting the problematic ZIP file allowed Lanraragi to continue it's scans.

Matching Logs
Post any logs you have encountered when reproducing the bug.
If possible, switch the app to Debug Mode in order to have more logs.

Mihon Thumbnail Task:

---
args:
- /home/koyomi/lanraragi/thumb
- a93645d9516137050c0d5d32870bbc2cd56f2cd9
- 0
attempts: '3'
children: []
created: 2025-07-14T03:36:51.81285Z
delayed: 2025-07-14T03:37:22.93559Z
finished: 2025-07-14T03:37:27.02682Z
id: '86'
notes: {}
parents: []
priority: '0'
queue: default
result:
  errors:
  - |
    Error building thumbnail: ZIP bad CRC: 0xc33c6748 should be 0x6f189fa1 at /home/koyomi/lanraragi/script/../lib/LANraragi/Utils/Archive.pm line 321.
retried: 2025-07-14T03:37:06.93559Z
retries: '2'
started: 2025-07-14T03:37:26.97483Z
state: failed
task: thumbnail_task
worker: '3'

App logs:

[2025-07-13 23:20:33] [Plugin System] [info] Thumbnail hash invalid, regenerating.
[2025-07-13 23:20:33] [Plugin System] [warn] Error building thumbnail: ZIP bad CRC: 0x541d14ed should be 0x8224f749 at /home/koyomi/lanraragi/script/../lib/LANraragi/Utils/Archive.pm line 321.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions