“启动时优先使用已有数据库”回退至对全部文档重新索引

某次启动发现卡死,查看日志发现是数据库的问题。

删除 C:\Users\<username>\AppData\Local\Temp\siyuan\siyuan.db 后问题解决。

启动日志:

I 2021/06/09 09:01:57 working.go:99: 
  ____    _  __   __
 / ___|  (_) \ \ / /  _   _    __ _   _ __
 \___ \  | |  \ V /  | | | |  / _` | | '_ \
  ___) | | |   | |   | |_| | | (_| | | | | |
 |____/  |_|   |_|    \__,_|  \__,_| |_| |_|

I 2021/06/09 09:01:57 working.go:100: kernel is booting:
    * ver [1.2.0-beta4]
    * runtime mode [prod]
    * workspace directory [C:\Users\<username>\Documents\Notes\Siyuan]
    * working directory [C:\Users\<username>\AppData\Local\Programs\SiYuan\resources]
    * temp directory [C:\Users\<username>\AppData\Local\Temp\siyuan]
    * system temp directory [C:\WINDOWS\Temp\siyuan]
    * rsync directory [C:\Users\<username>\AppData\Local\Programs\SiYuan\resources\rsync]
    * read only [false]
    * container [std]
    * resident [true]
    * arch [amd64]
I 2021/06/09 09:01:57 conf.go:209: local serve path [http://<myip>:6806]
I 2021/06/09 09:01:57 serve.go:50: kernel HTTP server is booting [http://0.0.0.0:6806]
I 2021/06/09 09:01:59 box.go:522: rebuilding database of box [Knowledge Base]
E 2021/06/09 09:01:59 database.go:858: exec database stmt [DELETE FROM attributes WHERE box = ?] failed: no such table: attributes
E 2021/06/09 09:01:59 database.go:858: exec database stmt [DELETE FROM refs WHERE box = ?] failed: sql: transaction has already been committed or rolled back
E 2021/06/09 09:01:59 database.go:860: rollback database transaction failed: sql: transaction has already been committed or rolled back
E 2021/06/09 09:01:59 upsert.go:72: insert tree [url=http://127.0.0.1:6806/siyuan/1615985440626/Knowledge Base/, path=/<note>.sy] into database failed: no such table: attributes

广告 我要投放

欢迎来到这里!

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

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

    谢谢反馈,这个问题 beta5 修复。