How does one migrate database URLs? Specifically, I have a pgsql instance at at say 192.168.1.10 but that server was replaced with a new one at 192.168.1.11. I restored a pg_dump of the nextcloud, so I know that the data is in the database.
I then tried changing the url in config/config.php but get error 504.
Start troubleshooting from the basics. From your description it sounds NC and DB are running on different machines - lot of things can go wrong e,g. firewall. Check if you manually can access the database from your NC system using the NC credentials - once this works double check, database, user and password you are using in NC…
I didn’t do any migration so far but according to the following threads there is nothing special, just adopt the config.php. maybe you missed to stop and restart the system when changing the config.php file?