The tracker isn't running
What to do when the dashboard says "Byte can't find the tracker", or setup says the tracker won't start.
What you see
- A card on the dashboard that says Byte can’t find the tracker, with “The Hindsight daemon isn’t running, so nothing is being counted.”
- Tracker not running under your name in the sidebar.
- In Settings > Setup, under This computer: “The tracker isn’t running”.
- During setup, “Starting the tracker…”, and after 12 seconds, “Uh oh, the tracker won’t start.”
The tracker (hindsight-daemon) is the program that records your work and uploads it. The app is only a window onto it. While the tracker is down, nothing uploads and Hindsight can’t watch whether you’re at the keyboard. Agent hooks still write their events to the local database, and those upload when the tracker comes back.
Why it happens
An installed Hindsight starts the tracker when the app starts, and starts it again if it stops. It won’t try more than once every 30 seconds, so a tracker that can’t start doesn’t get relaunched in a loop. A few things stop it:
- Another program is using its port. The tracker listens on
127.0.0.1:5292(or the port inHINDSIGHT_PORT). If something else has it,daemon.logends witherror: binding 127.0.0.1:5292 (is another daemon already running?). - Windows couldn’t load it. The app turns the exit code into a sentence. “The tracker couldn’t start: a file it needs is missing from Windows.” is what you get when a runtime file such as
VCRUNTIME140.dllis missing. “The tracker couldn’t start: Windows couldn’t load it.” and “The tracker crashed.” are the other two it can name. - The app isn’t running. Quitting from the tray menu closes the app but leaves the tracker going. If the tracker has also stopped, nothing restarts it until you open Hindsight again.
- The system refused to start the file. You’ll see “Windows wouldn’t start the tracker:” followed by the system’s own reason.
How to fix it
Click the button
On the dashboard card, click Start it now. In setup, click Try again. Hindsight starts the tracker, waits a moment, and checks again.
Read why it stopped
The card and the setup step show the reason when the app knows it. The full story is in daemon.log in the data folder. After a crash, the last lines read hindsight-desktop: The tracker stopped with code 0x….
Run it yourself to see the error
Quit Hindsight from the tray, then run the tracker in a terminal (how to run it):
hindsight-daemon runAny error prints right there.
If the port is the problem, find the other program and close it, or set HINDSIGHT_PORT to a free port before starting Hindsight. The app and the tracker both read that variable.
A tracker from before an update can still be running after the update. The app notices when the running tracker is older than itself, stops it and starts its own. You don’t need to do anything.