Skip to content

[bug] Kobo Sync: books not transferred or not downloadable on device in v4.0.6 despite successful shelf sync #1470

Description

@crocodilestick

Summary

In CWA v4.0.6, Kobo sync reaches the server correctly and shelves synchronize, but books either never appear on the Kobo or appear but fail to download. Stock linuxserver/calibre-web pointed at the same library syncs successfully, confirming this is CWA-specific.

Symptoms (varies by device/firmware)

Diagnostic findings (from #1264)

kobo_reading_state, kobo_statistics, and kobo_bookmark tables had duplicate rows for all shelf books, causing SQLAlchemy warnings on every sync:

SAWarning: Multiple rows returned with uselist=False for lazily-loaded attribute 'KoboReadingState.statistics'

kobo_synced_books gets repopulated on container restart before the Kobo connects, causing changed entries: 0 on every subsequent sync attempt.

Environment

  • CWA v4.0.6
  • Kobo devices: Clara 2E (firmware 4.38), Libra 2, Libra Colour (firmware 4.45)
  • Stock Calibre-Web works with identical library and shelf configuration

Related (consolidated from)

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions