You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tomcat.apache.org by Randy Paries <rt...@gmail.com> on 2006/02/13 15:27:10 UTC

problems with Clusters or apache connector not sure which one

hello,
I am running apache-tomcat-5.5.15 on three boxes 2 rh9 and one fedora
4. and they are clustered together

I am seeing problems where apache can not longer talk to tomcat.

if anyone can point me on how to debug this please help, i am not sure
what else i should include as far a conf setups, so please let me know
what other details i need to supply so you guys can help

Thanks


in the log files at the time of the failure i see the following

catalina.out ( i will see a bunch of these)
========================================================
Feb 12, 2006 8:25:23 PM org.apache.catalina.cluster.tcp.TcpReplicationThread run
SEVERE: TCP Worker thread in cluster caught 'java.io.IOException:
Connection reset by peer' closing channel
java.io.IOException: Connection reset by peer
        at sun.nio.ch.FileDispatcher.read0(Native Method)
        at sun.nio.ch.SocketDispatcher.read(SocketDispatcher.java:21)
        at sun.nio.ch.IOUtil.readIntoNativeBuffer(IOUtil.java:233)
        at sun.nio.ch.IOUtil.read(IOUtil.java:206)
        at sun.nio.ch.SocketChannelImpl.read(SocketChannelImpl.java:207)
        at org.apache.catalina.cluster.tcp.TcpReplicationThread.drainChannel(TcpReplicationThread.java:125)
        at org.apache.catalina.cluster.tcp.TcpReplicationThread.run(TcpReplicationThread.java:69)

=========================================================

then in my mod_jk.log i will see
=========================================================
[Sun Feb 12 20:25:10 2006]  [jk_ajp_common.c (1303)]: ERROR: Client
connection aborted or network problems
[Sun Feb 12 20:25:13 2006]  [jk_ajp_common.c (1303)]: ERROR: Client
connection aborted or network problems
[Sun Feb 12 20:25:39 2006]  [jk_ajp_common.c (1303)]: ERROR: Client
connection aborted or network problems
[Sun Feb 12 20:30:00 2006]  [jk_ajp_common.c (738)]: ERROR: can't
receive the response message from tomcat, network problems or tomcat
is down. err=-104
[Sun Feb 12 20:30:00 2006]  [jk_ajp_common.c (1137)]: Error reading
reply from tomcat. Tomcat is down or network problems.
[Sun Feb 12 20:30:00 2006]  [jk_ajp_common.c (1290)]: ERROR: Receiving
from tomcat failed, recoverable operation. err=0
[Sun Feb 12 20:30:02 2006]  [jk_ajp_common.c (738)]: ERROR: can't
receive the response message from tomcat, network problems or tomcat
is down. err=-104
[

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


Re: problems with Clusters or apache connector not sure which one

Posted by Filip Hanik - Dev Lists <de...@hanik.com>.
When this error happens, are you able to issue the command

1. to see if tomcat is listening,
netstat -na |grep 8009 |grep LISTEN

2.  if yes, try to connect to the socket
"telnet localhost 8009"

on the box you see the error, this will tell you if the server socket is 
alright.

Fillip

Randy Paries wrote:
> Filip
>
> The Both the apache and tomcat are on the same server and the
> workers.properties connects via localhost
>
> Thanks
>   


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


Re: problems with Clusters or apache connector not sure which one

Posted by Randy Paries <rt...@gmail.com>.
Filip

The Both the apache and tomcat are on the same server and the
workers.properties connects via localhost

Thanks

On 2/13/06, Filip Hanik - Dev Lists <de...@hanik.com> wrote:
> Hi Randy, if Apache cannot talk to Tomcat, then its not because of the
> clustering. The first error in catalina.out, is just a result of
> replication keep alive sessions getting closed, I will fix the code that
> generates that error so that it doesn't log as an error.
> do you have a firewall or anything of that kind between apache and tomcat?
>
> Filip
>
>
> Randy Paries wrote:
> > hello,
> > I am running apache-tomcat-5.5.15 on three boxes 2 rh9 and one fedora
> > 4. and they are clustered together
> >
> > I am seeing problems where apache can not longer talk to tomcat.
> >
> > if anyone can point me on how to debug this please help, i am not sure
> > what else i should include as far a conf setups, so please let me know
> > what other details i need to supply so you guys can help
> >
> > Thanks
> >
> >
> > in the log files at the time of the failure i see the following
> >
> > catalina.out ( i will see a bunch of these)
> > ========================================================
> > Feb 12, 2006 8:25:23 PM org.apache.catalina.cluster.tcp.TcpReplicationThread run
> > SEVERE: TCP Worker thread in cluster caught 'java.io.IOException:
> > Connection reset by peer' closing channel
> > java.io.IOException: Connection reset by peer
> >         at sun.nio.ch.FileDispatcher.read0(Native Method)
> >         at sun.nio.ch.SocketDispatcher.read(SocketDispatcher.java:21)
> >         at sun.nio.ch.IOUtil.readIntoNativeBuffer(IOUtil.java:233)
> >         at sun.nio.ch.IOUtil.read(IOUtil.java:206)
> >         at sun.nio.ch.SocketChannelImpl.read(SocketChannelImpl.java:207)
> >         at org.apache.catalina.cluster.tcp.TcpReplicationThread.drainChannel(TcpReplicationThread.java:125)
> >         at org.apache.catalina.cluster.tcp.TcpReplicationThread.run(TcpReplicationThread.java:69)
> >
> > =========================================================
> >
> > then in my mod_jk.log i will see
> > =========================================================
> > [Sun Feb 12 20:25:10 2006]  [jk_ajp_common.c (1303)]: ERROR: Client
> > connection aborted or network problems
> > [Sun Feb 12 20:25:13 2006]  [jk_ajp_common.c (1303)]: ERROR: Client
> > connection aborted or network problems
> > [Sun Feb 12 20:25:39 2006]  [jk_ajp_common.c (1303)]: ERROR: Client
> > connection aborted or network problems
> > [Sun Feb 12 20:30:00 2006]  [jk_ajp_common.c (738)]: ERROR: can't
> > receive the response message from tomcat, network problems or tomcat
> > is down. err=-104
> > [Sun Feb 12 20:30:00 2006]  [jk_ajp_common.c (1137)]: Error reading
> > reply from tomcat. Tomcat is down or network problems.
> > [Sun Feb 12 20:30:00 2006]  [jk_ajp_common.c (1290)]: ERROR: Receiving
> > from tomcat failed, recoverable operation. err=0
> > [Sun Feb 12 20:30:02 2006]  [jk_ajp_common.c (738)]: ERROR: can't
> > receive the response message from tomcat, network problems or tomcat
> > is down. err=-104
> > [
> >
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
> > For additional commands, e-mail: users-help@tomcat.apache.org
> >
> >
> >
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
> For additional commands, e-mail: users-help@tomcat.apache.org
>
>

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


Re: problems with Clusters or apache connector not sure which one

Posted by Filip Hanik - Dev Lists <de...@hanik.com>.
Hi Randy, if Apache cannot talk to Tomcat, then its not because of the 
clustering. The first error in catalina.out, is just a result of 
replication keep alive sessions getting closed, I will fix the code that 
generates that error so that it doesn't log as an error.
do you have a firewall or anything of that kind between apache and tomcat?

Filip


Randy Paries wrote:
> hello,
> I am running apache-tomcat-5.5.15 on three boxes 2 rh9 and one fedora
> 4. and they are clustered together
>
> I am seeing problems where apache can not longer talk to tomcat.
>
> if anyone can point me on how to debug this please help, i am not sure
> what else i should include as far a conf setups, so please let me know
> what other details i need to supply so you guys can help
>
> Thanks
>
>
> in the log files at the time of the failure i see the following
>
> catalina.out ( i will see a bunch of these)
> ========================================================
> Feb 12, 2006 8:25:23 PM org.apache.catalina.cluster.tcp.TcpReplicationThread run
> SEVERE: TCP Worker thread in cluster caught 'java.io.IOException:
> Connection reset by peer' closing channel
> java.io.IOException: Connection reset by peer
>         at sun.nio.ch.FileDispatcher.read0(Native Method)
>         at sun.nio.ch.SocketDispatcher.read(SocketDispatcher.java:21)
>         at sun.nio.ch.IOUtil.readIntoNativeBuffer(IOUtil.java:233)
>         at sun.nio.ch.IOUtil.read(IOUtil.java:206)
>         at sun.nio.ch.SocketChannelImpl.read(SocketChannelImpl.java:207)
>         at org.apache.catalina.cluster.tcp.TcpReplicationThread.drainChannel(TcpReplicationThread.java:125)
>         at org.apache.catalina.cluster.tcp.TcpReplicationThread.run(TcpReplicationThread.java:69)
>
> =========================================================
>
> then in my mod_jk.log i will see
> =========================================================
> [Sun Feb 12 20:25:10 2006]  [jk_ajp_common.c (1303)]: ERROR: Client
> connection aborted or network problems
> [Sun Feb 12 20:25:13 2006]  [jk_ajp_common.c (1303)]: ERROR: Client
> connection aborted or network problems
> [Sun Feb 12 20:25:39 2006]  [jk_ajp_common.c (1303)]: ERROR: Client
> connection aborted or network problems
> [Sun Feb 12 20:30:00 2006]  [jk_ajp_common.c (738)]: ERROR: can't
> receive the response message from tomcat, network problems or tomcat
> is down. err=-104
> [Sun Feb 12 20:30:00 2006]  [jk_ajp_common.c (1137)]: Error reading
> reply from tomcat. Tomcat is down or network problems.
> [Sun Feb 12 20:30:00 2006]  [jk_ajp_common.c (1290)]: ERROR: Receiving
> from tomcat failed, recoverable operation. err=0
> [Sun Feb 12 20:30:02 2006]  [jk_ajp_common.c (738)]: ERROR: can't
> receive the response message from tomcat, network problems or tomcat
> is down. err=-104
> [
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
> For additional commands, e-mail: users-help@tomcat.apache.org
>
>
>   


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