It's not the same without you

Join the community to find out what other Atlassian users are discussing, debating and creating.

Atlassian Community Hero Image Collage

“504 gateway timeout” error

We are working on restoration of backup in Confluence and while working on this we are getting “504 gateway timeout” error. Any solution on this?

1 answer

0 votes

This usually means Confluence is not running, so the proxy can't get pages from it.  You will need to check if it is, and read the logs to find out why it is not starting or not serving

Hello Nic,

 

Thanks for your response. However, the logs contains below:

 WARNING [http-nio-8090-exec-9] org.apache.catalina.webresources.Cache.getResource Unable to add the resource at [/WEB-INF/atlassian-bundled-plugins/confluence-edge-index-5.8.5.jar] to the cache because there was insufficient free space available after evicting expired cache entries - consider increasing the maximum size of the cache
 WARNING [http-nio-8090-exec-9] org.apache.catalina.webresources.Cache.getResource Unable to add the resource at [/WEB-INF/atlassian-bundled-plugins/doctheme-5.8.5.jar] to the cache because there was insufficient free space available after evicting expired cache entries - consider increasing the maximum size of the cache
 INFO [http-nio-8090-exec-1] com.sun.jersey.server.impl.application.WebApplicationImpl._initiate Initiating Jersey application, version 'Jersey: 1.8-atlassian-16 03/23/2015 10:20 PM'
 INFO [http-nio-8090-exec-2] com.sun.jersey.server.impl.application.WebApplicationImpl._initiate Initiating Jersey application, version 'Jersey: 1.8-atlassian-16 03/23/2015 10:20 PM'
 INFO [http-nio-8090-exec-3] com.sun.jersey.server.impl.application.WebApplicationImpl._initiate Initiating Jersey application, version 'Jersey: 1.8-atlassian-16 03/23/2015 10:20 PM'

Those are warnings, not an error telling you why confluence is not serving.

Have a look at both the application and server logs in more detail - <confluence home>/logs/atlassian-confluence.log and <confluence install>/log/catalina.out

hi @Nic_Brough__Adaptavist_ 


I was opening a page in Wiki, I captured how much time It took around 40-45 sec to load the wiki page.

Sometimes, I face this slowness. Not always. 

And sometimes I get this.

504 Gateway Time-out

nginx

Could you please guide me on how to fix this issue?

You will need to do some debugging on the connections.  A gateway timeout usually means that your computer is able to reach the proxy server (nginx) in a timely manner, but the proxy is not getting a response from the Confluence behind it.

It might be because Confluence is being too slow, or it might be because of the connection between Confluence and the proxy.

On the Confluence side, check the logs for errors, it should tell you if something times out.  If there are no errors, you'll need to monitor Confluence for slowness and analyse what it is doing when it is timing out.

On the network side, you'll need to test the speeds between Confluence and nginx

Suggest an answer

Log in or Sign up to answer
TAGS
Community showcase
Posted in Confluence

How is your team having fun and bonding, remotely, utilizing Confluence?

Thanks everyone for answering last week’s question. The winner of the random drawing from those who commented is: @LarryBrock I’ll contact you separately with your prize details. This wee...

327 views 9 7
Join discussion

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