-
WebDAV 数据同步失败 HTTP 413
2024-03-06 15:24改成了 50M。同步时现在报这个错,(siyuan.log)
E 2024/03/06 15:19:45 webdav.go:89: upload object [main/siyuan/repo/objects/fb/fead01d01eb04b488d32a3428e4872fade1dd1] failed: Put "https://yuanclouds.com/dav/main/siyuan/repo/objects/fb/fead01d01eb04b488d32a3428e4872fade1dd1": context deadline exceeded (Client.Timeout exceeded while awaiting headers) E 2024/03/06 15:19:45 sync.go:1420: upload chunks failed: Put "https://yuanclouds.com/dav/main/siyuan/repo/objects/fb/fead01d01eb04b488d32a3428e4872fade1dd1": context deadline exceeded (Client.Timeout exceeded while awaiting headers) E 2024/03/06 15:19:45 sync.go:201: upload cloud failed: Put "https://yuanclouds.com/dav/main/siyuan/repo/objects/fb/fead01d01eb04b488d32a3428e4872fade1dd1": context deadline exceeded (Client.Timeout exceeded while awaiting headers)
-
WebDAV 数据同步失败 HTTP 413
2024-03-06 14:43kernel 日志我没找到。我再跑了下同步,然后服务端显示如下日志:
[GIN] 2024/03/06 - 06:32:45 | 404 | 1.049144ms | 122.193.144.148 | GET "/dav/main/siyuan/repo/lock-sync"
[GIN] 2024/03/06 - 06:32:45 | 207 | 25.74742ms | 122.193.144.148 | PROPFIND "/dav/main/siyuan/repo/objects/"
[GIN] 2024/03/06 - 06:32:45 | 201 | 1.025277ms | 122.193.144.148 | PUT "/dav/main/siyuan/repo/lock-sync"
[GIN] 2024/03/06 - 06:32:47 | 200 | 618.481µs | 122.193.144.148 | GET "/dav/main/siyuan/repo/refs/latest"
[GIN] 2024/03/06 - 06:32:47 | 200 | 860.737µs | 122.193.144.148 | GET "/dav/main/siyuan/repo/indexes/8fb8332041c62fe80a70dbdc6c95d7bb3e55c120"
[GIN] 2024/03/06 - 06:32:47 | 207 | 22.082192ms | 122.193.144.148 | PROPFIND "/dav/main/siyuan/repo/objects/"
[GIN] 2024/03/06 - 06:32:47 | 207 | 16.633438ms | 122.193.144.148 | PROPFIND "/dav/main/siyuan/repo/objects/"
[GIN] 2024/03/06 - 06:32:48 | 207 | 18.788231ms | 122.193.144.148 | PROPFIND "/dav/main/siyuan/repo/objects/"
[GIN] 2024/03/06 - 06:32:48 | 207 | 67.078096ms | 122.193.144.148 | PROPFIND "/dav/main/siyuan/repo/objects/"
[GIN] 2024/03/06 - 06:32:48 | 207 | 51.854576ms | 122.193.144.148 | PROPFIND "/dav/main/siyuan/repo/objects/"
[GIN] 2024/03/06 - 06:32:48 | 207 | 21.457725ms | 122.193.144.148 | PROPFIND "/dav/main/siyuan/repo/objects/"
[GIN] 2024/03/06 - 06:32:48 | 207 | 13.501055ms | 122.193.144.148 | PROPFIND "/dav/main/siyuan/repo/objects/"
[GIN] 2024/03/06 - 06:32:48 | 207 | 18.930952ms | 122.193.144.148 | PROPFIND "/dav/main/siyuan/repo/objects/"
[GIN] 2024/03/06 - 06:32:51 | 201 | 8.208041ms | 122.193.144.148 | PUT "/dav/main/siyuan/repo/objects/f1/61cf4a622bd58a2e4f560ead0332f706f9147e"
[GIN] 2024/03/06 - 06:32:53 | 201 | 4.748126ms | 122.193.144.148 | PUT "/dav/main/siyuan/repo/objects/56/f7cda1186e3d67b63c18c3b673991709aa56c8"
[GIN] 2024/03/06 - 06:32:54 | 201 | 5.23452ms | 122.193.144.148 | PUT "/dav/main/siyuan/repo/objects/a0/7f024c7e74ed9e2bc92e41f829defa513c35d8"
[GIN] 2024/03/06 - 06:32:54 | 201 | 4.806ms | 122.193.144.148 | PUT "/dav/main/siyuan/repo/objects/6d/994f945335cf78901b5dfd992c352cb7667c3c"
[GIN] 2024/03/06 - 06:32:55 | 207 | 9.542678ms | 122.193.144.148 | PROPFIND "/dav/main/siyuan/repo/objects/"
[GIN] 2024/03/06 - 06:32:55 | 201 | 7.292342ms | 122.193.144.148 | PUT "/dav/main/siyuan/repo/objects/fa/0b64691b1a4861d88a72ae6a6c95dbb72cd94a"
[GIN] 2024/03/06 - 06:32:56 | 207 | 13.695676ms | 122.193.144.148 | PROPFIND "/dav/main/siyuan/repo/objects/"
[GIN] 2024/03/06 - 06:32:57 | 207 | 22.245977ms | 122.193.144.148 | PROPFIND "/dav/main/siyuan/repo/objects/"
[GIN] 2024/03/06 - 06:32:57 | 204 | 398.187µs | 122.193.144.148 | DELETE "/dav/main/siyuan/repo/lock-sync"
[GIN] 2024/03/06 - 06:32:58 | 201 | 5.587148ms | 122.193.144.148 | PUT "/dav/main/siyuan/repo/objects/34/0f75908bc71a1ac258f58dbab8ee9b373c5130"加粗的四行足够说明问题了,正如你说的,会创建 lock,但是上传还没有结束前,就把 lock 给删了,导致最后一条上传失败
-
WebDAV 数据同步失败 HTTP 413
2024-03-06 14:16.... 你这个路径,我在 windows 的 temp 目录找了,没有找到。在 siyuan 的安装目录下也找了,没有。
-
WebDAV 数据同步失败 HTTP 413
2024-03-06 13:04内核日志在哪里呢?
这个问题是在升级到 3.0.x 版本后出现的,以前在 2.x.x 低的版本的会出现,后来就没有出现。