RE[Red5] D5 periodically disconnects on Windows 7

334 views
Skip to first unread message

timax

unread,
Oct 26, 2012, 3:16:26 AM10/26/12
to red5in...@googlegroups.com

Dear RED5 gurus. Please help. I am running RED5 on Windows 7. Streaming
videos on my website and RED5 unpublishes every 3-4 hours byitself. Spent 3
days and con not figure out. In RED5 Publisher log window it look something
like that:

16:39:19:303 - NetConnection.Connect.Success
16:39:29:886 - Publish - NetStream.Publish.Start
19:58:56:321 - Publish - NetStream.Unpublish.Success
19:58:56:322 - NetConnection.Connect.Closed

By itself.... RED5.log shows:

2012-10-25 16:34:06,998 [NioProcessor-1] INFO
o.r.s.n.r.codec.RTMPProtocolDecoder - Action connect
2012-10-25 16:34:06,999 [NioProcessor-1] INFO
o.red5.server.net.rtmp.RTMPHandler - Connecting to: [WebScope@16f3ed7 Depth
= 1, Path = '/default', Name = 'live']
2012-10-25 16:34:07,101 [NioProcessor-1] INFO
o.r.s.n.r.codec.RTMPProtocolDecoder - Action createStream
2012-10-25 16:34:07,106 [NioProcessor-1] INFO
o.red5.server.net.rtmp.RTMPHandler - Remembering client buffer on stream:
4000
2012-10-25 16:34:07,111 [NioProcessor-1] INFO
o.r.s.n.r.codec.RTMPProtocolDecoder - Action getStreamLength
2012-10-25 16:34:07,199 [NioProcessor-1] INFO
o.r.s.n.r.codec.RTMPProtocolDecoder - Action play
2012-10-25 16:35:24,536 [NioProcessor-1] INFO
o.r.s.n.r.codec.RTMPProtocolDecoder - Action closeStream
2012-10-25 16:35:28,890 [NioProcessor-1] INFO
o.r.s.n.r.codec.RTMPProtocolDecoder - Action play
2012-10-25 16:35:28,891 [NioProcessor-1] WARN
org.red5.server.stream.PlayEngine - Subscribe to myStream provider failed
2012-10-25 16:35:53,121 [NioProcessor-1] INFO
o.r.s.n.r.codec.RTMPProtocolDecoder - Action deleteStream
2012-10-25 16:39:19,298 [NioProcessor-1] INFO
o.r.s.n.r.codec.RTMPProtocolDecoder - Action connect
2012-10-25 16:39:19,299 [NioProcessor-1] INFO
o.red5.server.net.rtmp.RTMPHandler - Connecting to: [WebScope@1d183b7 Depth
= 1, Path = '/default', Name = 'oflaDemo']
2012-10-25 16:39:29,835 [NioProcessor-1] INFO
o.r.s.n.r.codec.RTMPProtocolDecoder - Action createStream
2012-10-25 16:39:29,850 [NioProcessor-1] INFO
o.r.s.n.r.codec.RTMPProtocolDecoder - Action publish
2012-10-25 16:39:29,850 [NioProcessor-1] INFO
o.r.s.stream.ClientBroadcastStream - Provider connect
2012-10-25 16:39:29,850 [NioProcessor-1] INFO
o.r.s.stream.ClientBroadcastStream - Stream start
2012-10-25 16:39:29,851 [NioProcessor-1] INFO
o.r.s.stream.ClientBroadcastStream - Provider connect
2012-10-25 19:58:56,299 [Red5_Scheduler_Worker-1] WARN
o.r.server.net.rtmp.RTMPConnection - Closing RTMPMinaConnection from
127.0.0.1 : 50154 to localhost (in: 4292225168 out 1320163 ), with id 31,
due to too much inactivity (11967000ms), last ping sent 1000ms ago
2012-10-25 19:58:56,299 [Red5_Scheduler_Worker-1] WARN
o.r.server.net.rtmp.RTMPConnection - This often happens if YOUR Red5
application generated an exception on start-up. Check earlier in the log for
that exception first!
2012-10-25 19:58:56,300 [Red5_Scheduler_Worker-1] INFO
o.r.s.stream.ClientBroadcastStream - Close
2012-10-25 19:58:56,300 [Red5_Scheduler_Worker-1] INFO
o.r.s.stream.ClientBroadcastStream - Provider disconnect
2012-10-25 19:58:56,301 [Red5_Scheduler_Worker-1] INFO
o.r.s.stream.ClientBroadcastStream - Provider disconnect

What is wrong??? Thank you all in advance!!!
--
View this message in context: http://old.nabble.com/RED5-periodically-disconnects-on-Windows-7-tp34604420p34604420.html
Sent from the Red5 - Interest/Users mailing list archive at Nabble.com.

Dominick Accattato

unread,
Oct 26, 2012, 11:37:01 AM10/26/12
to red5in...@googlegroups.com
Hi tima,
  • Are you using the latest version of Red5 1.0 RC3 (https://code.google.com/p/red5/). 
  • If not, I what version are you using? 
  • Also, are you running your own applications or are these third party apps?
  • Does it ALWAYS happen every 3-4 hours or is that just your best opinion? 
  • After the disconnect, can your Flash app reconnect without restarting the server?
It appears as if the client is having a network shortage which causes the ping to exceed the threshold which tells Red5 to close the connection. Is it possible that  the network might have gone out? 

--






--
Dominick Accattato
Red5 Co-Project Manager & Engineer
---

timax

unread,
Oct 26, 2012, 5:31:11 PM10/26/12
to red5in...@googlegroups.com

Hi Dominick,
Thank you for reply! Answering your questions:
1. Yes, I am using latest RED5 1.0 RC3
2. I am running only 2 applications on this server VidBlaster (to play
videos) and RED5 to broadcast.
3. It does happen every 3-4 hours (according my observation)
4. After it disconnects, I have to reconnect in order to bring back the
stream.
I tried to increase mrtmp.max_inactivity in RED5.properties file but it did
not help...

This is Error file:
2012-10-26 07:10:15,748 [Red5_Scheduler_Worker-2] WARN
o.r.server.net.rtmp.RTMPConnection - Closing RTMPMinaConnection from
127.0.0.1 : 50459 to localhost (in: 4292232979 out 1267757 ), with id 1, due
to too much inactivity (11742999ms), last ping sent 1000ms ago
2012-10-26 07:10:15,748 [Red5_Scheduler_Worker-2] WARN
o.r.server.net.rtmp.RTMPConnection - This often happens if YOUR Red5
application generated an exception on start-up. Check earlier in the log for
that exception first!
2012-10-26 11:12:54,242 [NioProcessor-1] ERROR
o.r.server.service.ServiceInvoker - Method FCSubscribe with parameters
[myStream] not found in org.red5.server.adapter.ApplicationAdapter@79e328
2012-10-26 11:12:54,246 [NioProcessor-1] WARN
org.red5.server.stream.PlayEngine - Subscribe to myStream provider failed


Maybe this will help. Thanks again!!!
View this message in context: http://old.nabble.com/RED5-periodically-disconnects-on-Windows-7-tp34604420p34607662.html

Dominick Accattato

unread,
Oct 29, 2012, 5:07:38 PM10/29/12
to red5in...@googlegroups.com
Hi Tima,

comments inline:

On Fri, Oct 26, 2012 at 5:31 PM, timax <ti...@usa.com> wrote:

Hi Dominick,
 Thank you for reply! Answering your questions:
1. Yes, I am using latest RED5 1.0 RC3

Great thanks
 
2. I am running only 2 applications on this server VidBlaster (to play
videos) and RED5 to broadcast.

So you're using VidBlaster to publish a stream up to Red5? What serverside application are you connecting to? Are you connecting to the live application that comes with Red5 or does VidBlaster come with a Red5 application. 
 
3. It does happen every 3-4 hours (according my observation)

I don't believe this is Red5 but I could be wrong. It could have something to do with the VidBlaster program. 
 
4. After it disconnects, I have to reconnect in order to bring back the
stream.
I  tried to increase mrtmp.max_inactivity in RED5.properties file but it did
not help...

If I'm assuming correctly, there are two clientside applications represented by VidBlaster (publisher) and some sort of client to view the broadcast. Which of these two are disconnecting, the viewer or the publisher? It appears that Red5 isn't going down. Also, I see the FCSubscribe call being issues by the VidBlaster. I don't think this should be a problem for Red5 although it could cause unpredictable results for the VidBlaster depending on whether it requires it.

You really should contact the VidBlaster forums to see if others have had issues with using it and Red5 together.

 
--



timax

unread,
Oct 29, 2012, 7:50:42 PM10/29/12
to red5in...@googlegroups.com

Hi Dominick,
I am connecting to oflaDemo application from Red5 publisher.
What's getting disconnected is RED5 publisher to oflaDemo server. How would
I troubleshoot that you think? Thank you, Tim.
--
View this message in context: http://old.nabble.com/RED5-periodically-disconnects-on-Windows-7-tp34604420p34617605.html

timax

unread,
Oct 29, 2012, 11:35:57 PM10/29/12
to red5in...@googlegroups.com

Hi Dominick,
I reinstalled everything including Java JDK7 and latest RED5. Now, After
installing oflaDemo and trying to connect to it with RED5 publisher, I get:
20:30:35:275 - Asynchronous code error - ReferenceError: Error #1069
20:30:35:275 - NetConnection.Connect.Success
20:30:35:308 - Asynchronous code error - ReferenceError: Error #1069
20:30:35:408 - Asynchronous code error - ReferenceError: Error #1069
20:30:35:415 - Asynchronous code error - ArgumentError: Error #1063

Have you ever seen those error before? How would I handle that? Please help.
Thank you, Tim.
View this message in context: http://old.nabble.com/RED5-periodically-disconnects-on-Windows-7-tp34604420p34618053.html

Dominick Accattato

unread,
Oct 30, 2012, 10:25:23 AM10/30/12
to red5in...@googlegroups.com
I'll have to assume those logs are clientside? If so, it usually means that a serverside object is not being deserialized into it's clientside equivalent. You'll have to find out what oflaDemo is calling on the client.

--



timax

unread,
Oct 30, 2012, 4:06:15 PM10/30/12
to red5in...@googlegroups.com

Hi Dominick,
These messages are on the server side and I get them as soon as I am trying
to connect publisher to oflaDemo.
View this message in context: http://old.nabble.com/RED5-periodically-disconnects-on-Windows-7-tp34604420p34621443.html

Dominick Accattato

unread,
Oct 30, 2012, 4:14:27 PM10/30/12
to red5in...@googlegroups.com
Hello Tima,

I believe those errors can be attributed to the new bandwidth checking code in the latest server. This code calls down to the client. The client should be complaining as well. I believe you need to attach these functions to the NetConnection.client object:

public function onBWCheck(val:*) : void {
  trace("val: " + val)
}

public function onBWDone(val:*) : void {
  trace("val: " + val)
}

However, even without those functions, there shouldn't be any negative side effects besides the errors your seeing.

- Dominick

--



timax

unread,
Oct 30, 2012, 5:55:46 PM10/30/12
to red5in...@googlegroups.com

Thank you very much Dominick!!!
I know how to attach but where to? Wehre is NetConnection.client located?
thanks again


--
View this message in context: http://old.nabble.com/RED5-periodically-disconnects-on-Windows-7-tp34604420p34621886.html

Dominick Accattato

unread,
Oct 31, 2012, 10:19:17 AM10/31/12
to red5in...@googlegroups.com
In the clientside code, do a search for NetConnection. It's being instantiated somewhere. It should look like this:

var nc:NetConnection = new NetConnection();
nc.connect("rtmp://your_domain/your_application");
// and then you could add functions to your NetConnection.client like so:
nc.client = this;

and then you can just declare some functions on "this"

function onBWCheck(val:*) : void {
  trace("val: " + val);
}

function onBWDone(val:*) : void {
  trace("val: " + val);
}

--



Reply all
Reply to author
Forward
0 new messages