# Roundcube 504 timeout - further data

**URL:** <https://discourse.mailinabox.email/t/roundcube-504-timeout-further-data/16645>\
**Category:** Help with Setup/Upgrade\
**Created:** [July 17, 2026, 2:49am UTC](https://discourse.mailinabox.email/t/roundcube-504-timeout-further-data/16645 "2026-07-17T02:49:50Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![snrkl](https://discourse.mailinabox.email/user_avatar/discourse.mailinabox.email/snrkl/32/2575_2.png) [@snrkl](https://discourse.mailinabox.email/u/snrkl)\
**Post date:** [July 17, 2026, 2:49am UTC](https://discourse.mailinabox.email/t/roundcube-504-timeout-further-data/16645/1 "2026-07-17T02:49:51Z")

</div>

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:

```auto
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:

```auto
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…

 ![dns](https://discourse.mailinabox.email/uploads/default/original/2X/a/aae170b2871a9b48928584f338610f32c043ae70.jpeg)

---

<div class="post-metadata">

**Author:** ![system](https://discourse.mailinabox.email/uploads/default/original/2X/4/4d0933d13c456b7e57f296aa6cc344525b6f0c70.png) [@system](https://discourse.mailinabox.email/u/system)\
**Post date:** [July 24, 2026, 2:49am UTC](https://discourse.mailinabox.email/t/roundcube-504-timeout-further-data/16645/2 "2026-07-24T02:49:53Z")

</div>

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.
