# Roundcube Timeout 504 (upstream timed out)

**URL:** <https://discourse.mailinabox.email/t/roundcube-timeout-504-upstream-timed-out/8871>\
**Category:** Help with Setup/Upgrade\
**Created:** [March 10, 2022, 11:58am UTC](https://discourse.mailinabox.email/t/roundcube-timeout-504-upstream-timed-out/8871 "2022-03-10T11:58:16Z")\
**Posts on this page:** 1\
**Showing post:** 13

<div class="post-metadata">

**Author:** ![qlx4r](https://discourse.mailinabox.email/letter_avatar_proxy/v4/letter/q/45deac/32.png) [@qlx4r](https://discourse.mailinabox.email/u/qlx4r)\
**Post date:** [March 11, 2022, 3:50pm UTC](https://discourse.mailinabox.email/t/roundcube-timeout-504-upstream-timed-out/8871/13 "2022-03-11T15:50:06Z")

</div>

I started debugging roundcube, and so far, it looks like the carddav-plugin is causing the timeout.

I went to `/usr/local/lib/roundcubemail/` and started debugging the `index.php`. The long delay occurs when roundcube is calling the `login_after`-hook. Not many plugins register such a hook, so I checked all of them.

I disabled the carddav-Plugin by running a `chmod 000 plugins/carddav` (!!! write down the permissions beforehand so that you can restore them, `ls -l plugins` is your friend), and booom, login is fast again.

So: There seems to be a problem accessing the MIAB-Nextcloud instance. This seems to cause the timeout.

---

_[View the full topic](https://discourse.mailinabox.email/t/roundcube-timeout-504-upstream-timed-out/8871)._
