Joplin webdav reupload fails

so I deleted everything from webdav and I instructed Joplin to upload everything again. This is how it goes:

2022-09-23 19:48:35: (connections.c.771) fd:12 rqst: GET /path/webdav/info.json HTTP/1.1
2022-09-23 19:48:35: (connections.c.771) fd:12 rqst: authorization: Basic ***
2022-09-23 19:48:35: (connections.c.771) fd:12 rqst: cache-control: no-store
2022-09-23 19:48:35: (connections.c.771) fd:12 rqst: user-agent: Joplin/1.0
2022-09-23 19:48:35: (connections.c.771) fd:12 rqst: accept-encoding: gzip,deflate
2022-09-23 19:48:35: (connections.c.771) fd:12 rqst: accept: /
2022-09-23 19:48:35: (connections.c.771) fd:12 rqst: Host: example.com
2022-09-23 19:48:35: (connections.c.771) fd:12 rqst: Connection: keep-alive
2022-09-23 19:48:35: (connections.c.771) fd:12 rqst:
2022-09-23 19:48:35: (response.c.164) fd:12 resp: HTTP/1.1 404 Not Found
2022-09-23 19:48:35: (response.c.164) fd:12 resp: Content-Type: text/html
2022-09-23 19:48:35: (response.c.164) fd:12 resp: Content-Length: 341
2022-09-23 19:48:35: (response.c.164) fd:12 resp: Date: Fri, 23 Sep 2022 19:48:35 GMT
2022-09-23 19:48:35: (response.c.164) fd:12 resp: Server: lighttpd/1.4.63
2022-09-23 19:48:35: (response.c.164) fd:12 resp:
2022-09-23 19:48:35: (connections.c.771) fd:12 rqst: GET /path/webdav/.sync/version.txt HTTP/1.1
2022-09-23 19:48:35: (connections.c.771) fd:12 rqst: authorization: Basic ***
2022-09-23 19:48:35: (connections.c.771) fd:12 rqst: cache-control: no-store
2022-09-23 19:48:35: (connections.c.771) fd:12 rqst: user-agent: Joplin/1.0
2022-09-23 19:48:35: (connections.c.771) fd:12 rqst: accept-encoding: gzip,deflate
2022-09-23 19:48:35: (connections.c.771) fd:12 rqst: accept: /
2022-09-23 19:48:35: (connections.c.771) fd:12 rqst: Host: example.com
2022-09-23 19:48:35: (connections.c.771) fd:12 rqst: Connection: keep-alive
2022-09-23 19:48:35: (connections.c.771) fd:12 rqst:
2022-09-23 19:48:35: (response.c.164) fd:12 resp: HTTP/1.1 404 Not Found
2022-09-23 19:48:35: (response.c.164) fd:12 resp: Content-Type: text/html
2022-09-23 19:48:35: (response.c.164) fd:12 resp: Content-Length: 341
2022-09-23 19:48:35: (response.c.164) fd:12 resp: Date: Fri, 23 Sep 2022 19:48:35 GMT
2022-09-23 19:48:35: (response.c.164) fd:12 resp: Server: lighttpd/1.4.63
2022-09-23 19:48:35: (response.c.164) fd:12 resp:
2022-09-23 19:48:35: (connections.c.771) fd:12 rqst: GET /path/webdav/info.json HTTP/1.1
2022-09-23 19:48:35: (connections.c.771) fd:12 rqst: authorization: Basic ***
2022-09-23 19:48:35: (connections.c.771) fd:12 rqst: cache-control: no-store
2022-09-23 19:48:35: (connections.c.771) fd:12 rqst: user-agent: Joplin/1.0
2022-09-23 19:48:35: (connections.c.771) fd:12 rqst: accept-encoding: gzip,deflate
2022-09-23 19:48:35: (connections.c.771) fd:12 rqst: accept: /
2022-09-23 19:48:35: (connections.c.771) fd:12 rqst: Host: example.com
2022-09-23 19:48:35: (connections.c.771) fd:12 rqst: Connection: keep-alive
2022-09-23 19:48:35: (connections.c.771) fd:12 rqst:
2022-09-23 19:48:35: (response.c.164) fd:12 resp: HTTP/1.1 404 Not Found
2022-09-23 19:48:35: (response.c.164) fd:12 resp: Content-Type: text/html
2022-09-23 19:48:35: (response.c.164) fd:12 resp: Content-Length: 341
2022-09-23 19:48:35: (response.c.164) fd:12 resp: Date: Fri, 23 Sep 2022 19:48:35 GMT
2022-09-23 19:48:35: (response.c.164) fd:12 resp: Server: lighttpd/1.4.63
2022-09-23 19:48:35: (response.c.164) fd:12 resp:
2022-09-23 19:48:35: (connections.c.771) fd:12 rqst: GET /path/webdav/.sync/version.txt HTTP/1.1
2022-09-23 19:48:35: (connections.c.771) fd:12 rqst: authorization: Basic ***
2022-09-23 19:48:35: (connections.c.771) fd:12 rqst: cache-control: no-store
2022-09-23 19:48:35: (connections.c.771) fd:12 rqst: user-agent: Joplin/1.0
2022-09-23 19:48:35: (connections.c.771) fd:12 rqst: accept-encoding: gzip,deflate
2022-09-23 19:48:35: (connections.c.771) fd:12 rqst: accept: /
2022-09-23 19:48:35: (connections.c.771) fd:12 rqst: Host: example.com
2022-09-23 19:48:35: (connections.c.771) fd:12 rqst: Connection: keep-alive
2022-09-23 19:48:35: (connections.c.771) fd:12 rqst:
2022-09-23 19:48:35: (response.c.164) fd:12 resp: HTTP/1.1 404 Not Found
2022-09-23 19:48:35: (response.c.164) fd:12 resp: Content-Type: text/html
2022-09-23 19:48:35: (response.c.164) fd:12 resp: Content-Length: 341
2022-09-23 19:48:35: (response.c.164) fd:12 resp: Date: Fri, 23 Sep 2022 19:48:35 GMT
2022-09-23 19:48:35: (response.c.164) fd:12 resp: Server: lighttpd/1.4.63
2022-09-23 19:48:35: (response.c.164) fd:12 resp:
2022-09-23 19:48:35: (connections.c.771) fd:12 rqst: MKCOL /path/webdav/locks/ HTTP/1.1
2022-09-23 19:48:35: (connections.c.771) fd:12 rqst: authorization: Basic ***
2022-09-23 19:48:35: (connections.c.771) fd:12 rqst: cache-control: no-store
2022-09-23 19:48:35: (connections.c.771) fd:12 rqst: if-none-match: JoplinIgnore-67444
2022-09-23 19:48:35: (connections.c.771) fd:12 rqst: user-agent: Joplin/1.0
2022-09-23 19:48:35: (connections.c.771) fd:12 rqst: accept-encoding: gzip,deflate
2022-09-23 19:48:35: (connections.c.771) fd:12 rqst: accept: /
2022-09-23 19:48:35: (connections.c.771) fd:12 rqst: Host: example.com
2022-09-23 19:48:35: (connections.c.771) fd:12 rqst: Connection: keep-alive
2022-09-23 19:48:35: (connections.c.771) fd:12 rqst: Content-Length: 0
2022-09-23 19:48:35: (connections.c.771) fd:12 rqst:
2022-09-23 19:48:35: (response.c.164) fd:12 resp: HTTP/1.1 405 Method Not Allowed
2022-09-23 19:48:35: (response.c.164) fd:12 resp: Content-Type: text/html
2022-09-23 19:48:35: (response.c.164) fd:12 resp: Content-Length: 359
2022-09-23 19:48:35: (response.c.164) fd:12 resp: Date: Fri, 23 Sep 2022 19:48:35 GMT
2022-09-23 19:48:35: (response.c.164) fd:12 resp: Server: lighttpd/1.4.63
2022-09-23 19:48:35: (response.c.164) fd:12 resp:
2022-09-23 19:48:35: (connections.c.771) fd:12 rqst: MKCOL /path/webdav/temp/ HTTP/1.1
2022-09-23 19:48:35: (connections.c.771) fd:12 rqst: authorization: Basic ***
2022-09-23 19:48:35: (connections.c.771) fd:12 rqst: cache-control: no-store
2022-09-23 19:48:35: (connections.c.771) fd:12 rqst: if-none-match: JoplinIgnore-88398
2022-09-23 19:48:35: (connections.c.771) fd:12 rqst: user-agent: Joplin/1.0
2022-09-23 19:48:35: (connections.c.771) fd:12 rqst: accept-encoding: gzip,deflate
2022-09-23 19:48:35: (connections.c.771) fd:12 rqst: accept: /
2022-09-23 19:48:35: (connections.c.771) fd:12 rqst: Host: example.com
2022-09-23 19:48:35: (connections.c.771) fd:12 rqst: Connection: keep-alive
2022-09-23 19:48:35: (connections.c.771) fd:12 rqst: Content-Length: 0
2022-09-23 19:48:35: (connections.c.771) fd:12 rqst:
2022-09-23 19:48:35: (response.c.164) fd:12 resp: HTTP/1.1 405 Method Not Allowed
2022-09-23 19:48:35: (response.c.164) fd:12 resp: Content-Type: text/html
2022-09-23 19:48:35: (response.c.164) fd:12 resp: Content-Length: 359
2022-09-23 19:48:35: (response.c.164) fd:12 resp: Date: Fri, 23 Sep 2022 19:48:35 GMT
2022-09-23 19:48:35: (response.c.164) fd:12 resp: Server: lighttpd/1.4.63
2022-09-23 19:48:35: (response.c.164) fd:12 resp:
2022-09-23 19:48:35: (connections.c.771) fd:12 rqst: PROPFIND /path/webdav/locks/ HTTP/1.1
2022-09-23 19:48:35: (connections.c.771) fd:12 rqst: depth: 1
2022-09-23 19:48:35: (connections.c.771) fd:12 rqst: authorization: Basic ***
2022-09-23 19:48:35: (connections.c.771) fd:12 rqst: content-type: text/xml
2022-09-23 19:48:35: (connections.c.771) fd:12 rqst: cache-control: no-store
2022-09-23 19:48:35: (connections.c.771) fd:12 rqst: if-none-match: JoplinIgnore-62175
2022-09-23 19:48:35: (connections.c.771) fd:12 rqst: user-agent: Joplin/1.0
2022-09-23 19:48:35: (connections.c.771) fd:12 rqst: content-length: 190
2022-09-23 19:48:35: (connections.c.771) fd:12 rqst: accept-encoding: gzip,deflate
2022-09-23 19:48:35: (connections.c.771) fd:12 rqst: accept: /
2022-09-23 19:48:35: (connections.c.771) fd:12 rqst: Host: example.com
2022-09-23 19:48:35: (connections.c.771) fd:12 rqst: Connection: keep-alive
2022-09-23 19:48:35: (connections.c.771) fd:12 rqst:
2022-09-23 19:48:35: (response.c.164) fd:12 resp: HTTP/1.1 207 Multi-status
2022-09-23 19:48:35: (response.c.164) fd:12 resp: Content-Type: application/xml; charset="utf-8"
2022-09-23 19:48:35: (response.c.164) fd:12 resp: Content-Length: 447
2022-09-23 19:48:35: (response.c.164) fd:12 resp: Date: Fri, 23 Sep 2022 19:48:35 GMT
2022-09-23 19:48:35: (response.c.164) fd:12 resp: Server: lighttpd/1.4.63
2022-09-23 19:48:35: (response.c.164) fd:12 resp:
2022-09-23 19:48:35: (connections.c.771) fd:12 rqst: PUT /path/webdav/temp/timeCheck348280.txt HTTP/1.1
2022-09-23 19:48:35: (connections.c.771) fd:12 rqst: authorization: Basic ***
2022-09-23 19:48:35: (connections.c.771) fd:12 rqst: content-type: text/plain
2022-09-23 19:48:35: (connections.c.771) fd:12 rqst: cache-control: no-store
2022-09-23 19:48:35: (connections.c.771) fd:12 rqst: if-none-match: JoplinIgnore-2285
2022-09-23 19:48:35: (connections.c.771) fd:12 rqst: user-agent: Joplin/1.0
2022-09-23 19:48:35: (connections.c.771) fd:12 rqst: content-length: 9
2022-09-23 19:48:35: (connections.c.771) fd:12 rqst: accept-encoding: gzip,deflate
2022-09-23 19:48:35: (connections.c.771) fd:12 rqst: accept: /
2022-09-23 19:48:35: (connections.c.771) fd:12 rqst: Host: example.com
2022-09-23 19:48:35: (connections.c.771) fd:12 rqst: Connection: keep-alive
2022-09-23 19:48:35: (connections.c.771) fd:12 rqst:
2022-09-23 19:48:35: (response.c.164) fd:12 resp: HTTP/1.1 412 Precondition Failed
2022-09-23 19:48:35: (response.c.164) fd:12 resp: Content-Type: text/html
2022-09-23 19:48:35: (response.c.164) fd:12 resp: Content-Length: 361
2022-09-23 19:48:35: (response.c.164) fd:12 resp: Date: Fri, 23 Sep 2022 19:48:35 GMT
2022-09-23 19:48:35: (response.c.164) fd:12 resp: Server: lighttpd/1.4.63
2022-09-23 19:48:35: (response.c.164) fd:12 resp:
2022-09-23 19:48:39: (connections.c.771) fd:12 rqst: PUT /path/webdav/temp/timeCheck348280.txt HTTP/1.1
2022-09-23 19:48:39: (connections.c.771) fd:12 rqst: authorization: Basic ***
2022-09-23 19:48:39: (connections.c.771) fd:12 rqst: content-type: text/plain
2022-09-23 19:48:39: (connections.c.771) fd:12 rqst: cache-control: no-store
2022-09-23 19:48:39: (connections.c.771) fd:12 rqst: if-none-match: JoplinIgnore-7137
2022-09-23 19:48:39: (connections.c.771) fd:12 rqst: user-agent: Joplin/1.0
2022-09-23 19:48:39: (connections.c.771) fd:12 rqst: content-length: 9
2022-09-23 19:48:39: (connections.c.771) fd:12 rqst: accept-encoding: gzip,deflate
2022-09-23 19:48:39: (connections.c.771) fd:12 rqst: accept: /
2022-09-23 19:48:39: (connections.c.771) fd:12 rqst: Host: example.com
2022-09-23 19:48:39: (connections.c.771) fd:12 rqst: Connection: keep-alive
2022-09-23 19:48:39: (connections.c.771) fd:12 rqst:
2022-09-23 19:48:39: (response.c.164) fd:12 resp: HTTP/1.1 412 Precondition Failed
2022-09-23 19:48:39: (response.c.164) fd:12 resp: Content-Type: text/html
2022-09-23 19:48:39: (response.c.164) fd:12 resp: Content-Length: 361
2022-09-23 19:48:39: (response.c.164) fd:12 resp: Date: Fri, 23 Sep 2022 19:48:39 GMT
2022-09-23 19:48:39: (response.c.164) fd:12 resp: Server: lighttpd/1.4.63
2022-09-23 19:48:39: (response.c.164) fd:12 resp:
2022-09-23 19:48:46: (connections.c.771) fd:12 rqst: PUT /path/webdav/temp/timeCheck348280.txt HTTP/1.1
2022-09-23 19:48:46: (connections.c.771) fd:12 rqst: authorization: Basic ***
2022-09-23 19:48:46: (connections.c.771) fd:12 rqst: content-type: text/plain
2022-09-23 19:48:46: (connections.c.771) fd:12 rqst: cache-control: no-store
2022-09-23 19:48:46: (connections.c.771) fd:12 rqst: if-none-match: JoplinIgnore-61152
2022-09-23 19:48:46: (connections.c.771) fd:12 rqst: user-agent: Joplin/1.0
2022-09-23 19:48:46: (connections.c.771) fd:12 rqst: content-length: 9
2022-09-23 19:48:46: (connections.c.771) fd:12 rqst: accept-encoding: gzip,deflate
2022-09-23 19:48:46: (connections.c.771) fd:12 rqst: accept: /
2022-09-23 19:48:46: (connections.c.771) fd:12 rqst: Host: example.com
2022-09-23 19:48:46: (connections.c.771) fd:12 rqst: Connection: keep-alive
2022-09-23 19:48:46: (connections.c.771) fd:12 rqst:
2022-09-23 19:48:46: (response.c.164) fd:12 resp: HTTP/1.1 412 Precondition Failed
2022-09-23 19:48:46: (response.c.164) fd:12 resp: Content-Type: text/html
2022-09-23 19:48:46: (response.c.164) fd:12 resp: Content-Length: 361
2022-09-23 19:48:46: (response.c.164) fd:12 resp: Date: Fri, 23 Sep 2022 19:48:46 GMT
2022-09-23 19:48:46: (response.c.164) fd:12 resp: Server: lighttpd/1.4.63
2022-09-23 19:48:46: (response.c.164) fd:12 resp:
2022-09-23 19:48:56: (connections.c.771) fd:12 rqst: PUT /path/webdav/temp/timeCheck348280.txt HTTP/1.1
2022-09-23 19:48:56: (connections.c.771) fd:12 rqst: authorization: Basic ***
2022-09-23 19:48:56: (connections.c.771) fd:12 rqst: content-type: text/plain
2022-09-23 19:48:56: (connections.c.771) fd:12 rqst: cache-control: no-store
2022-09-23 19:48:56: (connections.c.771) fd:12 rqst: if-none-match: JoplinIgnore-549
2022-09-23 19:48:56: (connections.c.771) fd:12 rqst: user-agent: Joplin/1.0
2022-09-23 19:48:56: (connections.c.771) fd:12 rqst: content-length: 9
2022-09-23 19:48:56: (connections.c.771) fd:12 rqst: accept-encoding: gzip,deflate
2022-09-23 19:48:56: (connections.c.771) fd:12 rqst: accept: /
2022-09-23 19:48:56: (connections.c.771) fd:12 rqst: Host: example.com
2022-09-23 19:48:56: (connections.c.771) fd:12 rqst: Connection: keep-alive
2022-09-23 19:48:56: (connections.c.771) fd:12 rqst:
2022-09-23 19:48:56: (response.c.164) fd:12 resp: HTTP/1.1 412 Precondition Failed
2022-09-23 19:48:56: (response.c.164) fd:12 resp: Content-Type: text/html
2022-09-23 19:48:56: (response.c.164) fd:12 resp: Content-Length: 361
2022-09-23 19:48:56: (response.c.164) fd:12 resp: Date: Fri, 23 Sep 2022 19:48:56 GMT
2022-09-23 19:48:56: (response.c.164) fd:12 resp: Server: lighttpd/1.4.63
2022-09-23 19:48:56: (response.c.164) fd:12 resp:
2022-09-23 19:48:56: (connections.c.771) fd:12 rqst: PUT /path/webdav/locks/2_1_0fa46b91eefd407f9b9cd966a9fc65ef.json HTTP/1.1
2022-09-23 19:48:56: (connections.c.771) fd:12 rqst: authorization: Basic ***
2022-09-23 19:48:56: (connections.c.771) fd:12 rqst: content-type: text/plain
2022-09-23 19:48:56: (connections.c.771) fd:12 rqst: cache-control: no-store
2022-09-23 19:48:56: (connections.c.771) fd:12 rqst: if-none-match: JoplinIgnore-83891
2022-09-23 19:48:56: (connections.c.771) fd:12 rqst: user-agent: Joplin/1.0
2022-09-23 19:48:56: (connections.c.771) fd:12 rqst: content-length: 71
2022-09-23 19:48:56: (connections.c.771) fd:12 rqst: accept-encoding: gzip,deflate
2022-09-23 19:48:56: (connections.c.771) fd:12 rqst: accept: /
2022-09-23 19:48:56: (connections.c.771) fd:12 rqst: Host: example.com
2022-09-23 19:48:56: (connections.c.771) fd:12 rqst: Connection: keep-alive
2022-09-23 19:48:56: (connections.c.771) fd:12 rqst:
2022-09-23 19:48:56: (response.c.164) fd:12 resp: HTTP/1.1 412 Precondition Failed
2022-09-23 19:48:56: (response.c.164) fd:12 resp: Content-Type: text/html
2022-09-23 19:48:56: (response.c.164) fd:12 resp: Content-Length: 361
2022-09-23 19:48:56: (response.c.164) fd:12 resp: Date: Fri, 23 Sep 2022 19:48:56 GMT
2022-09-23 19:48:56: (response.c.164) fd:12 resp: Server: lighttpd/1.4.63
2022-09-23 19:48:56: (response.c.164) fd:12 resp:
2022-09-23 19:49:01: (connections.c.771) fd:12 rqst: PUT /path/webdav/locks/2_1_0fa46b91eefd407f9b9cd966a9fc65ef.json HTTP/1.1
2022-09-23 19:49:01: (connections.c.771) fd:12 rqst: authorization: Basic ***
2022-09-23 19:49:01: (connections.c.771) fd:12 rqst: content-type: text/plain
2022-09-23 19:49:01: (connections.c.771) fd:12 rqst: cache-control: no-store
2022-09-23 19:49:01: (connections.c.771) fd:12 rqst: if-none-match: JoplinIgnore-9115
2022-09-23 19:49:01: (connections.c.771) fd:12 rqst: user-agent: Joplin/1.0
2022-09-23 19:49:01: (connections.c.771) fd:12 rqst: content-length: 71
2022-09-23 19:49:01: (connections.c.771) fd:12 rqst: accept-encoding: gzip,deflate
2022-09-23 19:49:01: (connections.c.771) fd:12 rqst: accept: /
2022-09-23 19:49:01: (connections.c.771) fd:12 rqst: Host: example.com
2022-09-23 19:49:01: (connections.c.771) fd:12 rqst: Connection: keep-alive
2022-09-23 19:49:01: (connections.c.771) fd:12 rqst:
2022-09-23 19:49:01: (response.c.164) fd:12 resp: HTTP/1.1 412 Precondition Failed
2022-09-23 19:49:01: (response.c.164) fd:12 resp: Content-Type: text/html
2022-09-23 19:49:01: (response.c.164) fd:12 resp: Content-Length: 361
2022-09-23 19:49:01: (response.c.164) fd:12 resp: Date: Fri, 23 Sep 2022 19:49:01 GMT
2022-09-23 19:49:01: (response.c.164) fd:12 resp: Server: lighttpd/1.4.63
2022-09-23 19:49:01: (response.c.164) fd:12 resp:
2022-09-23 19:49:08: (connections.c.771) fd:12 rqst: PUT /path/webdav/locks/2_1_0fa46b91eefd407f9b9cd966a9fc65ef.json HTTP/1.1
2022-09-23 19:49:08: (connections.c.771) fd:12 rqst: authorization: Basic ***
2022-09-23 19:49:08: (connections.c.771) fd:12 rqst: content-type: text/plain
2022-09-23 19:49:08: (connections.c.771) fd:12 rqst: cache-control: no-store
2022-09-23 19:49:08: (connections.c.771) fd:12 rqst: if-none-match: JoplinIgnore-90928
2022-09-23 19:49:08: (connections.c.771) fd:12 rqst: user-agent: Joplin/1.0
2022-09-23 19:49:08: (connections.c.771) fd:12 rqst: content-length: 71
2022-09-23 19:49:08: (connections.c.771) fd:12 rqst: accept-encoding: gzip,deflate
2022-09-23 19:49:08: (connections.c.771) fd:12 rqst: accept: /
2022-09-23 19:49:08: (connections.c.771) fd:12 rqst: Host: example.com
2022-09-23 19:49:08: (connections.c.771) fd:12 rqst: Connection: keep-alive
2022-09-23 19:49:08: (connections.c.771) fd:12 rqst:
2022-09-23 19:49:08: (response.c.164) fd:12 resp: HTTP/1.1 412 Precondition Failed
2022-09-23 19:49:08: (response.c.164) fd:12 resp: Content-Type: text/html
2022-09-23 19:49:08: (response.c.164) fd:12 resp: Content-Length: 361
2022-09-23 19:49:08: (response.c.164) fd:12 resp: Date: Fri, 23 Sep 2022 19:49:08 GMT
2022-09-23 19:49:08: (response.c.164) fd:12 resp: Server: lighttpd/1.4.63
2022-09-23 19:49:08: (response.c.164) fd:12 resp:
2022-09-23 19:49:18: (connections.c.771) fd:12 rqst: PUT /path/webdav/locks/2_1_0fa46b91eefd407f9b9cd966a9fc65ef.json HTTP/1.1
2022-09-23 19:49:18: (connections.c.771) fd:12 rqst: authorization: Basic ***
2022-09-23 19:49:18: (connections.c.771) fd:12 rqst: content-type: text/plain
2022-09-23 19:49:18: (connections.c.771) fd:12 rqst: cache-control: no-store
2022-09-23 19:49:18: (connections.c.771) fd:12 rqst: if-none-match: JoplinIgnore-90245
2022-09-23 19:49:18: (connections.c.771) fd:12 rqst: user-agent: Joplin/1.0
2022-09-23 19:49:18: (connections.c.771) fd:12 rqst: content-length: 71
2022-09-23 19:49:18: (connections.c.771) fd:12 rqst: accept-encoding: gzip,deflate
2022-09-23 19:49:18: (connections.c.771) fd:12 rqst: accept: /
2022-09-23 19:49:18: (connections.c.771) fd:12 rqst: Host: example.com
2022-09-23 19:49:18: (connections.c.771) fd:12 rqst: Connection: keep-alive
2022-09-23 19:49:18: (connections.c.771) fd:12 rqst:
2022-09-23 19:49:18: (response.c.164) fd:12 resp: HTTP/1.1 412 Precondition Failed
2022-09-23 19:49:18: (response.c.164) fd:12 resp: Content-Type: text/html
2022-09-23 19:49:18: (response.c.164) fd:12 resp: Content-Length: 361
2022-09-23 19:49:18: (response.c.164) fd:12 resp: Date: Fri, 23 Sep 2022 19:49:18 GMT
2022-09-23 19:49:18: (response.c.164) fd:12 resp: Server: lighttpd/1.4.63
2022-09-23 19:49:18: (response.c.164) fd:12 resp:
2022-09-23 19:49:18: (connections.c.771) fd:12 rqst: DELETE /path/webdav/locks/2_1_0fa46b91eefd407f9b9cd966a9fc65ef.json HTTP/1.1
2022-09-23 19:49:18: (connections.c.771) fd:12 rqst: authorization: Basic ***
2022-09-23 19:49:18: (connections.c.771) fd:12 rqst: cache-control: no-store
2022-09-23 19:49:18: (connections.c.771) fd:12 rqst: if-none-match: JoplinIgnore-68055
2022-09-23 19:49:18: (connections.c.771) fd:12 rqst: user-agent: Joplin/1.0
2022-09-23 19:49:18: (connections.c.771) fd:12 rqst: accept-encoding: gzip,deflate
2022-09-23 19:49:18: (connections.c.771) fd:12 rqst: accept: /
2022-09-23 19:49:18: (connections.c.771) fd:12 rqst: content-length: 0
2022-09-23 19:49:18: (connections.c.771) fd:12 rqst: Host: example.com
2022-09-23 19:49:18: (connections.c.771) fd:12 rqst: Connection: keep-alive
2022-09-23 19:49:18: (connections.c.771) fd:12 rqst:
2022-09-23 19:49:18: (response.c.164) fd:12 resp: HTTP/1.1 404 Not Found
2022-09-23 19:49:18: (response.c.164) fd:12 resp: Content-Type: text/html
2022-09-23 19:49:18: (response.c.164) fd:12 resp: Content-Length: 341
2022-09-23 19:49:18: (response.c.164) fd:12 resp: Date: Fri, 23 Sep 2022 19:49:18 GMT
2022-09-23 19:49:18: (response.c.164) fd:12 resp: Server: lighttpd/1.4.63
2022-09-23 19:49:18: (response.c.164) fd:12 resp:

how do I make it work?
22.04 ubuntu lts with Joplin 2.8.8
the server is an ubuntu lts with lighttpd 1.4.63

I think the issue may be here:
request:

2022-09-23 19:48:35: (connections.c.771) fd:12 rqst: MKCOL /path/webdav/locks/ HTTP/1.1

and response

2022-09-23 19:48:35: (response.c.164) fd:12 resp: HTTP/1.1 405 Method Not Allowed

Maybe something's wrong with your server setup?

maybe... I can't find anything that prohibits mkcol

I've just seen cadaver to use mkcol without an error

mkcol is an alias for mkdir, and my webdav replies with 405 if the directory already exists

Yes, you're right, that error was a red herring. Looks like it's expected to get 405 if a dir already exists.

Found this on github:

This issue was fixed in lighttpd 1.4.64 (and would have been fixed sooner if reported to lighttpd developers sooner).

can you please provide a link for the github issue? I'm trying to make ubuntu cherrypick the bugfix for me. Thank you in advance.

The link I posted above is all I have.

UPD

I suspect it might be this commit

Bug #1990699 “lighttpd webdav litmus test fails” : Bugs : lighttpd package : Ubuntu fyi

I think the failing litmus test is some other issue, unrelated to this btw.

ok, in that case maybe you can help me clarify towards the ubuntu maintainers what we're expecting behaviourwise from lighttpd webdav

There are some details here trying to use Joplin Android App with lighttpd - Lighttpd - lighty labs

This is the essence of it as far as I understood

Does the resource in question exist? If the resource does not exist, and If-None-Match is sent spuriously by Joplin, there might be a logic bug in the lighttpd test with If-None-Match

And this as well

I confirmed that the patch above in #message-10194 fixes the 412 Precondition Failed response that lighttpd was returning to the random If-None-Match sent by Joplin for a non-existent resource. The patch is part of lighttpd 1.4.64, released Jan 2022.

1 Like

seems like I'm going to use rclone webdav server because it just works like a charm