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.
SAWarning: Multiple rows returned with uselist=False for lazily-loaded attribute 'KoboReadingState.statistics'
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-webpointed 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, andkobo_bookmarktables had duplicate rows for all shelf books, causing SQLAlchemy warnings on every sync:kobo_synced_booksgets repopulated on container restart before the Kobo connects, causingchanged entries: 0on every subsequent sync attempt.Environment
Related (consolidated from)