there are multiple things going on here
1) You have started reef-pi directly , as normal (pi) user, which does not have required privileges. permission denied errors are related to that. Stop the current process (Ctl+C) , that you started. The right way to start or stop reef-pi is
Code:
sudo systemctl start reef-pi.service
change start to stop in the above command for stopping reef-pi. The troubleshooting page details how to check log and status, use those when you report an error, it will be easier to debug
2) the usage errors are benign and expected . When you first start reef-pi usage data is not present (since it has not run for long enough).
Ok, thank you for the help!
I used control C and then started reef pi as instructed. It would appear as if reef-pi is still not running correctly. I also ran information from the troubleshooting page as you said and got this response. forgive me as I am new to this operating system and working with any kind of programming.
sudo systemctl status reef-pi.service
● reef-pi.service - raspberry pi based reef tank controller
Loaded: loaded (/lib/systemd/system/reef-pi.service; enabled; vendor preset:
Active: active (running) since Sat 2018-07-21 22:29:05 EDT; 6min ago
Main PID: 302 (reef-pi)
CGroup: /system.slice/reef-pi.service
└─302 /usr/bin/reef-pi -config /etc/reef-pi/config.yml
Jul 21 22:29:06 raspberrypi reef-pi[302]: 2018/07/21 22:29:06 ERROR: Failed to l
Jul 21 22:29:06 raspberrypi reef-pi[302]: 2018/07/21 22:29:06 ERROR: health chec
Jul 21 22:29:06 raspberrypi reef-pi[302]: 2018/07/21 22:29:06 ERROR: health chec
Jul 21 22:29:06 raspberrypi reef-pi[302]: 2018/07/21 22:29:06 Starting health ch
Jul 21 22:29:06 raspberrypi reef-pi[302]: 2018/07/21 22:29:06 Starting http serv
Jul 21 22:30:06 raspberrypi reef-pi[302]: 2018/07/21 22:30:06 health check: Used
Jul 21 22:31:26 raspberrypi reef-pi[302]: 2018/07/21 22:31:26 health check: Used
Jul 21 22:32:26 raspberrypi reef-pi[302]: 2018/07/21 22:32:26 health check: Used
Jul 21 22:33:26 raspberrypi reef-pi[302]: 2018/07/21 22:33:26 health check: Used
Jul 21 22:34:26 raspberrypi reef-pi[302]: 2018/07/21 22:34:26 health check: Used
lines 1-17/17 (END)
sudo journalctl -fu reef-pi.service
-- Logs begin at Thu 2016-11-03 13:16:42 EDT. --
Jul 21 22:29:06 raspberrypi reef-pi[302]: 2018/07/21 22:29:06 Starting health checker
Jul 21 22:29:06 raspberrypi reef-pi[302]: 2018/07/21 22:29:06 Starting http server at: 0.0.0.0:80
Jul 21 22:30:06 raspberrypi reef-pi[302]: 2018/07/21 22:30:06 health check: Used memory: 15.96 Load5: 0.18
Jul 21 22:31:26 raspberrypi reef-pi[302]: 2018/07/21 22:31:26 health check: Used memory: 16.28 Load5: 0.2
Jul 21 22:32:26 raspberrypi reef-pi[302]: 2018/07/21 22:32:26 health check: Used memory: 16.55 Load5: 0.23
Jul 21 22:33:26 raspberrypi reef-pi[302]: 2018/07/21 22:33:26 health check: Used memory: 16.25 Load5: 0.21
Jul 21 22:34:26 raspberrypi reef-pi[302]: 2018/07/21 22:34:26 health check: Used memory: 28.95 Load5: 0.35
Jul 21 22:35:26 raspberrypi reef-pi[302]: 2018/07/21 22:35:26 health check: Used memory: 16.61 Load5: 0.39
Jul 21 22:36:26 raspberrypi reef-pi[302]: 2018/07/21 22:36:26 health check: Used memory: 16.6 Load5: 0.36
Jul 21 22:37:26 raspberrypi reef-pi[302]: 2018/07/21 22:37:26 health check: Used memory: 16.6 Load5: 0.33
reef-pi -version
1.5