Come for the products,
stay for the community

The Atlassian Community can help you and your team get more value out of Atlassian products and practices.

Atlassian Community about banner
Community Members
Community Events
Community Groups

504 Gateway Time-out


When I try to follow the path:


I getting an error 504 Gateway Time-out

In atlassian-jira.log I couldn't find the error with this URL

Jira server on centos 7+nginx

DB mssql

1 answer

Hi @Andrey Permyakov , 

Are you getting the gateway time-out error message on any other links ?

As you may be aware, 504 Gateway Timeout error Nginx is generated often by a number of reasons on the backend connection that is serving content. This is pretty common error, are generated most probably by the PHP max execution time limit or by the FastCGI read timeout settings. 504 Gateway Timeout is the server was acting as a gateway or proxy and did not receive a timely response from the upstream server.. In previous post, I’ve write How to Fix 502 Bad Gateway Error on Nginx.

Did you checked in any other browser and increased the timeout settings?

Amith Mathur

Yes, only this page.

Yes, I try in other browser.

Time-out= 600.

@Andrey Permyakov

Did you find any solution for this?

@Mohammed Mehedi Hasan 

The problem went away by itself.

I can't say what it was connected with in my case.


Hi @Mohammed Mehedi Hasan 


For us what helped was creating a timeout.conf file under /etc/nginx/conf.d/ (You can create this file wherever your config directory for nginx is)

And adding the following values:

proxy_connect_timeout 10000;
proxy_send_timeout 10000;
proxy_read_timeout 10000;
send_timeout 10000;


Please note that this number can be higher or lower depending on what works for you.

Like # people like this

Thanks. It worked for me too.

changing the timeouts in nginx via timeout.conf worked for me.

Hi @Noni Khutane


we are also facing issue could you please help us, what happens is in Jira we use plenty of plugins like ( eazy BI , power BI , R4J ) plugin all these 3 plugins are getting 504 application gateway error,

we done till today:

1. increased the timed out setting from 20 to 300sec

2. increased timed out setting in dbconfig.xml to 10000sec

3. increased timed out setting in proxy server to proxy_connection_timeout to 30000sec 

We are using postgres SQL and also each plugin under setting we changed timeout setting to threshold stage, still getting the same error.

Hi Channakesa


Have you tried bypassing the proxy, to see if you still get the same error:


I know EazyBI has logs did you check that as well?

Hi Noni,


We have done by proxy as well, in server.xml increased to 20000sec,

still getting the same error.

From eazyBI bi we don't see any timed out error, from application side getting 504 gateway error.

not only this these 3 plugins are getting same.

Suggest an answer

Log in or Sign up to answer

Community Events

Connect with like-minded Atlassian users at free events near you!

Find an event

Connect with like-minded Atlassian users at free events near you!

Unfortunately there are no Community Events near you at the moment.

Host an event

You're one step closer to meeting fellow Atlassian users at your local event. Learn more about Community Events

Events near you