Kurento Room and Kurento Java Tutorials Not Working

1,141 views
Skip to first unread message

Travis James

unread,
Jul 13, 2015, 9:10:16 PM7/13/15
to kur...@googlegroups.com
Good evening,

I am at another frustrating point with Kurento in that right when I think I understand things, nothing is working.  I am using KMS 6.0 on Ubuntu 14.04.  All is properly installed and running.  I am using CoTurn TURN server, and everything is configured on a single 8 CPU machine at DigitalOcean.  IPTables is set up to allow all traffic for upper ranges (35000-65535) for UDP and TCP.  3478 is enabled for TURN (on same box).

The Node.js tutorials mostly run, but the important one, One2One call does not.  I get audio but no video on the call.  Only local video can be seen.

My intent is to get the new Kurento Room to run, but that requires that the "kurento-java" project build properly.  It does not, as it keeps getting stuck on a WebSocketRomTest, where the test stays frozen forever.

Because the "Kurento-Java" tests do not pass it is impossible to complete the build of Kurento Room, because you cannot possibly build the parent POM dependency (Kurento-Java).

In addition, I can build all the Kurento-Tutorial-Java projects, but none of them will actually run via "mvn compile exec:java".  They get stuck and frozen before the server fully initializes and is available.

What is worse is that I cannot shut down the Java tutorial processes.  They never release me back to the command line, so I have to open up another SSH terminal session to reboot the machine.

What am I doing wrong? I have learned how to manually build EVERYTHING--from the CMake utils to the core to the elements, filters, and module-creator.  I spend HOURS thinking I am getting somewhere only to have things completely freeze up.

Is there a trick to this?  I have wanted to use this project for MONTHS, as I see so much potential, but I keep going back to Janus, because although it doesn't do as much, it just works every time, and their samples actually work.

I have had samples work from here maybe TWICE in a year....

What do I need to learn to make use of this product?

Travis

Ivan Gracia

unread,
Jul 16, 2015, 12:12:53 PM7/16/15
to Kurento Public
Hi Travis,

We released a new version of kurento-room today (and kurento-java, for that). You can use that, so you don't need to compile. Sorry for the inconveniences! 

Please write post back here with whichever results you get.

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.

Travis James

unread,
Jul 16, 2015, 12:49:35 PM7/16/15
to kur...@googlegroups.com
This is awesome!  Sorry for the frustrating tone...been a long road trying to do this.

I already installed all the new code, but I am still having problems with the Kurento-Java build--still failing at the test related to a Websocket test.  However, I will not worry about it and just install the latest versions of Kurento and Kurento Room from your distribution to Ubuntu 14.04 and work from there.

And I assume all the JavaScript repositories for Node.js, etc. are updated?  That would be good, so I do not have to build my own copies of those--I assume can can get the latest working stuff directly from NPM?

Thanks for your efforts.  I know first hand that it is hard--which is why I REALLY want to use your project--and contribute back to it.  That is why I try very hard to get the builds going.  I have some customers--lots of them--that need this done, and we, at TribeMedia (http://www.tribemedia.io) provide this along with social networking and content management (all in real time).

Your project has so much potential, and I want to contribute and help see that realized...

Ivan Gracia

unread,
Jul 17, 2015, 8:58:14 AM7/17/15
to Kurento Public
Hi Travis!

No worries, that sort of thing sure generates FUD, and we are trying our best to reduce the learning curve and polish all those hiccups. Any help would be more than welcome! Actually, since you have gone all the way through building everything, it could be great if you could tell us where you found problems, so we can improve the docs. We are releasing the new documentation for KMS6 soon, as our servers are down right now and got caught in the middle of the process, and I hope they are more helpful.

As for your question, indeed all tutorials have been updated to work with the latest release. You can check out tag 6.0.0 to get the latest released tutorials and code from github.

Thanks for the feedback and for your efforts!

Cheers,

Ivan Gracia


Travis James

unread,
Jul 17, 2015, 10:08:28 AM7/17/15
to kur...@googlegroups.com
Thanks for your response!  Actually I am on a flight right now trying to create a new server inside Digital Ocean, and I am having an issue with the part of the process related to this command:

wget -O - http://ubuntu.kurento.org/kurento.gpg.key | sudo apt-key add -
The error indicates that there is no valid key.  Has something changed there?  The exact error is this:

Resolving ubuntu.kurento.org (ubuntu.kurento.org)... 193.147.51.5

Connecting to ubuntu.kurento.org (ubuntu.kurento.org)|193.147.51.5|:80... failed: Connection refused.

gpg: no valid OpenPGP data found.


I will be writing up a blog post that outlines everything that needs to be done to fully get a Kurento-based WebRTC sample up and going--including basic development on Node.js using your API's etc.  That should be a good test as to what might need to be added to documentation, etc.



--
You received this message because you are subscribed to a topic in the Google Groups "kurento" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/kurento/93z28KdqHoM/unsubscribe.
To unsubscribe from this group and all its topics, send an email to kurento+u...@googlegroups.com.

Ivan Gracia

unread,
Jul 17, 2015, 10:22:43 AM7/17/15
to Kurento Public
Cool, thanks! Our servers are down right now. Another OpenStack hiccup :-( They should be back online soon.

Have a nice flight!

Ivan Gracia


jos...@remote-app.com

unread,
Jul 17, 2015, 10:29:00 AM7/17/15
to kur...@googlegroups.com
Bummer!
Hope to get started developing soon, let us know when servers are back up?
Thank you so much for all you do for the community!

Travis James

unread,
Jul 17, 2015, 10:29:16 AM7/17/15
to kur...@googlegroups.com
Well, that explains it!  Thanks very much...

I will watch here for when they come back up...

jos...@remote-app.com

unread,
Jul 17, 2015, 12:26:58 PM7/17/15
to kur...@googlegroups.com
Okay, now that the servers are back up.
You mentioned being able to just install kurento-room from apt repositories?
Is this possible now?
If so, what are the package names?


On Friday, July 17, 2015 at 10:22:43 AM UTC-4, igracia wrote:

Ivan Gracia

unread,
Jul 17, 2015, 12:33:18 PM7/17/15
to Kurento Public

Never said kurento-room from apt, just that you can download that from our github repos and compile that in your local machine :-) I’d suggest you take the release tag 6.0.0


Ivan Gracia


Jesse Rusak

unread,
Jul 17, 2015, 2:41:58 PM7/17/15
to kur...@googlegroups.com
It looks like the servers are back down? http://ubuntu.kurento.org/ is refusing my connection attempts.

Javier Lopez Fernandez

unread,
Jul 17, 2015, 4:04:25 PM7/17/15
to kur...@googlegroups.com
We experienced a power shutdown in our CPD today. Services are being recovered and they should be available soon.
Javier Lopez Fernandez





Jesse Rusak

unread,
Jul 17, 2015, 4:14:06 PM7/17/15
to kur...@googlegroups.com
Looks good now. Thanks for the reply!

Travis James

unread,
Jul 18, 2015, 2:25:54 PM7/18/15
to kur...@googlegroups.com, jos...@remote-app.com
I want to congratulate the Kurento team on getting out a working product!  After the servers came back up, I was able to fully build, configure, and run Kurento by building the "6.0.0" tagged build.  I was finally able to get the "One2One" Node.js tutorial sample to work with two devices (Android phone and MacBook Pro laptop) streaming to each other on DIFFERENT networks (hotel Wifi and AT&T hotspot Wifi from Android Nexus 9 tablet).

There are some tricks to getting this done that I will finally document in a comprehensive blog post on building a WebRTC end-to-end community system with Kurento:
  • Be sure to properly configure CoTurn internal/external addresses when you wish to include devices on different networks.
  • I used CoTurn as both the STUN and TURN servers in the Kurento configuration.  I had issues when trying to use a Google STUN server and a local CoTurn server (sometimes not get video or audio).
  • You will need both RabbitMQ and MongoDB available and running on the same box as your "Kurento-Java" code in order to have a chance for that package to pass its unit tests in a way that makes it available via "maven" for the "Kurento-Room" code.  I still have not validated that everything there works, as I am still building Mongo to comply with that requirement.
It would be good to provide a way that RabbitMQ and MongoDB active instances are not needed to build "Kurento-Java".  I never plan to run these services on the same box.  It would be good if there was a way to configure the build to use external servers to complete these tests (and provide a way that authentication can be passed in).

I will provide more feedback as I get further along.

jos...@remote-app.com

unread,
Jul 18, 2015, 3:16:05 PM7/18/15
to kur...@googlegroups.com
You can build the code on your local machine and deploy the servers however you want.
Just FYI you don't need mongodb and rabbitmq running to run KR or KMS. Just helps the tests complete in development.

But thanks for the write up.

Ivan Gracia

unread,
Jul 18, 2015, 5:38:56 PM7/18/15
to kur...@googlegroups.com
Thanks for the write up Travis! You can do as Joshua says, and skip the tests either by adding an @Ignore annotation, or running maven with -DskipTests. The flag will affect all tests, however, so not sure that's something you'd want. At some point we'll most likely remove those dependencies, in any case.

Looking forward reading your blog post!

Travis James

unread,
Jul 18, 2015, 8:35:00 PM7/18/15
to kur...@googlegroups.com
I got everything working!!  

Running the mvn installs with the flag "-Dmaven.test.skip=true" did the trick for me.  After that, you must be sure to alter the room config file to match your IP address and/or domain name.

Then you must remember to include the port number in your TURN URL configuration in the main Kurento config file.  The room server will fail without it even though it seems to run without it elsewhere.

Awesome work, guys...

I will write all this up after I port the Room Server to Node.js so I can hook all that in with the rest of my authentication and project.  I will notify everyone here when that post is ready!

jos...@remote-app.com

unread,
Jul 19, 2015, 1:58:33 PM7/19/15
to kur...@googlegroups.com
I'm also interested in a port of the kurento-room sdk, server, and demo into node.js.
I'd be willing to contribute coding time to it if you would like.

Travis James

unread,
Jul 19, 2015, 8:24:15 PM7/19/15
to kur...@googlegroups.com, jos...@remote-app.com
That would be great!  I have started by creating an initial repo at https://github.com/TribeMedia/tribemedia-node-kurento-room-server.  

My current idea is to implement a similar interface for creating and controlling rooms as the Java-based Kurento Room Server, providing a React.js-based front end to test it.

The project I have set up uses Sails.js (so there is a pure WebSocket-based interface as well as REST) with all the necessary modifications to support React.js, a material design framework called "Essence", and MongoDB.

I chose Essence (http://essence.pearlhq.com/), because that library also provides a React-native interface, and my next step is to build an iOS WebRTC client using Essence, libjingle_peerconnection (https://github.com/pristineio/webrtc-build-scripts), etc.

I just did the initial check-in, so there is no functionality there yet--just a properly configured Sails.js generated product with all the necessary references.

Let me know what you think.  I plan to base my blog posting about building a Kurento-based communicator app front and back end on this project.

Travis James

unread,
Jul 25, 2015, 1:49:00 PM7/25/15
to kurento, jos...@remote-app.com, tra...@tribemedia.io
Quick update:

I had to ditch Essence for now, because that framework is not far enough along.  I switched to Material-UI.  

I will have a first working check-in up in the repo this weekend...

assa...@gmail.com

unread,
Jan 26, 2016, 3:13:54 AM1/26/16
to kurento
Hi guys , im also on my way with kurento and trying to make the room procjet work . 

I run in to a compile issure where i cant built the project it sais : 

[ERROR] COMPILATION ERROR :
[INFO] -------------------------------------------------------------
[ERROR] /home/User/kurento-room/kurento-room-test/src/main/java/org/kurento/room/test/fake/util/FakeSession.java:[92,32] cannot find symbol
  symbol:   method putIfAbsent(org.kurento.client.KurentoClient,org.kurento.room.test.fake.util.TestPipeline)
  location: variable pipelines of type java.util.Map<org.kurento.client.KurentoClient,org.kurento.room.test.fake.util.TestPipeline>

so what i did is comment out the line inside the file ' FakeSession.java' and then it compiled , but im afraid its not going to work correctly , can you tell me if its somthing wrong with my way of trying to build the project or is it a real bug?

Ivan Gracia

unread,
Jan 26, 2016, 4:09:55 AM1/26/16
to kurento
This has also recently been reported by another user. The problem you are facing is that you are using Java 7, and the room project requires Java 8.
--

assa...@gmail.com

unread,
Jan 26, 2016, 4:15:50 AM1/26/16
to kurento
Thank you , I now see , After update to Java 8 it works .
thank you

y...@phayzer.com

unread,
Jun 20, 2016, 2:39:23 PM6/20/16
to kurento, jos...@remote-app.com
Hi Travis,

I am also looking into using Kurento for an app that uses browser-to-browser and browser-to-mobile (iOS and Android) p2p communication via WebRTC. After looking at PeerJS and SimpleWebRTC, we decided to give Kurento a shot, as it has several other features for us to incorporate into our app. We are planning on using React Native for the mobile apps.

I know it's been a while, so I was wondering if you had your blog post up and ready? That would really help us get going quickly :)

Also, have you ever given TokBox a try? Apart from the fact that they cost money, do you notice any significant differences in functionality/features?

Thanks!

Travis James

unread,
Jun 21, 2016, 9:36:34 AM6/21/16
to kur...@googlegroups.com
Hey, we are working on a big Kurento project right now that has similar functionality (React Native for apps, Kurento, etc.) upon which I will be writing a blog post at our new redesigned site (still in progress).  I would expect it to take a couple of weeks before that is up.

I have used PeerJS, SimpleWebRTC, and TokBox, and TokBox is the solution that is most like building your own Kurento-based solution (they support MCU functionality, recording, etc.).  Basically, TokBox is a set of API wrappers around an MCU that combine video, voice, and messaging.

They charge by the minute, so their solution can get pretty expensive pretty quickly, making it hard to wrap your own business model around it.  Kurento is the way to go.



--
You received this message because you are subscribed to a topic in the Google Groups "kurento" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/kurento/93z28KdqHoM/unsubscribe.
To unsubscribe from this group and all its topics, send an email to kurento+u...@googlegroups.com.

For more options, visit https://groups.google.com/d/optout.



--
TRAVIS JAMES: Chief Technology Officer at TribeMedia.io
phone: 214-449-8711
web: www.tribemedia.io
twitter: @GQAdonis2008

y...@phayzer.com

unread,
Jun 21, 2016, 11:58:56 AM6/21/16
to kurento
Thanks for getting back! That makes perfect sense, the only reason we'd go with TokBox over Kurento is to launch quickly, but nevertheless, I will experiment with Kurento this week and see if I make enough progress to keep going to switch gears.

Looking forward to your post :)

Tran Quang Cuong

unread,
Nov 5, 2016, 4:53:31 AM11/5/16
to kurento
Can you show me how to config sails app for Kurento Client ?
I am a beginner. And I am stuck in create Kurento Client instance in this function:

kurento(ws_uri, function(error, _kurentoClient) {

});

I have tested this function in tutorial, it works perfects. But when I move it in to a Service of SailsJS, i got an error looks like:

[[15:22:37.710]] [LOG]   [SyntaxError: Unexpected token
                                                        [[15:22:37.764]] [LOG]   [SyntaxError: Unexpected token
                                                                                                                [[15:22:57.713]] [LOG]   notReconnectIfNumLessThan = 1
[[15:22:57.713]] [LOG]   Server did not respond to ping message 1.

[[15:22:57.717]] [LOG]   Can not find KMS at address: ws://x.x.x.x:8888/kurento. Exiting with error: {"stack":"Error: Request has timed out\n    at I:\\Studies\\Research\\Kurento\\vconnectjs\\node_modules\\kurento-client\\lib\\KurentoClient.js:361:24\n    at dispatchCallback (I:\\Studies\\Research\\Kurento\\vconnectjs\\node_modules\\kurento-client\\node_modules\\kurento-jsonrpc\\lib\\index.js:614:9)\n    at timeout (I:\\Studies\\Research\\Kurento\\vconnectjs\\node_modules\\kurento-client\\node_modules\\kurento-jsonrpc\\lib\\index.js:662:9)\n    at Timer.listOnTimeout (timers.js:92:15)","message":"Request has timed out","request":"{\"jsonrpc\":\"2.0\",\"method\":\"describe\",\"params\":{\"object\":\"manager_ServerManager\"},\"id\":1}","requestTimestamp":1478334157700,"responseTimestamp":1478334177714}

Thank you.
Cuong

Vào 20:36:34 UTC+7 Thứ Ba, ngày 21 tháng 6 năm 2016, Travis James đã viết:

Dev Techno

unread,
May 22, 2017, 8:29:19 AM5/22/17
to kurento
Hi

I am trying to run hello word demo on same machine.But its not working here.

I am facing a problem "Firefox can’t establish a connection to the server at wss://192.168.1.95:8433/kurento."

Please help me how can i solve this.

Thanks

Pramod

Micael Gallego

unread,
May 22, 2017, 11:08:40 AM5/22/17
to kur...@googlegroups.com
What tutorial are you trying? Java, Node or browser JavaScript?

Best regards

Micael Gallego
Kurento / OpenVidu Project Lead

--
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+unsubscribe@googlegroups.com.
To post to this group, send email to kur...@googlegroups.com.
Visit this group at https://groups.google.com/group/kurento.
To view this discussion on the web visit https://groups.google.com/d/msgid/kurento/4aad6435-9a10-40d9-930f-e025099f2fd9%40googlegroups.com.
Message has been deleted

Pooja Pathak

unread,
Apr 3, 2020, 1:30:35 AM4/3/20
to kurento
Hi Gracia,

I am unable to reach http://ubuntu.kurento.org/kurento.gpg.key and getting error: gpg: no valid OpenPGP data found.

Can you please let me know in servers are down? and by when they will be up?

Thanks in advance :)

Reply all
Reply to author
Forward
This conversation is locked
You cannot reply and perform actions on locked conversations.
0 new messages