ActivityWatch / ActivityWatch/aw-server

Malformed sqlite database

未关闭
#89 4 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看
主要语言
Python
星标
128
派生
94
平均合并
4 天 18 小时
30 天内合并 PR
3

描述

So it happened, I have on that data from the end of 2019 and I was sad to delete but it is possible to recover the data on it.

```
sqlite3 /home/[your-user]/.local/share/activitywatch/aw-server/peewee-sqlite.v2.db ".dump" > dump.sql
rm -f /home/[your-user]/.local/share/activitywatch/aw-server/peewee-sqlite.v2.db
sqlite3 -init dump.sql /home/[your-user]/.local/share/activitywatch/aw-server/peewee-sqlite.v2.db
.quit
```

With this commands I was able to recreate a database and now activity watch starts. In case of this issue you have aw-qt reporting an error, if you press restart server aw-qt crashes...
With the more details button you see the error on peewee about the malformed database, so you need to do those commands and restart aw-qt.

贡献指南

这个仓库没有索引到贡献指南

评估

这个 Issue 还没有评估数据。

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。