Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

No Data despite data existing in the buckets #998

Open
2 tasks done
AlexLJordan opened this issue Dec 17, 2023 · 11 comments
Open
2 tasks done

No Data despite data existing in the buckets #998

AlexLJordan opened this issue Dec 17, 2023 · 11 comments

Comments

@AlexLJordan
Copy link

  • I am on the latest ActivityWatch version.
  • 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

Copy link

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
Copy link
Contributor

BelKed commented Dec 17, 2023

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

@ghost
Copy link

ghost commented Jan 16, 2024

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
Copy link

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

@wonka929
Copy link

Look at my comment for this other Issue

#1006

@mzfr
Copy link

mzfr commented Feb 13, 2024

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

@shoaib281
Copy link

Did you find a way to resolve this? @mzfr

@mzfr
Copy link

mzfr commented May 19, 2024

@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
Copy link
Member

ErikBjare commented May 19, 2024

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
Copy link

Rubikoid commented Jun 13, 2024

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
Copy link

Rubikoid commented Jun 13, 2024

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

8 participants