I'm currently trying to sync to WebDAV on a container on my home server.
The error I'm getting:
PROPFIND : Unknown error 2 (401): <!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML 2.0//EN"> <html><head> <title>401 Unauthorized</title> </head><body> <h1>Unauthorized</h1> <p>This server could not verify that you are authorized to access the document requested. Either you supplied the wrong credentials (e.g., bad password), or your browser doesn't understand how to supply the credentials required.</p> </body></html> (Code 401)
I can upload to the container using
cadaver
, but for some reason Joplin won't sync. I've re-entered the correct settings, repeatedly, so it's not a typo.
Does anyone have any ideas on what could be causing this? Thanks in advance
Here’s the settings. I’ve tried with/without setting the LOCATION (i.e. /webdav/, in case I’m using the wrong terms), routing host port 80 to port 80 on the container. Not had any success yet.
image
1353×408 39.8 KB
This is what I found in the container logs:
192.168.0.100 - - [09/Mar/2020:16:57:47 +0000] "PROPFIND /pook/ HTTP/1.1" 403 199 "-" "Joplin/1.0"
[Mon Mar 09 16:57:54.321562 2020] [auth_digest:error] [pid 16:tid 1990434172] [client 192.168.0.100:47208] AH01781: client used wrong authentication scheme `Basic': /webdav/
Looking at the
docker-compose.yml
, it seems that I've set the auth type to
Digest
, but then provided the basic auth's credentials. For the time being I've set it to
Basic
and it works fine.