Issue with reef-pi not starting on reboot

kiwinewbie

New Member
View Badges
Joined
Aug 23, 2020
Messages
14
Reaction score
6
Location
New Zealand
What state or country do you live in
Other International
Rating - 0%
0   0   0
Hi, setting up a new tank, run Robo Tank on my main tank but wanted to run Reef-Pi on smaller tank for breeding clowns

Install went smooth, but Reef-pi won't start on boot, require systemctl start reef-pi then works fine

Fresh raspberry install, nothing else installed

When running sudo netstat -tvlnp shows

Active Internet connections (only servers)


Proto Recv-Q Send-Q Local Address Foreign Address State PID/Program name


tcp 0 0 0.0.0.0:22 0.0.0.0:* LISTEN 586/sshd: /usr/sbin
tcp 0 0 127.0.0.1:631 0.0.0.0:* LISTEN 562/cupsd
tcp6 0 0 :::80 :::* LISTEN 1351/reef-pi
tcp6 0 0 :::22 :::* LISTEN 586/sshd: /usr/sbin
tcp6 0 0 ::1:631 :::* LISTEN 562/cupsd


After fresh boot Reef-pi isn't listed

Journal as follows
Sep 09 12:55:04 raspberrypi reef-pi[1351]: 2022/09/09 12:55:04 API Request:' GET /api/me' from: 192.168.1.66:65376
Sep 09 12:55:04 raspberrypi reef-pi[1351]: 2022/09/09 12:55:04 API Request:' GET /api/health_stats' from: 192.168.1.66:65379
Sep 09 12:56:01 raspberrypi reef-pi[1351]: 2022/09/09 12:56:01 health check: Used memory: 2.31 Load5: 0.22
Sep 09 12:56:01 raspberrypi reef-pi[1351]: 2022/09/09 12:56:01 API Request:' GET /api/me' from: 192.168.1.66:65379
Sep 09 12:56:56 raspberrypi reef-pi[1351]: 2022/09/09 12:56:56 API Request:' GET /api/me' from: 192.168.1.66:65379
Sep 09 12:56:56 raspberrypi reef-pi[1351]: 2022/09/09 12:56:56 API Request:' GET /api/health_stats' from: 192.168.1.66:65376
Sep 09 12:57:01 raspberrypi reef-pi[1351]: 2022/09/09 12:57:01 health check: Used memory: 2.32 Load5: 0.23

After reboot back journal shows
Sep 09 13:04:10 raspberrypi reef-pi[1351]: 2022/09/09 13:04:10 Successfully unloaded module: equipment
Sep 09 13:04:10 raspberrypi reef-pi[1351]: 2022/09/09 13:04:10 Successfully unloaded module: ato
Sep 09 13:04:10 raspberrypi reef-pi[1351]: 2022/09/09 13:04:10 Successfully unloaded module: temperature
Sep 09 13:04:10 raspberrypi reef-pi[1351]: 2022/09/09 13:04:10 Successfully unloaded module: macro
Sep 09 13:04:10 raspberrypi reef-pi[1351]: 2022/09/09 13:04:10 Stopping health checker
Sep 09 13:04:10 raspberrypi reef-pi[1351]: 2022/09/09 13:04:10 reef-pi is shutting down
Sep 09 13:04:10 raspberrypi systemd[1]: Stopping raspberry pi based reef tank controller...
Sep 09 13:04:11 raspberrypi systemd[1]: reef-pi.service: Succeeded.
Sep 09 13:04:11 raspberrypi systemd[1]: Stopped raspberry pi based reef tank controller
Sep 09 12:57:55 raspberrypi reef-pi[1351]: 2022/09/09 12:57:55 API Request:' GET /api/me' from: 192.168.1.66:65376
Sep 09 12:57:55 raspberrypi reef-pi[1351]: 2022/09/09 12:57:55 API Request:' GET /api/health_stats' from: 192.168.1.66:65379
Sep 09 12:58:01 raspberrypi reef-pi[1351]: 2022/09/09 12:58:01 health check: Used memory: 2.33 Load5: 0.23


Looks like it stopped on reboot, but didn't restart

Any ideas

Cheers
 
Oh and service check after reboot shows
● reef-pi.service - raspberry pi based reef tank controller
Loaded: loaded (/lib/systemd/system/reef-pi.service; disabled; vendor preset: enabled)
Active: inactive (dead)

After systemctl start

reef-pi.service - raspberry pi based reef tank controller

Loaded: loaded (/lib/systemd/system/reef-pi.service; disabled; vendor preset: enabled)
Active: active (running) since Fri 2022-09-09 13:27:26 NZST; 5s ago
Main PID: 1476 (reef-pi)
Tasks: 8 (limit: 4915)
CPU: 58ms
CGroup: /system.slice/reef-pi.service
└─1476 /usr/bin/reef-pi daemon -config /etc/reef-pi/config.yaml

Sep 09 13:27:26 raspberrypi reef-pi[1476]: 2022/09/09 13:27:26 Successfully started subsystem: timers
Sep 09 13:27:26 raspberrypi reef-pi[1476]: 2022/09/09 13:27:26 Successfully started subsystem: system
Sep 09 13:27:26 raspberrypi reef-pi[1476]: 2022/09/09 13:27:26 INFO: equipment subsystem: Finished syncing all equipment
Sep 09 13:27:26 raspberrypi reef-pi[1476]: 2022/09/09 13:27:26 Successfully started subsystem: equipment
Sep 09 13:27:26 raspberrypi reef-pi[1476]: 2022/09/09 13:27:26 Successfully started subsystem: ato
Sep 09 13:27:26 raspberrypi reef-pi[1476]: 2022/09/09 13:27:26 reef-pi is up and running
Sep 09 13:27:26 raspberrypi reef-pi[1476]: 2022/09/09 13:27:26 Starting http server at: 0.0.0.0:80
Sep 09 13:27:26 raspberrypi reef-pi[1476]: Methods: [GET]
Sep 09 13:27:26 raspberrypi reef-pi[1476]: 2022/09/09 13:27:26 API Doc path: /api/settings
Sep 09 13:27:26 raspberrypi reef-pi[1476]: 2022/09/09 13:27:26 Starting health checker

 
Have the docs been updated, I am having the same issue after reboot or power on. I am building my circuits and testing everything. I am not that good at modifing the boot files etc on the Pi's OS. Apologize for posting to an older thread.
 
Have the docs been updated, I am having the same issue after reboot or power on. I am building my circuits and testing everything. I am not that good at modifing the boot files etc on the Pi's OS. Apologize for posting to an older thread.
Are you using network /wifi based drivers?
 

IF YOU HAD TO TAKE A REEFING EXAM, WOULD YOU PASS?

  • Yes!

    Votes: 32 45.7%
  • Not yet, but I have one that I want to buy in mind!

    Votes: 9 12.9%
  • No.

    Votes: 26 37.1%
  • Other (please explain).

    Votes: 3 4.3%
Back
Top