Web interface on wrong address

Devin_Tesla

New Member
View Badges
Joined
Sep 25, 2020
Messages
20
Reaction score
16
Location
Canada
Rating - 0%
0   0   0
@Ranjib
Hi I powered down the reefpi for some electrical work on my house ssh in and requested a shutdown no problems
on reboot I can ssh in but the web interface is not loading

I have narrowed it down to the fallowing to it's binding on the wrong address 10.4.0.1 not 10.4.0.3
running reefpi 4.0 or 4.1

This is where I need help the IP on the reefpi is 10.4.0.3 and I can ssh in on that address
I'm not having any luck setting it to the right address as I'm not sure how to out side the web interface I can't load.



***@raspberrypi:~ $ 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: enabled)
Active: active (running) since Sun 2021-07-04 08:59:44 EDT; 25s ago
Main PID: 335 (reef-pi)
Tasks: 9 (limit: 2063)
CGroup: /system.slice/reef-pi.service
└─335 /usr/bin/reef-pi daemon -config /etc/reef-pi/config.yaml

Jul 04 08:59:45 raspberrypi reef-pi[335]: 2021/07/04 08:59:45 Successfully started subsystem: system
Jul 04 08:59:45 raspberrypi reef-pi[335]: 2021/07/04 08:59:45 INFO: equipment subsystem: Finished syncing all equipment
Jul 04 08:59:45 raspberrypi reef-pi[335]: 2021/07/04 08:59:45 Successfully started subsystem: equipment
Jul 04 08:59:45 raspberrypi reef-pi[335]: 2021/07/04 08:59:45 Successfully started subsystem: temperature
Jul 04 08:59:45 raspberrypi reef-pi[335]: 2021/07/04 08:59:45 reef-pi is up and running
Jul 04 08:59:45 raspberrypi reef-pi[335]: 2021/07/04 08:59:45 Starting http server at: 10.4.0.1:80
Jul 04 08:59:45 raspberrypi reef-pi[335]: 2021/07/04 08:59:45 ERROR: Failed to run http server. Error: listen tcp 10.4.0.1:80: bind: cannot


***@raspberrypi:/ $ sudo netstat -tulnp
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 562/sshd
tcp 0 0 127.0.0.1:6010 0.0.0.0:* LISTEN 566/sshd: pi@pts/0
tcp6 0 0 :::22 :::* LISTEN 562/sshd
tcp6 0 0 ::1:6010 :::* LISTEN 566/sshd: pi@pts/0
udp 0 0 0.0.0.0:68 0.0.0.0:* 556/dhcpcd
udp 0 0 0.0.0.0:36520 0.0.0.0:* 329/avahi-daemon: r
udp 0 0 0.0.0.0:5353 0.0.0.0:* 329/avahi-daemon: r
udp6 0 0 :::41013 :::* 329/avahi-daemon: r
udp6 0 0 :::5353 :::* 329/avahi-daemon: r
 

paparoof

Active Member
View Badges
Joined
May 19, 2019
Messages
146
Reaction score
177
Location
Minneapolis
Rating - 0%
0   0   0
I'm not a reef-pi guy, but my guess would be to look in /etc/reef-pi/config.yaml for a place to set it.
 
OP
OP
D

Devin_Tesla

New Member
View Badges
Joined
Sep 25, 2020
Messages
20
Reaction score
16
Location
Canada
Rating - 0%
0   0   0
that is what I figured but all that is there is

---
database: /var/lib/reef-pi/reef-pi.db
 

paparoof

Active Member
View Badges
Joined
May 19, 2019
Messages
146
Reaction score
177
Location
Minneapolis
Rating - 0%
0   0   0
can you set the pi to 10.4.0.1 so that the reef-pi server can bind to that address, just long enough go in, make the change you wanna make?
 
OP
OP
D

Devin_Tesla

New Member
View Badges
Joined
Sep 25, 2020
Messages
20
Reaction score
16
Location
Canada
Rating - 0%
0   0   0
I cat try it will have to pull it of the network as the inter vlan router is at 10.4.0.1
 

HAVE YOU EVER KEPT A RARE/UNCOMMON FISH, CORAL, OR INVERT? SHOW IT OFF IN THE THREAD!

  • 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