安装应用后打开过一次,切换 workspace 目录为 dropbox 之后就无法启动了,报错如上。
具体的启动日志如下:
____ _ __ __
/ ___| (_) \ \ / / _ _ __ _ _ __
\___ \ | | \ V / | | | | / _` | | '_ \
___) | | | | | | |_| | | (_| | | | | |
|____/ |_| |_| \__,_| \__,_| |_| |_|
I 2021/06/18 21:59:34 working.go:97: kernel is booting:
* ver [1.2.0-beta8]
* runtime mode [prod]
* workspace directory [E:\Dropbox\应用\SiYuan]
* working directory [C:\Users\KChen\AppData\Local\Programs\SiYuan\resources]
* temp directory [C:\Users\KChen\AppData\Local\Temp\siyuan]
* system temp directory [C:\WINDOWS\Temp\siyuan]
* rsync directory [C:\Users\KChen\AppData\Local\Programs\SiYuan\resources\rsync]
* read only [false]
* container [std]
* resident [true]
* arch [amd64]
E 2021/06/18 21:59:34 conf.go:63: create [windowState.json] failed: rename E:\Dropbox\应用\SiYuan\conf\windowState.json058782010 E:\Dropbox\应用\SiYuan\conf\windowState.json: The process cannot access the file because it is being used by another process.
I 2021/06/18 21:59:34 conf.go:219: local serve path [http://192.168.1.106:6806]
I 2021/06/18 21:59:34 database.go:97: reinitialized database [C:\Users\KChen\AppData\Local\Temp\siyuan\siyuan.db]
I 2021/06/18 21:59:34 serve.go:50: kernel HTTP server is booting [http://0.0.0.0:6806]
I 2021/06/18 21:59:40 working.go:122: kernel booted
F 2021/06/18 21:59:42 conf.go:302: write conf [E:\Dropbox\应用\SiYuan\conf\conf.json] failed: rename E:\Dropbox\应用\SiYuan\conf\conf.json235624994 E:\Dropbox\应用\SiYuan\conf\conf.json: The process cannot access the file because it is being used by another process.
目前猜测如下:
- 启动后创建临时文件 jsonxxxxxx
- dropbox 开始同步文件
- 思源尝试 rename 文件失败,阻塞
欢迎来到这里!
我们正在构建一个小众社区,大家在这里相互信任,以平等 • 自由 • 奔放的价值观进行分享交流。最终,希望大家能够找到与自己志同道合的伙伴,共同成长。
注册 关于