Ruuvi-collector.service stopped collecting data after package update

I updated my RPi3B+ by doing sudo apt update and sudo apt full-upgrade. As a result, the collector went a bit bonkers and wouldn’t start at all because something went missing. I installed things according to the blog post which demonstrated creating the system.

Everything seems to be working, the service runs just fine upon reboot. However, it will not collect any data.

● ruuvicollector.service - RuuviCollector Service
Loaded: loaded (/etc/systemd/system/ruuvicollector.service; enabled; vendor preset: enabled)
Active: active (running) since Thu 2020-09-03 20:59:55 EEST; 34min ago
Main PID: 473 (java)
Tasks: 14 (limit: 2065)
CGroup: /system.slice/ruuvicollector.service
├─473 /usr/bin/java -jar /home/pi/RuuviCollector/ruuvi-collector-0.2.jar
└─709 hcidump --raw

Sep 03 20:59:55 ruuvicollector systemd[1]: Started RuuviCollector Service.
Sep 03 21:00:01 ruuvicollector java[473]: 2020-09-03 21:00:01.858 DEBUG [Config] Tag names: /home/pi/RuuviCollector/ruuvi-names.properties
Sep 03 21:00:01 ruuvicollector java[473]: 2020-09-03 21:00:01.897 DEBUG [Config] Config: /home/pi/RuuviCollector/ruuvi-collector.properties
Sep 03 21:00:02 ruuvicollector java[473]: 2020-09-03 21:00:02.417 DEBUG [Main] Starting scan with: [hcitool, lescan, --duplicates, --passive]
Sep 03 21:00:02 ruuvicollector java[473]: 2020-09-03 21:00:02.441 DEBUG [Main] Starting dump with: [hcidump, --raw]
Sep 03 21:00:02 ruuvicollector java[473]: 2020-09-03 21:00:02.486 INFO [Main] BLE listener started successfully, waiting for data…
Sep 03 21:00:02 ruuvicollector java[473]: If you don’t get any data, check that you are able to run ‘hcitool lescan’ and ‘hcidump --raw’ without issues
Sep 03 21:01:02 ruuvicollector java[473]: 2020-09-03 21:01:02.482 INFO [Main] Successfully reading data from hcidump

If I now run hcitool lescan in terminal, data collection starts immediately.

If I close the ssh connection and open a new one, hcitool lescan gives me an error: Set scan parameters failed: Input/output error.

Can anyone give me some advice?

It suddenly started working after launching sudo systemctl enable ruuvicollector.service one more time in terminal. After reboot, still collecting data. A really weird thing because the service was already enabled and running.

Thanks for sharing, now we know what to do if RuuviCollector breaks after update :slight_smile: