掲示板

Site Crash due to Broken Pipe Exception

thumbnail
15年前 に Vara R によって更新されました。

Site Crash due to Broken Pipe Exception

New Member 投稿: 20 参加年月日: 07/06/05 最新の投稿
Hi,

One of our sites developed on Liferay portal crashed and we could observe the below exception in the catalina.log file. There are many such instances of this error in the log file.

Could you please suggest on this regard as to why would this error occur and resoluton for it?


org.apache.jk.core.MsgContext action
WARNING: Error sending end packet
java.net.SocketException: Broken pipe
at java.net.SocketOutputStream.socketWrite0(Native Method)
at java.net.SocketOutputStream.socketWrite(SocketOutputStream.java:92)
at java.net.SocketOutputStream.write(SocketOutputStream.java:136)
at org.apache.jk.common.ChannelSocket.send(ChannelSocket.java:537)
at org.apache.jk.common.JkInputStream.endMessage(JkInputStream.java:127)
at org.apache.jk.core.MsgContext.action(MsgContext.java:302)
at org.apache.coyote.Response.action(Response.java:183)
at org.apache.coyote.Response.finish(Response.java:305)
at org.apache.catalina.connector.OutputBuffer.close(OutputBuffer.java:281)
at org.apache.catalina.connector.CoyoteOutputStream.close(CoyoteOutputStream.java:104)
at com.liferay.filters.compression.CompressionStream.close(CompressionStream.java:79)
at java.io.FilterOutputStream.close(FilterOutputStream.java:143)
at com.liferay.util.servlet.ServletResponseUtil.cleanUp(ServletResponseUtil.java:77)
at com.liferay.util.servlet.ServletResponseUtil.write(ServletResponseUtil.java:198)
at com.liferay.filters.strip.StripFilter.doFilter(StripFilter.java:249)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:215)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:188)
at com.liferay.filters.secure.SecureFilter.doFilter(SecureFilter.java:144)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:215)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:188)
at com.liferay.filters.compression.CompressionFilter.doFilter(CompressionFilter.java:113)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:215)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:188)
at com.liferay.filters.doubleclick.DoubleClickFilter.doFilter(DoubleClickFilter.java:135)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:215)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:188)
at com.liferay.portal.servlet.filters.layoutcache.LayoutCacheFilter.doFilter(LayoutCacheFilter.java:167)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:215)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:188)
at com.liferay.portal.servlet.filters.autologin.AutoLoginFilter.doFilter(AutoLoginFilter.java:106)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:215)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:188)
at com.liferay.portal.servlet.filters.virtualhost.VirtualHostFilter.doFilter(VirtualHostFilter.java:131)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:215)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:188)
at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:210)
at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:174)
at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:433)
at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127)
at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:117)
at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:108)
at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:151)
at org.apache.jk.server.JkCoyoteHandler.invoke(JkCoyoteHandler.java:200)
at org.apache.jk.common.HandlerRequest.invoke(HandlerRequest.java:283)
at org.apache.jk.common.ChannelSocket.invoke(ChannelSocket.java:773)
at org.apache.jk.common.ChannelSocket.processConnection(ChannelSocket.java:703)
at org.apache.jk.common.ChannelSocket$SocketConnection.runIt(ChannelSocket.java:895)
at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:685)
at java.lang.Thread.run(Thread.java:595)
org.apache.jk.common.ChannelSocket processConnection
WARNING: processCallbacks status 2
org.apache.tomcat.util.http.Parameters processParameters
WARNING: Parameters: Character decoding failed. Parameter skipped.
java.io.CharConversionException: isHexDigit
at org.apache.tomcat.util.buf.UDecoder.convert(UDecoder.java:85)
at org.apache.tomcat.util.buf.UDecoder.convert(UDecoder.java:46)
at org.apache.tomcat.util.http.Parameters.urlDecode(Parameters.java:411)
at org.apache.tomcat.util.http.Parameters.processParameters(Parameters.java:393)
at org.apache.tomcat.util.http.Parameters.processParameters(Parameters.java:509)
at org.apache.tomcat.util.http.Parameters.handleQueryParameters(Parameters.java:266)
at org.apache.catalina.connector.Request.parseParameters(Request.java:2341)
at org.apache.catalina.connector.Request.getParameter(Request.java:1005)
at org.apache.catalina.connector.RequestFacade.getParameter(RequestFacade.java:353)
at com.liferay.portal.kernel.util.ParamUtil.getString(ParamUtil.java:186)
at com.liferay.portal.util.PortalUtil.getCurrentURL(PortalUtil.java:346)
at com.liferay.portal.servlet.filters.virtualhost.VirtualHostFilter.doFilter(VirtualHostFilter.java:116)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:215)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:188)
at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:210)
at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:174)
at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:433)
at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127)
at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:117)
at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:108)
at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:151)
at org.apache.jk.server.JkCoyoteHandler.invoke(JkCoyoteHandler.java:200)
at org.apache.jk.common.HandlerRequest.invoke(HandlerRequest.java:283)
at org.apache.jk.common.ChannelSocket.invoke(ChannelSocket.java:773)
at org.apache.jk.common.ChannelSocket.processConnection(ChannelSocket.java:703)
at org.apache.jk.common.ChannelSocket$SocketConnection.runIt(ChannelSocket.java:895)
at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:685)
at java.lang.Thread.run(Thread.java:595)

Thanks & Regards
Vara
thumbnail
15年前 に Olaf Kock によって更新されました。

RE: Site Crash due to Broken Pipe Exception

Liferay Legend 投稿: 6403 参加年月日: 08/09/23 最新の投稿
Vara R:
One of our sites developed on Liferay portal crashed and we could observe the below exception in the catalina.log file. There are many such instances of this error in the log file.


Can you provide more information about what you mean with "crash"? e.g. the server process terminates, an error message is displayed, nothing at all is displayed from then on, the log file runs full or similar.

One typical instance I've seen for broken pipe exceptions is, that the client terminates one connection (e.g. after a doubleclick on one link there might be two requests, but the first one is terminated. The server tries to send back data through an already closed connection, leading to a "broken pipe". In this case this is nothing to worry about and the stacktrace for this is just overly verbose.

Cheers,
Olaf
thumbnail
15年前 に dominik domih によって更新されました。

RE: Site Crash due to Broken Pipe Exception

Junior Member 投稿: 57 参加年月日: 08/11/10 最新の投稿
Hi Vara,
I think you 've already got your answer, but to close this issue I post the solution that I've found:
#
# Set the interval in minutes for the ConnectionHearbeatJob.
# This will determine how often the database is polled for long running
# connections and will prevent the database from disconnecting the socket
# prematurely.
#
counter.connection.heartbeat.job.interval=60

from LPS-432 does not fix the problem, but
this may be an acceptable workaround.

best regards,
dominik
thumbnail
14年前 に Vara R によって更新されました。

RE: Site Crash due to Broken Pipe Exception

New Member 投稿: 20 参加年月日: 07/06/05 最新の投稿
Thanks for your information.

I got the solution for this. Sorry i forgot to close this, can you please tell me how can i close this issue.. ?

Regards
Vara
thumbnail
14年前 に Lisa Simpson によって更新されました。

RE: Site Crash due to Broken Pipe Exception

Liferay Legend 投稿: 2034 参加年月日: 09/03/05 最新の投稿
Just put [SOLVED] in front of the subject on the original post.
thumbnail
8年前 に Ghulam Abbas によって更新されました。

RE: Site Crash due to Broken Pipe Exception

New Member 投稿: 5 参加年月日: 14/08/26 最新の投稿
Can you please update how you have fixed this issue.

We are also facing the same issue and have clustering environment.

Suddenly broken pipe exceptions come and our site crashes.
thumbnail
8年前 に David H Nebinger によって更新されました。

RE: Site Crash due to Broken Pipe Exception

Liferay Legend 投稿: 14916 参加年月日: 06/09/02 最新の投稿
You revived a 6+ year dead thread.

Do you honestly think whatever their problem was in whatever version of Liferay was out 6+ years ago that the issue will be the same as yours?