# 504 on login

**URL:** <https://forum.mautic.org/t/504-on-login/11407>\
**Category:** Product Support\
**Created:** [October 17, 2019, 12:21am UTC](https://forum.mautic.org/t/504-on-login/11407 "2019-10-17T00:21:39Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![shunshifu](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/shunshifu/32/12482_2.png) [@shunshifu](https://forum.mautic.org/u/shunshifu)\
**Post date:** [October 17, 2019, 12:21am UTC](https://forum.mautic.org/t/504-on-login/11407/1 "2019-10-17T00:21:39Z")

</div>

My Mautic version is: 2.15.1  
My PHP version is: 7.0.33

I always get a 504 Gateway Time-out on login. Usually after 1 page refresh it goes away and mautic will load. Sometimes it takes a few refreshes. Ideas?

---

<div class="post-metadata">

**Author:** ![silavapi](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/silavapi/32/7424_2.png) [@silavapi](https://forum.mautic.org/u/silavapi)\
**Post date:** [October 17, 2019, 3:47pm UTC](https://forum.mautic.org/t/504-on-login/11407/2 "2019-10-17T15:47:25Z")

</div>

Hi there,

Firstly, you’re running a somewhat out of date Mautic instance.

Secondly, do you see any errors in your log which coincide with the 504 error? Generally a 504 is thrown if the response from your Mautic instance is too slow. Maybe there’s a server performance issue going on?

---

<div class="post-metadata">

**Author:** ![shunshifu](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/shunshifu/32/12482_2.png) [@shunshifu](https://forum.mautic.org/u/shunshifu)\
**Post date:** [October 20, 2019, 12:16am UTC](https://forum.mautic.org/t/504-on-login/11407/3 "2019-10-20T00:16:23Z")

</div>

Yes we are a bit out of date. We’ve had some horrible experiences with bugs introduced by mautic updates. So we are always loathe to update.

Nothing in the logs. Our logs are full of the Lead not found error and nothing else.

We’ve got our mautic db running on an aws ec2 t2.xlarge. Our cron running on a t2.medium and the app on a t2.medium. Yes we still see performance issues with all that. So agreed it’s a performance issue. The question is why, it’s not lack of resources

---

<div class="post-metadata">

**Author:** ![alban](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/alban/32/1959_2.png) [@alban](https://forum.mautic.org/u/alban)\
**Post date:** [October 20, 2019, 6:02pm UTC](https://forum.mautic.org/t/504-on-login/11407/4 "2019-10-20T18:02:33Z")

</div>

Did you personalize your dashboards? Slow queries to load the visualizations might be the cause.  
Also, does the issue persist when you try to log-in with a different user?

---

<div class="post-metadata">

**Author:** ![shunshifu](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/shunshifu/32/12482_2.png) [@shunshifu](https://forum.mautic.org/u/shunshifu)\
**Post date:** [October 21, 2019, 4:08pm UTC](https://forum.mautic.org/t/504-on-login/11407/5 "2019-10-21T16:08:03Z")

</div>

I think the dashboards are standard. Not 100% sure on that.

You are correct. Seems to be only my login

---

<div class="post-metadata">

**Author:** ![shunshifu](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/shunshifu/32/12482_2.png) [@shunshifu](https://forum.mautic.org/u/shunshifu)\
**Post date:** [October 22, 2019, 6:58pm UTC](https://forum.mautic.org/t/504-on-login/11407/6 "2019-10-22T18:58:44Z")

</div>

I think you are correct. I removed a bunch of stuff from the dashboard and it seems to be better

Thank You
