ActivityWatch / ActivityWatch/aw-server

Malformed sqlite database

Open
#89 4 comments 0 reactions 0 assignees View on GitHub
Dominant language
Python
Stars
128
Forks
94
Avg merge
4d 18h
Merged PRs (30d)
3

Description

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.

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.