同步失败老问题还在出现,具体表现为上传写入时找不到 lock, 我给你把服务端的日志也贴出来
运行版本:3.0.2,
运行环境:Windows
症状:随机会有一些 objects 无法上传写入,导致同步失败
“Write main/siyuan/repo/objects/8c/bfe0aa0e32bfb265e2fa0f521e193781a60d62: 413 (Provider: WebDAV) (2024-03-06 11:27:04)”
服务端日志:
[GIN] 2024/03/06 - 03:26:55 | 404 | 1.248049ms | 122.193.144.148 | GET "/dav/main/siyuan/repo/lock-sync"
[GIN] 2024/03/06 - 03:26:55 | 207 | 16.055204ms | 122.193.144.148 | PROPFIND "/dav/main/siyuan/repo/objects/"
[GIN] 2024/03/06 - 03:26:55 | 201 | 2.119812ms | 122.193.144.148 | PUT "/dav/main/siyuan/repo/lock-sync"
[GIN] 2024/03/06 - 03:26:56 | 200 | 519.361µs | 122.193.144.148 | GET "/dav/main/siyuan/repo/refs/latest"
[GIN] 2024/03/06 - 03:26:56 | 200 | 664.871µs | 122.193.144.148 | GET "/dav/main/siyuan/repo/indexes/b872f798d65b878eb09e88fa7716982466e6b14d"
[GIN] 2024/03/06 - 03:26:56 | 207 | 18.784831ms | 122.193.144.148 | PROPFIND "/dav/main/siyuan/repo/objects/"
[GIN] 2024/03/06 - 03:26:56 | 207 | 11.467357ms | 122.193.144.148 | PROPFIND "/dav/main/siyuan/repo/objects/"
[GIN] 2024/03/06 - 03:26:56 | 207 | 15.662101ms | 122.193.144.148 | PROPFIND "/dav/main/siyuan/repo/objects/"
[GIN] 2024/03/06 - 03:26:57 | 207 | 15.380232ms | 122.193.144.148 | PROPFIND "/dav/main/siyuan/repo/objects/"
[GIN] 2024/03/06 - 03:26:57 | 207 | 22.821211ms | 122.193.144.148 | PROPFIND "/dav/main/siyuan/repo/objects/"
[GIN] 2024/03/06 - 03:26:58 | 207 | 22.103092ms | 122.193.144.148 | PROPFIND "/dav/main/siyuan/repo/objects/"
[GIN] 2024/03/06 - 03:26:58 | 207 | 16.485751ms | 122.193.144.148 | PROPFIND "/dav/main/siyuan/repo/objects/"
[GIN] 2024/03/06 - 03:26:59 | 207 | 11.95759ms | 122.193.144.148 | PROPFIND "/dav/main/siyuan/repo/objects/"
[GIN] 2024/03/06 - 03:26:59 | 201 | 452.36µs | 122.193.144.148 | PUT "/dav/main/siyuan/repo/objects/d3/f9f85f0db25fb278d06113ff6e6fc98a0aea63"
[GIN] 2024/03/06 - 03:27:00 | 201 | 4.529149ms | 122.193.144.148 | PUT "/dav/main/siyuan/repo/objects/08/04454059c7f9bed2b989e1a5a4685310fc1160"
[GIN] 2024/03/06 - 03:27:00 | 201 | 4.488382ms | 122.193.144.148 | PUT "/dav/main/siyuan/repo/objects/56/f7cda1186e3d67b63c18c3b673991709aa56c8"
[GIN] 2024/03/06 - 03:27:01 | 201 | 3.695357ms | 122.193.144.148 | PUT "/dav/main/siyuan/repo/objects/d5/d4e7892a3766b8ac992833582dc5ea1f575fa8"
[GIN] 2024/03/06 - 03:27:02 | 201 | 3.780536ms | 122.193.144.148 | PUT "/dav/main/siyuan/repo/objects/c6/7c830d44ab8f22affb802cf51d9d3b89dcc313"
[GIN] 2024/03/06 - 03:27:02 | 207 | 13.405263ms | 122.193.144.148 | PROPFIND "/dav/main/siyuan/repo/objects/"
[GIN] 2024/03/06 - 03:27:03 | 207 | 27.105053ms | 122.193.144.148 | PROPFIND "/dav/main/siyuan/repo/objects/"
[GIN] 2024/03/06 - 03:27:03 | 207 | 16.4328ms | 122.193.144.148 | PROPFIND "/dav/main/siyuan/repo/objects/"
[GIN] 2024/03/06 - 03:27:03 | 207 | 16.985564ms | 122.193.144.148 | PROPFIND "/dav/main/siyuan/repo/objects/"
[GIN] 2024/03/06 - 03:27:03 | 204 | 293.567µs | 122.193.144.148 | DELETE "/dav/main/siyuan/repo/lock-sync"
[GIN] 2024/03/06 - 03:27:05 | 201 | 3.558199ms | 122.193.144.148 | PUT "/dav/main/siyuan/repo/objects/a0/7f024c7e74ed9e2bc92e41f829defa513c35d8"
[GIN] 2024/03/06 - 03:27:05 | 201 | 5.565644ms | 122.193.144.148 | PUT "/dav/main/siyuan/repo/objects/63/406618fd197f5431e92be5e308f06dca576bfc"
注意,在上传时,程序是先获得 lock,然后才能写入。观察两行加粗的日志,第一行加粗的地方企图获得 lock,失败了(404),第二行试图删除一个不存在的 lock(204)
你这个 lock 如何处理的赶紧看一下啊,不能版本更迭很快,但老 bug 还在带进来。
欢迎来到这里!
我们正在构建一个小众社区,大家在这里相互信任,以平等 • 自由 • 奔放的价值观进行分享交流。最终,希望大家能够找到与自己志同道合的伙伴,共同成长。
注册 关于