Skip to content

No Data despite data existing in the buckets #998

Closed

Description

@AlexLJordan
  • 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

Activity

  1. github-actions commented on Dec 17, 2023

    @github-actions

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

  2. BelKed commented on Dec 17, 2023

    @BelKed
    Contributor

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

  3. lucianosarno commented on Jan 19, 2024

    @lucianosarno

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

  4. wonka929 commented on Jan 25, 2024

    @wonka929

    Look at my comment for this other Issue

    #1006

  5. mzfr commented on Feb 13, 2024

    @mzfr

    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

  6. shoaib281 commented on May 15, 2024

    @shoaib281

    Did you find a way to resolve this? @mzfr

  7. mzfr commented on May 19, 2024

    @mzfr

    @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

  8. ErikBjare commented on May 19, 2024

    @ErikBjare
    Member

    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.

  9. Rubikoid commented on Jun 13, 2024

    @Rubikoid

    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
  10. Rubikoid commented on Jun 13, 2024

    @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.

  11. stale commented on Jul 19, 2025

    @stale

    This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

  12. 0xbrayo commented on Oct 18, 2026

    @0xbrayo
    Member

    The root cause found by @Rubikoid has been fixed in ActivityWatch/aw-webui#760, which shipped in v0.14.0. If a host had buckets with similar names (e.g. myhost and myhost.local), the web UI's find_bucket() lookup could match the wrong bucket and show no data. The Activity view now queries the exact bucket ID when the hostname is known.

    @AlexLJordan could you update to the latest release and confirm whether this is resolved for you? We'll close this issue if we don't hear otherwise.

  13. AlexLJordan commented on Oct 21, 2026

    @AlexLJordan
    Author

    I'm glad to hear a root cause was found! I moved PCs since this bug and somewhere across the migration my AW config seems to have busted, so I don't have any data recorded to check with the new release.
    But I think the issue can be closed :)

    Thanks for following up on this after so much time! I appreciate it. This repo and it's community are very admirable for that.

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions