Repository navigation
Kobo sync is stopping(?) after initialization #2781
Replies: 1 comment 6 replies
|
The What actually stops it is probably the proxy setting. Your device is factory reset, With the setting off, CWNG answers the auth itself (dummy OAuth token) and points |
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Hi there,
i am running CWNG in a docker environment behind a reverse proxy and I am trying to sync my shelf(s) to my Kobo Libra Colour. I never did a sync before, I managed my books with the desktop version of Calibre.
The WEB UI works just fine and there is no issue whatsoever with any of the features and functions.
But i do have a problem with syncing my books to the device.
When I initiate a sync on my Kobo I can see in the logs of the container (nginx log)
(NOTE: i use a user agent switcher, so dont worry about the user agent in this log):
<MYIP> - - [30/Oct/2026:21:14:23 +0100] "GET /books/kobo/d171864d7fc844870fb29bfa88ae986c/v1/initialization HTTP/1.1" 200 12680 "-" "Mozilla/5.0 (Linux; U; Android 2.0; en-us;) AppleWebKit/538.1 (KHTML, like Gecko) Version/4.0 Mobile Safari/538.1 (Kobo Touch 0390/4.46.23852)"when i browse to the very same URL, I get this - so the authentication is working and data is served:

EDIT: did some more troubleshooting
here is some tinteresting news:
When I browse to the given initialization URL I get a json as response with the following content (among many other lines, of course):
(this I can see in the browser window)
library_sync":"https://domain.tld/books/kobo/d171864d7fc844870fb29bfa88ae986c/v1/library/syncbut when I trigger the sync from my Kobo, I get back:
(this i can see in the docker calibre logs)
library_sync":"https://storeapi.kobo.com/v1/library/syncSo i guess, this might be the thing, why there is not sync between the CWNG and the Kobo...the question is: why is the response different?
my compose file:
services: calibre-web-automated: # --> CWA image: ghcr.io/crocodilestick/calibre-web-automated:latest # --> CWNGimage: ghcr.io/new-usemame/calibre-web-nextgen:latest image: ghcr.io/new-usemame/calibre-web-nextgen:v4.1.58 container_name: calibre-web-automated environment: - PUID=33 - PGID=1002 - TZ=Europe/Vienna # - NETWORK_SHARE_MODE=false - NETWORK_SHARE_MODE=true - DESKTOP_COMPAT_MODE=true - CWA_PORT_OVERRIDE=8083 - PROXY_SCRIPT_NAME=/books volumes: - /home/daron/docker/calibre-books/config:/config - /home/daron/docker/calibre-books/ingest:/cwa-book-ingest - /home/daron/docker/library:/calibre-library - /home/daron/docker/calibre-books/plugins:/config/.config/calibre/plugins ports: - 127.0.0.1:8083:8083 restart: unless-stoppedmy nginx part:
location /books/ { proxy_pass http://127.0.0.1:8083/; proxy_set_header Host $http_host; proxy_set_header X-Real-IP $remote_addr; proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; proxy_set_header X-Forwarded-Proto $scheme; }my Kobo eReader.conf (excerpt)
[ApplicationPreferences] SideloadedMode=true [OneStoreServices] api_endpoint=https://domain.tld/books/kobo/d171864d7fc844870fb29bfa88ae986c image_host=https://domain.tld/books image_url_quality_template=https://domain.tld/books/kobo/d171864d7fc844870fb29bfa88ae986c/{ImageId}/{Width}/{Height}/{Quality}/isGreyscale/image.jpg image_url_template=https://domain.tld/books/kobo/d171864d7fc844870fb29bfa88ae986c/{ImageId}/{Width}/{Height}/false/image.jpgmy "basic" settings in CWNG:


Note: tried it with different ports (80, 443, emtpy) - no difference
and
So, is there anything i missed or configured in the wrong way?
Does anyone have an idea or point me in the right direction?
Thank you in advance
PS: i posted this question also in the discussion area on mobilread (https://www.mobileread.com/forums/showthread.php?p=4619589#post4619589), maybe with slightly different keys or ids (tried a few things since yesterday). But either way, the behaviour is the same.
If there will be a solution available on either side (mobilread or here), I will update the other side respectively.
All reactions