1.1.83 更新 1.2.0-beta6 版本导入文件后报错“未找到 ID 为 [XXX] 的内容块”

操作如下:

基本全部的笔记内容都出现问题,具体报错示例如下

image.png

报错 ID 为 20210607140302-id1wxyw

.sy 文件全文如下:

{
"ID": "20210607140302-id1wxyw",
"Type": "NodeDocument",
"Properties": {
"id": "20210607140302-id1wxyw",
"type": "doc"
},
"Children": [
{
"ID": "20210607140302-91fogyh",
"Type": "NodeHeading",
"HeadingLevel": 1,
"Properties": {
"id": "20210607140302-91fogyh",
"updated": "20210607170128"
},
"Children": [
{
"Type": "NodeHeadingC8hMarker",
"Data": "# "
},
{
"Type": "NodeText",
"Data": "隐藏内容"
}
]
},
{
"ID": "20210607170129-nmk3eez",
"Type": "NodeParagraph",
"Properties": {
"id": "20210607170129-nmk3eez",
"updated": "20210607170133"
},
"Children": [
{
"Type": "NodeText",
"Data": "隐藏内容"
}
]
}
]
}

原文为

隐藏内容

{: id="20210607140302-91fogyh" updated="20210607170128"}

隐藏内容
{: id="20210607170129-nmk3eez" updated="20210607170133"}

{: id="20210607140302-id1wxyw" type="doc"}

广告 我要投放

欢迎来到这里!

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

注册 关于
请输入回帖内容 ...
  • 88250
    订阅者

    重启一下试试。

    2 回复
  • zfdstudy
    订阅者 作者

    目前试过的傻瓜操作有:

    • 关闭笔记本并重新打开
    • 关闭 siyuan 并重新打开
    • 关闭电脑并重新打开
    • 换一台没用装过 siyuan 1.1.83 的电脑安装 1.2.0-beta6 并从网盘复制 1.1.83 版本的文件到 data 文件夹并打开

    以上方法都没有效果。。

  • zfdstudy
    订阅者 作者

    另外发现路径“...笔记本名\AA\BB\CC\”下,“【BCG-TMI】抢滩私域新战场-2021 中国私域营销白皮书.md”这个 md 文件没有被转移成.sy 文件,而是被清除了。

  • 88250
    订阅者

    请上传一下日志文件,工作空间 conf/siyuan.log

    1 回复
  • zfdstudy
    订阅者 作者

    I 2021/06/15 13:42:09 working.go:97: kernel is booting:

    • ver [1.2.0-beta6]
    • runtime mode [prod]
    • workspace directory [C:\Users\.\Documents\SiYuan]
    • working directory [C:\Users\.\AppData\Local\Programs\SiYuan\resources]
    • temp directory [C:\Users\.\AppData\Local\Temp\siyuan]
    • system temp directory [C:\Windows\Temp\siyuan]
    • rsync directory [C:\Users\.\AppData\Local\Programs\SiYuan\resources\rsync]
    • read only [false]
    • container [std]
    • resident [true]
    • arch [amd64]
      I 2021/06/15 13:42:09 conf.go:219: local serve path [http://127.0.0.1
      I 2021/06/15 13:42:09 database.go:97: reinitialized database [C:\Users\.\AppData\Local\Temp\siyuan\siyuan.db]
      I 2021/06/15 13:42:09 serve.go:50: kernel HTTP server is booting [http://0.0.0.0
      I 2021/06/15 13:42:15 working.go:122: kernel booted
      I 2021/06/15 13:42:19 box.go:444: migrated doc from [/README.md] to [/README.sy]
      I 2021/06/15 13:42:19 box.go:444: migrated doc from [/daily note/2021/04/2021-04-21.md] to [/daily note/2021/04/2021-04-21.sy]
      I 2021/06/15 13:42:19 box.go:444: migrated doc from [/daily note/2021/04/2021-04-23.md] to [/daily note/2021/04/2021-04-23.sy]
      I 2021/06/15 13:42:19 box.go:444: migrated doc from [/daily note/2021/04/2021-04-24.md] to [/daily note/2021/04/2021-04-24.sy]
      I 2021/06/15 13:42:19 box.go:444: migrated doc from [/daily note/2021/04/2021-04-25.md] to [/daily note/2021/04/2021-04-25.sy]
      I 2021/06/15 13:42:19 box.go:444: migrated doc from [/daily note/2021/04/2021-04-28.md] to [/daily note/2021/04/2021-04-28.sy]
      I 2021/06/15 13:42:19 box.go:444: migrated doc from [/daily note/2021/05/2021-05-12.md] to [/daily note/2021/05/2021-05-12.sy]
      I 2021/06/15 13:42:19 box.go:444: migrated doc from [/daily note/2021/05/2021-05-23.md] to [/daily note/2021/05/2021-05-23.sy]
      I 2021/06/15 13:42:19 box.go:444: migrated doc from [/daily note/2021/06/2021-06-01.md] to [/daily note/2021/06/2021-06-01.sy]
      I 2021/06/15 13:42:19 box.go:444: migrated doc from [/daily note/2021/06/2021-06-02.md] to [/daily note/2021/06/2021-06-02.sy]
      I 2021/06/15 13:42:19 box.go:444: migrated doc from [/daily note/2021/06/2021-06-06.md] to [/daily note/2021/06/2021-06-06.sy]
      I 2021/06/15 13:42:20 box.go:444: migrated doc from [/daily note/2021/06/2021-06-07.md] to [/daily note/2021/06/2021-06-07.sy]
      I 2021/06/15 13:42:20 box.go:444: migrated doc from [/daily note/2021/06/2021-06-10.md] to [/daily note/2021/06/2021-06-10.sy]
      I 2021/06/15 13:42:20 box.go:444: migrated doc from [/daily note/2021/06/2021-06-11.md] to [/daily note/2021/06/2021-06-11.sy]
      I 2021/06/15 13:42:20 box.go:444: migrated doc from [/daily note/2021/06/2021-06-14.md] to [/daily note/2021/06/2021-06-14.sy]
      I 2021/06/15 13:42:20 box.go:444: migrated doc from [/知识/零售/....md] to [/知识/零售/....sy]
      I 2021/06/15 13:42:20 box.go:444: migrated doc from [/知识/零售/....md] to [/知识/零售/....sy]
      I 2021/06/15 13:42:20 box.go:444: migrated doc from [/职业/....md] to [/职业/....sy]
      I 2021/06/15 13:42:20 box.go:444: migrated doc from [/财产/A/B/C/D.md] to [/财产/A/B/C/D.sy]
    • 所有原日记内容打开.sy 时报错
    • 做了一定隐私屏蔽处理,下面的文件不在 log 里:

    image.png

  • 88250
    订阅者

    有发现错误日志么?

  • zfdstudy
    订阅者 作者

    进度:已成功更改旧版本文件

    虽然原因还不知道,不过我通过以下具体步骤修复了问题

    • "未找到 ID 为[xxx]的内容块":删除[笔记本名称].siyuan\filetree.json 文件,关闭思源笔记程序后重新打开,之后可以正常打开
    • 部分.md 文件未成功转换成.sy 文件:文档树-对应的文件或文件夹右键选择“删除”-父级文件夹右键导入文件或文件夹,之后可以正常打开
      • 导入后我电脑上的[笔记本名称].siyuan\filetree.json 内未增加新导入的内容,逐一修改新导入的文件的文件名后 filetree.json 触发了更新,添加了相关文件的内容
请输入回帖内容 ...