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
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
 
Fragtacular After Sale
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
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

 
Top Shelf Aquatics

Ranjib

7500 Club Member
Review score
+0 /0 /-0
View Badges
Joined
Apr 16, 2016
Messages
9,603
Reaction score
16,612
Review score
+0 /0 /-0
Location
Pleasant Hill, Concord

How have you used eggcrate in or around your aquarium?

  • Aquarium lid

    Votes: 38 38.4%
  • Frag rack

    Votes: 53 53.5%
  • Skimmer stand

    Votes: 32 32.3%
  • Sump Divider

    Votes: 26 26.3%
  • Other (please describe in the discussion)

    Votes: 15 15.2%
  • I have not used eggcrate in or around my aquarium

    Votes: 22 22.2%
Gluemasters - your best choice for CA super glue
Top