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

Eventually stops detecting devices, confidence reports as zero until I reboot #25

Open
tmchow opened this issue Jul 15, 2019 · 1 comment

Comments

@tmchow
Copy link

tmchow commented Jul 15, 2019

When presence is running for awhile, if then stops reporting confidence. Always zero until I reboot which then fixes it.

My behavior_preferences file is this:

#DELAY BETWEEN SCANS OF OWNER DEVICES WHEN AWAY FROM HOME
delay_between_owner_scans_away=6

#DELAY BETWEEN SCANS OF OWNER DEVICES WHEN HOME
delay_between_owner_scans_present=20

#HOW MANY VERIFICATIONS ARE REQUIRED TO DETERMINE A DEVICE IS AWAY
verification_of_away_loop_size=6

#HOW LONG TO DELAY BETWEEN VERIFICATIONS THAT A DEVICE IS AWAY
verification_of_away_loop_delay=3

#PREFERRED HCI DEVICE
hci_device='hci0'

If i then check the status using systemctl, I get network errors:

pi@pi-presence:~/presence $ sudo systemctl status presence.service
● presence.service - Presence service
   Loaded: loaded (/etc/systemd/system/presence.service; enabled; vendor preset: enabled)
   Active: active (running) since Mon 2019-07-15 19:37:57 BST; 27min ago
 Main PID: 229 (bash)
   CGroup: /system.slice/presence.service
           ├─ 229 /bin/bash /home/pi/presence/presence.sh &
           ├─4450 /bin/bash /home/pi/presence/presence.sh &
           ├─4451 /bin/bash /home/pi/presence/presence.sh &
           ├─4452 hcitool -i hci0 name 38:53:9C:9A:BC:02
           ├─4453 grep -v not available
           └─4454 grep -vE hcitool|timeout|invalid|error

Jul 15 19:47:18 pi-presence bash[229]: Error: Network is unreachable
Jul 15 19:47:20 pi-presence bash[229]: Error: Network is unreachable
Jul 15 19:55:18 pi-presence bash[229]: Error: Network is unreachable
Jul 15 19:55:26 pi-presence bash[229]: Error: Network is unreachable
Jul 15 19:55:27 pi-presence bash[229]: Error: Network is unreachable
Jul 15 19:55:29 pi-presence bash[229]: Error: Network is unreachable
Jul 15 19:55:29 pi-presence bash[229]: Error: Network is unreachable
Jul 15 19:55:38 pi-presence bash[229]: Error: Network is unreachable
Jul 15 19:56:09 pi-presence bash[229]: Error: Network is unreachable
Jul 15 20:00:25 pi-presence bash[229]: Error: Network is unreachable

If I then restart, I seem to get back into a good state:

pi@pi-presence:~/presence $ sudo systemctl status presence.service
● presence.service - Presence service
   Loaded: loaded (/etc/systemd/system/presence.service; enabled; vendor preset: enabled)
   Active: active (running) since Mon 2019-07-15 20:05:29 BST; 3s ago
 Main PID: 4513 (bash)
   CGroup: /system.slice/presence.service
           ├─4513 /bin/bash /home/pi/presence/presence.sh &
           ├─4526 /bin/bash /home/pi/presence/presence.sh &
           ├─4527 /bin/bash /home/pi/presence/presence.sh &
           ├─4528 hcitool -i hci0 name 3C:28:6D:1D:8E:66
           ├─4529 grep -v not available
           └─4530 grep -vE hcitool|timeout|invalid|error

Jul 15 20:05:29 pi-presence systemd[1]: Started Presence service.```

This might be unrelated but trying to figure out why it will suddenly stop detecting devices.
@tmchow tmchow changed the title Eventually stops detecting devices, confidence reports as zero Eventually stops detecting devices, confidence reports as zero until I reboot Jul 15, 2019
@UhtredTheBold
Copy link

UhtredTheBold commented Aug 5, 2019

I'm seeing the exact same thing since yesterday on my raspberry pi zerow. the confidence stopped reporting at 1am and I saw the same messages in the service status. I tried restarting the service but it was only after a reboot that everything came back.

It had been working for 6+ months without a hiccup but yesterday happens to be when I upgraded to raspbian buster which seems a hell of a coincidence.

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

No branches or pull requests

2 participants