UPGRADE OF POSTGRES FAILED - I've tried everything

That’s actually good news, it means the nginx instance outside the container is no longer hijacking the port.

Once you uninstall it you should reboot the server so that everything can start properly.