janeczku / calibre-web

:books: Web app for browsing, reading and downloading eBooks stored in a Calibre database
GNU General Public License v3.0
12.02k stars 1.28k forks source link

Kobo sync issues #2620

Open smathev opened 1 year ago

smathev commented 1 year ago

Describe the bug/problem It seems like the Kobo Sync feature considers my Kobo-device as the masterDB and simply overwrites all changes made in Calibre-Web. If I archive ("Remove from my books") on the Kobo Device, next sync it's archived in Calibre-Web (as it should). But, no matter what I do:

To Reproduce

  1. Set up Kobo sync on kobo device.
  2. Sync kobo: Book appears on device.
  3. Choose to remove book from device, also choosing to "Remove from my books"
  4. Sync kobo: Book is removed from device and archived in Calibre-Web
  5. Then open Calibre-web and unarchive the book
  6. The book appears un-archived and ready to be synced
  7. Sync kobo: The book is archived again by the kobo sync.

Logfile I can't see anything in the logs, neither debugging info nor regular info. It would seem both Kobo and Calibre-web regards this as normal expected behaviour.

Expected behavior I would think that a syncing of kobo and calibre-web would look for latest changes in the respective databases, and then use the latest database-changes as the "master-database". IE. If something is archived the Kobo, but the latest change to the book was on Calibre-web then use the data on Calibre-web

Screenshots If applicable, add screenshots to help explain your problem.

Environment (please complete the following information):

Additional context I'm sorry if I misunderstood how sync'ing works or what I could expect from it. I'm very grateful for the software, it seems awesome and is a huge help in how I get metadata, etc onto my Kobo when sideloading books! I found this link - and it's the reason why I tried to remove the table from the database, but it doesn't help either: https://github.com/janeczku/calibre-web/issues/2555#issuecomment-1336535148

EDIT: Having re-read the wiki I notice that the Kobo-Sync at the time of my issue was a newly implemented feature, somewhat in beta. "https://github.com/janeczku/calibre-web/wiki/Kobo-Integration". So, considering this - I would like to repeat my comment - this is a wonderful piece of software, I'm really grateful for all the help this provides in enhancing my experience working with Calibre! I hope the issue will be solved in time, but for now the most important parts are working perfectly - I'm able to sync books to my device :)

the-mann commented 1 year ago

Are you using a reverse proxy like nginx?

smathev commented 1 year ago

@the-mann Hi - thanks for getting back to me. So, I do have a reverse proxy running, but not using it in the Kobo.conf. My Kobo.conf is using the ip:port format: http://ip:8083/kobo/CalibreWebKey

Is there anything you would like me to try?

zixiangx commented 1 year ago

Having the same issues here. Removing from database doesn't help either. Possibly the issue is with the archived_book entries not being cleared when the bit is marked on the web interface?