Problems with Ray Server install

I installed Dolphin v.7.0.9 and RMS 7.0.4 on a VPS server. After configuring the ray server as instructed in http://www.boonex.com/trac/dolphin/wiki/RayMediaServerInstallation I am trying to do a test launch. When I invoke UNIX - invoke command:   . /red5.sh I get the following message:

root@vps [~/opt/ray_server]# ./red5.sh
-bash: ./red5sh: /bin/bash^M: bad interpreter: No such file or directory

 

When I invoke command:  ls    I can see red5.sh listed.

 

What am I doing wrong?

Am I using the correct ray server for this version of Dolphin? Is my server configured correctly?

 

Thanks,

 

Dan

Quote · 21 Apr 2012

did you set the right path to ray server in red5.sh  also did you set the right java path in run_daemon.sh ?

https://dolphin-techs.com - Skype: Dolphin Techs
Quote · 21 Apr 2012

In red5.sh I set JAVA_HOME=/opt/ray_server/jre1.x;

although I was not sure about JAVA_HOME, I set it like that because that's what the instructions said.

In run_daemon.sh I set RAY_SERVER_PATH=/opt/ray_server;

Quote · 21 Apr 2012

This line here showing your error. -bash: ./red5sh: /bin/bash^M: bad interpreter: No such file or directory

The ^M in that line indicates you may have edited linux shell scripts in windows which your editor most likley converted to dos format.

If you edited those files in windows then do this from a shell in the folder where the scripts are.


dos2unix *.sh

That should convert all files ending with .sh to unix format.

Linux shell scripts should not be edited in windows.



https://www.deanbassett.com
Quote · 21 Apr 2012

when I  run that using putty I get    -bash: dos2unix: command not found

Quote · 21 Apr 2012

 

when I  run that using putty I get    -bash: dos2unix: command not found

That command aparently does not exist on your server. Which is weird. I thought all linux versions had it.

Well then you will need to see if your editor has a option to save files in linux format.

You see, windows/dos text files end with both a carrige return and a line feed. unix files only end with a linefeed.

Scripts run from a linux shell cannot contain any carrige returns at the end of the line. Only line feeds. In other words, proper unix format or they will not run.

I am not saying that is what happend to the files when you edited them, but that what appears to have happend based on the error.

If you have a redhat based machine you could try installing dos2unix by running

yum install dos2unix

for debian based systems

sudo apt-get install dos2unix

Really weird. I thought dos2unix and unix2dos were part of a base system install.


https://www.deanbassett.com
Quote · 21 Apr 2012

 yeah that is an oddly  built VPS. 

 

when I  run that using putty I get    -bash: dos2unix: command not found

That command aparently does not exist on your server. Which is weird. I thought all linux versions had it.

Well then you will need to see if your editor has a option to save files in linux format.

You see, windows/dos text files end with both a carrige return and a line feed. unix files only end with a linefeed.

Scripts run from a linux shell cannot contain any carrige returns at the end of the line. Only line feeds. In other words, proper unix format or they will not run.

I am not saying that is what happend to the files when you edited them, but that what appears to have happend based on the error.

If you have a redhat based machine you could try installing dos2unix by running

yum install dos2unix

for debian based systems

sudo apt-get install dos2unix

Really weird. I thought dos2unix and unix2dos were part of a base system install.


 

When a GIG is not enough --> Terabyte Dolphin Technical Support - Server Management and Support
Quote · 21 Apr 2012

I am entering    dos2unix      then hitting Enter, just as I did with the other commands, is that incorrect?

 

Quote · 21 Apr 2012

The syntax is dos2unix filename

So ....

dos2unix *.sh

Which i stated in my previous post.

http://linuxcommand.org/man_pages/dos2unix1.html

https://www.deanbassett.com
Quote · 21 Apr 2012

I ran yum install dos2unix and it installed it successfully but I still get the same error when I run ./red5.sh

-bash: ./red5.sh: /bin/bash^M: bad interpreter: No such file or directory

Quote · 21 Apr 2012

 

I ran yum install dos2unix and it installed it successfully but I still get the same error when I run ./red5.sh

-bash: ./red5.sh: /bin/bash^M: bad interpreter: No such file or directory

And after it's install did you actually use it on the files? I ask because i said you installed it, but you did not say you ran it.

Did you go to the directory where red5.sh is and run the command dos2unix *sh

If so and the problem is still there, then i am out as i have no further ideas.


https://www.deanbassett.com
Quote · 21 Apr 2012

I think I have it now, after adding the correct command dos2unix *.sh it corrected the files, then I ran ./red5.sh, got lots of text and at the end it said:

[Ray notification - Video.init] Application Video was started
[Ray notification - Board.init] Board Application was started
[Ray notification - LiveCam.init] LiveCam Application was started

 

I then went to the next step and clicked on BoonEx Media Server Tester


I entered

Server IP - 67.23.240.121

Port - 1935

Application - Chat

parameters - "nookybook.com","2","joesmith",'free'

And got the error

NetConnection.Connect.Rejected
NetConnection.Connect.Closed


Where have I gone wrong here?

 

Dan




Quote · 21 Apr 2012

The media server tester will not connect if the ports are not open in the firewall

If your server has a firewall running, or your host has one then the port 1935 needs to be open.

You may not need to on localhost though.

Set up dolphin to use the server and see if it works.

https://www.deanbassett.com
Quote · 21 Apr 2012

 you can also run nmap on the IP and see if the ports are open. 

The media server tester will not connect if the ports are not open in the firewall

If your server has a firewall running, or your host has one then the port 1935 needs to be open.

You may not need to on localhost though.

Set up dolphin to use the server and see if it works.

 

When a GIG is not enough --> Terabyte Dolphin Technical Support - Server Management and Support
Quote · 21 Apr 2012

I requested the host to open 1935 but perhaps they did not.

I have no clue how to run nmap on the IP and see if the ports are open, is this done with putty?

In the media server instructions I ran ./run_daemon.sh
then ps ax | grep red5
and got this result:

19739 pts/0  S+ 0:00 grep red5

I tried to set up dolphin but it was not able to connect to the server.

For the RMS address I used the domain name, for the RMS port I used 1935, for the RMS http port it automatically put in 5080.

Where have I gone wrong?

Dan

 

Quote · 24 Apr 2012

well guessing by the output from grep red5 is not running.   you can also try ps ax |grep java  and see if that returns any output.

java or port 1935  5080 or 443  might be in use already....   

https://dolphin-techs.com - Skype: Dolphin Techs
Quote · 24 Apr 2012

maybe I made a really dumb mistake. I installed it in the root of the VPS, should I have installed it in the root of the actual site domain?

Quote · 24 Apr 2012

I have now installed ray server on the site host, still having problems. It must be in the config.

Here is how it is configured:

 

Step 2: red5.sh: JAVA_HOME=/usr/java/jre1.6.0_31;  (this came from host)

Step 3: run_daemon.sh: RAY_SERVER_PATH=/home/nookybk/public_html/ray;
Should this be the absolute path on VPS or path on site server?

ray server is installed at /public_html/ray

Step 4: change the IP addresses in the files. It says Change them from 0.0.0.0 to 10.10.10.10 Do I use that IP or the IP of the server? It's confusing because just under this it tells how to find my IP address.

Can anyone tell me if this config is correct?

 

Thanks,

 

Dan

 

Quote · 25 Apr 2012

You need to use the ip of your server.

https://dolphin-techs.com - Skype: Dolphin Techs
Quote · 26 Apr 2012

I used the site IP but it doesn't work. In step 3 it says

run_daemon.sh (UNIX) – set the value for RAY_SERVER_PATH variable. It should be the path to the RMS folder on your server.

on my site server the ray server is at /ray

On the VPS it is RAY_SERVER_PATH=/home/nookybk/public_html/ray

Should I use the absolute path on the VPS or the path on the site server?

 

I'm using /home/nookybk/public_html/ray but it is not working.

 

Dan

 

Quote · 26 Apr 2012

 

I used the site IP but it doesn't work. In step 3 it says

run_daemon.sh (UNIX) – set the value for RAY_SERVER_PATH variable. It should be the path to the RMS folder on your server.

on my site server the ray server is at /ray

On the VPS it is RAY_SERVER_PATH=/home/nookybk/public_html/ray

Should I use the absolute path on the VPS or the path on the site server?

 

I'm using /home/nookybk/public_html/ray but it is not working.

 

Dan

 

 Full path(absolute path) as that is actually the server. Your site is just that. A website hosted on a server.

https://www.deanbassett.com
Quote · 26 Apr 2012

After pulling my hair out trying to do it myself, I decided to have dophin_jay do it for me.  He is quick, knowledgeble  and does the install perfectly. He is also quick to advise with other things with dolphin sites. Save yourself the hassle and let dolphin_jay do it for you. 

Quote · 1 Oct 2012

This thread started 6 months ago, please tell me you haven't been fooling with it all this time?!

BoonEx Certified Host: Zarconia.net - Fully Supported Shared and Dedicated for Dolphin
Quote · 1 Oct 2012
 
 
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.