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
Atlassian Community Anniversary

Happy Anniversary, Atlassian Community!

This community is celebrating its one-year anniversary and Atlassian co-founder Mike Cannon-Brookes has all the feels.

Read more
Community showcase
Julia Dillon
Posted Tuesday in Jira

Tell us how your team runs on Jira!

Hey Atlassian Community! Today we are launching a bunch of customer stories about the amazing work teams, like Dropbox and Twilio, are doing with Jira. You can check out the stories here. The thi...

139 views 1 17
Join discussion

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