ActivityWatch / activitywatch

The best free and open-source automated time tracker. Cross-platform, extensible, privacy-focused.
https://activitywatch.net/
Mozilla Public License 2.0
12.67k stars 565 forks source link

No Data despite data existing in the buckets #998

Open AlexLJordan opened 11 months ago

AlexLJordan commented 11 months ago

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

github-actions[bot] commented 11 months ago

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! 🙏

BelKed commented 11 months ago

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

ghost commented 10 months ago

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

lucianosarno commented 10 months ago

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

wonka929 commented 10 months ago

Look at my comment for this other Issue

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

mzfr commented 9 months ago

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


image

image

shoaib281 commented 6 months ago

Did you find a way to resolve this? @mzfr

mzfr commented 6 months ago

@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

ErikBjare commented 6 months ago

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.

Rubikoid commented 5 months ago

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 commented 5 months ago

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.