504 Gateway Time-out

Andrey Permyakov September 23, 2019

Hello.

When I try to follow the path:

https://my.jira/plugins/servlet/applications/versions-licenses

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

0 votes
Amith Mathur {Appfire}
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
September 23, 2019

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?

Thanks,
Amith Mathur

Andrey Permyakov September 23, 2019

Yes, only this page.

Yes, I try in other browser.

Time-out= 600.

Mohammed Mehedi Hasan August 19, 2020

@Andrey Permyakov

Did you find any solution for this?

Support August 19, 2020

@Mohammed Mehedi Hasan 

The problem went away by itself.

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

Sorry.

Noni Khutane August 19, 2020

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
Mohammed Mehedi Hasan August 19, 2020

Thanks. It worked for me too.

Wolfgang Geithner October 29, 2020

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

Channakesa Chindanur June 23, 2022

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.

Noni Khutane June 23, 2022

Hi Channakesa

 

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

https://confluence.atlassian.com/jirakb/how-to-bypass-a-proxy-and-ssl-to-test-network-connectivity-827328189.html

 

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

Channakesa Chindanur June 23, 2022

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