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

502 PROXY ERROR when trying to login confluence

I am devops engineer at my company, and I maintain the confluence, Jira here. We are facing the below error when we are trying to login to confluence.I added the proxytimeout value to 120 seconds and restarted the httpd but it still shows the same error. Hence, could anyone of you help me solving this issue?

Error on browser:
Proxy Error
The proxy server received an invalid response from an upstream server.
The proxy server could not handle the request GET /dashboard.action.
Error reading from remote server

Error in httpd confluence ssl error log:
[proxy_http:error] [pid 20175] (70007)The timeout specified has expired: [client ipaddress] AH01102: error reading status line from remote server confluenceserver:8090


Confluence is running on the server,apache is running successfully
I did "curl confluenceservername", this also give the repsonse properly.

  • steps performed:
    restarted confluence
    restarted apache
    restarted mysql
    restarted crowd
    changed the port and restarted confluence,apache.


please someone help me

2 answers

1 vote
edwin Community Leader May 16, 2017

Try adding this in your httpd.conf file

Timeout 2400
ProxyTimeout 2400
ProxyBadHeader Ignore

currently timeout is 60, should i write these lines under that or inside the virtual host

edwin Community Leader May 18, 2017

Inside the virtual host

Like Amit Chakradeo likes this

THANK YOU!!! I lost hours trying to make this work. I found nothing about the proxy timeout on confluence's installation guide. Worst thing is, that when the proxy times out (i.e. during DB initialization), it will corrupt the whole database and confluence becomes unusable with exceptions messages like:

com.atlassian.util.concurrent.LazyReference$InitializationException: java.lang.IllegalStateException: Spring Application context has not been set
 at com.atlassian.util.concurrent.LazyReference.getInterruptibly(
 at com.atlassian.util.concurrent.LazyReference.get(

There is a TON of people complaining about this problem and a solution is nowhere. Most of them talk about read/write permissions, other propose reinitializing the DB, which when you do from behind an apache proxy, will just fail again and mess up the DB again and you can start over

Again. Kudos to you my good sir.

Like kyona likes this
Deleted user Apr 10, 2018

This post was really helpful.I was also getting 

Spring Application context has not been set

 error due to this.

Like kyona likes this


Like Michal, I had spent hours trying to figure out why my server was throwing a proxy error during the setupdbtype.action step of the Confluence setup. As Michal said it resulted in a corrupt database and unusable Confluence, which forced me to drop the database and reinstall Confluence over and over as I was troubleshooting the problem.

Finally when I found this page and your comments it dawned on me that it was a simple timeout error. I didn't even know it was possible to set Timeout and ProxyTimeout in the virtual host configuration, but after adding those lines in the virtual host and restarting Apache the installation worked like a charm.

Without Edwins suggestion and Michals comment (which corroborated my own experience) I would probably still be tearing my hair out over this, so many thanks to you guys! 🙏

Very helpful answer, thank you very much.

It is also possible to provide time out values using connectiontimeout and timeout parameters (in seconds) of ProxyPass setting:

<VirtualHost *:443>
ProxyPass /confluence http://localhost:8095/confluence connectiontimeout=300 timeout=300
ProxyPassReverse /confluence http://localhost:8095/confluence


Spent tons of time trying everything from this

Confluence does not start due to Spring Application context has not been set

but nothing helped.

Suggest an answer

Log in or Sign up to answer
Community showcase
Published in Confluence

What's New in Confluence Cloud – November 2019 Edition

Hey community! This month we’re excited to share brand new features to help you make your mark on Confluence. If you haven’t already, check out our updates from October and September too! Expre...

23,169 views 18 50
Read article

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