Site URL Keeps Changing to EC2 Host's IP Address

We are experiencing an issue where the Site URL keeps changing to the IP address of the host EC2 instance. Are there any particular scenarios where this would be the intended behavior? We are currently unable to reproduce the issue and are “alerted” when users Pulses and Public Links stop functioning.

Hi @LLL

Are you using EBS or ELB? It seems like there might be a race-condition, where a health-check somehow causes the wrong URL to be defined.
There’s an PR open for that: https://github.com/metabase/metabase/pull/12996

Alternatively try setting the URL via environment variable, which should prevent it from being changed at all:
https://github.com/metabase/metabase/blob/master/docs/operations-guide/environment-variables.md#mb_site_url

Thanks for the very helpful response! As we don’t want anyone to change that URL, we’ll likely move forward with setting the environment variable.