You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@httpd.apache.org by Fady Haikal <fa...@gmail.com> on 2017/02/14 15:08:53 UTC

[users@httpd] Session disconnection

Dear Team,
I need your urgent help for an issue i'm facing with Apache Web
Server, from time to time we are facing a disconnection on the
application and after checking the logs from Apache we can see the
below error: please advise urgently as we are working on a PROD server

Our architecture: 2 Apache Web Servers (192.168.0.11 and 192.168.0.10)
with MS network load balacing between them with a VIrtual IP
192.168.0.12 (DNS imal.albaraka.com.sd) and all users are connecting
to the application from this DNS imal.albaraka.com.sd

[Tue Feb 14 17:45:27.071171 2017] [proxy_http:error] [pid 1276:tid
2080] (OS 10054)An existing connection was forcibly closed by the
remote host.  : [client 10.114.117.51:51838] AH01102: error reading
status line from remote server 10.114.43.103:8080, referer:
http://imal.albaraka.com.sd/imal_core_portal/pathdesktop/DesktopAction_!corePortal.action
[Tue Feb 14 17:45:51.673830 2017] [proxy_http:error] [pid 1276:tid
1496] (OS 10054)An existing connection was forcibly closed by the
remote host.  : [client 10.114.119.57:52151] AH01102: error reading
status line from remote server 10.114.43.103:8080, referer:
http://imal.albaraka.com.sd/imal_core_portal/pathdesktop/DesktopAction_!corePortal.action
[Tue Feb 14 17:47:53.339839 2017] [proxy_http:error] [pid 1276:tid
1204] (OS 10054)An existing connection was forcibly closed by the
remote host.  : [client 10.114.33.42:52740] AH01102: error reading
status line from remote server 10.114.43.103:8080, referer:
http://imal.albaraka.com.sd/imal_core_portal/pathdesktop/DesktopAction_!corePortal.action

Regards,
Fady

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org


Re: [users@httpd] Session disconnection

Posted by Luca Toscano <to...@gmail.com>.
2017-02-14 16:55 GMT+01:00 Fady Haikal <fa...@gmail.com>:

> Luca,
> Apache/2.4.18 (Win64)
>
> 10.114.119.* are the clients machines, 10.114.43.102 and 10.114.43.103
> are the app servers
>
> yes i can see 502 in the httpd access log but all are related to a
> specific ajax we are using in our application, in other words it's not
> related to the disconnection issues we are facing
>
> from application server i cannot see any error, but from the client
> machine the session expired
>
>
For this kind of debugging issues I'd suggest you to follow up in the
#httpd IRC Freenode channel, because we might need to ask you a lot of
questions and the mailing lists might be a bit overkill.

Thanks!

Luca

Re: [users@httpd] Session disconnection

Posted by Fady Haikal <fa...@gmail.com>.
Luca,
Apache/2.4.18 (Win64)

10.114.119.* are the clients machines, 10.114.43.102 and 10.114.43.103
are the app servers

yes i can see 502 in the httpd access log but all are related to a
specific ajax we are using in our application, in other words it's not
related to the disconnection issues we are facing

from application server i cannot see any error, but from the client
machine the session expired

On Tue, Feb 14, 2017 at 5:44 PM, Luca Toscano <to...@gmail.com> wrote:
> Hi!
>
> 2017-02-14 16:08 GMT+01:00 Fady Haikal <fa...@gmail.com>:
>>
>> Dear Team,
>> I need your urgent help for an issue i'm facing with Apache Web
>> Server, from time to time we are facing a disconnection on the
>> application and after checking the logs from Apache we can see the
>> below error: please advise urgently as we are working on a PROD server
>>
>> Our architecture: 2 Apache Web Servers (192.168.0.11 and 192.168.0.10)
>> with MS network load balacing between them with a VIrtual IP
>> 192.168.0.12 (DNS imal.albaraka.com.sd) and all users are connecting
>> to the application from this DNS imal.albaraka.com.sd
>>
>> [Tue Feb 14 17:45:27.071171 2017] [proxy_http:error] [pid 1276:tid
>> 2080] (OS 10054)An existing connection was forcibly closed by the
>> remote host.  : [client 10.114.117.51:51838] AH01102: error reading
>> status line from remote server 10.114.43.103:8080, referer:
>>
>> http://imal.albaraka.com.sd/imal_core_portal/pathdesktop/DesktopAction_!corePortal.action
>> [Tue Feb 14 17:45:51.673830 2017] [proxy_http:error] [pid 1276:tid
>> 1496] (OS 10054)An existing connection was forcibly closed by the
>> remote host.  : [client 10.114.119.57:52151] AH01102: error reading
>> status line from remote server 10.114.43.103:8080, referer:
>>
>> http://imal.albaraka.com.sd/imal_core_portal/pathdesktop/DesktopAction_!corePortal.action
>> [Tue Feb 14 17:47:53.339839 2017] [proxy_http:error] [pid 1276:tid
>> 1204] (OS 10054)An existing connection was forcibly closed by the
>> remote host.  : [client 10.114.33.42:52740] AH01102: error reading
>> status line from remote server 10.114.43.103:8080, referer:
>>
>> http://imal.albaraka.com.sd/imal_core_portal/pathdesktop/DesktopAction_!corePortal.action
>>
>
> Can you tell us what version of httpd you are using?
>
> From a quick glance it seems to me that httpd receives garbage from a remote
> server (and not a valid HTTP response).
>
> Some questions:
> - Can you give us more info about what are the IPs 10.114.119.* ? App
> servers?
> - Do you see a 502 (Bad gateway) in the httpd access log?
> - Have you checked for errors in the remote host?
>
> Hope that helps!
>
> Luca

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org


Re: [users@httpd] Session disconnection

Posted by Luca Toscano <to...@gmail.com>.
Hi!

2017-02-14 16:08 GMT+01:00 Fady Haikal <fa...@gmail.com>:

> Dear Team,
> I need your urgent help for an issue i'm facing with Apache Web
> Server, from time to time we are facing a disconnection on the
> application and after checking the logs from Apache we can see the
> below error: please advise urgently as we are working on a PROD server
>
> Our architecture: 2 Apache Web Servers (192.168.0.11 and 192.168.0.10)
> with MS network load balacing between them with a VIrtual IP
> 192.168.0.12 (DNS imal.albaraka.com.sd) and all users are connecting
> to the application from this DNS imal.albaraka.com.sd
>
> [Tue Feb 14 17:45:27.071171 2017] [proxy_http:error] [pid 1276:tid
> 2080] (OS 10054)An existing connection was forcibly closed by the
> remote host.  : [client 10.114.117.51:51838] AH01102: error reading
> status line from remote server 10.114.43.103:8080, referer:
> http://imal.albaraka.com.sd/imal_core_portal/pathdesktop/
> DesktopAction_!corePortal.action
> [Tue Feb 14 17:45:51.673830 2017] [proxy_http:error] [pid 1276:tid
> 1496] (OS 10054)An existing connection was forcibly closed by the
> remote host.  : [client 10.114.119.57:52151] AH01102: error reading
> status line from remote server 10.114.43.103:8080, referer:
> http://imal.albaraka.com.sd/imal_core_portal/pathdesktop/
> DesktopAction_!corePortal.action
> [Tue Feb 14 17:47:53.339839 2017] [proxy_http:error] [pid 1276:tid
> 1204] (OS 10054)An existing connection was forcibly closed by the
> remote host.  : [client 10.114.33.42:52740] AH01102: error reading
> status line from remote server 10.114.43.103:8080, referer:
> http://imal.albaraka.com.sd/imal_core_portal/pathdesktop/
> DesktopAction_!corePortal.action
>
>
Can you tell us what version of httpd you are using?

From a quick glance it seems to me that httpd receives garbage from a
remote server (and not a valid HTTP response).

Some questions:
- Can you give us more info about what are the IPs 10.114.119.* ? App
servers?
- Do you see a 502 (Bad gateway) in the httpd access log?
- Have you checked for errors in the remote host?

Hope that helps!

Luca

Re: [users@httpd] Session disconnection

Posted by Yann Ylavic <yl...@gmail.com>.
Hi,

On Wed, Feb 15, 2017 at 7:32 AM, Fady Haikal <fa...@gmail.com> wrote:
>
> Disable reuse set to on means that it will disconnect the connection
> once the proxy call it completed. So this will affect the AJAX
> functions that required the connection to be always on.

Hmm, mod_proxy_http will close the connection once there is nothing
more expected on it from an HTTP point of view, so nothing should
break with or without keepalive.

If this is the case (i.e. protocol is WebSocket), maybe you'd need
mod_proxy_wstunnel instead?

Regards,
Yann.

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org


Re: [users@httpd] Session disconnection

Posted by Fady Haikal <fa...@gmail.com>.
Yann,

Disable reuse set to on means that it will disconnect the connection
once the proxy call it completed. So this will affect the AJAX
functions that required the connection to be always on.

Regards,
Fady


On Tue, Feb 14, 2017 at 7:37 PM, Yann Ylavic <yl...@gmail.com> wrote:
> Hi,
>
> On Tue, Feb 14, 2017 at 4:08 PM, Fady Haikal <fa...@gmail.com> wrote:
>>
>> [Tue Feb 14 17:45:27.071171 2017] [proxy_http:error] [pid 1276:tid
>> 2080] (OS 10054)An existing connection was forcibly closed by the
>> remote host.  : [client 10.114.117.51:51838] AH01102: error reading
>> status line from remote server 10.114.43.103:8080, referer:
>> http://imal.albaraka.com.sd/imal_core_portal/pathdesktop/DesktopAction_!corePortal.action
>
> Did you try to disable connection reuse (keepalive) in mod_proxy, e.g.
>
>      ProxySet http://10.114.43.103:8080 disablereuse=on
> (or with "disablereuse=on" appended to your existing ProxyPass lines)
>
> and see if it helps?
>
>
> Regards,
> Yann.
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
> For additional commands, e-mail: users-help@httpd.apache.org
>

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org


Re: [users@httpd] Session disconnection

Posted by Yann Ylavic <yl...@gmail.com>.
Hi,

On Tue, Feb 14, 2017 at 4:08 PM, Fady Haikal <fa...@gmail.com> wrote:
>
> [Tue Feb 14 17:45:27.071171 2017] [proxy_http:error] [pid 1276:tid
> 2080] (OS 10054)An existing connection was forcibly closed by the
> remote host.  : [client 10.114.117.51:51838] AH01102: error reading
> status line from remote server 10.114.43.103:8080, referer:
> http://imal.albaraka.com.sd/imal_core_portal/pathdesktop/DesktopAction_!corePortal.action

Did you try to disable connection reuse (keepalive) in mod_proxy, e.g.

     ProxySet http://10.114.43.103:8080 disablereuse=on
(or with "disablereuse=on" appended to your existing ProxyPass lines)

and see if it helps?


Regards,
Yann.

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org