can't set connection to wcs server 5

briankl

New Member
hi:
I try to set connection to wcs server after sever launching.
when I click connect button on the wcs page (2way streaming, rtsp url....), FAILED message appears.
could you help me check this error,thanks.
11:20:51,886 INFO Config - main Flashphoner config has been validated success
11:20:51,886 INFO Config - main Patches NOT installed
11:20:51,887 INFO Config - main NODE_ID: YJNHzn8PGdD5do4tuU4IUAtAwsDwS0GZ@10.35.165.117
11:20:51,887 INFO Config - main Config VIDEO_ENABLED: true
11:20:51,901 INFO Server - main Native initialized
11:20:51,901 INFO Server - main SIP pre-initializing is disabled
11:20:51,928 INFO Server - main Listening RTMP on address 0.0.0.0/0.0.0.0 port 1935, bufferSize: 1600
11:20:51,929 INFO KeepAliveManager - KeepAliveManager-26 Start keepAlive thread KeepAliveManager-26
11:20:51,950 INFO Server - main Listening RTMFP on address 0.0.0.0/0.0.0.0 port 1935, bufferSize: 1600
11:20:51,955 INFO Server - main Listening WebSocket on address 0.0.0.0/0.0.0.0 port 8080, bufferSize: 1600
11:20:51,957 INFO Server - main Listening WebSocket ssl on address 0.0.0.0/0.0.0.0 port 8443, bufferSize: 1600
11:20:51,958 INFO Server - main Listening Flash Policy on address 0.0.0.0/0.0.0.0 port 843
11:20:51,962 INFO Server - main Listening HLS on address 0.0.0.0/0.0.0.0 HTTP port 8082
11:20:51,963 INFO Server - main Listening HLS on address 0.0.0.0/0.0.0.0 HTTPS port 8445
11:20:51,964 INFO Server - main Listening HTTP on address 0.0.0.0/0.0.0.0 port 8081
11:20:51,965 INFO Server - main Listening HTTPS on address 0.0.0.0/0.0.0.0 port 8444
11:20:51,965 INFO Server - main Starting RTSP server
11:20:51,966 INFO Server - main Listening RTSP on address 0.0.0.0/0.0.0.0 port 554
11:20:51,990 INFO LBNodeManagerFactory - main Added loadbalancing node LBNode{ip='192.168.1.5', httpPort=8081, maxCalls=9999, returnIP='', flash=1935, ws=8080, wss=8443, state=UNKNOWN, calls=0, republish=true}
11:20:51,991 INFO LBNodeManagerFactory - main Create Load Balancing Manager - LBNodeManager{nodes=[LBNode{ip='192.168.1.5', httpPort=8081, maxCalls=9999, returnIP='', flash=1935, ws=8080, wss=8443, state=UNKNOWN, calls=0, republish=true}], mode=FEWESTCALLS, distributionMode=NONE} com.flashphoner.server.rtmfp.L.B.D@37911f88
11:20:51,992 INFO tchDogServerRegister - main Starting WatchDogServer ...
11:20:51,994 INFO tchDogServerRegister - main WatchDogServer is successfully started with name: com.flashphoner.jmx:type=WatchDogServer
11:20:52,005 INFO FFTranscoder - main init transcoder: TranscoderConfig: MPV,H264,640,480,0,0,0 -> 140393303126512 needTranscoding true
11:20:52,017 INFO A - main Custom watermark file - null
11:20:52,017 WARN A - main Can't read custom watermark file
11:20:52,017 INFO Server - main Post start took 23
11:24:11,981 WARN WSServerHandler - WSS-pool-9-thread-1 Close channel [id: 0x7dedf703, /10.35.165.117:38968 => /10.35.165.117:8443] because: java.io.IOException 'Broken pipe'
11:24:11,982 INFO WSClients - WSClientsKeepaliveThread-50 isKeepAliveProtoEnabled websocket true
11:24:11,982 INFO WSClients - WSClientsKeepaliveThread-50 Start WebSocket ping thread: WSClientsKeepaliveThread-50 interval: 5000 algorithm: HIGH_LEVEL
11:24:19,110 WARN WSServerHandler - WSS-pool-9-thread-1 Close channel [id: 0x5cc314fd, /10.35.165.117:38972 => /10.35.165.117:8443] because: java.io.IOException 'Broken pipe'
11:37:26,532 WARN WSServerHandler - WSS-pool-9-thread-2 Close channel [id: 0x73e65084, /10.35.165.117:39598 => /10.35.165.117:8443] because: java.io.IOException 'Broken pipe'
11:37:32,660 WARN WSServerHandler - WSS-pool-9-thread-2 Close channel [id: 0x6010de84, /10.35.165.117:39608 => /10.35.165.117:8443] because: java.io.IOException 'Broken pipe'
 

Max

Administrator
Staff member
Hello.
Please check the following:
1. Make sure you have activated the license
2. Check if the Secure Websocket port of the server (by default 8443) is available from your PC (where you open web page) using the telnet command.
3. Make a traffic dump and check if the Websocket traffic is running through
4. Open WCS web interface via HTTP htttp://yourserver:9091/, check if Websocket connection is established through 8080 port.
 

briankl

New Member
1.yes, I can see the license is actived on page.
2.yes, there is no fail message "Unable to connect to remote host".
3.no, I can't see Websocket traffic in my wireshark
4.no, "An error occurred during a connection to 192.168.0.178:9091. SSL received a record that exceeded the maximum permissible length. Error code: SSL_ERROR_RX_RECORD_TOO_LONG" appears
 

briankl

New Member
hi Max:
Because the network WCS located is office LAN ,I can't provide you SSH access approach.
Could you help me with more LOG?
thanks
 

Max

Administrator
Staff member
Hello.
Have you set up SSL certificates on your server as described here?
"An error occurred during a connection to 192.168.0.178:9091. SSL received a record that exceeded the maximum permissible length. Error code: SSL_ERROR_RX_RECORD_TOO_LONG" appears
It looks like you tried to connect to host via HTTPS, but port 9091 serves HTTP only.
Also. check if firewall is disabled on your server.
 

briankl

New Member
hi Max:
I didn't set up SSL certificate on my server.
WCS still can't set up 2-way stream even if I disable firewall on my server.
According to wireshark log, I can't see the websocket messages appear.
sincerely
 

Max

Administrator
Staff member
Hello.
Check if connection is established with our demo server https://demo.flashphoner.com:8888 and Two Way Steaming example works. If it works, update your server to latest build from this page and check it.
Also check if examples on your server and demo server work from another PC.
 

briankl

New Member
hi Max:
I change my browser from firefox to chrome then test again.
good news is the connection could be setup and the page will show "ESTABLISHED".
I can't see stream in 2-way stream test when I click "publish" and "play" buttons.
the page show me "Actual session does not exist".
log is as below:
14:47:36,191 INFO RestApiRouter - HTTP-pool-2-thread-12 Use controller class com.flashphoner.rest.server.apps.echo_apps.EchoApp with path /apps/EchoApp/StreamStatusEvent
14:47:36,192 INFO EchoApp - HTTP-pool-2-thread-12 handleRequest method: StreamStatusEvent params:{nodeId=cKpfEM0mx2KBSO9u0xMuutuYAm53nks3@192.168.0.178, appKey=defaultApp, sessionId=/172.20.10.2:42302/172.20.10.2:8443, mediaSessionId=17e932c0-2524-11e9-b216-91a9fbdf3b46, name=dfcc, published=false, hasVideo=true, hasAudio=true, status=FAILED, info=Session does not exist, record=false, width=0, height=0, bitrate=0, minBitrate=0, maxBitrate=0, quality=0, history=false, gop=0, fps=0, audioBitrate=0, codecImpl=, mediaProvider=WebRTC, origin=https://172.20.10.2:8888}
14:47:36,192 INFO RestClient - API-ASYNC-pool-6-thread-11 content -> {"nodeId":"cKpfEM0mx2KBSO9u0xMuutuYAm53nks3@192.168.0.178","appKey":"defaultApp","sessionId":"/172.20.10.2:42302/172.20.10.2:8443","mediaSessionId":"17e932c0-2524-11e9-b216-91a9fbdf3b46","name":"dfcc","published":false,"hasVideo":true,"hasAudio":true,"status":"FAILED","info":"Session does not exist","record":false,"width":0,"height":0,"bitrate":0,"minBitrate":0,"maxBitrate":0,"quality":0,"history":false,"gop":0,"fps":0,"audioBitrate":0,"codecImpl":"","mediaProvider":"WebRTC","origin":"https://172.20.10.2:8888"}
14:47:36,192 INFO RestClient - API-ASYNC-pool-6-thread-11 RECEIVED REST OBJECT <==
URL:http://localhost:8081/apps/EchoApp/StreamStatusEvent
OBJECT:
{
"nodeId" : "cKpfEM0mx2KBSO9u0xMuutuYAm53nks3@192.168.0.178",
"appKey" : "defaultApp",
"sessionId" : "/172.20.10.2:42302/172.20.10.2:8443",
"mediaSessionId" : "17e932c0-2524-11e9-b216-91a9fbdf3b46",
"name" : "dfcc",
"published" : false,
"hasVideo" : true,
"hasAudio" : true,
"status" : "FAILED",
"info" : "Session does not exist",
"record" : false,
"width" : 0,
"height" : 0,
"bitrate" : 0,
"minBitrate" : 0,
"maxBitrate" : 0,
"quality" : 0,
"history" : false,
"gop" : 0,
"fps" : 0,
"audioBitrate" : 0,
"codecImpl" : "",
"mediaProvider" : "WebRTC",
"origin" : "https://172.20.10.2:8888"
}
sincerely
 
Top