-
Notifications
You must be signed in to change notification settings - Fork 14
Description
I regularly get lines like this one (not only at system startup like in this example)
[2025-08-30 05:49:35.103571 ERROR watchers::watchers] Error on idle iteration: Failed to send heartbeat
They appear in
journalctl -b --user-unit=aw-awatcher.service
The site http://localhost:5600/#/timeline around 07:49:35 shows that indeed there is no "afk" event logged.

The aw-server (started with aw-server --verbose) log (see the attached file) shows two POSTs:
[2025-08-30 07:49:35][INFO][rocket::server]: POST //api/0/buckets/aw-watcher-afk_username application/json:
and shortly after
[2025-08-30 07:49:35][INFO][rocket::server]: POST //api/0/buckets/aw-watcher-window_username application/json:
and both with successful responses.
The relevant code lines are as below
awatcher/watchers/src/report_client.rs
Lines 91 to 93 in 678d7fd
| Self::run_with_retries(request) | |
| .await | |
| .with_context(|| "Failed to send heartbeat") |
This error is a bit unsettling. Why does this happen and can this be prevented?
Additional info:
- sway version 1.10.1
- Activity Watcher 0.3.1
- aw-server 0.13.1+c640979