Issue with reef-pi not starting on reboot

kiwinewbie

New Member
Review score
+0 /0 /-0
View Badges
Joined
Aug 23, 2020
Messages
14
Reaction score
6
Review score
+0 /0 /-0
Location
New Zealand
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
 
World Wide Corals
OP
OP
K

kiwinewbie

New Member
Review score
+0 /0 /-0
View Badges
Joined
Aug 23, 2020
Messages
14
Reaction score
6
Review score
+0 /0 /-0
Location
New Zealand
Rating - 0%
0   0   0
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

 
AquaCave Logo Banner

Ranjib

7500 Club Member
Review score
+0 /0 /-0
View Badges
Joined
Apr 16, 2016
Messages
9,810
Reaction score
16,998
Review score
+0 /0 /-0
Location
Pleasant Hill, Concord
Rating - 0%
0   0   0

Brett7397

New Member
Review score
+0 /0 /-0
View Badges
Joined
Oct 17, 2022
Messages
21
Reaction score
14
Review score
+0 /0 /-0
Location
Dothan, AL
Rating - 0%
0   0   0
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.
 
Corals.com

Ranjib

7500 Club Member
Review score
+0 /0 /-0
View Badges
Joined
Apr 16, 2016
Messages
9,810
Reaction score
16,998
Review score
+0 /0 /-0
Location
Pleasant Hill, Concord
Rating - 0%
0   0   0
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?
 
Orphek OR3 reef aquarium LED bar

Polyp polynomial: How many heads do you start with when buying zoas?

  • One head is enough to get started.

    Votes: 27 10.6%
  • 2 to 4 heads.

    Votes: 145 57.1%
  • 5 heads or more.

    Votes: 65 25.6%
  • Full colony.

    Votes: 10 3.9%
  • Other.

    Votes: 7 2.8%

New Posts

Cultivated Reef
Back
Top