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:
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.
please someone help me
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(LazyReference.java:149) at com.atlassian.util.concurrent.LazyReference.get(LazyReference.java:112)
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.
THANK YOU INDEED!!!
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:
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.
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...
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