> ## Content Index
> Fetch the complete content index at: https://blog.skitisu.com/llms.txt
> Use this file to discover other available public pages before exploring further.

# 解决Syncthing/SyncTrayzor提示Cannot open database
- URL: https://blog.skitisu.com/syncthing-synctrayzor-cannot-open-database/
- Published: 2020-04-11T05:18:49.000Z
- Updated: 2020-04-11T05:18:49.000Z
- Author: SkiTiSu
- Tags: Uncategorized, #Import 2026-10-21 14:41

出现Cannot open database问题可能是由以下两种情况导致的：

## 1\. 运行了两次Syncthing

请在任务管理器中检查是否还有其他的Syncthing正在运行。

## 2\. 程序上次意外关闭（断电等）导致数据库锁

需要到C:\\Users\\当前用户名\\AppData\\Local\\Syncthing\\index-v0.14.0.db中，删除CURRENT和LOCK文件。

## 3\. 数据库版本不匹配

如果Cannot open database消失了，但是打开后只打几条日志就没反应了，可能是由于数据库版本与Syncthing版本不匹配导致的，需要手动更新Syncthing版本。  
SyncTrayzor用户，请先到 [https://github.com/syncthing/syncthing/releases](https://github.com/syncthing/syncthing/releases?ref=blog.skitisu.com) 下载最新版本，然后替换C:\\Users\\SkiTiSu\\AppData\\Roaming\\SyncTrayzor中的syncthing.exe文件，打开后会自动更新数据库文件。

天书尝试过直接删除index-v0.14.0.db文件夹，并没有卵用。可能我碰到的是之前更新到一半就被意外关机了，导致了2和3同时出现……删除那个数据库文件夹并不会让程序成功重建数据库。

> 参考  
> [https://github.com/syncthing/syncthing/issues/1926](https://github.com/syncthing/syncthing/issues/1926?ref=blog.skitisu.com)