Scrin / RuuviCollector

Utility to collect measurements from RuuviTags and store them in InfluxDB
MIT License
125 stars 62 forks source link

BUG: Capabilties are not enough after raspberry pi os 12/2022 updates #78

Closed hulkk closed 1 year ago

hulkk commented 1 year ago

Describe the bug RuuviCollector does not work when run without root privileges after raspberry pi os 12/2022 updates.

To Reproduce

Expected behavior RuuviCollector works.

Environment OS and device (ie. Raspbian on RaspberryPI): Raspberry pi OS (32-bit) & Raspberry Pi ZeroW 2 Java version (check with java -version): openjdk version "17.0.4" 2022-07-19

Additional information Issue was resolved with adding cap_sys_rawio to capabilities.

hulkk commented 1 year ago

It seems that this was random issue, fresh install fixed.

DG12 commented 1 year ago

I have had the same problem setting /lib/systemd/system/ruuvicollector.service User=root.

Not nice. Any ideas?