paukstelis / octoprint_deploy

Bash script for rapid deployment of multiple octoprint instance on a single machine
MIT License
389 stars 39 forks source link

haproxy problems with install on Orange Pi 3B with Debian Bookworm (12) #118

Closed b-morgan closed 6 months ago

b-morgan commented 10 months ago

I think I did everything correctly but haproxy is listening on tcp6 and not tcp (i.e. IPV4).

I don't have a printer or a camera connected yet. I do have a USB camera I can use. My only printer is connected to OctoPi on a Raspberry Pi 3B.

Let me know if you need anything else. There were some errors that flew by during the execution of the script but I didn't capture them. I can try again if necessary. The system is brand new so wiping and starting over are possible. I do have a Debian - Bullseye (11) image available.

orangepi@orangepi3b:~$ sudo netstat -auntp
Active Internet connections (servers and established)
Proto Recv-Q Send-Q Local Address           Foreign Address         State       PID/Program name
tcp        0      0 0.0.0.0:111             0.0.0.0:*               LISTEN      1/init
tcp        0      0 0.0.0.0:22              0.0.0.0:*               LISTEN      1014/sshd: /usr/sbi
tcp        0      0 192.168.0.128:22        192.168.0.183:20746     ESTABLISHED 1694/sshd: orangepi
tcp6       0      0 :::111                  :::*                    LISTEN      1/init
tcp6       0      0 :::80                   :::*                    LISTEN      1035/haproxy
tcp6       0      0 :::22                   :::*                    LISTEN      1014/sshd: /usr/sbi
udp        0      0 0.0.0.0:47836           0.0.0.0:*                           1035/haproxy
udp        0      0 0.0.0.0:43039           0.0.0.0:*                           1035/haproxy
udp        0      0 192.168.0.128:68        192.168.0.1:67          ESTABLISHED 783/NetworkManager
udp        0      0 0.0.0.0:111             0.0.0.0:*                           1/init
udp        0      0 127.0.0.1:323           0.0.0.0:*                           1017/chronyd
udp6       0      0 :::111                  :::*                                1/init
udp6       0      0 ::1:323                 :::*                                1017/chronyd
orangepi@orangepi3b:~$

Here is the diagnostic output:

octoprint_deploy diagnostic information. Please provide ALL output for support help
**************************************
/etc/octoprint_deploy
**************************************
haproxy: true
streamer: ustreamer
octoexec: /home/orangepi/OctoPrint/bin/octoprint
octopip: /home/orangepi/OctoPrint/bin/pip
cat: /etc/octoprint_instances: No such file or directory
**************************************
/etc/octoprint_instances
**************************************
cat: /etc/octoprint_cameras: No such file or directory
**************************************
/etc/octoprint_cameras
**************************************
cat: /etc/udev/rules.d/99-octoprint.rules: No such file or directory
**************************************
/etc/udev/rules.d/99-octoprint.rules
**************************************
ls: cannot access '/dev/octo*': No such file or directory
ls: cannot access '/dev/cam*': No such file or directory
cat: /etc/octoprint_instances: No such file or directory
cat: /etc/octoprint_cameras: No such file or directory
**************************************
● haproxy.service - HAProxy Load Balancer
     Loaded: loaded (/lib/systemd/system/haproxy.service; enabled; preset: enabled)
     Active: active (running) since Wed 2023-09-06 09:07:10 MDT; 4min 42s ago
       Docs: man:haproxy(1)
             file:/usr/share/doc/haproxy/configuration.txt.gz
   Main PID: 949 (haproxy)
      Tasks: 5 (limit: 4529)
     Memory: 12.7M
        CPU: 747ms
     CGroup: /system.slice/haproxy.service
             ├─ 949 /usr/sbin/haproxy -Ws -f /etc/haproxy/haproxy.cfg -p /run/haproxy.pid -S /run/haproxy-master.sock
             └─1035 /usr/sbin/haproxy -Ws -f /etc/haproxy/haproxy.cfg -p /run/haproxy.pid -S /run/haproxy-master.sock

Sep 06 09:07:09 orangepi3b systemd[1]: Starting haproxy.service - HAProxy Load Balancer...
Sep 06 09:07:10 orangepi3b haproxy[949]: [NOTICE]   (949) : New worker (1035) forked
Sep 06 09:07:10 orangepi3b haproxy[949]: [NOTICE]   (949) : Loading success.
Sep 06 09:07:10 orangepi3b systemd[1]: Started haproxy.service - HAProxy Load Balancer.

*************************
octoprint_deploy 1.0.4
*************************

1) Add instance     3) Add Camera       5) Utilities        7) Update
2) Delete instance  4) Delete Camera    6) Backup Menu      8) Quit
b-morgan commented 10 months ago

I did an octoprint_deploy.sh remove and started over using screen -L to capture the output and this time it worked.