aw-server-rust icon indicating copy to clipboard operation
aw-server-rust copied to clipboard

"poisoned lock: another task failed inside"

Open EtaoinWu opened this issue 10 months ago • 6 comments

I'm using the latest release of AW (0.12.2) on Windows 11 (22H2 build 22621.2215) with aw-server-rust enabled. Lately whenever I open up the web UI and check any day under "activity" I got this in the logs for aw-server-rust:

[2023-08-29 17:31:41][INFO][aw_server]: Using DB at path "C:\\Users\\etaoi\\AppData\\Local\\activitywatch\\aw-server-rust\\sqlite.db"
[2023-08-29 17:31:41][INFO][aw_server]: Cannot find assets "./aw-webui/dist/"
[2023-08-29 17:31:41][INFO][aw_server]: Using aw-webui assets at path "C:\\Program Files (x86)\\ActivityWatch\\aw-server-rust\\./static/"
[2023-08-29 17:31:41][INFO][aw_server::endpoints]: Starting aw-server-rust at 127.0.0.1:5600
[2023-08-29 17:32:51][ERROR][_]: No matching routes for GET /manifest.json.
[2023-08-29 17:32:51][WARN][_]: No 404 catcher registered. Using Rocket default.
[2023-08-29 17:33:34][ERROR][_]: Handler query panicked.
[2023-08-29 17:33:34][WARN][_]: A panic is treated as an internal server error.
[2023-08-29 17:33:34][WARN][_]: No 500 catcher registered. Using Rocket default.
[2023-08-29 17:33:37][WARN][aw_server::endpoints::bucket]: Taking datastore lock failed, returning 504: poisoned lock: another task failed inside
[2023-08-29 17:33:39][WARN][aw_server::endpoints::bucket]: Taking datastore lock failed, returning 504: poisoned lock: another task failed inside
[2023-08-29 17:33:40][WARN][aw_server::endpoints::bucket]: Taking datastore lock failed, returning 504: poisoned lock: another task failed inside
[2023-08-29 17:33:41][WARN][aw_server::endpoints::bucket]: Taking datastore lock failed, returning 504: poisoned lock: another task failed inside
(the previous warning repeats for dozens of times)

The same warning (Taking datastore lock failed, returning 504: poisoned lock: another task failed inside) also appears (multiple times) on the web UI. All the After the problem occurs, I cannot use "Timeline" as well.

However, after a clean start of aw-server-rust, I can still view the "timeline" without error of a time range that includes the days that caused the error at "Activity".

My sqlite database is like 200MB, and it obviously contains my privacy, so I am unable to share it.

EtaoinWu avatar Aug 29 '23 09:08 EtaoinWu