Hello there,
I just snap-refreshed our 3.4.4/stable deployment to 3.5/stable, and it now become a disaster.
The HTTP server still works, but MAAS/accounts/login/
returns a 502 error, and all subordinary services like DNS fail too.
Syslog shows:
Sep 23 10:52:26 maas maas-http[1151821]: 2024/09/23 10:52:26 [alert] 1151821#1151821: connect() failed (2: No such file or directory)
Sep 23 10:52:26 maas maas-http[1151821]: 2024/09/23 10:52:26 [error] 1151821#1151821: *880 no live upstreams while connecting to upstream, client: 192.168.122.1, server: , request: "GET /MAAS/rpc/ HTTP/1.1", upstream: "http://regiond-webapp/MAAS/rpc/", host: "192.168.122.1"
Sep 23 10:52:26 maas maas-http[1151821]: 2024/09/23 10:52:26 [alert] 1151821#1151821: connect() failed (2: No such file or directory)
Sep 23 10:52:26 maas maas-http[1151821]: 2024/09/23 10:52:26 [error] 1151821#1151821: *881 no live upstreams while connecting to upstream, client: 192.168.0.2, server: , request: "GET /MAAS/rpc/ HTTP/1.1", upstream: "http://regiond-webapp/MAAS/rpc/", host: "192.168.0.2"
Sep 23 10:52:26 maas maas-http[1151821]: 2024/09/23 10:52:26 [alert] 1151821#1151821: connect() failed (2: No such file or directory)
Sep 23 10:52:26 maas maas-http[1151821]: 2024/09/23 10:52:26 [error] 1151821#1151821: *882 no live upstreams while connecting to upstream, client: 192.168.0.208, server: , request: "GET /MAAS/rpc/ HTTP/1.1", upstream: "http://regiond-webapp/MAAS/rpc/", host: "192.168.0.2"
Sep 23 10:52:26 maas maas-http[1151821]: 2024/09/23 10:52:26 [alert] 1151821#1151821: connect() failed (2: No such file or directory)
Sep 23 10:52:26 maas maas-http[1151821]: 2024/09/23 10:52:26 [error] 1151821#1151821: *883 no live upstreams while connecting to upstream, client: 192.168.0.208, server: , request: "GET /MAAS/rpc/ HTTP/1.1", upstream: "http://regiond-webapp/MAAS/rpc/", host: "192.168.0.2"
Sep 23 10:52:26 maas maas-http[1151821]: 2024/09/23 10:52:26 [alert] 1151821#1151821: connect() failed (2: No such file or directory)
Sep 23 10:52:26 maas maas-rackd[1151778]: provisioningserver.rpc.clusterservice: [info] Region is not advertising RPC endpoints. (While requesting RPC info at http://192.168.0.2:5240/MAAS)
Sep 23 10:52:27 maas maas-http[1151821]: 2024/09/23 10:52:27 [error] 1151821#1151821: *884 connect() to unix:/var/snap/maas/36878/maas-regiond-webapp.sock.3 failed (111: Unknown error) while connecting to upstream, client: 192.168.0.2, server: , request: "GET /MAAS/rpc/ HTTP/1.1", upstream: "http://unix:/var/snap/maas/36878/maas-regiond-webapp.sock.3:/MAAS/rpc/", host: "192.168.0.2"
Sep 23 10:52:27 maas maas-http[1151821]: 2024/09/23 10:52:27 [error] 1151821#1151821: *884 connect() to unix:/var/snap/maas/36878/maas-regiond-webapp.sock.2 failed (111: Unknown error) while connecting to upstream, client: 192.168.0.2, server: , request: "GET /MAAS/rpc/ HTTP/1.1", upstream: "http://unix:/var/snap/maas/36878/maas-regiond-webapp.sock.2:/MAAS/rpc/", host: "192.168.0.2"
Sep 23 10:52:27 maas maas-http[1151821]: 2024/09/23 10:52:27 [crit] 1151821#1151821: *884 connect() to unix:/var/snap/maas/36878/maas-regiond-webapp.sock.1 failed (2: No such file or directory) while connecting to upstream, client: 192.168.0.2, server: , request: "GET /MAAS/rpc/ HTTP/1.1", upstream: "http://unix:/var/snap/maas/36878/maas-regiond-webapp.sock.1:/MAAS/rpc/", host: "192.168.0.2"
Sep 23 10:52:27 maas maas-http[1151821]: 2024/09/23 10:52:27 [error] 1151821#1151821: *884 connect() to unix:/var/snap/maas/36878/maas-regiond-webapp.sock.0 failed (111: Unknown error) while connecting to upstream, client: 192.168.0.2, server: , request: "GET /MAAS/rpc/ HTTP/1.1", upstream: "http://unix:/var/snap/maas/36878/maas-regiond-webapp.sock.0:/MAAS/rpc/", host: "192.168.0.2"
Sep 23 10:52:27 maas maas-http[1151821]: 2024/09/23 10:52:27 [alert] 1151821#1151821: connect() failed (2: No such file or directory)
The issue still exists even when I snap remove maas --purge
and then re-install the 3.5/stable from the upstream.
And the situation is getting worse:
root@maas:~# snap install maas --channel=3.5/stable
maas (3.5/stable) 3.5.1-16317-g.409891638 from Canonical✓ installed
root@maas:~# snap start maas
Started.
root@maas:~# snap start maas.supervisor
error: snap "maas" has no service "supervisor"
root@maas:~# lsof -i
COMMAND PID USER FD TYPE DEVICE SIZE/OFF NODE NAME
systemd-r 724 systemd-resolve 13u IPv4 24602 0t0 UDP localhost:domain
systemd-r 724 systemd-resolve 14u IPv4 24603 0t0 TCP localhost:domain (LISTEN)
rsyslogd 740 syslog 7u IPv4 24129 0t0 UDP *:syslog
rsyslogd 740 syslog 8u IPv6 24130 0t0 UDP *:syslog
sshd 828 root 3u IPv4 17298 0t0 TCP *:ssh (LISTEN)
sshd 828 root 4u IPv6 17300 0t0 TCP *:ssh (LISTEN)
postgres 893 postgres 6u IPv4 20008 0t0 TCP *:postgresql (LISTEN)
postgres 893 postgres 7u IPv6 20009 0t0 TCP *:postgresql (LISTEN)
dnsmasq 1017 libvirt-dnsmasq 3u IPv4 20195 0t0 UDP *:bootps
dnsmasq 1017 libvirt-dnsmasq 5u IPv4 20198 0t0 UDP maas:domain
dnsmasq 1017 libvirt-dnsmasq 6u IPv4 20199 0t0 TCP maas:domain (LISTEN)
I have no access to the Web UI.