Stopped by session disconnect

Mohit

New Member
We are getting "Stopped by session disconnect" error, Can somebody will help to resolve this error?
 

Max

Administrator
Staff member
We checked your logs. Seems like your RTMP streamer device correctly stops publishing with RTMP command deleteStream:
12:57:54,948 INFO ServerHandler - RTMP-pool-14-thread-1 command - deleteStream
12:57:54,948 INFO ServerHandler - RTMP-pool-14-thread-1 deleting stream id: 1
12:57:54,948 INFO ServerHandler - RTMP-pool-14-thread-1 Unpublish stream id 1
12:57:54,948 INFO B - RTMP-pool-14-thread-1 unpublish name: HDMI2525
The player which plays the stream at the moment closes its connection with message "Stopped by session disconnect". After that, players which try to play the stream get message "Session does not exist".
So you have to check RTMP streamer device settings to prevent stream unpublishing, or to setup stream republishing.
If you wish to use stream monitoring functions you should enable it with setting
Code:
disable_manager_rmi=false
 

Mohit

New Member
Thanks Max,

Before few days we have moved WCS to new high configuration server, and in previous server everything working fine with WCS version 5.1.3603
FYI, we are using vidiu pro to stream video, and we have observed that vidiu have 'Live' status while we get "Stopped by session disconnect" message
 

Max

Administrator
Staff member
Please do the following:
1. Start to collect traffic dump with tcpdump
2. Start WCS
3. Stop traffic dump collection when you get "Stopped by session disconnection"
Then send us this dump.
Also, try to:
1. Publish RTMP stream to Wowza, e.g. rtmp://wza4-demo.flashphoner.com:1935/live
2. Play the stream from Wowza with some player (e.g. VLC)
3. Check if stream stops publishsing
 

Max

Administrator
Staff member
Every stream gets PENDING status right after publish or play request. In case of playback, status changes from PENDING to PLAYING if playback successfully starts, or to FAILED if not.
In your logs we see playStream requests in PENDING status for streams that is already unpublished, then they changes to FAILED, and this is normal behaviour.
You can check if stream is published on server with REST API query
Code:
http://host:8081/rest-api/stream/find
{
 "name": "HDMI2525",
 "status": "PUBLISHING"
}
If stream is published, you will see it in response, if not, response will be 404 Not found.
So if your RTMP streams are pushed correctly to Wowza and played from it, we need traffic dump to check why WCS supposes stream to be unpublished. If problem occurs with Wowza too, you should check Vidiu Pro setup.
 

Mohit

New Member
okay, but when stream status is pending for some users that time how those users are able to see stream video which are connected just after stream published
 

Max

Administrator
Staff member
Please do the following:
1. Stop WCS
2. Start to collect traffic dump with tcpdump
3. Start WCS
4. Stop traffic dump collection when you get "Stopped by session disconnection"
Then send us link to collected traffic dump.
 
Top