每次启动 SiYuan,都会在 2~3s 内强制刷新并提示“校验索引时发现一个问题,已经自动修复”

本贴最后更新于 552 天前,其中的信息可能已经事过景迁

问题:

每次我关闭 SiYuan 后重新打开它,页面加载完成后,会在 2~3s 内强制页面重载一次。同时右上角弹出以下提示:

image.png

这个问题持续了大概一两个月吧,期间并没有因为它造成文档数据损坏问题,我也习惯了每次打开之后它还会重载。

但是,每次我更新了软件版本,弹出更新公告后,这个问题会导致刚弹出的公告被挤掉,看不到更新公告,很烦!

尝试过的方法

因为并不清楚是哪里的问题,我基本上想到什么就试一下。

  1. 重建索引:无效
  2. 重置数据仓库秘钥:无效
  3. 导出 data 再导入回来:无效

然后我就去检查了 系统日志

可能会自动换行,我再放下图片吧,看的直观点:

image.png

image.png

image.png

基本上每次启动都会报这些错误,而且一模一样,我尝试顺着提供的路径寻找存在的文件:

C:\Users\14378\Documents\SiYuanData\data\20210808180117-czj9bvb 这部分是可以找到的

C:\Users\14378\Documents\SiYuanData\data\20210808180117-czj9bvb\20200812220555-lj3enxa\20210808180320-abz7w6k\20200825162036-4dx365o.sy 但是后面部分我就找不到了。

image.png

用 everything 搜索,发现查无此文件:

image.png

不清楚到底是什么问题,救一下救一下

系统日志

截图版的在上面 ↑

I 2023/05/23 23:09:59 working.go:117: 
      ___                                   ___           ___           ___
     /  /\        ___           ___        /__/\         /  /\         /__/\
    /  /:/_      /  /\         /__/|       \  \:\       /  /::\        \  \:\
   /  /:/ /\    /  /:/        |  |:|        \  \:\     /  /:/\:\        \  \:\
  /  /:/ /::\  /__/::\        |  |:|    ___  \  \:\   /  /:/~/::\   _____\__\:\
 /__/:/ /:/\:\ \__\/\:\__   __|__|:|   /__/\  \__\:\ /__/:/ /:/\:\ /__/::::::::\
 \  \:\/:/~/:/    \  \:\/\ /__/::::\   \  \:\ /  /:/ \  \:\/:/__\/ \  \:\~~\~~\/
  \  \::/ /:/      \__\::/    ~\~~\:\   \  \:\  /:/   \  \::/       \  \:\  ~~~
   \__\/ /:/       /__/:/       \  \:\   \  \:\/:/     \  \:\        \  \:\
     /__/:/        \__\/         \__\/    \  \::/       \  \:\        \  \:\
     \__\/                                 \__\/         \__\/         \__\/
I 2023/05/23 23:09:59 runtime.go:70: kernel is booting:
    * ver [2.8.9]
    * arch [amd64]
    * os [Microsoft Windows 11 Pro]
    * pid [27068]
    * runtime mode [prod]
    * working directory [C:\Program Files\SiYuan\resources]
    * read only [false]
    * container [std]
    * database [ver=20220501]
    * workspace directory [C:\Users\14378\Documents\SiYuanData]
I 2023/05/23 23:09:59 conf.go:370: user has enabled [Automatically upload error messages and diagnostic data]
I 2023/05/23 23:09:59 conf.go:379: user has disabled [Google Analytics]
I 2023/05/23 23:09:59 runtime.go:124: use network proxy [system]
I 2023/05/23 23:09:59 serve.go:112: kernel [pid=27068] http server [127.0.0.1:8586] is booting
I 2023/05/23 23:09:59 blocktree.go:448: read block tree [2.2 MB] to [C:\Users\14378\Documents\SiYuanData\temp\blocktree], elapsed [0.01s]
I 2023/05/23 23:09:59 conf.go:685: database size [22 MB], tree/block count [201/7900]
I 2023/05/23 23:09:59 working.go:155: kernel booted
I 2023/05/23 23:09:59 pandoc.go:97: built-in pandoc [ver=2.19.2, bin=C:\Users\14378\Documents\SiYuanData\temp\pandoc\bin\pandoc.exe]
I 2023/05/23 23:09:59 box.go:79: auto stat [trees=201, blocks=7900, dataSize=63 MB, assetsSize=59 MB]
I 2023/05/23 23:09:59 disk.go:33: disk usage [total=1.0 TB, used=603 GB, free=420 GB]
I 2023/05/23 23:09:59 index.go:133: rebuilt database for notebook [20210808180117-czj9bvb] in [0.02s], tree [count=60, size=1.2 MB]
W 2023/05/23 23:10:00 index_fix.go:101: exist more than one tree duplicated [44], reindex it
I 2023/05/23 23:10:01 serve.go:125: reverse proxy server [127.0.0.1:6806] is booting
W 2023/05/23 23:10:06 index_fix.go:219: exist more than one tree with the same id [C:\Users\14378\Documents\SiYuanData\data\20210808180117-czj9bvb\20200812220555-lj3enxa\20210808180320-abz7w6k\20200825162036-4dx365o.sy], reset it
W 2023/05/23 23:10:06 index_fix.go:219: exist more than one tree with the same id [C:\Users\14378\Documents\SiYuanData\data\20210808180117-czj9bvb\20200812220555-lj3enxa\20210808180320-abz7w6k.sy], reset it
W 2023/05/23 23:10:06 index_fix.go:219: exist more than one tree with the same id [C:\Users\14378\Documents\SiYuanData\data\20210808180117-czj9bvb\20200812220555-lj3enxa\20210808180320-fqgskfj\20200813004931-q4cu8na.sy], reset it
W 2023/05/23 23:10:06 index_fix.go:219: exist more than one tree with the same id [C:\Users\14378\Documents\SiYuanData\data\20210808180117-czj9bvb\20200812220555-lj3enxa\20210808180320-fqgskfj\20200813013559-sgbzl5k.sy], reset it
W 2023/05/23 23:10:06 index_fix.go:219: exist more than one tree with the same id [C:\Users\14378\Documents\SiYuanData\data\20210808180117-czj9bvb\20200812220555-lj3enxa\20210808180320-fqgskfj\20200813131152-0wk5akh.sy], reset it
W 2023/05/23 23:10:06 index_fix.go:219: exist more than one tree with the same id [C:\Users\14378\Documents\SiYuanData\data\20210808180117-czj9bvb\20200812220555-lj3enxa\20210808180320-fqgskfj\20200905090211-2vixtlf.sy], reset it
W 2023/05/23 23:10:06 index_fix.go:219: exist more than one tree with the same id [C:\Users\14378\Documents\SiYuanData\data\20210808180117-czj9bvb\20200812220555-lj3enxa\20210808180320-fqgskfj\20201117101902-2ewjjum.sy], reset it
W 2023/05/23 23:10:06 index_fix.go:219: exist more than one tree with the same id [C:\Users\14378\Documents\SiYuanData\data\20210808180117-czj9bvb\20200812220555-lj3enxa\20210808180320-fqgskfj\20201210103036-1x3vm8t.sy], reset it
W 2023/05/23 23:10:06 index_fix.go:219: exist more than one tree with the same id [C:\Users\14378\Documents\SiYuanData\data\20210808180117-czj9bvb\20200812220555-lj3enxa\20210808180320-fqgskfj\20210612224500-ywcms1m.sy], reset it
W 2023/05/23 23:10:06 index_fix.go:219: exist more than one tree with the same id [C:\Users\14378\Documents\SiYuanData\data\20210808180117-czj9bvb\20200812220555-lj3enxa\20210808180320-fqgskfj.sy], reset it
W 2023/05/23 23:10:06 index_fix.go:219: exist more than one tree with the same id [C:\Users\14378\Documents\SiYuanData\data\20210808180117-czj9bvb\20200812220555-lj3enxa\20210808180320-gyngv2x\20201222093044-rx4zjoy.sy], reset it
W 2023/05/23 23:10:06 index_fix.go:219: exist more than one tree with the same id [C:\Users\14378\Documents\SiYuanData\data\20210808180117-czj9bvb\20200812220555-lj3enxa\20210808180320-gyngv2x\20201222095049-hghafhe.sy], reset it
W 2023/05/23 23:10:06 index_fix.go:219: exist more than one tree with the same id [C:\Users\14378\Documents\SiYuanData\data\20210808180117-czj9bvb\20200812220555-lj3enxa\20210808180320-gyngv2x.sy], reset it
W 2023/05/23 23:10:06 index_fix.go:219: exist more than one tree with the same id [C:\Users\14378\Documents\SiYuanData\data\20210808180117-czj9bvb\20200812220555-lj3enxa\20210808180320-m0ztypq\20210721101227-pi8f6ga.sy], reset it
W 2023/05/23 23:10:06 index_fix.go:219: exist more than one tree with the same id [C:\Users\14378\Documents\SiYuanData\data\20210808180117-czj9bvb\20200812220555-lj3enxa\20210808180320-m0ztypq\20210721103420-vn6g2yy.sy], reset it
W 2023/05/23 23:10:06 index_fix.go:219: exist more than one tree with the same id [C:\Users\14378\Documents\SiYuanData\data\20210808180117-czj9bvb\20200812220555-lj3enxa\20210808180320-m0ztypq\20210721154441-vav9m02.sy], reset it
W 2023/05/23 23:10:06 index_fix.go:219: exist more than one tree with the same id [C:\Users\14378\Documents\SiYuanData\data\20210808180117-czj9bvb\20200812220555-lj3enxa\20210808180320-m0ztypq.sy], reset it
W 2023/05/23 23:10:06 index_fix.go:219: exist more than one tree with the same id [C:\Users\14378\Documents\SiYuanData\data\20210808180117-czj9bvb\20200812220555-lj3enxa\20210808180320-qgr0b3q\20200922101913-d5yitmq.sy], reset it
W 2023/05/23 23:10:06 index_fix.go:219: exist more than one tree with the same id [C:\Users\14378\Documents\SiYuanData\data\20210808180117-czj9bvb\20200812220555-lj3enxa\20210808180320-qgr0b3q\20200922102318-oz84yu3.sy], reset it
W 2023/05/23 23:10:06 index_fix.go:219: exist more than one tree with the same id [C:\Users\14378\Documents\SiYuanData\data\20210808180117-czj9bvb\20200812220555-lj3enxa\20210808180320-qgr0b3q.sy], reset it
W 2023/05/23 23:10:06 index_fix.go:219: exist more than one tree with the same id [C:\Users\14378\Documents\SiYuanData\data\20210808180117-czj9bvb\20200812220555-lj3enxa\20210808180321-hbvl5c2\20200813004551-gm0pbn1.sy], reset it
W 2023/05/23 23:10:06 index_fix.go:219: exist more than one tree with the same id [C:\Users\14378\Documents\SiYuanData\data\20210808180117-czj9bvb\20200812220555-lj3enxa\20210808180321-hbvl5c2\20200813125307-pxsjela.sy], reset it
W 2023/05/23 23:10:06 index_fix.go:219: exist more than one tree with the same id [C:\Users\14378\Documents\SiYuanData\data\20210808180117-czj9bvb\20200812220555-lj3enxa\20210808180321-hbvl5c2\20200822191536-rm6hwid.sy], reset it
W 2023/05/23 23:10:06 index_fix.go:219: exist more than one tree with the same id [C:\Users\14378\Documents\SiYuanData\data\20210808180117-czj9bvb\20200812220555-lj3enxa\20210808180321-hbvl5c2\20200828105441-r76vmu5.sy], reset it
W 2023/05/23 23:10:06 index_fix.go:219: exist more than one tree with the same id [C:\Users\14378\Documents\SiYuanData\data\20210808180117-czj9bvb\20200812220555-lj3enxa\20210808180321-hbvl5c2\20200910201551-h4twhas.sy], reset it
W 2023/05/23 23:10:06 index_fix.go:219: exist more than one tree with the same id [C:\Users\14378\Documents\SiYuanData\data\20210808180117-czj9bvb\20200812220555-lj3enxa\20210808180321-hbvl5c2\20200915214115-42b8zma.sy], reset it
W 2023/05/23 23:10:06 index_fix.go:219: exist more than one tree with the same id [C:\Users\14378\Documents\SiYuanData\data\20210808180117-czj9bvb\20200812220555-lj3enxa\20210808180321-hbvl5c2\20201004184819-nj8ibyg.sy], reset it
W 2023/05/23 23:10:06 index_fix.go:219: exist more than one tree with the same id [C:\Users\14378\Documents\SiYuanData\data\20210808180117-czj9bvb\20200812220555-lj3enxa\20210808180321-hbvl5c2\20201204181006-7bkppue.sy], reset it
W 2023/05/23 23:10:06 index_fix.go:219: exist more than one tree with the same id [C:\Users\14378\Documents\SiYuanData\data\20210808180117-czj9bvb\20200812220555-lj3enxa\20210808180321-hbvl5c2\20201227173504-847cs1q.sy], reset it
W 2023/05/23 23:10:06 index_fix.go:219: exist more than one tree with the same id [C:\Users\14378\Documents\SiYuanData\data\20210808180117-czj9bvb\20200812220555-lj3enxa\20210808180321-hbvl5c2\20201227194925-7ipoiv6.sy], reset it
W 2023/05/23 23:10:06 index_fix.go:219: exist more than one tree with the same id [C:\Users\14378\Documents\SiYuanData\data\20210808180117-czj9bvb\20200812220555-lj3enxa\20210808180321-hbvl5c2\20210110175347-2xrwoiq.sy], reset it
W 2023/05/23 23:10:06 index_fix.go:219: exist more than one tree with the same id [C:\Users\14378\Documents\SiYuanData\data\20210808180117-czj9bvb\20200812220555-lj3enxa\20210808180321-hbvl5c2\20210127202655-2334vvv.sy], reset it
W 2023/05/23 23:10:06 index_fix.go:219: exist more than one tree with the same id [C:\Users\14378\Documents\SiYuanData\data\20210808180117-czj9bvb\20200812220555-lj3enxa\20210808180321-hbvl5c2\20210331200042-94gs1hh.sy], reset it
W 2023/05/23 23:10:06 index_fix.go:219: exist more than one tree with the same id [C:\Users\14378\Documents\SiYuanData\data\20210808180117-czj9bvb\20200812220555-lj3enxa\20210808180321-hbvl5c2\20210505163537-oo97zov.sy], reset it
W 2023/05/23 23:10:06 index_fix.go:219: exist more than one tree with the same id [C:\Users\14378\Documents\SiYuanData\data\20210808180117-czj9bvb\20200812220555-lj3enxa\20210808180321-hbvl5c2\20210615211733-v6rzowm.sy], reset it
W 2023/05/23 23:10:06 index_fix.go:219: exist more than one tree with the same id [C:\Users\14378\Documents\SiYuanData\data\20210808180117-czj9bvb\20200812220555-lj3enxa\20210808180321-hbvl5c2\20210824201257-cy7icrc.sy], reset it
W 2023/05/23 23:10:06 index_fix.go:219: exist more than one tree with the same id [C:\Users\14378\Documents\SiYuanData\data\20210808180117-czj9bvb\20200812220555-lj3enxa\20210808180321-hbvl5c2\20211010211311-ffz0wbu.sy], reset it
W 2023/05/23 23:10:06 index_fix.go:219: exist more than one tree with the same id [C:\Users\14378\Documents\SiYuanData\data\20210808180117-czj9bvb\20200812220555-lj3enxa\20210808180321-hbvl5c2.sy], reset it
W 2023/05/23 23:10:06 index_fix.go:219: exist more than one tree with the same id [C:\Users\14378\Documents\SiYuanData\data\20210808180117-czj9bvb\20200812220555-lj3enxa.sy], reset it
W 2023/05/23 23:10:06 index_fix.go:219: exist more than one tree with the same id [C:\Users\14378\Documents\SiYuanData\data\20210808180117-czj9bvb\20200813093015-u6bopdt.sy], reset it
W 2023/05/23 23:10:06 index_fix.go:219: exist more than one tree with the same id [C:\Users\14378\Documents\SiYuanData\data\20210808180117-czj9bvb\20200813163359-v04n73b.sy], reset it
W 2023/05/23 23:10:06 index_fix.go:219: exist more than one tree with the same id [C:\Users\14378\Documents\SiYuanData\data\20210808180117-czj9bvb\20201121212605-9td1a62.sy], reset it
W 2023/05/23 23:10:06 index_fix.go:219: exist more than one tree with the same id [C:\Users\14378\Documents\SiYuanData\data\20210808180117-czj9bvb\20210117211155-56n4odu.sy], reset it
I 2023/05/23 23:10:21 index.go:133: rebuilt database for notebook [20210808180117-czj9bvb] in [0.01s], tree [count=60, size=1.2 MB]
I 2023/05/23 23:10:22 index.go:206: resolved refs [34] in [50ms]
I 2023/05/23 23:13:14 database.go:108: reinitialized database [C:\Users\14378\Documents\SiYuanData\temp\siyuan.db]
I 2023/05/23 23:13:14 index.go:133: rebuilt database for notebook [20211129210604-mze0d18] in [0.01s], tree [count=47, size=710 kB]
I 2023/05/23 23:13:14 index.go:133: rebuilt database for notebook [20220901233313-88p1yak] in [0.01s], tree [count=32, size=1.3 MB]
I 2023/05/23 23:13:14 index.go:133: rebuilt database for notebook [20220905232909-zeusn41] in [0.00s], tree [count=12, size=62 kB]
I 2023/05/23 23:13:14 index.go:133: rebuilt database for notebook [20220911143557-ksca4wh] in [0.00s], tree [count=1, size=1.9 kB]
I 2023/05/23 23:13:14 index.go:133: rebuilt database for notebook [20221118104429-3uhph9j] in [0.00s], tree [count=12, size=123 kB]
I 2023/05/23 23:13:14 index.go:133: rebuilt database for notebook [20221222230148-nukelrw] in [0.00s], tree [count=23, size=181 kB]
I 2023/05/23 23:13:14 index.go:133: rebuilt database for notebook [20230303110410-flyjmfb] in [0.00s], tree [count=6, size=175 kB]
I 2023/05/23 23:13:14 index.go:133: rebuilt database for notebook [20230317140734-ol00g18] in [0.00s], tree [count=2, size=30 kB]
I 2023/05/23 23:13:14 index.go:133: rebuilt database for notebook [20230429220118-lc2qlum] in [0.00s], tree [count=6, size=47 kB]
I 2023/05/23 23:13:14 index.go:133: rebuilt database for notebook [20210808180117-czj9bvb] in [0.01s], tree [count=60, size=1.2 MB]
I 2023/05/23 23:13:15 index.go:206: resolved refs [34] in [47ms]
I 2023/05/23 23:13:19 conf.go:460: exiting kernel [force=false, execInstallPkg=0]
I 2023/05/23 23:13:19 database.go:1134: closed database
I 2023/05/23 23:13:19 conf.go:832: cleared workspace temp
  • 思源笔记

    思源笔记是一款隐私优先的个人知识管理系统,支持完全离线使用,同时也支持端到端加密同步。

    融合块、大纲和双向链接,重构你的思维。

    22423 引用 • 89770 回帖 • 1 关注
  • Q&A

    提问之前请先看《提问的智慧》,好的问题比好的答案更有价值。

    8146 引用 • 37128 回帖 • 161 关注
被采纳的回答

欢迎来到这里!

我们正在构建一个小众社区,大家在这里相互信任,以平等 • 自由 • 奔放的价值观进行分享交流。最终,希望大家能够找到与自己志同道合的伙伴,共同成长。

注册 关于
请输入回帖内容 ...