6.1 - Hello_World failing with 'Value is not convertible to UInt"

122 views
Skip to first unread message

srca...@gmail.com

unread,
Oct 21, 2015, 11:26:07 AM10/21/15
to kurento
I have installed Kurento 6.1 on an Ubuntu 14.04LTS EC2 m4.large instance, following the installation procedure precisely.  I configured stun and turn settings to use a private server.  This server has been verified using the Trickle ICE tool.  

I see errors in the media server error log, failing to load firewire library and invalid datetime on GST plugins.

I installed the js tutorial:
cd kurento-tutorial-js
git tag -l
git checkout tags/6.1.0
cd kurento-hello-world
bower install
http-server

The http-server launches.

I connect via remote client (Firefox 42.0b8 and Chrome Version 46.0.2490.71 m) using the following URL (replaced actual values with ####):
http://######:8080/index.html?ice_servers=[{"urls":"stun:######"},{"urls":"turn:######","username":"######","credential":"######"}]#

The tutorial page loads as expected.

When I press the start button, I am prompted to share video/audio.  Upon accepting, I briefly see the video in the Local Stream window.  The following is shown in the console:



    Use ICE servers: [{"urls":"stun:######"},{"urls":"turn:######","username":"######","credential":"######"}]
    constraints: {"offerToReceiveAudio":true,"offerToReceiveVideo":true}
    Created SDP offer
    Local description set 'v=0
    o=mozilla...THIS_IS_SDPARTA-42.0 7285126590190184209 0 IN IP4 0.0.0.0
    s=-
    t=0 0
    a=fingerprint:sha-256 0C:10:8F:EF:B8:73:58:B1:D5:EE:76:67:2C:5E:4A:F1:07:98:8D:92:C8:E6:4E:74:78:72:E2:27:F6:FB:18:F4
    a=group:BUNDLE sdparta_0 sdparta_1
    a=ice-options:trickle
    a=msid-semantic:WMS *
    m=audio 9 RTP/SAVPF 109 9 0 8
    c=IN IP4 0.0.0.0
    a=sendrecv
    a=extmap:1 urn:ietf:params:rtp-hdrext:ssrc-audio-level
    a=ice-pwd:d9dfead15d6f25f1c7fed807fcf4a25d
    a=ice-ufrag:bbae6306
    a=mid:sdparta_0
    a=msid:{1fb9f793-c74f-4ac7-9b5e-065c7f6af26f} {f961cbdb-19a4-4a4c-a766-f055f046c910}
    a=rtcp-mux
    a=rtpmap:109 opus/48000/2
    a=rtpmap:9 G722/8000/1
    a=rtpmap:0 PCMU/8000
    a=rtpmap:8 PCMA/8000
    a=setup:actpass
    a=ssrc:2538149353 cname:{a8195d44-504e-4030-a460-e50b85f4d506}
    m=video 9 RTP/SAVPF 120 126 97
    c=IN IP4 0.0.0.0
    a=sendrecv
    a=fmtp:120 max-fs=12288;max-fr=60
    a=fmtp:126 profile-level-id=42e01f;level-asymmetry-allowed=1;packetization-mode=1
    a=fmtp:97 profile-level-id=42e01f;level-asymmetry-allowed=1
    a=ice-pwd:d9dfead15d6f25f1c7fed807fcf4a25d
    a=ice-ufrag:bbae6306
    a=mid:sdparta_1
    a=msid:{1fb9f793-c74f-4ac7-9b5e-065c7f6af26f} {3bef46ee-374d-4595-90d2-d6432256b4ea}
    a=rtcp-fb:120 nack
    a=rtcp-fb:120 nack pli
    a=rtcp-fb:120 ccm fir
    a=rtcp-fb:126 nack
    a=rtcp-fb:126 nack pli
    a=rtcp-fb:126 ccm fir
    a=rtcp-fb:97 nack
    a=rtcp-fb:97 nack pli
    a=rtcp-fb:97 ccm fir
    a=rtcp-mux
    a=rtpmap:120 VP8/90000
    a=rtpmap:126 H264/90000
    a=rtpmap:97 H264/90000
    a=setup:actpass
    a=ssrc:2631682817 cname:{a8195d44-504e-4030-a460-e50b85f4d506}
    '
    Error: Unexpected error while processing method: Value is not convertible to UInt.
    Disposing WebRtcPeer

The following is the stack trace as displayed in the Firefox web console:

Error: Unexpected error while processing method: Value is not convertible to UInt.
Stack trace:
Error: Unexpected error while processing method: Value is not convertible to UInt.
dispatchCallback@http://######:8080/bower_components/kurento-client/js/kurento-client.js:19468:9
callback2@http://######:8080/bower_components/kurento-client/js/kurento-client.js:23179:16
lib$es6$promise$$internal$$tryCatch@http://######:8080/bower_components/kurento-client/js/kurento-client.js:22281:16
lib$es6$promise$$internal$$invokeCallback@http://######:8080/bower_components/kurento-client/js/kurento-client.js:22293:17
lib$es6$promise$$internal$$publish@http://######:8080/bower_components/kurento-client/js/kurento-client.js:22264:11
lib$es6$promise$asap$$flush@http://######:8080/bower_components/kurento-client/js/kurento-client.js:22075:9
 index.js:70:3
log() index.js:70
onError() index.js:149
onOffer/</</<() index.js:108
callback2() kurento-client.js:492
require<[1]</KurentoClient/send/<() kurento-client.js:355
dispatchCallback() kurento-client.js:19468
processResponse() kurento-client.js:19599
require<[118]</RpcBuilder/this.decode() kurento-client.js:19660
transportMessage() kurento-client.js:19080
require<[14]</EventEmitter.prototype.emit() kurento-client.js:3667
drain() kurento-client.js:20677
require<[133]</</through/stream.push() kurento-client.js:20686
require<[131]</</WebsocketStream.prototype.onMessage() kurento-client.js:20580

Any thoughts?

Thanks for your help!

Sam





srca...@gmail.com

unread,
Oct 24, 2015, 6:34:22 AM10/24/15
to kurento
The failure occurs when the Kurento client parses a response from rfc5766-turn-server and receives a value it is not expecting.  I installed and configured coturn, configured Kurento, and all is well.

Sam

Ivan Gracia

unread,
Oct 29, 2015, 7:24:12 AM10/29/15
to Kurento Public
Thanks for the feedback! Did you ever get to see what that value was? Could you provide us with the message that made it crash?

Ivan Gracia



--
You received this message because you are subscribed to the Google Groups "kurento" group.
To unsubscribe from this group and stop receiving emails from it, send an email to kurento+u...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

vi...@opentest.co

unread,
Feb 6, 2016, 12:03:34 AM2/6/16
to kurento
I ran into this failure by setting the STUN server to "173.194.66.127:19302" (first example here: http://doc-kurento.readthedocs.org/en/stable/installation_guide.html). I did not actually need to set a STUN server since I'm testing all this locally on a VM, so when I got rid of the STUN server in the WebRTCEndpoint configuration, I was squeaky clean.

Ivan Gracia

unread,
Feb 7, 2016, 1:18:08 PM2/7/16
to Kurento Public
Of course. Only IP address are supported (it says in the docs) Port goes in a different field.

Ivan Gracia


vi...@opentest.co

unread,
Feb 10, 2016, 9:11:47 PM2/10/16
to kurento
Ivan,

I didn't explicitly set it to that value. I've actually figured out that in the comment the STUN fields are like this:

stunServerAddress='...'
stunServerPort='...'

Unfortunately in the media server logs, that gets pulled in like so:

stunServerAddress: "'...'",
stunServerPort: "'...'"

(With the single quote ' included in the value.) I got around this by remove any quotes around the server IP and port like so in the ini:

stunServerAddress=173.194.66.127
stunServerPort=19302

Ivan Gracia

unread,
Feb 13, 2016, 4:43:29 AM2/13/16
to kurento
Ok, just in case :-) so the issue was the single quotes from the docs, right?
Reply all
Reply to author
Forward
0 new messages