Troubleshooting
A blocked site still opens the second time
Section titled “A blocked site still opens the second time”Almost always browser DNS cache. Check the system state first:
sed -n '/DEEPFOCUS-BEGIN/,/DEEPFOCUS-END/p' /etc/hostsIf the block lines are there, the block works; do a hard refresh (⌘⌥R in Safari, ⌘⇧R in Chrome/Firefox). If it keeps happening only in Chrome or Firefox, disable Secure DNS in that browser (see Website blocking).
Blocking does nothing at all
Section titled “Blocking does nothing at all”The helper is not installed or not running. Open the app preferences, Blocklist tab: the bottom line tells you the helper state. For the raw state:
cat "/Library/Application Support/DeepFocus/status.json"helper is the version, block must be true during a focus. If the file is missing, run the installer script again (see Installation).
The helper did not install (script exits silently after the password prompt)
Section titled “The helper did not install (script exits silently after the password prompt)”Older versions of the installer created the temp download folder as root, which broke the later user-level download step. Re-download the current installer and rerun it; the current version reports its steps explicitly.
https block page shows a certificate warning
Section titled “https block page shows a certificate warning”The helper’s local certificate authority must be marked trusted. The installer does this once; if you skipped it, rerun the installer. A normal warning on a domain you never blocked is expected: certificates only exist for domains on your active blocklist.
The app shows old behavior after an update
Section titled “The app shows old behavior after an update”Updates take effect on relaunch; deepfocus-update handles this for you. A stale page in your browser is fixed with a hard refresh.