# 504 Gateway Timeout when login into mautic

**URL:** <https://forum.mautic.org/t/504-gateway-timeout-when-login-into-mautic/25513>\
**Category:** Product Support\
**Tags:** mautic-3\
**Created:** [September 26, 2022, 3:45pm UTC](https://forum.mautic.org/t/504-gateway-timeout-when-login-into-mautic/25513 "2022-09-26T15:45:02Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![aloha.abhijit](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/aloha.abhijit/32/6472_2.png) [@aloha.abhijit](https://forum.mautic.org/u/aloha.abhijit)\
**Post date:** [September 26, 2022, 3:45pm UTC](https://forum.mautic.org/t/504-gateway-timeout-when-login-into-mautic/25513/1 "2022-09-26T15:45:02Z")

</div>

**Your software**  
My Mautic version is: 3.3.4  
My PHP version is: 7.3

**Your problem**  
My problem is: 504 gateway timeout.

These errors are showing in the log: No

Steps I have tried to fix the problem:

- Change php.ini (Tried to change max\_execution\_time)

I have a 504 gateway time out every time I try to access mautic and click the login button. My mautic version is 3.3.4.

After trying and refreshing page 3 to 4 times its working well.

Can you help me, please?

---

<div class="post-metadata">

**Author:** ![mikew](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/mikew/32/5156_2.png) [@mikew](https://forum.mautic.org/u/mikew)\
**Post date:** [September 27, 2022, 7:57am UTC](https://forum.mautic.org/t/504-gateway-timeout-when-login-into-mautic/25513/2 "2022-09-27T07:57:02Z")

</div>

This could be a very heavy dashboard issue.  
After login into Mautic, can you try and go to the contacts page by changing the url, so for example: [https://yourmautic.com/s/contacts](https://yourmautic.com/s/contacts).

If you are able to get there it could be the heavy dashboard and then I can provide you a few possible fixes around it.

---

<div class="post-metadata">

**Author:** ![aloha.abhijit](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/aloha.abhijit/32/6472_2.png) [@aloha.abhijit](https://forum.mautic.org/u/aloha.abhijit)\
**Post date:** [September 28, 2022, 10:43am UTC](https://forum.mautic.org/t/504-gateway-timeout-when-login-into-mautic/25513/3 "2022-09-28T10:43:00Z")

</div>

> [@aloha.abhijit](#):
>
> Can you help me, please?

Hello Mikew,

Thanks for your help.

I have tried to go contacts page by changing the URL like [https://yourmautic.com/s/contacts](https://yourmautic.com/s/contacts).

Very quickly I am able to access the contacts page but from the contacts page I have tried to go Dashboard by clicking dashboard, It again takes time to load the dashboard, and sometimes 504 Gateway Time-out as well.

Can you help me with this, please?

Thanks.

---

<div class="post-metadata">

**Author:** ![mikew](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/mikew/32/5156_2.png) [@mikew](https://forum.mautic.org/u/mikew)\
**Post date:** [September 28, 2022, 12:28pm UTC](https://forum.mautic.org/t/504-gateway-timeout-when-login-into-mautic/25513/4 "2022-09-28T12:28:45Z")

</div>

The problem here is your base dashboard is to heavy to load, so it either needs more memory / CPU, or you need to create a very basic dashboard with just one widget on it. Not ideal but you could then look at our post on setting up Metabase and Surge. your dashboard ([Surge Mautic Dashboard into something Amazing!](https://forum.mautic.org/t/surge-mautic-dashboard-into-something-amazing/23864)).

For the moment go to your dashboard with import at the end and make a basic one [https://yourmautic.com/s/dashboard/import](https://yourmautic.com/s/dashboard/import)

Let me know how you go

---

<div class="post-metadata">

**Author:** ![joeyk](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/joeyk/32/11164_2.png) [@joeyk](https://forum.mautic.org/u/joeyk)\
**Post date:** [September 28, 2022, 1:11pm UTC](https://forum.mautic.org/t/504-gateway-timeout-when-login-into-mautic/25513/5 "2022-09-28T13:11:39Z")

</div>

> [@aloha.abhijit](#):
>
> I have a 504 gateway time out every time I try to access mautic and click the login button. My mautic version is 3.3.4.

BTW there has been a bunch of improvements in M4.2+ maybe you wanna upgrade first.

---

<div class="post-metadata">

**Author:** ![aloha.abhijit](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/aloha.abhijit/32/6472_2.png) [@aloha.abhijit](https://forum.mautic.org/u/aloha.abhijit)\
**Post date:** [September 30, 2022, 6:21am UTC](https://forum.mautic.org/t/504-gateway-timeout-when-login-into-mautic/25513/6 "2022-09-30T06:21:21Z")

</div>

Hello Mikew,

Thanks for your help.

I have changed the dashboard with import and made it a basic one.  
For now, It takes less time to load the dashboard and working well.

Thanks.

---

<div class="post-metadata">

**Author:** ![dimitriskr](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/dimitriskr/32/13367_2.png) [@dimitriskr](https://forum.mautic.org/u/dimitriskr)\
**Post date:** [June 16, 2025, 8:02am UTC](https://forum.mautic.org/t/504-gateway-timeout-when-login-into-mautic/25513/7 "2025-06-16T08:02:09Z")

</div>

Hello, I have a similar issue after upgrading to [5.2.6 from 4.4.13](https://forum.mautic.org/t/upgrade-from-4-4-13-to-5-2-6-cannot-finish/35860)

My user works fine, but 2 of my colleagues that tried encountered the following:

1. after login, the dashboards page returns 504 timeout
2. Going to /s/config or whatever still returns 504 timeout
3. After any page is loaded after some time, you can easily browse through the app.
4. After a while, you get again 504 timeouts
5. Repeat 3.

Same amount of data (dashboard) in mautic v4 works fine.
