activitywatch icon indicating copy to clipboard operation
activitywatch copied to clipboard

No Data despite data existing in the buckets

Open AlexLJordan opened this issue 1 year ago • 11 comments

  • [x] I am on the latest ActivityWatch version.
  • [x] I have searched the issues of this repo and believe that this is not a duplicate.
  • OS name and version: NixOS 23.05
  • ActivityWatch version: 0.12.2 (rust)

Describe the bug

I'm missing data for a about 14 days.

I checked the JSON of my buckets: They do contain a bunch of events, which dont look mangled in any way. The timeline view shows the data properly.

So yeah. Whats happening here?

To Reproduce

  1. have aw-qt in your autostart
  2. have modules enabled
  3. everything works for months

Expected behavior

Not losing data.

Documentation

Today: only half of todays events are tracked: Screenshot_20231217_193254

My example will be the 14th december.

No data for previous days: no-data

Timeline works: no-data2

Additional context

AlexLJordan avatar Dec 17 '23 18:12 AlexLJordan

Hi there! As you're new to this repo, please make sure you've used an appropriate issue template and searched for duplicates (it helps us focus on actual development!). We'd also like to suggest that you read our contribution guidelines and our code of conduct. Thanks a bunch for opening your first issue! 🙏

github-actions[bot] avatar Dec 17 '23 18:12 github-actions[bot]

Could you please try the latest beta version (v0.12.3b15) to verify if the issue still occurs there?

BelKed avatar Dec 17 '23 19:12 BelKed

Could you please try the latest beta version (v0.12.3b15) to verify if the issue still occurs there?

Screenshot from 2024-01-16 20-38-08

ghost avatar Jan 16 '24 19:01 ghost

I have the same issue, and the latest beta version and my OS triggered a security alert.

lucianosarno avatar Jan 19 '24 14:01 lucianosarno

Look at my comment for this other Issue

https://github.com/ActivityWatch/activitywatch/issues/1006

wonka929 avatar Jan 25 '24 14:01 wonka929

I have been facing a similar issue. I just noticed that the dashboard for the last 5/6 days just says "No Data".

I've tried stopping and restarting the server but that didn't help. I even moved from version 0.12.2 to 0.12.3b16 but I still had the same issue.

OS name and version - Sonoma 14.2.1 Current Activity watch version - 0.12.3b16

  • Same issue on version 0.12.2 as well, under the same OS

image

image

mzfr avatar Feb 13 '24 08:02 mzfr

Did you find a way to resolve this? @mzfr

shoaib281 avatar May 15 '24 18:05 shoaib281

@shoaib281 Nope. For some reason only the Browser Watcher is working so I can only see data in the "browser" tab of the Activity. But other than that the problem is still there for me, even on version v0.12.3b16

mzfr avatar May 19 '24 04:05 mzfr

In both @AlexLJordan and @mzfr's timeline screenshots there's missing data. We need data from both aw-watcher-window and aw-watcher-afk to display the Activity view (although the AFK bucket filtering can be disabled in the "Filter" menu).

In @AlexLJordan's screenshot there's no aw-watcher-window bucket, so the watcher must have crashed. Simply restarting it would fix it. I'm considering better restart mechanics for watchers that crash to address this.

In @mzfr's screenshot the aw-watcher-afk and aw-watcher-window watchers don't have any overlapping data. Almost like one crashed and then the other was started. This might be a Sonoma problem (I'm still on macOS 13). Not sure what happened there.

ErikBjare avatar May 19 '24 07:05 ErikBjare

Faced the same problem after update to v0.13.1. Before update everything was ok.

Checking any previous day also leads to no data.

OS name and version - Sonoma 14.3.1.

No data on the main tab: Screenshot 2024-06-13 at 18 02 17
Only the editor tab works: Screenshot 2024-06-13 at 18 08 31
But buckets are filling properly: Screenshot 2024-06-13 at 18 02 32

Rubikoid avatar Jun 13 '24 15:06 Rubikoid

Okay, I found a reason.

Sometimes, in some networks MacOS can change itself domain to ip/${name}.local.

I had main rubi-mbp14 AND a rubi-mbp14.local buckets.

But due to usage of find_bucket in web request (flood(query_bucket(find_bucket("aw-watcher-window_rubi-mbp14"))); ), instead of aw-watcher-window_rubi-mbp14 was aw-watcher-window_rubi-mbp14.local matched

Which, of course, contains no data.

For me, I just removed all buckets, related to rubi-mbp14.local, but I think this is a bug in web query builder.

Rubikoid avatar Jun 13 '24 16:06 Rubikoid