09-29-2019, 10:26 AM | #1 |
Junior Member
Posts: 4
Karma: 10
Join Date: Sep 2019
Device: Kobo Aura One
|
Docker Calibre and KOReader
Hello, I'm having a problem with connecting my kobo aura one running koreader with my calibre server.
This is my setup: Docker swarm. port 8083:8080 #guac port 8081:8081 #webserver After using the guac interface to enable the server it is reachable on <swarm-node>:8081. Since it's running in a swarm, the server is accessible from any node at port 8081. Running for example 192.168.1.244:8081 in the browser works. (from another machine on the same network). Using that under "calibre wireless connection" ultimately results in an info message saying: "Cannot connect to calibre server." On a sort of related side not, I've been trying to figure out where koreader stores its logs but haven't been able to find anything, would probably help a bit if I knew where it was ^^ |
09-29-2019, 11:02 AM | #2 |
Wizard
Posts: 1,675
Karma: 730583
Join Date: Oct 2014
Location: Antwerp
Device: Kobo Aura H2O
|
The crash.log file in KOReader's directory. You'll get a lot still more if you enable debug logging in Advanced settings (in the file manager tools menu).
Note that there are at least two types of calibre server. If I'm not mistaken content server is OPDS and wireless connection is wireless connection, but the fact that you're talking about visiting from the browser suggests OPDS? |
Advert | |
|
09-29-2019, 12:23 PM | #3 | |
Junior Member
Posts: 4
Karma: 10
Join Date: Sep 2019
Device: Kobo Aura One
|
Quote:
Anyways, thank you for the clarification! I'm now trying to get authentication to work, I've created a user under "Sharing over the internet > User accounts", enabled the option requiring authentication under "Sharing over the internet > Main" and entered the credentials under the opds catalog entry in koreader. This setup just returns error 400 (aka bad request). This is how a request looked before entering the credentials: Code:
09/29/19-16:33:47 INFO request { ["url"] = "http://canti:8081/opds", ["method"] = "HEAD", ["headers"] = { ["Authorization"] = "Basic Og==", ["Host"] = "canti" }, ["sink"] = function: 0x2ff49fb0 } 09/29/19-16:33:47 INFO request { ["url"] = "http://canti:8081/opds", ["method"] = "GET", ["headers"] = { ["Authorization"] = "Basic Og==", ["Host"] = "canti" }, ["sink"] = function: 0x2ff4d890 } Code:
09/29/19-16:41:39 INFO request { ["url"] = "http://canti:8081/opds", ["method"] = "HEAD", ["headers"] = { ["Authorization"] = "Basic <snip>", ["Host"] = "canti" }, ["sink"] = function: 0x301b9270 } 09/29/19-16:41:39 INFO request { ["url"] = "http://canti:8081/opds", ["method"] = "GET", ["headers"] = { ["Authorization"] = "Basic <snip>", ["Host"] = "canti" }, ["sink"] = function: 0x301bcb40 } EDIT: and yes I've restarted the container multiple times after editing user and server settings. Last edited by feffe; 09-29-2019 at 12:26 PM. |
|
09-29-2019, 12:25 PM | #4 |
BLAM!
Posts: 13,497
Karma: 26047188
Join Date: Jun 2010
Location: Paris, France
Device: Kindle 2i, 3g, 4, 5w, PW, PW2, PW5; Kobo H2O, Forma, Elipsa, Sage, C2E
|
I vaguely recall issues with authentication & calibre's OPDS servcer, which is why I mentioned yesterday in the thread below yours that it might need to be passwordless.
I don't recall the details, but I'm sure there's at least a couple issues about it on github. |
09-29-2019, 12:30 PM | #5 | |
Wizard
Posts: 1,675
Karma: 730583
Join Date: Oct 2014
Location: Antwerp
Device: Kobo Aura H2O
|
https://github.com/koreader/koreader...ment-420949393
Quote:
|
|
Advert | |
|
09-29-2019, 12:56 PM | #6 | |
Junior Member
Posts: 4
Karma: 10
Join Date: Sep 2019
Device: Kobo Aura One
|
Quote:
In short if anyone finds this later: If you want to use calibre as a content server, use opds. OPDS is accesible as part of the content server. In koreader: Search > OPDS catalog, specify a url to the opds server which is hosted on the same port as content server under "/opds" aka something along the lines of "http://<hostname>:8081/opds". |
|
09-29-2019, 11:02 PM | #7 |
Wizard
Posts: 4,465
Karma: 6900052
Join Date: Dec 2009
Location: The Heart of Texas
Device: Boox Note2, AuraHD, PDA,
|
If you long press on "Local calibre catalog" and select "Edit", you can add the KOReader side of the Content server interface.
Luck; Ken |
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
I successfully ran kpw4 image in docker. | zaoqi | Kindle Developer's Corner | 10 | 07-16-2019 11:00 AM |
Koreader et Calibre | Hakujou | Software | 7 | 07-12-2019 03:18 PM |
Aura ONE send kepub via wifi from calibre to koreader | EddieTheHead | Kobo Reader | 5 | 09-03-2018 10:18 AM |
Calibre -> KOReader wireless sync troubles | Fuzzaddict | KOReader | 3 | 09-13-2017 09:22 PM |
Calibre Shelves in KOReader | bunglegrind | KOReader | 2 | 03-29-2016 09:16 AM |