robertdoo / red5

Automatically exported from code.google.com/p/red5
0 stars 0 forks source link

Help!red51.0.2 server errors #469

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago

one group live and record(append mode), one client live  can record ,one live 
can not record when record later. why? 

Red5 1.0.2 "Snapshot"  CentOS6.2 64

Please provide any additional information below.

[INFO] [NioProcessor-3] org.red5.server.net.rtmp.codec.RTMPProtocolDecoder - 
Action _error
[INFO] [NioProcessor-3] org.red5.server.net.rtmp.codec.RTMPProtocolDecoder - 
Action bwCheckService.onClientBWCheck
[INFO] [NioProcessor-3] video.prison.server.ClientServerDetection - cOutBytes: 
21316 cInBytes: 310607 time: -1151368795
[INFO] [NioProcessor-3] org.red5.server.net.rtmp.codec.RTMPProtocolDecoder - 
Action bwCheckService.onClientBWCheck
[INFO] [NioProcessor-3] org.red5.server.net.rtmp.codec.RTMPProtocolDecoder - 
Action _error
[INFO] [NioProcessor-3] video.prison.server.ClientServerDetection - cOutBytes: 
38140 cInBytes: 310697 time: -1151368795
[WARN] [NioProcessor-3] org.red5.server.net.rtmp.RTMPMinaIoHandler - Exception 
caught on session: 2
java.io.IOException: Connection reset by peer
    at sun.nio.ch.FileDispatcher.read0(Native Method) ~[na:1.6.0_38-ea]
    at sun.nio.ch.SocketDispatcher.read(SocketDispatcher.java:21) ~[na:1.6.0_38-ea]
    at sun.nio.ch.IOUtil.readIntoNativeBuffer(IOUtil.java:198) ~[na:1.6.0_38-ea]
    at sun.nio.ch.IOUtil.read(IOUtil.java:171) ~[na:1.6.0_38-ea]
    at sun.nio.ch.SocketChannelImpl.read(SocketChannelImpl.java:245) ~[na:1.6.0_38-ea]
    at org.apache.mina.transport.socket.nio.NioProcessor.read(NioProcessor.java:271) ~[mina-core-2.0.8-SNAPSHOT.jar:na]
    at org.apache.mina.transport.socket.nio.NioProcessor.read(NioProcessor.java:44) ~[mina-core-2.0.8-SNAPSHOT.jar:na]
    at org.apache.mina.core.polling.AbstractPollingIoProcessor.read(AbstractPollingIoProcessor.java:690) [mina-core-2.0.8-SNAPSHOT.jar:na]
    at org.apache.mina.core.polling.AbstractPollingIoProcessor.process(AbstractPollingIoProcessor.java:664) [mina-core-2.0.8-SNAPSHOT.jar:na]
    at org.apache.mina.core.polling.AbstractPollingIoProcessor.process(AbstractPollingIoProcessor.java:653) [mina-core-2.0.8-SNAPSHOT.jar:na]
    at org.apache.mina.core.polling.AbstractPollingIoProcessor.access$600(AbstractPollingIoProcessor.java:67) [mina-core-2.0.8-SNAPSHOT.jar:na]
    at org.apache.mina.core.polling.AbstractPollingIoProcessor$Processor.run(AbstractPollingIoProcessor.java:1113) [mina-core-2.0.8-SNAPSHOT.jar:na]
    at org.apache.mina.util.NamePreservingRunnable.run(NamePreservingRunnable.java:64) [mina-core-2.0.8-SNAPSHOT.jar:na]
    at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886) [na:1.6.0_38-ea]
    at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908) [na:1.6.0_38-ea]
    at java.lang.Thread.run(Thread.java:662) [na:1.6.0_38-ea]
[INFO] [NioProcessor-3] org.red5.server.net.rtmp.RTMPMinaIoHandler - Session 
closed: 2
[INFO] [NioProcessor-3] video.prison.server.BWApplication - W3C 
x-category:session x-event:disconnect c-ip:58.30.139.85 c-client-id:1

[INFO] [NioProcessor-4] org.red5.server.stream.ClientBroadcastStream - Consumer 
connect
[INFO] [Red5_Scheduler_Worker-2] video.prison.server.PrisionApplicationAdapter 
- W3C x-category:stream x-event:play c-ip:58.30.139.85 
x-sname:d00f206c-c2ff-41ef-b3fe-6e9ae3b92b95
[INFO] [Red5_Scheduler_Worker-3] video.prison.server.PrisionApplicationAdapter 
- W3C x-category:stream x-event:play c-ip:58.30.139.85 
x-sname:d00f206c-c2ff-41ef-b3fe-6e9ae3b92b95 x-name:798/fuxing
[INFO] [Red5_Scheduler_Worker-4] video.prison.server.PrisionApplicationAdapter 
- W3C x-category:stream x-event:stop c-ip:58.30.139.85 cs-bytes:5233 
sc-bytes:2764672 x-sname:78ab1d18-0a99-4f6e-9f24-570a55e97cfe
[INFO] [Red5_Scheduler_Worker-5] video.prison.server.PrisionApplicationAdapter 
- W3C x-category:stream x-event:play c-ip:58.30.139.85 
x-sname:24f2209f-894e-47a7-b7ed-7cc254b52405
[INFO] [Red5_Scheduler_Worker-6] video.prison.server.PrisionApplicationAdapter 
- W3C x-category:stream x-event:play c-ip:58.30.139.85 
x-sname:24f2209f-894e-47a7-b7ed-7cc254b52405 x-name:798/tanshizhejiashu
[INFO] [NioProcessor-4] org.red5.server.stream.ClientBroadcastStream - Provider 
connect
[INFO] [NioProcessor-4] org.red5.server.stream.ClientBroadcastStream - Stream 
start
[INFO] [NioProcessor-4] org.red5.server.stream.ClientBroadcastStream - Provider 
connect
[INFO] [NioProcessor-4] video.prison.server.PrisionApplicationAdapter - W3C 
x-category:stream x-event:record-start c-ip:58.30.139.85 
x-sname:fb457cee-8cc2-4738-9f87-23a243d0cf9a x-file-name:tanshizhejiashu.flv
审核人员关闭探视室:798
开始探视时间:2013-12-04 10:12:38
结束探视时间:2013-12-04 10:13:21
总的探视时间:0分钟43秒
审核人员结束视频通话
[WARN] [NioProcessor-5] org.red5.server.net.rtmp.RTMPMinaIoHandler - Exception 
caught on session: 4
java.io.IOException: Connection reset by peer
    at sun.nio.ch.FileDispatcher.read0(Native Method) ~[na:1.6.0_38-ea]
    at sun.nio.ch.SocketDispatcher.read(SocketDispatcher.java:21) ~[na:1.6.0_38-ea]
    at sun.nio.ch.IOUtil.readIntoNativeBuffer(IOUtil.java:198) ~[na:1.6.0_38-ea]
    at sun.nio.ch.IOUtil.read(IOUtil.java:171) ~[na:1.6.0_38-ea]
    at sun.nio.ch.SocketChannelImpl.read(SocketChannelImpl.java:245) ~[na:1.6.0_38-ea]
    at org.apache.mina.transport.socket.nio.NioProcessor.read(NioProcessor.java:271) ~[mina-core-2.0.8-SNAPSHOT.jar:na]
    at org.apache.mina.transport.socket.nio.NioProcessor.read(NioProcessor.java:44) ~[mina-core-2.0.8-SNAPSHOT.jar:na]
    at org.apache.mina.core.polling.AbstractPollingIoProcessor.read(AbstractPollingIoProcessor.java:690) [mina-core-2.0.8-SNAPSHOT.jar:na]
    at org.apache.mina.core.polling.AbstractPollingIoProcessor.process(AbstractPollingIoProcessor.java:664) [mina-core-2.0.8-SNAPSHOT.jar:na]
    at org.apache.mina.core.polling.AbstractPollingIoProcessor.process(AbstractPollingIoProcessor.java:653) [mina-core-2.0.8-SNAPSHOT.jar:na]
    at org.apache.mina.core.polling.AbstractPollingIoProcessor.access$600(AbstractPollingIoProcessor.java:67) [mina-core-2.0.8-SNAPSHOT.jar:na]
    at org.apache.mina.core.polling.AbstractPollingIoProcessor$Processor.run(AbstractPollingIoProcessor.java:1113) [mina-core-2.0.8-SNAPSHOT.jar:na]
    at org.apache.mina.util.NamePreservingRunnable.run(NamePreservingRunnable.java:64) [mina-core-2.0.8-SNAPSHOT.jar:na]
    at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886) [na:1.6.0_38-ea]
    at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908) [na:1.6.0_38-ea]
    at java.lang.Thread.run(Thread.java:662) [na:1.6.0_38-ea]
[INFO] [NioProcessor-5] org.red5.server.net.rtmp.RTMPMinaIoHandler - Session 
closed: 4
[INFO] [NioProcessor-5] org.red5.server.stream.ClientBroadcastStream - Consumer 
disconnect
[INFO] [NioProcessor-5] org.red5.server.stream.ClientBroadcastStream - Stream 
close
[INFO] [NioProcessor-5] org.red5.server.stream.ClientBroadcastStream - Provider 
disconnect
[INFO] [NioProcessor-5] video.prison.server.PrisionApplicationAdapter - W3C 
x-category:stream x-event:record-stop c-ip:58.30.139.85 
x-sname:6bab71fa-96bc-449e-8fcc-f270b8077f7a x-file-name:tanshizhejiashu.flv
[INFO] [Red5_Scheduler_Worker-3] video.prison.server.PrisionApplicationAdapter 
- W3C x-category:stream x-event:stop c-ip:58.30.139.85 cs-bytes:811440 
sc-bytes:498567 x-sname:bceed0d4-d68b-41b5-b500-fabef3650bc2
[WARN] [NioProcessor-4] org.red5.server.net.rtmp.RTMPMinaIoHandler - Exception 
caught on session: 3
java.io.IOException: Connection reset by peer
    at sun.nio.ch.FileDispatcher.read0(Native Method) ~[na:1.6.0_38-ea]
    at sun.nio.ch.SocketDispatcher.read(SocketDispatcher.java:21) ~[na:1.6.0_38-ea]
    at sun.nio.ch.IOUtil.readIntoNativeBuffer(IOUtil.java:198) ~[na:1.6.0_38-ea]
    at sun.nio.ch.IOUtil.read(IOUtil.java:171) ~[na:1.6.0_38-ea]
    at sun.nio.ch.SocketChannelImpl.read(SocketChannelImpl.java:245) ~[na:1.6.0_38-ea]
    at org.apache.mina.transport.socket.nio.NioProcessor.read(NioProcessor.java:271) ~[mina-core-2.0.8-SNAPSHOT.jar:na]
    at org.apache.mina.transport.socket.nio.NioProcessor.read(NioProcessor.java:44) ~[mina-core-2.0.8-SNAPSHOT.jar:na]
    at org.apache.mina.core.polling.AbstractPollingIoProcessor.read(AbstractPollingIoProcessor.java:690) [mina-core-2.0.8-SNAPSHOT.jar:na]
    at org.apache.mina.core.polling.AbstractPollingIoProcessor.process(AbstractPollingIoProcessor.java:664) [mina-core-2.0.8-SNAPSHOT.jar:na]
    at org.apache.mina.core.polling.AbstractPollingIoProcessor.process(AbstractPollingIoProcessor.java:653) [mina-core-2.0.8-SNAPSHOT.jar:na]
    at org.apache.mina.core.polling.AbstractPollingIoProcessor.access$600(AbstractPollingIoProcessor.java:67) [mina-core-2.0.8-SNAPSHOT.jar:na]
    at org.apache.mina.core.polling.AbstractPollingIoProcessor$Processor.run(AbstractPollingIoProcessor.java:1113) [mina-core-2.0.8-SNAPSHOT.jar:na]
    at org.apache.mina.util.NamePreservingRunnable.run(NamePreservingRunnable.java:64) [mina-core-2.0.8-SNAPSHOT.jar:na]
    at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886) [na:1.6.0_38-ea]
    at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908) [na:1.6.0_38-ea]
    at java.lang.Thread.run(Thread.java:662) [na:1.6.0_38-ea]
[INFO] [NioProcessor-4] org.red5.server.net.rtmp.RTMPMinaIoHandler - Session 
closed: 3
[INFO] [NioProcessor-4] org.red5.server.stream.ClientBroadcastStream - Stream 
close
[INFO] [NioProcessor-4] org.red5.server.stream.ClientBroadcastStream - Provider 
disconnect
[INFO] [NioProcessor-4] video.prison.server.PrisionApplicationAdapter - W3C 
x-category:stream x-event:record-stop c-ip:58.30.139.85 
x-sname:fb457cee-8cc2-4738-9f87-23a243d0cf9a x-file-name:tanshizhejiashu.flv
[INFO] [NioProcessor-4] org.red5.server.stream.ClientBroadcastStream - Provider 
disconnect
[INFO] [NioProcessor-4] video.prison.server.PrisionApplicationAdapter - W3C 
x-category:stream x-event:unpublish c-ip:58.30.139.85 cs-bytes:1907928 
sc-bytes:365617 x-sname:fb457cee-8cc2-4738-9f87-23a243d0cf9a x-file-length:2 
x-name:798/tanshizhejiashu
[INFO] [NioProcessor-4] video.prison.server.PrisionApplicationAdapter - W3C 
x-category:stream x-event:recordstop c-ip:58.30.139.85 cs-bytes:1907928 
sc-bytes:365617 x-sname:fb457cee-8cc2-4738-9f87-23a243d0cf9a 
x-file-name:tanshizhejiashu.flv x-file-length:2 x-file-size:1907928
[INFO] [NioProcessor-4] video.prison.server.PrisionApplicationAdapter - W3C 
x-category:session x-event:disconnect c-ip:58.30.139.85 c-client-id:2

Original issue reported on code.google.com by duhui0...@gmail.com on 4 Dec 2013 at 4:05

GoogleCodeExporter commented 9 years ago
Your clients are disconnecting, that is what this error means: "Connection 
reset by peer". The server is trying to send to the client, but is unable to do 
so because it no longer exists.
Some older versions of Red5 did increase the frequency of this by mismanaging 
socket communications; however, in more recent 1.0.2 revisions this should not 
occur based on server events. This can be simulated by closing your browser 
while connected to Red5.

Original comment by mondain on 4 Dec 2013 at 11:58