Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

Troubleshooting random 502 invalid response

Michael Ilewicz
Contributor
October 7, 2021

Hi,

I am running Jira and Confluence on the same machine behind Nginx as a reverse proxy. Since forever I have been receiving the following error while loading pages or transitioning issues randomly. This only happens in Jira, Confluence has been running without problems thus far.

502 - Web server received an invalid response while acting as a gateway or proxy server.

There is a problem with the page you are looking for, and it cannot be displayed. When the Web server (while acting as a gateway or proxy) contacted the upstream content server, it received an invalid response from the content server.

Does anybody have an idea how I could troubleshoot this? Some hints would be greatly appreciated

1 answer

0 votes
Sagar Mahajan
Community Champion
October 7, 2021

Hi @Michael Ilewicz  As you running both Jira and Confluence on same instance can you please check the below things

1. You running both application of Nginx reverse proxy what https port you have configured for both Jira and Confluence? are both apps running on port 443.

2. Can you check if both the applications are running using ps command

ps -ef | grep confluence
ps -ef | grep jira

3. Can you try stopping Confluence and restart the Jira if it is already start and check if you face any issues while accessing the Jira and once you able to try starting the Confluence.

If you able to access either of the application when they are not running concurrently.

Let me now how it goes.

Michael Ilewicz
Contributor
October 8, 2021

Hi @Sagar Mahajan , Jira is on port 8080 and Confluence is on 8090. They are both positioned behind Nginx which is listening to port 443.

Yes both applications are running, and as I said I can access each of the applications fine. The issue is that sometimes single requests are returned with 502. For example, when an Issue is submitted, the user may see a 502 error, however, the issue will still be created.

I can try step 3 on the weekend when our Server is not in use

Suggest an answer

Log in or Sign up to answer
DEPLOYMENT TYPE
SERVER
VERSION
8.13.10
TAGS
AUG Leaders

Atlassian Community Events