ActivityWatch / ActivityWatch/aw-server-rust

Database migration did not find place after upgrading from python to rust

オープン
#546 コメント 2 件 リアクション 0 件 担当者 0 名 GitHub で見る
主要言語
Rust
スター
315
フォーク
96
平均マージ
2日 21時間
マージ済み PR(30日)
14

説明

If I understand https://docs.activitywatch.net/en/latest/migrating.html correctly, when starting aw-server-rust, the old database should automatically be migrated. It apparently didn't happen for me. Some observations:

* Python version was configured without "storage" set in the toml-file, default peevee assumed
* The web interface does show that new events come into the database, but it does not show any old events
* The database file `$HOME/.local/share/activitywatch/aw-server-rust/sqlite.db` is 60MB big, that clearly indicates it still has old data.
* Here are the logs:

```
$ journalctl --user -u aw-server
Dec 08 09:25:20 archlinux systemd[1099]: Starting ActivityWatch Server (Rust implementation)...
Dec 08 09:25:20 archlinux aw-server[3765361]: [2025-12-08 09:25:20][INFO][aw_server]: Using DB at path "/home/tobias/.local/share/activitywatch/aw-server-rust/sqlite.db"
Dec 08 09:25:20 archlinux aw-server[3765361]: [2025-12-08 09:25:20][INFO][aw_server]: Using aw-webui assets at path None
Dec 08 09:25:20 archlinux aw-server[3765361]: [2025-12-08 09:25:20][INFO][aw_server::endpoints]: Starting aw-server-rust at 127.0.0.1:5600
Dec 08 09:25:20 archlinux aw-server[3765361]: [2025-12-08 09:25:20][WARN][rocket::launch]: Rocket has launched from http://127.0.0.1:5600
Dec 08 09:25:20 archlinux systemd[1099]: Started ActivityWatch Server (Rust implementation).
Dec 08 09:26:00 archlinux aw-server[3765361]: [2025-12-08 09:26:00][WARN][rocket::response::responder::_]: Response was `None`.
Dec 08 09:26:00 archlinux aw-server[3765361]: [2025-12-08 09:26:00][WARN][rocket::server::_]: No 404 catcher registered. Using Rocket default.
```

コントリビューションガイド

このリポジトリのコントリビューションガイドは索引されていません

評価

この issue はまだ評価されていません。

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。