Error: The server connection failed with the error "Bad Gateway"

I was able to reach the ui until I changed network and put it in its own net without an external DHCP.
Now I get Error: The server connection failed with the error "Bad Gateway".
Can’t find out why.
Any help here?
What kind of logs do I have to look at? (there are tonns)

Hi @novski

Which version of MAAS do you have? Is it snap or deb install?

I have snap 3.3/stable snap info maas says exactly: installed: 3.3.2-13177-g.a73a6e2bd.

I am a new bee.
Could it be the settings which enables DHCP?
How to enable MAAS-managed DHCP

How can I check the status?
I only see the CLI Command for setting the DHCP with this link.
And I don’t know my $PROFILE, default VLAN $VLAN_TAG and $PRIMARY_RACK_CONTROLLER Name in

maas $PROFILE vlan update $FABRIC_ID $VLAN_TAG dhcp_on=True \


by chance tried an update to 3.3.4 but that failed with:

  File "/snap/maas/28521/usr/lib/python3/dist-packages/psycopg2/", line 122, in connect
    conn = _connect(dsn, connection_factory=connection_factory, **kwasync)
psycopg2.OperationalError: connection to server at "", port 5432 failed: No route to host
	Is the server running on that host and accepting TCP/IP connections? is the old IP.
I changed the IP of the device with netplan to a few days ago, before the “bad gateway” came. How do I tell maas it’s new IP address?

I already teard down and ran in to other errors and while googleing those i found what might have been the right answer to this question:
change IP config by:
sudo maas config --maas-url=

@novski, did your command immediately above solve the problem?

No. I wasn‘t able to test it, as i had allready teard it down.
Just left that note for future.