you have something already running on the port you are trying to listen to rtmp traffic too, normally this is port 1935, but i am not sure how you have setup your server.
This is an unusual port to have in use, but when red 5 is not running do lsof -i :1935 to see what process is bound to port 1935, if there is no process bound then the startup script seems to be starting the server twice and that could need some inspecting. On Tue, Dec 21, 2010 at 6:46 AM, Omair Aasim <omairaa...@yahoo.com> wrote: > Thanks Johannes > I looked into the logs and found these errors generating when I call the > shutdown script. Apparently all of a sudden - red5 is shutting down now but > wont start > > org.springframework.beans.factory.BeanCreationException: Error creating > bean with name 'red5.core' defined in class path resource [red5.xml]: > Instantiation of bean failed; nested exception is > org.springframework.beans.BeanInstantiationException: Could not instantiate > bean class > [org.springframework.context.support.FileSystemXmlApplicationContext]: > Constructor threw exception; nested exception is > org.springframework.beans.factory.BeanCreationException: Error creating bean > with name 'rtmpTransport' defined in class path resource [red5-core.xml]: > Invocation of init method failed; nested exception is > java.net.BindException: Address already in use > at > org.springframework.beans.factory.support.ConstructorResolver.autowireConstructor(ConstructorResolver.java:254) > at > org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.autowireConstructor(AbstractAutowireCapableBeanFactory.java:925) > at > org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBeanInstance(AbstractAutowireCapableBeanFactory.java:835) > at > org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:440) > at > org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory$1.run(AbstractAutowireCapableBeanFactory.java:409) > at java.security.AccessController.doPrivileged(Native Method) > Caused by: org.springframework.beans.BeanInstantiationException: Could not > instantiate bean class > [org.springframework.context.support.FileSystemXmlApplicationContext]: > Constructor threw exception; nested exception is > org.springframework.beans.factory.BeanCreationException: Error creating bean > with name 'rtmpTransport' defined in class path resource [red5-core.xml]: > Invocation of init method failed; nested exception is > java.net.BindException: Address already in use > Caused by: org.springframework.beans.factory.BeanCreationException: Error > creating bean with name 'rtmpTransport' defined in class path resource > [red5-core.xml]: Invocation of init method failed; nested exception is > java.net.BindException: Address already in use > > So I have to do a grep for java processes and I see one of them running > red5 bootstrap or something and I have to explicitly kill it and then red5 > is able to start again. > > Thanks > > --- On *Mon, 12/20/10, Johannes Nel <johannes....@gmail.com>* wrote: > > > From: Johannes Nel <johannes....@gmail.com> > Subject: Re: [osflash] Red5-shutdown script does not work > To: "Open Source Flash Mailing List" <osflash@osflash.org> > Date: Monday, December 20, 2010, 4:20 AM > > > go check your log files to see what is happening, an exception must be > thrown somewhere > > On Mon, Dec 20, 2010 at 5:04 AM, Omair Aasim > <omairaa...@yahoo.com<http://mc/compose?to=omairaa...@yahoo.com> > > wrote: > > Hey guys > > I installed red5 on EC2 using the Fedora AMI. I am using the version 0.8.0. > I am able to start red5.sh and it comes up and i'm able to access it by > going to http://xx.xx.xx.xx:5080. > > But when I run the red5-shutdown.sh script, nothing seems to happen and the > server continues to run. I even created a daemon service using the link > below - but that does not work either > > http://www.red5wiki.com/wiki/Installing_and_running_Red5 > > The only way I can shut it down is by doing a grep for java process and > killing the process id > > ps -ef | grep java > kill -9 875 > > I have no idea what the problem is. Anyone has any idea - I've tried almost > every solution posted on google. > > Thanks > > > _______________________________________________ > osflash mailing list > osflash@osflash.org <http://mc/compose?to=osfl...@osflash.org> > http://osflash.org/mailman/listinfo/osflash_osflash.org > > > > > -- > j:pn > \\no comment > > -----Inline Attachment Follows----- > > > _______________________________________________ > osflash mailing list > osflash@osflash.org <http://mc/compose?to=osfl...@osflash.org> > http://osflash.org/mailman/listinfo/osflash_osflash.org > > > > _______________________________________________ > osflash mailing list > osflash@osflash.org > http://osflash.org/mailman/listinfo/osflash_osflash.org > > -- j:pn \\no comment
_______________________________________________ osflash mailing list osflash@osflash.org http://osflash.org/mailman/listinfo/osflash_osflash.org