Roundcube 504 timeout - further data

Hi all - I have been having issues with roundcube timing out on successful login, presenting an NGINX 504 gateway time-out error.

This is a brand new v76 installation.

Many searches turned up options that have helped some people. Like any timeout errors, and some pointed towards dns…

I figure we always joke at work about the answer always being DNS, so I started looking into it.

Turns out I had some weirdness in my /etc/hosts file (I assume from the cloud deployment template), meaning I had an entry for the host with an FQDN that was from the hosting network, not mine:

127.0.0.1 localhost
127.0.1.1 myhostname.cloudfqdn.domain

As you can see, the 127.0.1.1 entry had my selected hostname, but the domain suffix was from the hosting network.

I corrected it as follows:

127.0.0.1 localhost myhostname.mydomain.tld myhostname
127.0.1.1 myhostname.mydomain.tld myhostname

Login to roundcube worked INSTANTLY after this change…

…maybe it IS always DNS…