Unable to login, Proxy Error - Error reading from remote server
Asked by Anthony:

Hello,

Since this morning, without any change on the server and any change on the confluence app, I cannot loggin to the app.

confluence version: 5.3.1

I use Apache/2.4.7 with mod_proxy

I restart both confluence and apache without success.

Confluence is running, the disk is not full.

Each attempt result to the following http error:
>
> Proxy Error {#toc-hId--1443247438}
> ----------------------------------
>
> The proxy server received an invalid response from an upstream server.  
> The proxy server could not handle the request *[POST /confluence/dologin.action](http://websitebooster.fr/confluence/dologin.action)*.
>
> Reason: **Error reading from remote server**
>
On apache server log i found the following logs:
> \[Wed Feb 27 16:56:10.546387 2019\] \[proxy_http:error\] \[pid 3833\] (70007)The timeout specified has expired: \[client 193.248.40.185:59926\] AH01102: error reading status line from remote server localhost:8090, referer: http://xxx/confluence/dologin.action  
> \[Wed Feb 27 16:56:10.546451 2019\] \[proxy:error\] \[pid 3833\] \[client 193.248.40.185:59926\] AH00898: Error reading from remote server returned by /confluence/dologin.action, referer: http://xxx/confluence/dologin.action  
> \[Wed Feb 27 16:56:10.556796 2019\] \[proxy_http:error\] \[pid 1107\] (70007)The timeout specified has expired: \[client 193.248.40.185:59684\] AH01102: error reading status line from remote server localhost:8090, referer: http://xxx/confluence/dologin.action  
> \[Wed Feb 27 16:56:10.556843 2019\] \[proxy:error\] \[pid 1107\] \[client 193.248.40.185:59684\] AH00898: Error reading from remote server returned by /confluence/dologin.action, referer: http://xxx/confluence/dologin.action

I tried to update the ProxyTimeout without success.

I don't know where to search since I did not found any related issue.

Thank you


Answers:
author: josh
body: Hi,

Did you set up Confluence to use a context path (/confluence) in your server.xml?

The examples given in the documentation show you need to use http://localhost:8080/confluence in the ProxyPass directive, but you may need to remove the /confluence

comments: author: Anthony
body: Hi,

Thank you for your reply.

I set up Confluence with context path (/confluence) in my server.xml.

I tried to make the change as you suggest, but now I can't access my confluence page anymore.

Here is my apache configuration (the two lines commented is the configuration before your suggestion)

```
ProxyRequests Off
ProxyVia On
ProxyPreserveHost On

#ProxyPass /confluence http://localhost:8090/confluence
ProxyPass /confluence http://localhost:8090
#ProxyPassReverse /confluence http://localhost:8090/confluence
ProxyPassReverse /confluence http://localhost:8090
<Location /confluence>
RequestHeader unset Authorization
Order allow,deny
Allow from all
</Location>
```

All was working fine since many years and suddenly it's broken.


author: josh
body: They need to match - if you're using a context path in your server.xml, you need to include it on your proxy configurations.

Can you post your \<connector\> block from your server.xml?


author: Anthony
body: Thank you for your reply.

The issue disappeared as suddenly as it has appeared. So I will not be able to test any solution, I just hope this will not come back again.

Again thank you for your help.


Tags: confluence-server

server