Joplin server with caddy issues

I am trying to spin up joplin server in docker, and then caddy in front with lets encrypt.

my .env
APP_BASE_URL=https://joplin.mydomain.com
APP_PORT=22300

docker run
docker run --env-file .env -p 22300:22300 joplin/server:latest

caddy:
joplin.mydomain.com {
reverse_proxy localhost:22300
}

I can login to the web interface fine at https://joplin.mydomain.com/login but when i try to sync to https://joplin.mydomain.com it never syncs, and I see a lot of this on docker side:

2021-05-25 03:51:51: [error] App: 404: GET /api/items/root:/info.json:/content : Path not found: api/items/root:/info.json:/content
2021-05-25 03:51:52: App: GET /api/items/root:/.sync/version.txt:/content
2021-05-25 03:51:52: [error] App: 404: GET /api/items/root:/.sync/version.txt:/content : Path not found: api/items/root:/.sync/version.txt:/content
2021-05-25 03:51:52: App: GET /api/items/root:/info.json:/content
2021-05-25 03:51:52: [error] App: 404: GET /api/items/root:/info.json:/content : Path not found: api/items/root:/info.json:/content
2021-05-25 03:51:52: App: GET /api/items/root:/.sync/version.txt:/content
2021-05-25 03:51:52: [error] App: 404: GET /api/items/root:/.sync/version.txt:/content : Path not found: api/items/root:/.sync/version.txt:/content
2021-05-25 03:51:53: App: GET /api/items/root:/locks/:/children
2021-05-25 03:51:53: [error] App: 404: GET /api/items/root:/locks/
:/children : Path not found: api/items/root:/locks/:/children
2021-05-25 03:51:53: App: GET /api/items/root:/locks/
:/children
2021-05-25 03:51:53: [error] App: 404: GET /api/items/root:/locks/:/children : Path not found: api/items/root:/locks/:/children
2021-05-25 03:51:57: App: GET /api/items/root:/locks/:/children
2021-05-25 03:51:57: [error] App: 404: GET /api/items/root:/locks/
:/children : Path not found: api/items/root:/locks/:/children
2021-05-25 03:51:57: App: GET /api/items/root:/locks/
:/children
2021-05-25 03:51:57: [error] App: 404: GET /api/items/root:/locks/:/children : Path not found: api/items/root:/locks/:/children
2021-05-25 03:52:04: App: GET /api/items/root:/locks/:/children
2021-05-25 03:52:04: [error] App: 404: GET /api/items/root:/locks/
:/children : Path not found: api/items/root:/locks/:/children
2021-05-25 03:52:04: App: GET /api/items/root:/locks/
:/children

I also just noticed that when I press "check synchronization configuration" I see:

"Not allowed: PUT (code 400)"

What version client are you using?

I ask as I think that the latest tag does not pull down the latest version but one that is four months old. I don't think that the v1.x server will work with a v2.x client. It looks like joplin/server:2.0.4-beta pulls down the latest version (at the time of writing).

https://hub.docker.com/r/joplin/server/tags

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.