问题描述:
原先 mac 和 win 都使用的是 2.0.16 版本。
昨晚在 MAC 上更新到 2.0.17 后,只有两个文件进行了内容上的变化。
今天在 Win 上使用 2.0.16 版本时,同步发现要下载 2 千多个文件,但是每次下载到剩余 7 百多时就报错了。然后更新 win 上的版本到 2.0.17 后,软件一直不停的更新。
现在导致的结果是,我刚新创建一个文件,然后马上更新后刚创建的文件就被覆盖了,影响到了正常使用。
临时处理措施:
重启软件后,发现似乎恢复正常,正在观察中。
发帖出来,看对开发人员发现同步功能的 bug 是否有启发,以及其他遇到类似问题的人是否有借鉴意义。
如下是 win 更新到 2.0.17 后的日志:
I 2022/06/08 09:49:36 serve.go:78: kernel is booting [http://127.0.0.1:6806]
I 2022/06/08 09:49:36 sync.go:106: sync before boot
I 2022/06/08 09:49:56 sync.go:608: workspace data to sync data elapsed [19882ms]
E 2022/06/08 09:50:16 osssync.go:312: download request [https://siyuan-data.b3logfile.com/siyuan/1610940792676/sync/LarryGao/8bf729f/87fb5f4?e=1654656601&token=6zccBym_5ajLhGF1X-r1EGs_QFAqQJOrGe9o4N76:H-nN6Q4sx3bAzaQkd6zIgegXSSA=] failed: net/http: request canceled (Client.Timeout or context cancellation while reading body)
I 2022/06/08 09:50:22 conf.go:512: database size [188 MB], block count [57287]
I 2022/06/08 09:50:22 working.go:137: kernel booted
I 2022/06/08 09:50:30 sync.go:106: sync before boot
I 2022/06/08 09:50:37 sync.go:608: workspace data to sync data elapsed [7109ms]
W 2022/06/08 09:51:07 sync.go:76: sync has been locked
W 2022/06/08 09:51:37 sync.go:76: sync has been locked
E 2022/06/08 09:51:43 osssync.go:312: download request [https://siyuan-data.b3logfile.com/siyuan/1610940792676/sync/LarryGao/8bf729f/87fb5f4?e=1654656688&token=6zccBym_5ajLhGF1X-r1EGs_QFAqQJOrGe9o4N76:vpB-QI0Wza3eY3Qz4IQCbxa38qE=] failed: net/http: request canceled (Client.Timeout or context cancellation while reading body)
I 2022/06/08 09:52:00 sync.go:544: sync data to workspace data elapsed [15935ms]
I 2022/06/08 09:52:41 sync.go:608: workspace data to sync data elapsed [9360ms]
E 2022/06/08 09:53:44 osssync.go:312: download request [https://siyuan-data.b3logfile.com/siyuan/1610940792676/sync/LarryGao/c5e2bd5/0e1ec7f/92e524d/68df972?e=1654656823&token=6zccBym_5ajLhGF1X-r1EGs_QFAqQJOrGe9o4N76:TSDcwX-z_E1RJ7SaC740gz3vmh8=] failed: http2: server sent GOAWAY and closed the connection; LastStreamID=1999, ErrCode=NO_ERROR, debug=""
I 2022/06/08 09:53:55 sync.go:544: sync data to workspace data elapsed [11579ms]
I 2022/06/08 09:56:23 sync.go:608: workspace data to sync data elapsed [9067ms]
I 2022/06/08 09:56:35 sync.go:384: sync [cloud=454551, local=21, fetchedFiles=121, transferSize=4.7 MB] downloaded in [10.70s]
E 2022/06/08 09:56:39 workspace.go:96: read data conf [D:\SiYuan\data\.siyuan\conf.json] failed: %!s(<nil>)
E 2022/06/08 09:56:39 workspace.go:75: parse data conf [D:\SiYuan\data\.siyuan\conf.json] failed: unexpected end of JSON input
I 2022/06/08 09:57:18 sync.go:384: sync [cloud=454551, local=2, fetchedFiles=3, transferSize=408 kB] downloaded in [3.27s]
E 2022/06/08 09:57:26 workspace.go:96: read data conf [D:\SiYuan\data\.siyuan\conf.json] failed: %!s(<nil>)
E 2022/06/08 09:57:26 workspace.go:75: parse data conf [D:\SiYuan\data\.siyuan\conf.json] failed: unexpected end of JSON input
E 2022/06/08 09:57:26 sync.go:1094: unmarshal sync conf [D:\SiYuan\sync\.siyuan\conf.json] failed: invalid character '\x00' looking for beginning of value
I 2022/06/08 09:58:43 sync.go:109: sync before exit
I 2022/06/08 09:58:49 sync.go:384: sync [cloud=454551, local=0, fetchedFiles=3, transferSize=408 kB] downloaded in [3.42s]
I 2022/06/08 09:58:49 conf.go:351: exited kernel
欢迎来到这里!
我们正在构建一个小众社区,大家在这里相互信任,以平等 • 自由 • 奔放的价值观进行分享交流。最终,希望大家能够找到与自己志同道合的伙伴,共同成长。
注册 关于