-
-
Notifications
You must be signed in to change notification settings - Fork 63
Firefox watcher not logging data #32
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
Comments
So the bucket is created but there is no data in it, correct? Are you looking in the "Activity" tab or in the "Raw Data" tab? If there is not even any data inside the bucket in "Raw Data" you should find the aw-server log file or debug the firefox addon as there is an issue in one of them but not sure which. How to debug addons on firefox you can Google and the aw-server log relies in ~/.cache/activitywatch/aw-server on Linux.
That doesn't matter, aw-watcher-web does not look at the browsers built-in history but as long as the extension is enabled it will track every website you visit similar to the browser history. The reason why we essentially create yet another history is because the built-in browser history does not include the duration the user visited the site which is very important for ActivityWatch to be an useful tool. |
Correct. I am looking in the "Raw Data" tab. The aw-server log file does not receive a "heartbeat" from Firefox, so there is no
in the 3 log files currently generated. Also, I noticed the Firefox addon display 'Running: checked' but its 'Last sync: never'. Below is output from the debug console.
|
Aha. It's most likely that for some reason your browser is quick at dropping the info about the tabs which aw-watcher-web has a reference to. https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Errors/Dead_object Maybe we could fix this by simply cloning the object, not sure though. |
I'll be happy to give it a try. How would I clone the object? May I ask of the tested Firefox's privacy preferences? Changed mine from 'strict' to 'standard', restarted my machine and no difference is seen. |
Watcher is still not working and I haven't figured out how to clone the object. May you please help me? |
I have had a similar issue now actually, but it did not occur at all at when I expected it to. I was testing the aw-server-rust server instead of the standard aw-server-python server and that responded with another response than aw-server-python which aw-watcher-web did not expect. Things did still work as expected but I got the same constant "sources: TypeError: can't access dead object" error message. What version of activitywatch are you running? I assume that you are not running aw-server-rust? |
If you have the time to debug, please try out the aw-watcher-web branch in #33 and look at the console, should hopefully provide better error messages |
I'll close this, have not seen the issue in a very long time. |
A user on the forum reported that this might be because of a setting in firefox https://forum.activitywatch.net/t/unable-to-connect-to-server-with-aw-watcher-web-firefox This should be documented! |
I have a similar issue, and does not set "never remember history". The most recent log file (3 days ago) does not have
I'm on Linux and currently on Wayland, so currently no browsing history is recorded at all... But I can confirm AW is working as I do have some logs (probably applications using XWayland); previously on X11 AW was working fine. My previous attempt (2 months ago) with Firefox Developer Edition with custom build of the extension also had no data. I thought it was because of custom build, but now it looks like it's not. |
I have the same problem with v0.5.0, Firefox 135.0.1 (64-Bit), Ubuntu 22.04.5 LTS (Wayland). Every day no data is logged. If I open the extensions dev tools and reload it starts to work. Like it is just not starting up. Maybe because my Firefox is restoring tabs? |
@kw-pr Hi, it might have been in fixed the recent commits. To install, follow the instructions in the README :) If it doesn't work, try to check the logs — for that ideally install Firefox Developer Edition, install just the ActivityWatch extension and open Browser Console (Ctrl+Shift+J). You'll probably need to switch it to Multiprocess to see logs from the extension. And, lastly, it might be an issue on the UI side; please check if you have data in these three buckets:
|
Uh oh!
There was an error while loading. Please reload this page.
Hello, I installed Activity Watcher today on Ubuntu 18.04 with Firefox 66.0.3. Thank you very much for making this software.
I added the firefox web watcher a few hours ago, but there is no data in the aw-watcher-web-firefox bucket. aw-watcher-window bucket is logging Firefox window titles fine. Might the problem be that I clear firefox Data (including cache) and History daily?
The text was updated successfully, but these errors were encountered: