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
How to earn badges on the Atlassian Community

How to earn badges on the Atlassian Community

Badges are a great way to show off community activity, whether you’re a newbie or a Champion.

Learn more
Community showcase
Published Sunday in Agility

You asked for it, so we delivered: images on issues have arrived

A picture tells a thousand words. And agility boards have just released their latest feature: cover images on issues – so now your board can tell a story at first glance. Upload attachmen...

671 views 3 11
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