i installed multi-node mass on one server (high available mode) with two regiond VM and two rackd VM for test multinode.
I turned it off all regiond and all rackd vms and turned it on again and now when I open maas dashboard show this error: The server connection failed with the error “Bad Gateway”
how can I fix it?
region1:~$ sudo maas status
bind9 RUNNING pid 1330, uptime 0:05:12
http RUNNING pid 1331, uptime 0:05:12
ntp RUNNING pid 1332, uptime 0:05:12
proxy STOPPED Not started
regiond RUNNING pid 1333, uptime 0:05:12
syslog STOPPED Not started
Could you please specify which version are you using and which installation type you used (deb or snap)? Is it a transient error or is the message on the UI persistent?
yes. but when I want to test that, I use 5241 and 5242 ports for direct test that without load balancing To simplify it. I used NAT because I have only one public IP
I guess I’m missing a bit your setup then. As you can see from the region nginx configuration, nginx is listening to 5240. Can you try to access <regionip>:5240?
in NAT I was forwarding serverpublicip:5241 to region VM internal IP: 172.16.1.15: 5240 and I changed 5241 to 5240 but it did not differ from before.
additionally I tested curl http://172.16.1.15:5240/MAAS/api/2.0/describe/ from region VM terminal and get 502
would it be a problem for you to try to upgrade to 3.3/beta? Then you should have multiple unix sockets under /var/snap/maas/current/. Could you then try again with the command above (with for example maas-regiond-webapp.sock.0?)