502 Bad Gateway nginx

Hi All,

We have installed JIRA and Confluence and access them as sub domains. The server was down for some time (< 48 hours). When we rebooted the server JIRA returns 502 and Confluence is working without and issue.

  1. Previously JIRA's Thread Limit Health Check complained, applied resolutions mentioned here.
  2. Tried restarting nginx, JIRA and Confluence.
  3. Googled the issue and tried tweaking the JIRA conf file and server.xml file.

Nothing worked and I reverted all file changes to the previous working state. I will link the conf files below for JIRA and Confluence and the server.xml files.  Any suggestions? :)

JIRA ConfConfluence ConfJIRA server.xmlConfluence server.xml

 Many Thanks.


2 answers

1 vote

Can you get to Jira locally, without going through the proxy?  If you can, then it's a proxy error, if you can't, then start with a look at the Jira application logs to see where it is going wrong.

Hey Nic,

Thanks for replying. I'll see what I can do, looks like there is something wrong with the server as well. I'll update this thread asap.

Our System Administrator solved the issue for us, all he said was "wrong protocol between reverse proxy and backend. and a lot of other mess.". Hope this helps to anyone reading this thread :)

Got another update from our admin :)

- "There were 3 jira accounts (I have configured only one). And every account was pointing to its own instance. Nginx and me myself were totally lost where to proxy jira requests. So I had to remove all these accounts, instances, change ownership of jira files, and kept only one startup init file."

Any ideas as to what caused this?

Sounds like you've installed it three times.

Suggest an answer

Log in or Sign up to answer
Community showcase
Published Nov 27, 2018 in Portfolio for Jira

Introducing a new planning experience in Portfolio for Jira (Server/DC)

In the past, Portfolio for Jira required a high degree of detail–foresight that was unrealistic for many businesses to   have–in   order to produce a reliable long-term roadmap. We're tur...

2,700 views 18 21
Read article

Atlassian User Groups

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

Find a group

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

Find my local user group

Unfortunately there are no AUG chapters near you at the moment.

Start an AUG

You're one step closer to meeting fellow Atlassian users at your local meet up. Learn more about AUGs

Groups near you