Closed
Description
该问题是否已经被报告过了? Is there an existing issue for this?
- 我已经搜索了 Issues,没有发现类似问题
I have searched the existing issues
描述问题 Describe the problem
问题
从16号升级2.1.7后,发现每天都有些几m~几十m的update文件夹,但是不可能真的修改了那么多。
每次都是差不多的笔记文档生成大量的历史记录,不知道原因。
电脑端尝试
- 同步启动
- 未编辑文档等待历史记录生成,生成大量历史记录
- 不同步启动
- 未编辑文档等待历史记录生成,生成大量历史记录
- 回退软件至2.1.6
- 未编辑文档,无历史记录生成
- 编辑文档,正常生成编辑文档的历史记录
其他用户端历史文件查看
这是电脑端上被大量生成历史记录的文档,已经很久没有修改了,与手机端上第一次sync记录文档是一致的(当时手机端是先导入.sy.zip文件再同步的)
期待的结果 Expected result
不会大量生成历史记录
截屏或者录屏演示 Screenshot or screen recording presentation
No response
版本环境 Version environment
- Version: 2.1.7
- Operating System: win10
- Browser (if used):
日志文件 Log file
I 2022/08/21 12:01:47 runtime.go:47: kernel is booting:
* ver [2.1.7]
* arch [amd64]
* runtime mode [prod]
* working directory [D:\MySoftware\SiYuan\resources]
* read only [false]
* container [std]
* database [ver=20220501]
* workspace directory [E:\00Base\SiYuan, data 1.5 GB]
I 2022/08/21 12:01:47 conf.go:273: user has enabled [Automatically upload error messages and diagnostic data]
I 2022/08/21 12:01:47 serve.go:78: kernel is booting [http://127.0.0.1:6806]
I 2022/08/21 12:01:47 sync.go:95: sync before boot
W 2022/08/21 12:01:54 repository.go:618: index data repo before cloud sync elapsed [7278ms]
I 2022/08/21 12:01:57 repository.go:534: synced data repo [ufc=0, dfc=1, ucc=0, dcc=0, ub=0 B, db=882 kB] in [9.88s]
I 2022/08/21 12:01:57 conf.go:531: database size [971 MB], block count [236176]
I 2022/08/21 12:01:57 working.go:147: kernel booted
I 2022/08/21 12:02:43 repository.go:534: synced data repo [ufc=1, dfc=0, ucc=1, dcc=0, ub=455 kB, db=882 kB] in [13.75s]
I 2022/08/21 12:03:18 queue.go:126: op tx [8664ms]
I 2022/08/21 12:13:53 sync.go:98: sync before exit
I 2022/08/21 12:14:07 repository.go:534: synced data repo [ufc=3, dfc=0, ucc=3, dcc=0, ub=488 kB, db=882 kB] in [13.72s]
I 2022/08/21 12:14:07 conf.go:370: exited kernel
I 2022/08/21 12:14:14 working.go:107:
___ ___ ___ ___
/ /\ ___ ___ /__/\ / /\ /__/\
/ /:/_ / /\ /__/| \ \:\ / /::\ \ \:\
/ /:/ /\ / /:/ | |:| \ \:\ / /:/\:\ \ \:\
/ /:/ /::\ /__/::\ | |:| ___ \ \:\ / /:/~/::\ _____\__\:\
/__/:/ /:/\:\ \__\/\:\__ __|__|:| /__/\ \__\:\ /__/:/ /:/\:\ /__/::::::::\
\ \:\/:/~/:/ \ \:\/\ /__/::::\ \ \:\ / /:/ \ \:\/:/__\/ \ \:\~~\~~\/
\ \::/ /:/ \__\::/ ~\~~\:\ \ \:\ /:/ \ \::/ \ \:\ ~~~
\__\/ /:/ /__/:/ \ \:\ \ \:\/:/ \ \:\ \ \:\
/__/:/ \__\/ \__\/ \ \::/ \ \:\ \ \:\
\__\/ \__\/ \__\/ \__\/
I 2022/08/21 12:14:15 runtime.go:47: kernel is booting:
* ver [2.1.7]
* arch [amd64]
* runtime mode [prod]
* working directory [D:\MySoftware\SiYuan\resources]
* read only [false]
* container [std]
* database [ver=20220501]
* workspace directory [E:\00Base\SiYuan, data 1.5 GB]
I 2022/08/21 12:14:15 conf.go:273: user has enabled [Automatically upload error messages and diagnostic data]
I 2022/08/21 12:14:15 serve.go:78: kernel is booting [http://127.0.0.1:6806]
I 2022/08/21 12:14:15 sync.go:95: sync before boot
I 2022/08/21 12:14:19 repository.go:534: synced data repo [ufc=0, dfc=1, ucc=0, dcc=0, ub=0 B, db=882 kB] in [4.62s]
I 2022/08/21 12:14:20 conf.go:531: database size [971 MB], block count [236176]
I 2022/08/21 12:14:20 working.go:147: kernel booted
I 2022/08/21 12:15:27 repository.go:534: synced data repo [ufc=2, dfc=0, ucc=2, dcc=0, ub=474 kB, db=882 kB] in [14.13s]
I 2022/08/21 12:15:47 sync.go:98: sync before exit
I 2022/08/21 12:16:01 repository.go:534: synced data repo [ufc=1, dfc=0, ucc=1, dcc=0, ub=473 kB, db=882 kB] in [13.50s]
I 2022/08/21 12:16:01 conf.go:370: exited kernel
I 2022/08/21 12:16:04 working.go:107:
___ ___ ___ ___
/ /\ ___ ___ /__/\ / /\ /__/\
/ /:/_ / /\ /__/| \ \:\ / /::\ \ \:\
/ /:/ /\ / /:/ | |:| \ \:\ / /:/\:\ \ \:\
/ /:/ /::\ /__/::\ | |:| ___ \ \:\ / /:/~/::\ _____\__\:\
/__/:/ /:/\:\ \__\/\:\__ __|__|:| /__/\ \__\:\ /__/:/ /:/\:\ /__/::::::::\
\ \:\/:/~/:/ \ \:\/\ /__/::::\ \ \:\ / /:/ \ \:\/:/__\/ \ \:\~~\~~\/
\ \::/ /:/ \__\::/ ~\~~\:\ \ \:\ /:/ \ \::/ \ \:\ ~~~
\__\/ /:/ /__/:/ \ \:\ \ \:\/:/ \ \:\ \ \:\
/__/:/ \__\/ \__\/ \ \::/ \ \:\ \ \:\
\__\/ \__\/ \__\/ \__\/
I 2022/08/21 12:16:05 runtime.go:47: kernel is booting:
* ver [2.1.7]
* arch [amd64]
* runtime mode [prod]
* working directory [D:\MySoftware\SiYuan\resources]
* read only [false]
* container [std]
* database [ver=20220501]
* workspace directory [E:\00Base\SiYuan, data 1.5 GB]
I 2022/08/21 12:16:05 conf.go:273: user has enabled [Automatically upload error messages and diagnostic data]
I 2022/08/21 12:16:05 serve.go:78: kernel is booting [http://127.0.0.1:6806]
I 2022/08/21 12:16:05 sync.go:95: sync before boot
I 2022/08/21 12:16:10 repository.go:534: synced data repo [ufc=0, dfc=1, ucc=0, dcc=0, ub=0 B, db=882 kB] in [4.95s]
I 2022/08/21 12:16:10 conf.go:531: database size [971 MB], block count [236176]
I 2022/08/21 12:16:10 working.go:147: kernel booted
I 2022/08/21 12:22:22 repository.go:534: synced data repo [ufc=1, dfc=0, ucc=1, dcc=0, ub=455 kB, db=882 kB] in [12.74s]
I 2022/08/21 12:35:06 conf.go:370: exited kernel
I 2022/08/21 12:35:16 working.go:107:
___ ___ ___ ___
/ /\ ___ ___ /__/\ / /\ /__/\
/ /:/_ / /\ /__/| \ \:\ / /::\ \ \:\
/ /:/ /\ / /:/ | |:| \ \:\ / /:/\:\ \ \:\
/ /:/ /::\ /__/::\ | |:| ___ \ \:\ / /:/~/::\ _____\__\:\
/__/:/ /:/\:\ \__\/\:\__ __|__|:| /__/\ \__\:\ /__/:/ /:/\:\ /__/::::::::\
\ \:\/:/~/:/ \ \:\/\ /__/::::\ \ \:\ / /:/ \ \:\/:/__\/ \ \:\~~\~~\/
\ \::/ /:/ \__\::/ ~\~~\:\ \ \:\ /:/ \ \::/ \ \:\ ~~~
\__\/ /:/ /__/:/ \ \:\ \ \:\/:/ \ \:\ \ \:\
/__/:/ \__\/ \__\/ \ \::/ \ \:\ \ \:\
\__\/ \__\/ \__\/ \__\/
I 2022/08/21 12:35:17 runtime.go:47: kernel is booting:
* ver [2.1.7]
* arch [amd64]
* runtime mode [prod]
* working directory [D:\MySoftware\SiYuan\resources]
* read only [false]
* container [std]
* database [ver=20220501]
* workspace directory [E:\00Base\SiYuan, data 1.5 GB]
I 2022/08/21 12:35:17 conf.go:273: user has enabled [Automatically upload error messages and diagnostic data]
I 2022/08/21 12:35:17 serve.go:78: kernel is booting [http://127.0.0.1:6806]
I 2022/08/21 12:35:17 conf.go:531: database size [971 MB], block count [236176]
I 2022/08/21 12:35:17 working.go:147: kernel booted
I 2022/08/21 12:46:50 sync.go:98: sync before exit
I 2022/08/21 12:47:05 repository.go:534: synced data repo [ufc=1, dfc=0, ucc=1, dcc=0, ub=455 kB, db=882 kB] in [15.08s]
I 2022/08/21 12:47:05 conf.go:370: exited kernel
I 2022/08/21 12:47:10 working.go:107:
___ ___ ___ ___
/ /\ ___ ___ /__/\ / /\ /__/\
/ /:/_ / /\ /__/| \ \:\ / /::\ \ \:\
/ /:/ /\ / /:/ | |:| \ \:\ / /:/\:\ \ \:\
/ /:/ /::\ /__/::\ | |:| ___ \ \:\ / /:/~/::\ _____\__\:\
/__/:/ /:/\:\ \__\/\:\__ __|__|:| /__/\ \__\:\ /__/:/ /:/\:\ /__/::::::::\
\ \:\/:/~/:/ \ \:\/\ /__/::::\ \ \:\ / /:/ \ \:\/:/__\/ \ \:\~~\~~\/
\ \::/ /:/ \__\::/ ~\~~\:\ \ \:\ /:/ \ \::/ \ \:\ ~~~
\__\/ /:/ /__/:/ \ \:\ \ \:\/:/ \ \:\ \ \:\
/__/:/ \__\/ \__\/ \ \::/ \ \:\ \ \:\
\__\/ \__\/ \__\/ \__\/
I 2022/08/21 12:47:11 runtime.go:47: kernel is booting:
* ver [2.1.7]
* arch [amd64]
* runtime mode [prod]
* working directory [D:\MySoftware\SiYuan\resources]
* read only [false]
* container [std]
* database [ver=20220501]
* workspace directory [E:\00Base\SiYuan, data 1.5 GB]
I 2022/08/21 12:47:11 conf.go:273: user has enabled [Automatically upload error messages and diagnostic data]
I 2022/08/21 12:47:11 serve.go:78: kernel is booting [http://127.0.0.1:6806]
I 2022/08/21 12:47:11 sync.go:95: sync before boot
I 2022/08/21 12:47:16 repository.go:534: synced data repo [ufc=0, dfc=1, ucc=0, dcc=0, ub=0 B, db=882 kB] in [5.19s]
I 2022/08/21 12:47:17 conf.go:531: database size [971 MB], block count [236176]
I 2022/08/21 12:47:17 working.go:147: kernel booted
I 2022/08/21 12:53:44 sync.go:98: sync before exit
I 2022/08/21 12:53:57 repository.go:534: synced data repo [ufc=1, dfc=0, ucc=1, dcc=0, ub=455 kB, db=882 kB] in [12.53s]
I 2022/08/21 12:53:57 conf.go:370: exited kernel
I 2022/08/21 12:55:14 working.go:107:
___ ___ ___ ___
/ /\ ___ ___ /__/\ / /\ /__/\
/ /:/_ / /\ /__/| \ \:\ / /::\ \ \:\
/ /:/ /\ / /:/ | |:| \ \:\ / /:/\:\ \ \:\
/ /:/ /::\ /__/::\ | |:| ___ \ \:\ / /:/~/::\ _____\__\:\
/__/:/ /:/\:\ \__\/\:\__ __|__|:| /__/\ \__\:\ /__/:/ /:/\:\ /__/::::::::\
\ \:\/:/~/:/ \ \:\/\ /__/::::\ \ \:\ / /:/ \ \:\/:/__\/ \ \:\~~\~~\/
\ \::/ /:/ \__\::/ ~\~~\:\ \ \:\ /:/ \ \::/ \ \:\ ~~~
\__\/ /:/ /__/:/ \ \:\ \ \:\/:/ \ \:\ \ \:\
/__/:/ \__\/ \__\/ \ \::/ \ \:\ \ \:\
\__\/ \__\/ \__\/ \__\/
I 2022/08/21 12:55:16 runtime.go:47: kernel is booting:
* ver [2.1.7]
* arch [amd64]
* runtime mode [prod]
* working directory [D:\MySoftware\SiYuan\resources]
* read only [false]
* container [std]
* database [ver=20220501]
* workspace directory [E:\00Base\SiYuan, data 1.5 GB]
I 2022/08/21 12:55:16 conf.go:273: user has enabled [Automatically upload error messages and diagnostic data]
I 2022/08/21 12:55:16 serve.go:78: kernel is booting [http://127.0.0.1:6806]
I 2022/08/21 12:55:16 sync.go:95: sync before boot
I 2022/08/21 12:55:24 repository.go:534: synced data repo [ufc=0, dfc=1, ucc=0, dcc=0, ub=0 B, db=882 kB] in [7.37s]
I 2022/08/21 12:55:25 conf.go:531: database size [971 MB], block count [236176]
I 2022/08/21 12:55:25 working.go:147: kernel booted
I 2022/08/21 13:18:40 sync.go:98: sync before exit
I 2022/08/21 13:18:55 repository.go:534: synced data repo [ufc=1, dfc=0, ucc=1, dcc=0, ub=455 kB, db=882 kB] in [15.41s]
I 2022/08/21 13:18:55 conf.go:370: exited kernel
I 2022/08/21 13:20:31 working.go:107:
___ ___ ___ ___
/ /\ ___ ___ /__/\ / /\ /__/\
/ /:/_ / /\ /__/| \ \:\ / /::\ \ \:\
/ /:/ /\ / /:/ | |:| \ \:\ / /:/\:\ \ \:\
/ /:/ /::\ /__/::\ | |:| ___ \ \:\ / /:/~/::\ _____\__\:\
/__/:/ /:/\:\ \__\/\:\__ __|__|:| /__/\ \__\:\ /__/:/ /:/\:\ /__/::::::::\
\ \:\/:/~/:/ \ \:\/\ /__/::::\ \ \:\ / /:/ \ \:\/:/__\/ \ \:\~~\~~\/
\ \::/ /:/ \__\::/ ~\~~\:\ \ \:\ /:/ \ \::/ \ \:\ ~~~
\__\/ /:/ /__/:/ \ \:\ \ \:\/:/ \ \:\ \ \:\
/__/:/ \__\/ \__\/ \ \::/ \ \:\ \ \:\
\__\/ \__\/ \__\/ \__\/
I 2022/08/21 13:20:33 runtime.go:47: kernel is booting:
* ver [2.1.6]
* arch [amd64]
* runtime mode [prod]
* working directory [D:\MySoftware\SiYuan\resources]
* read only [false]
* container [std]
* database [ver=20220501]
* workspace directory [E:\00Base\SiYuan, data 1.5 GB]
I 2022/08/21 13:20:33 conf.go:273: user has enabled [Automatically upload error messages and diagnostic data]
I 2022/08/21 13:20:33 serve.go:78: kernel is booting [http://127.0.0.1:6806]
I 2022/08/21 13:20:33 sync.go:95: sync before boot
I 2022/08/21 13:20:40 repository.go:534: synced data repo [ufc=0, dfc=1, ucc=0, dcc=0, ub=0 B, db=882 kB] in [7.21s]
I 2022/08/21 13:20:41 conf.go:532: database size [971 MB], block count [236176]
I 2022/08/21 13:20:41 working.go:147: kernel booted
更多信息 More information
No response
Metadata
Metadata
Assignees
Type
Projects
Relationships
Development
No branches or pull requests
Activity
88250 commentedon Aug 21, 2022
这个问题会在 #5687 中一并处理,感谢反馈。
UltramarineSky commentedon Aug 21, 2022
好的,等版本更新后再看看
UltramarineSky commentedon Aug 22, 2022
D大,升级到2.1.8后并没有解决问题,启动软件后第一次自动生成历史记录还会把所有的文件重新生成一份历史记录。
应该跟同步没关系,重新创建了一个新工作空间,新建几个笔记本和文档,启动后没有任何操作,到历史生成间隔的时间后,还是自动生成了所有文档的历史记录
设置的历史间隔是3,中间部分可以跳过,确实没有操作过文档,对比过-update里的文件和data里的文件,没有任何变化。,回退到2.1.6后是正常的
siyuan.log
[-]2.1.7启动软件后第一次历史记录生成大量历史记录文件[/-][+]启动后会生成一次全量数据历史文件[/+]88250 commentedon Aug 22, 2022
多谢,已经确认是个 bug,下个版本修复。
🐛 启动后会生成一次全量数据历史文件 Fix #5689
Squashed commit of the following: