Red5.sh stalls during startup on linux

Post your questions and bug-reports about the audio/video streaming add-on based on Red5 Media Server.

Moderators: Lapo, Bax

ddemmon
Posts: 5
Joined: 09 Dec 2008, 00:49
Location: Indiana
Contact:

Red5.sh stalls during startup on linux

Postby ddemmon » 13 Dec 2008, 05:00

Hi,
I am just starting with SFS and Red5, but I seem to be running into a small startup problem. I have run both servers fine locally on my Windows PC, and I am trying to implement it on my VPS running RedHat linux and SFS version 1.6.3.

The SFS server runs fine, and I can connect with other apps. When I start the Red5 server, it hangs at the last line shown below. Compared to startup in Windows, this seems to be right before it is binding to port 1935? I verified the port is open and available from adminstrators of my VPS. Any ideas? Here is the output:

Code: Select all

[ddemmon][~/SFS/SFS_PRO_1.6.2/Server/RedBox]$ ./red5.sh
[INFO] 2008-12-13 05:55:43,709 main:(
org.red5.server.Standalone.main ) RED5 Server
(http://www.osflash.org/red5)
[INFO] 2008-12-13 05:55:43,716 main:(
org.red5.server.Standalone.main ) Loading red5 global context from:
red5.xml
[INFO] 2008-12-13 05:55:43,719 main:(
org.red5.server.Standalone.main ) Setting Red5 root
to //usr/home/ddemmon/SFS/SFS_PRO_1.6.2/Server/RedBox
[INFO] 2008-12-13 05:55:43,720 main:(
org.red5.server.Standalone.main ) Setting configuation root
to /usr/home/ddemmon/SFS/SFS_PRO_1.6.2/Server/RedBox/conf
[INFO] 2008-12-13 05:55:43,858 main:(
org.springframework.context.support.ClassPathXmlApplicationContext.pre
pareRefresh ) Refreshing
org.springframework.context.support.ClassPathXmlApplicationContext@34
1960: display name
[org.springframework.context.support.ClassPathXmlApplicationContext@3
41960]; startup date [Sat Dec 13 05:55:43 GMT 2008]; root of context
hierarchy
[INFO] 2008-12-13 05:55:44,937 main:(
org.springframework.context.support.ClassPathXmlApplicationContext.obt
ainFreshBeanFactory ) Bean factory for application context
[org.springframework.context.support.ClassPathXmlApplicationContext@3
41960]:
org.springframework.beans.factory.support.DefaultListableBeanFactory@f
acf0b
[INFO] 2008-12-13 05:55:45,019 main:(
org.springframework.beans.factory.config.PropertyPlaceholderConfigurer.l
oadProperties ) Loading properties file from class path resource
[red5.properties]
[INFO] 2008-12-13 05:55:45,031 main:(
org.springframework.beans.factory.support.DefaultListableBeanFactory.pr
eInstantiateSingletons ) Pre-instantiating singletons in
org.springframework.beans.factory.support.DefaultListableBeanFactory@f
acf0b: defining beans
[placeholderConfig,red5.common,red5.core,context.loader,jetty6.server];
 root of factory hierarchy
[INFO] 2008-12-13 05:55:45,068 main:(
org.springframework.context.support.FileSystemXmlApplicationContext.pr
epareRefresh ) Refreshing
org.springframework.context.support.FileSystemXmlApplicationContext@2
38a47: display name
[org.springframework.context.support.FileSystemXmlApplicationContext@
238a47]; startup date [Sat Dec 13 05:55:45 GMT 2008]; root of context
hierarchy
[INFO] 2008-12-13 05:55:45,149 main:(
org.springframework.context.support.FileSystemXmlApplicationContext.ob
tainFreshBeanFactory ) Bean factory for application context
[org.springframework.context.support.FileSystemXmlApplicationContext@
238a47]:
org.springframework.beans.factory.support.DefaultListableBeanFactory@3
3f0de
[INFO] 2008-12-13 05:55:45,219 main:(
org.springframework.beans.factory.support.DefaultListableBeanFactory.pr
eInstantiateSingletons ) Pre-instantiating singletons in
org.springframework.beans.factory.support.DefaultListableBeanFactory@3
3f0de: defining beans
[placeholderConfig,red5.server,jmxFactory,jmxAgent,serializer,deserialize
r,statusObjectService,rtmpCodecFactory,remotingCodecFactory,videoCod
ecFactory,streamableFileFactory,sharedObjectService,streamService,provi
derService,consumerService,BWControlService,schedulingService,threadF
actory,remotingPool,remotingClient,object.cache,keyframe.cache,flv.impl,
flvreader.impl,mp3reader.impl,org.springframework.beans.factory.config.
MethodInvokingFactoryBean,org.springframework.beans.factory.config.Me
thodInvokingFactoryBean#1,streamExecutor,playlistSubscriberStream,clie
ntBroadcastStream]; root of factory hierarchy
[INFO] 2008-12-13 05:55:45,312 main:(
org.red5.server.jmx.JMXAgent.init ) JMX HTML adapter was not enabled
[INFO] 2008-12-13 05:55:45,345 main:(
org.red5.server.jmx.JMXAgent.init ) RMI Registry server was not found
on port 9999
[INFO] 2008-12-13 05:55:45,346 main:(
org.red5.server.jmx.JMXAgent.init ) Starting an internal RMI registry
[INFO] 2008-12-13 05:55:45,502 main:(
org.red5.server.jmx.JMXAgent.init ) JMX RMI connector server
successfully started
[INFO] 2008-12-13 05:55:45,729 main:(
org.red5.io.StreamableFileFactory.setServices ) StreamableFileFactory
set services
[INFO] 2008-12-13 05:55:45,970 main:(
org.springframework.context.support.FileSystemXmlApplicationContext.pr
epareRefresh ) Refreshing
org.springframework.context.support.FileSystemXmlApplicationContext@1
5b123b: display name
[org.springframework.context.support.FileSystemXmlApplicationContext@
15b123b]; startup date [Sat Dec 13 05:55:45 GMT 2008]; parent:
org.springframework.context.support.FileSystemXmlApplicationContext@2
38a47
[INFO] 2008-12-13 05:55:46,020 main:(
org.springframework.context.support.FileSystemXmlApplicationContext.ob
tainFreshBeanFactory ) Bean factory for application context
[org.springframework.context.support.FileSystemXmlApplicationContext@
15b123b]:
org.springframework.beans.factory.support.DefaultListableBeanFactory@7
75121
[INFO] 2008-12-13 05:55:46,054 main:(
org.springframework.beans.factory.config.PropertyPlaceholderConfigurer.l
oadProperties ) Loading properties file from class path resource
[red5.properties]
[INFO] 2008-12-13 05:55:46,057 main:(
org.springframework.beans.factory.support.DefaultListableBeanFactory.pr
eInstantiateSingletons ) Pre-instantiating singletons in
org.springframework.beans.factory.support.DefaultListableBeanFactory@7
75121: defining beans
[customEditorConfigurer,placeholderConfig,rtmpHandler,rtmpMinaIoHandl
er,rtmpTransport,rtmpMinaConnection,rtmptHandler,rtmptServlet,rtmptCo
nnection,rtmpt.server]; parent:
org.springframework.beans.factory.support.DefaultListableBeanFactory@3
3f0de
[INFO] 2008-12-13 05:55:46,089 main:(
org.red5.server.net.rtmp.RTMPMinaTransport.start ) RTMP Mina Transport
Settings
[INFO] 2008-12-13 05:55:46,089 main:(
org.red5.server.net.rtmp.RTMPMinaTransport.start ) IO Threads: 2+1
[INFO] 2008-12-13 05:55:46,090 main:(
org.red5.server.net.rtmp.RTMPMinaTransport.start ) Event Threads: core:
16+1 max: 32+1 queue: -1 keepalive: 60


When I try to run red5_debug.sh I get the following:

Code: Select all

[ddemmon][~/SFS/SFS_PRO_1.6.2/Server/RedBox]$ ./red5_debug.sh
Listening for transport dt_socket at address: 8787


And it hangs there. This server seems like it is exactly what I'm looking for, but I just need to get over this hurdle of running on my VPS.

Thanks
Last edited by ddemmon on 15 Dec 2008, 12:16, edited 1 time in total.
Derek
User avatar
Lapo
Site Admin
Posts: 23008
Joined: 21 Mar 2005, 09:50
Location: Italy

Postby Lapo » 15 Dec 2008, 06:00

Hello,
I confirm that you should get quite a long output in your Linux terminal when you start the Red5 server.
The last line of the boot sequence should look like this:
...Startup done in XXXX ms


I have no problem running the RedBox on a Ubuntu Linux and I wouldn't expect exceptions for RedHat.

Maybe take a look at which JVM you are using.
Type

Code: Select all

java -version

at the terminal. What does it say?
Lapo
--
gotoAndPlay()
...addicted to flash games
ddemmon
Posts: 5
Joined: 09 Dec 2008, 00:49
Location: Indiana
Contact:

Postby ddemmon » 15 Dec 2008, 12:10

Thank you for the help. I have tried forcing it to use the version installed with SFS and the version originally installed on my VPS account. Currently it is the main version installed to my VPS account.

"java -version" replies with:

Code: Select all

java version "1.6.0_07"
Java(TM) SE Runtime Environment (build 1.6.0_07-b06)
Java HotSpot(TM) Client VM (build 10.0-b23, mixed mode)
Derek
User avatar
Lapo
Site Admin
Posts: 23008
Joined: 21 Mar 2005, 09:50
Location: Italy

Postby Lapo » 15 Dec 2008, 12:41

I see, so the RedBox is actually using the embedded JRE?
Have tried leaving it there for a while to see if it's actually just coming up too slowly? I know it doesn't sound too scientific :) But we have noticed that at times Jetty tends to boot ver slowly under Linux, reason unknown.
Lapo

--

gotoAndPlay()

...addicted to flash games
ddemmon
Posts: 5
Joined: 09 Dec 2008, 00:49
Location: Indiana
Contact:

Postby ddemmon » 15 Dec 2008, 14:41

It apparently must have terminated itself. I walked away from it this morning after starting it and came back about 50 minutes later to a command prompt. I checked the running processes (using "ps -aux") and it was not running.

I have also tried a clean reinstall in an entirely different area, no difference.
Derek
User avatar
Lapo
Site Admin
Posts: 23008
Joined: 21 Mar 2005, 09:50
Location: Italy

Postby Lapo » 15 Dec 2008, 15:20

What RedHat are you using?
Lapo

--

gotoAndPlay()

...addicted to flash games
ddemmon
Posts: 5
Joined: 09 Dec 2008, 00:49
Location: Indiana
Contact:

Postby ddemmon » 15 Dec 2008, 15:33

Tech support says RedHat Linux Enterprise Edition 4, and if I run a webpage using phpinfo() it shows system version is "2.6.9-42.0.3.ELsmp #1 SMP"
Derek
User avatar
Lapo
Site Admin
Posts: 23008
Joined: 21 Mar 2005, 09:50
Location: Italy

Postby Lapo » 15 Dec 2008, 16:51

It seems that the problem is specific of your VPS as we don't have problems with other Linux(es). One of our production servers runs RedHat Fedora 8 and the RedBox has no problems running there, same goes for the latest Fedora 10. I tested on a Live CD, installed a shiny new SFS 1.6 and didn't experience any problems.

I think you should run a couple more tests on your VPS maybe attempting different port configurations, trying to run Red5 without SFS running ...

At least you should try to see if there's any additional clue that we can add to the mystery ... :?
Lapo

--

gotoAndPlay()

...addicted to flash games
ddemmon
Posts: 5
Joined: 09 Dec 2008, 00:49
Location: Indiana
Contact:

Postby ddemmon » 17 Dec 2008, 00:08

Update: I changed VPS providers and everything is running great. Must have just been some limitation of the last VPS setup, it was definitely a stripped down install with minimal utilities and programs available.

Thanks for helping.
Derek

Return to “RedBox”

Who is online

Users browsing this forum: No registered users and 14 guests