View Full Version : RED5 freezes
Kenniej
03-03-2010, 02:59 PM
Oke so actually it is. I've been around the net now for a week before actually posting on a forum for some help (stubborn). I've done many tutorials, checked out alot of videos to set up my "server" with red5 & eclipse.
But here's the biggest problem i've run across and i just can't seem to fix it or get some info on it. I'm hoping someone here has the magical answer.
So check out this log first http://pastebin.com/uuQbVv3H It's what the eclipse console spews out when i try to run the local red5 server from within eclipse( does the same when i run the red5-debug.bat from cmd, just sits there on that last line ). As you can see everything runs well, without any red icky errors !
BUT, it freezes on the last line [INFO] [Launcher:/installer] org.red5.server.service.Installer - Installer service created That's where it stay's untill i get the ugly error message box saying
Server Red5 Server Runtime at localhost was unable to start within 120 seconds. If the server requires more time, try increasing the timeout in the server editor.
I've tried what it suggests me, even at 500seconds, it still refuses to continue/finish booting!
Strange thing is, with the latest installation of red5, it installed the service so that it always boots when i boot the computer, and then (if i havn't screwed around too much) the red5 demo page should be even visible http://kennystas.no-ip.org (so the installation works on it's own, but why does it freezes in eclipse ?)
I'm really clueless here and I hope someone ran across the same problem and can offer me a solution, or something to put me into the direction of it.
Kind regards,
Kenny
ps : I just checked Services, and it seems that it's not starting the red5 service, ofcourse when i turn it on before i boot the server i get the "port in use" error.
sparkdemon
03-03-2010, 03:53 PM
I have a few questions:
1. what is your red5 version ?
2. which platform are you using on ?
3. whats your port ?
4. what application are you running on red5 now ?
Kenniej
03-03-2010, 04:29 PM
1. Red5-0.9.1 final
2. Windows XP Pro SP3
3. atm it's at port 80 to make the no-ip redirection easier (but tried 5080 aswell, same error)
4. No applications at the moment (Even made sure there are no red5 demo's installed), only project i tried running was the one from this video (http://tv.adobe.com/watch/360flex-conference/building-red5-applications-by-chris-allen/) Just a basic fresh dynamic web project to build, publish & run it. Basic as it can be.
sparkdemon
03-05-2010, 12:54 AM
Try these and let me know:
1. use red5 0.9.0
2. install at port 5080, dont use 80
3. make sure you have latest jre
I see that you built a custom app and tried running it.Check out this video :
http://www.youtube.com/user/dominickaccattato#p/c/9B94807E1D0AF2DE/5/8Goj0yNYr08
Kenniej
03-05-2010, 12:57 PM
sparkdemon, thank you SO MUCH!!
I changed version, switched port, and followed the video link and for the first time working with red5, my setup actually does the exact same as in the example!
I couldn't be more happy !!
Begin a stiffhead as i am i'm going to try and install red5 on another system and change some points to what i had, i'm curious to find out if it's the port issue or the version that wasn't doing it for me. Because when i put red5 on port 5080, i can't acces the demo page when browsing from another local computer to it , like to http://192.168.1.10:5080 won't work, but http://192.168.1.10 always did. Some configuration issue i guess, havn't really looked into it.
BUT i'm off now to have some fun with red5, thnx again for the help !
King regards,
Kenny
Kenniej
03-05-2010, 01:16 PM
To anyone that reads this topic in search of answers.
The not being able to connect from another local machine to the red5 server issue :
Instead of typing 127.0.0.1 at the red5 setup i used the local ip adress of the red5 server, 192.168.1.10.
That seems to work on connecting from another machine, but it screws everything up when you try to run an app on the server with eclipse.
Does it have to do something with virtual hosts in the red5 properties file ? Read something about it but withouth an example no luck in fixing that minor little issue
Cheers,
Kenny
sparkdemon
03-05-2010, 07:03 PM
hi Kenniej
you can use 127.0.01 when installing red5. This will let you work easily in eclipse. as for using it on network, use the computer name as the address. (rtmp://mypcnameondomain/app). I use dyndns. So even though i install red5 on localhost (127.0.0.1) you can access it from any pc in the world that has internet.
Make sure windows firewall has 5080 and 1935 and 1936 fully open and permitted.
Kenniej
03-10-2010, 01:29 PM
Hi spark, thank you so much for all the help so far.
I've only been having one last strange issue.
As I asked before, i'm still not able to connect to my red5 server from another local network computer (neither one from the wan even with ports set up)
I've done the following
1) During red5 install, chose 127.0.0.1 when it prompted me for an ip
2) chose 5080 as port
Then made a little example app to test local connection & that worked.
But still http://red5:5080 or http://192.168.1.10:5080 arn't working.
I've also adjusted the OnCreationComplete() function.
public function onCreationComplete(event:FlexEvent) : void {
// setup connection code
connection = new NetConnection();
connection.connect("rtmp://red5/Red5Fridge");
connection.addEventListener(NetStatusEvent.NET_STA TUS,onConnectionNetStatus);
connection.client = this;
}
Thought that might fix something if i changed "rtmp://127.0.0.1/Red5Fridge" to "rtmp://red5/Red5Fridge" (red5 begin the servername & it's responding to a ping request)
Do i have to allow red5 to accept external connections then it's own ip adress somewhere ?
Kind regards,
Kenny
mr-webcam
03-10-2010, 05:08 PM
are you using the stand alone version or the .war (tomcat) version on windows xp ?
If you are using the stand alone windows version try using port 1935 and make sure that this port is open and being fowarded to your red5 machine on your router, Another thing to watch is that red 5 or any other server cannot use port 80 if you are runnning a web server with that port on the same machine.
Your connection string should be something like this
connection.connect("rtmp://Your-internet-ip-address/Red5Fridge");
sparkdemon
03-10-2010, 10:49 PM
Just verify that port 1935,1936,5080 are allowed on your firewall settings.then you can access it from anywhere in your LAN
Hi spark, thank you so much for all the help so far.
I've only been having one last strange issue.
As I asked before, i'm still not able to connect to my red5 server from another local network computer (neither one from the wan even with ports set up)
I've done the following
1) During red5 install, chose 127.0.0.1 when it prompted me for an ip
2) chose 5080 as port
Then made a little example app to test local connection & that worked.
But still http://red5:5080 or http://192.168.1.10:5080 arn't working.
I've also adjusted the OnCreationComplete() function.
public function onCreationComplete(event:FlexEvent) : void {
// setup connection code
connection = new NetConnection();
connection.connect("rtmp://red5/Red5Fridge");
connection.addEventListener(NetStatusEvent.NET_STA TUS,onConnectionNetStatus);
connection.client = this;
}
Thought that might fix something if i changed "rtmp://127.0.0.1/Red5Fridge" to "rtmp://red5/Red5Fridge" (red5 begin the servername & it's responding to a ping request)
Do i have to allow red5 to accept external connections then it's own ip adress somewhere ?
Kind regards,
Kenny
Kenniej
03-11-2010, 08:49 AM
are you using the stand alone version or the .war (tomcat) version on windows xp ?
If you are using the stand alone windows version try using port 1935 and make sure that this port is open and being fowarded to your red5 machine on your router, Another thing to watch is that red 5 or any other server cannot use port 80 if you are runnning a web server with that port on the same machine.
Your connection string should be something like this
connection.connect("rtmp://Your-internet-ip-address/Red5Fridge");
I'm guessing the .war version ? (Didn't install anything of tomcat, just used the red 5 setup to get the red5 server running & working in eclipse)
I've forwarded the ports in my router to my red5 machine, i've allowed them in win Xp firewall, i've even tried shutting the xp firewall down. But still, can't connect to my red5 page from any pc besides from the localhost one.
Normally i shouldn't need all those settings to just reach the red5 page from another lan pc, so i still find it very strange it's not working.
I've also changed the .mxml connection.connect("rtmp://81.11.xxx.115/Red5Fridge"); code to my wan ip adres.
It gives a "unsuccessful Connection" alert when i browse to the page on the localhost (That's normal, so deployment and red5 server are working fine)
According to the red5 demo port tester, the default port (i assume that's 5080?) and 1935 port connect succesfull. Should i conclude from that that the ports are forwarding correctly ?
http://img535.imageshack.us/img535/4844/porttestresult.jpg (http://img535.imageshack.us/i/porttestresult.jpg/)
Yet still no luck in connection from another machine...
Thanks for your responses so far.
Kind regards,
Kenny
mr-webcam
03-11-2010, 10:54 AM
you might be best installing the red5 stand alone windows version on xp
http://www.red5.org/downloads/0_9/setup-Red5-0.9.1.exe
Once this is installed and working you can put your swf / html files on any webserver to view them
sparkdemon
03-14-2010, 02:43 PM
I will suggest you try out with Red5 0.8 for now and join the red5 mailing group
http://groups.google.com/group/red5interest
|
vBulletin® v3.8.5, Copyright ©2000-2012, Jelsoft Enterprises Ltd.