Can't connct to RMS - SOLVED!

haldors posted 8th of November 2009 in Community Voice. 8 comments.

Hi guys,

First of all - I do apologize about further mistakes in my text as English is not my first language.

I was quite upset of this issue Can't connect to RMS when I tried setting up Dolphin's AV Chat. I had Ray/RED5 installed on my server, I had ports 1935 and 5080 opened, I was able to test Ray/RED5 simply using this -> http://my-site.com:5080. So the server wasn't the case. I reckoned Ray configuration wasn't as well. In fact, there is a cause: you should make some changes in Ray configuration files in order to connect your Dolphin's AV Chat or whatever streaming (flash) content to the RMS server.

NB! I have Linux Virtual Dedicated Server for streamin purposes, thus the work around is exceptionally regarding Fedora/RedHat Linux

1. Install Ray software on your server. You should prefer some kind of Virtual Dedicated or Dedicated Server as they offer internet pipe wide enough for OUTGOING stuff - that is, for instance: Down Speed 10Mb/s and the same Up Speed at 10Mb/

2. Test your server: http://your-site.com:5080 (change your-site.com to whatever your domain name is and do not use www before domain name)

3. If you can see in your browser Red5 test page your RMS server works.

Now we want our server to be available from Dolphin. You should change some of the properties' files in your Ray installation directory. Here is what I've done:

1. Open your SSH.

2. Login as root and browse to directory where you've installed Ray server.

In my case:

# cd /opt/ray

and list folder content

# ls

3. You should see files and directories. Our interest is about file access.dat - use linux editor by your choice. I use 'vi'

# vi access.dat

Find a line in this file containing domain name. You MUST change this domain to whatever YOUR domain is, and save the changes.

4. Next step. Our interest is about directory 'conf'. So:

# cd conf/

# ls

5. You will see content of particular directory. Our interest is about:

- realm.properties

- red5.properties

6. So use editor again.

# vi realm.properties

Find a line containing <username>: <password>[,<rolename> ...], and change it to whatever your admin user and its password is. Say:

admin: <password>,admin

Save the file.

7. Open red5.properties - this the most important part:

# vi red5.properties

You will see this:

# Socket policy
policy.host=0.0.0.0
policy.port=843

# HTTP
http.host=0.0.0.0
http.port=5080
https.port=8443

# RTMP
rtmp.host=0.0.0.0
rtmp.port=1935
rtmp.event_threads_core=16
rtmp.event_threads_max=64
# event threads queue: -1 unbounded, 0 direct (no queue), n bounded queue
rtmp.event_threads_queue=0
rtmp.event_threads_keepalive=60
rtmp.send_buffer_size=271360
rtmp.receive_buffer_size=65536
rtmp.ping_interval=5000
rtmp.max_inactivity=60000
rtmp.tcp_nodelay=true

# RTMPS
rtmps.host=0.0.0.0
rtmps.port=8443
rtmps.ping_interval=5000
rtmps.max_inactivity=60000
rtmps.max_keep_alive_requests=-1
rtmps.max_threads=20
rtmps.acceptor_thread_count=2
rtmps.processor_cache=20
# RTMPS Keystore Password
rtmps.keystorepass=password

# RTMPT
rtmpt.host=0.0.0.0
rtmpt.port=8088
rtmpt.ping_interval=5000
rtmpt.max_inactivity=60000
rtmpt.max_keep_alive_requests=-1
rtmpt.max_threads=20
rtmpt.acceptor_thread_count=2
rtmpt.processor_cache=20

# MRTMP
mrtmp.host=0.0.0.0
mrtmp.server=nethobos.com
mrtmp.port=9035
mrtmp.event_threads_core=4
mrtmp.event_threads_max=32

# event threads queue: -1 unbounded, 0 direct (no queue), n bounded queue
mrtmp.event_threads_queue=0
mrtmp.event_threads_keepalive=60
mrtmp.send_buffer_size=271360
mrtmp.receive_buffer_size=65536
mrtmp.ping_interval=5000
mrtmp.max_inactivity=60000
mrtmp.tcp_nodelay=true

# Debug proxy (needs to be activated in red5-core.xml)
proxy.source_host=127.0.0.1
proxy.source_port=1936
proxy.destination_host=127.0.0.1
proxy.destination_port=1935

# JMX
jmx.rmi.port.registry=9999
jmx.rmi.port.remoteobjects=
jmx.rmi.host=0.0.0.0
jmx.rmi.ssl=false

AND CHANGE TO YOU SERVER'S IP WHEREVER YOU SEE 0.0.0.0 !!!

Save and close.

Now open your Dolphin's Community administration panel. Goto MODULES - FLASH APPS and click on SETTINGS. You'll see new panel RAY BASE SETTINGS. Simply make sure you've ticked USE RMS and you've wrote your server's IP in RMS ADDRESS. Click on SAVE and the error msg has gone. Just test it by clicking on ADMIN icon under A/V Chat (by Boonex).

One more thing. You should check what version of JAVA you have. You can do it:

# java -version

and

# javac - version

As far as I'm aware, Dolphin works with JAVA 1.6.0_06 under Fedora 7. You have to check what JAVA path has been setup in Ray installation. You can do it this by opening SSH, login as ROOT, go to your RAY installation directory and open the file called red5.sh

Have a look at the very first line. You should see something like

JAVA_HOME=/usr/java/jdk1.6.0_06/jre;

If you have JAVA v.1.5 then you MUST install at least v.1.6. JAVA-1.6.0_06 supports some new features necessary for Ray to work correctly with Dolphin.

That's it!

 
Comments
·Oldest
·Top
Please login to post a comment.
houstonlively
I haven't attempted to install my own RMS.. I lease.

I just figured this post deserves at least one positive vote for the effort you put into it.
haldors
cheers, mate! :) I believe this might help someone willing to try managing his/her own streaming server connected with Dolphin. :)
houstonlively
Cheers! Thanks for taking the time to post this info.
Thnx haldors,
sounds logic! Will try too...
Thnx again for your efforts to post it so exactly.
brenaris
Thanks! We have a Virtual Private Server and I have diligently gone through all of your instructions. Everything seems to be OK, the media server appears to be running properly, only no video or other apps work on the site!

I'm at my wit's end, I've spent many, many hours trying to get this to work. Is there anybody who can help?

Thanks!

-- Jason and Val
haldors
Hi Jason,

You should have a Dedicated Server. On VPS you can't get access to the server's root, you get access only to your own account root. That's the issue everything doesn't work - just a part is working.
My email id is himanshu.vora@gmail.com... I am having problem after following the steps Everything is fine ... but don't know why still giving 'can't connect RMS'. Please reply me on this id, I will be very thankful to you.
 
 
Below is the legacy version of the Boonex site, maintained for Dolphin.Pro 7.x support.
The new Dolphin solution is powered by UNA Community Management System.
PET:0.50755500793457