Calibre-Web and Kobo

Hey all,

Love the new additions. Trying to figure out if anyone has had success adding Kobo to their Calibre-Web. I noticed the settings under Admin – Edit Basic Configuration – Feature Configuration. The documentation is lacking, but I am wondering if this is correct Kobo Integration · janeczku/calibre-web Wiki · GitHub ?

Though I did try it without success, finding it hard to get a log read out on my Kobo device which seems to be a required step.

Do not have a kobo device yet, did you enable kobo sync?

Kobo integration must first be enabled in Calibre-Web by toggling ON the Enable Kobo sync checkbox in the Basic configuration >> Feature Configuration page

You can see latest device logs fromall apps in Settings - Logs or more specific app logs using the command line in SSH terminal:

journalctl -u snap.calibre.*

From the doc you need to add calibre url to your device config.

I did enable it, and sorry the log issue for me is not on the calibre-web end but on the device end. But I hoping i can trouble shoot it more tomorrow

This i think might be related to this ticket Kobo Sync Failed, connection seems to work? · Issue #2295 · janeczku/calibre-web · GitHub

Are we using nginx?

Yes we do, could you show the error message please to understand what is the error we are fixing?

So when I try to sync this error pops up with the calibre connection. Seems the nginx fix in the ticket might fix it

Jul 12 22:14:33 nickel: (    44.185 @ 0x217a390 / packetdump.warning) "http://calibre.xxxxxxx.xxx/kobo/ca904fc2074f46d9b87254f455587719/66699496-e5aa-4a3a-9466-e7fdad52ae51/355/530/80/isGreyscale/image.jpg" => "Connection refused" 
Jul 12 22:14:33 nickel: (    44.186 @ 0x217a390 / packetdump.warning) HTTP Status Code: 0 
Jul 12 22:14:33 nickel: (    44.186 @ 0x217a390 / packetdump.warning) Error: 1 
Jul 12 22:14:33 nickel: (    44.187 @ 0x217a390 / packetdump.warning) Source: "http://calibre.xxxxxxxxx,xxx/kobo/ca904fc2074f46d9b87254f455587719/66699496-e5aa-4a3a-9466-e7fdad52ae51/355/530/80/isGreyscale/image.jpg" 
Jul 12 22:14:33 nickel: (    44.187 @ 0x217a390 / packetdump.warning) "" 
^C

Error says connection refused.
Can you open this url in the browser (after putting real dns name back)?

http://calibre.xxxxxxx.xxx/kobo/ca904fc2074f46d9b87254f455587719/66699496-e5aa-4a3a-9466-e7fdad52ae51/355/530/80/isGreyscale/image.jpg

Also it says http, we do not support http anymore it should be https.

Sorry about that, I did that too quickly last night…

When I load the site it shows the following
Screenshot 2023-07-13 at 06-57-57 https __calibre.dialectica.red

meant to copy this part of the log.

Jul 13 07:06:55 nickel: (   580.271 @ 0x3823d58 / sync.debug) pumping with 0 pending commands and 0 active commands 
Jul 13 07:06:55 nickel: (   580.687 @ 0x3823d58 / packetdump.warning) "https://calibre.xxxxxxx.xxx/kobo/ca904fc2074f46d9b87254f455587719/v1/library/sync?Filter=ALL&DownloadUrlFilter=Generic,Android&PrioritizeRecentReads=true" => "Error downloading https://calibre.xxxxxxx.xxx/kobo/ca904fc2074f46d9b87254f455587719/v1/library/sync?Filter=ALL&DownloadUrlFilter=Generic,Android&PrioritizeRecentReads=true - server replied: Bad Gateway" 
Jul 13 07:06:55 nickel: (   580.688 @ 0x3823d58 / packetdump.warning) HTTP Status Code: 502 
Jul 13 07:06:55 nickel: (   580.689 @ 0x3823d58 / packetdump.warning) Error: 301 
Jul 13 07:06:55 nickel: (   580.690 @ 0x3823d58 / packetdump.warning) Source: "https://calibre.xxxxxxx.xxx/kobo/ca904fc2074f46d9b87254f455587719/v1/library/sync?Filter=ALL&DownloadUrlFilter=Generic,Android&PrioritizeRecentReads=true" 
Jul 13 07:06:55 nickel: (   580.691 @ 0x3823d58 / packetdump.warning) "<html>^M <head><title>502 Bad Gateway</title></head>^M <body>^M <center><h1>502 Bad Gateway</h1></center>^M <hr><center>nginx/1.24.0</center>^M </body>^M </html>^M " 
Jul 13 07:06:55 nickel: (   580.693 @ 0x2a7a7f8 / ui.warning) virtual bool QDebugSyncErrorFilter::applyFilter(SyncError&) "WebRequestErr" 
Jul 13 07:06:55 nickel: (   580.702 @ 0x3823d58 / sync.debug) virtual void QueuedSyncCommand::cancel() SyncClient(0x32b6970) SyncLibraryCommand(0x70282e40) 
Jul 13 07:06:55 nickel: (   580.703 @ 0x3823d58 / sync.debug) virtual void QueuedSyncCommand::cancel() SyncLibraryCommand(0x70282e40) LibraryNextPageCommand(0x702f4fa8) 
Jul 13 07:06:55 nickel: (   580.704 @ 0x3823d58 / sync.debug) virtual void QueuedSyncCommand::cancel() LibraryNextPageCommand(0x702f4fa8) LibraryParser(0x67f76d90) 
Jul 13 07:06:55 nickel: (   580.705 @ 0x3823d58 / sync.debug) =================== SYNC QUEUE [ SyncClient(0x32b6970) ] ====================