Are you able to start Tomcat by itself and get it to bind to port 80? On Thu, Feb 12, 2009 at 10:58 AM, Glen Pike <[email protected]>wrote:
> Hi, > > If you have stopped apache and tried running red5 then I don't know. > > There are some threads about security restrictions on Java / Tomcat and > binding - you have to be running as root, but that's all I know. But it > also looks like you are running a virtual network interface for the card for > tunnelling purposes - which is why I suggested that even though apache was > running on a different IP address, there may be issues with it. > > http://www.klawitter.de/tomcat80.html > > Sorry I could not be of more help. > > Glen > > Kunthar wrote: > > Tried already this method. > apache2 is not listening on second ip, i can bind to port 80. Look at > example perl script to do this below. > red5.properties should work in normal. In 0.7 series, i had no problem at all. > I had to upgrade to 0.8 series and i have this trouble. > I would be really happy if anyone shed me a light on this. > > > Perl script listens on port 80 > --------------------------------- > #!/usr/bin/perl > > > use IO::Socket; > > my $sock = new IO::Socket::INET ( > LocalHost => 'my.host.ip', > LocalPort => '80', > Proto => 'tcp', > Listen => 1, > Reuse => 1, > ); > > die "Could not create socket: $!\n" unless $sock; > > my $new_sock = $sock->accept(); > while(<$new_sock>) { > print $_; > } > > close($sock); > > --------------------------------- > > > On Wed, Feb 11, 2009 at 8:15 PM, Glen Pike <[email protected]> > <[email protected]> wrote: > > > tcp 0 0 211.129.114.121:80 0.0.0.0:* > LISTEN 3057/apache2 > > Doesn't that mean apache is running on port 80?? > > Try > > /etc/init.d/apache2 stop > > /usr/lib/red5.sh > > Kunthar wrote: > > 0.8 RC2 > Basically red5 is refusing to bind to a second ip on port 80. > If i change from port 80 to 81 or any number, everything works okay. > Something wrong with src/org/red5/server/tomcat/TomcatLoader.java or > springframework ultra smart loader shitty. > > NO, i am not running red5 more then once! (watch -n4 'ps aux | grep > red5') on my other console. > NO, no other apps uses ports (netstat -anp | grep LISTEN) > NO, no other confusing applications installed yet under webapps. Just > naked red5. > NO, apache is not listens on 0.0.0.0 /etc/apache2/ports.conf > I've even checked with rkhunter and chkrootkit if something nasty happens, > bah. > YES, even i have rebooted the server too... > > Any brave heart(s) around? > > Peace > Kunth > > > /usr/lib/red5 # ifconfig > eth0 Link encap:Ethernet HWaddr 00:19:DB:F8:D0:B5 > inet addr:211.129.114.121 Bcast:213.239.214.127 > Mask:255.255.255.224 > > eth0:1 Link encap:Ethernet HWaddr 00:19:DB:F8:D0:B5 > inet addr:74.57.65.85 Bcast:78.47.65.103 Mask:255.255.255.248 > > > # netstat -anp | grep LISTEN > tcp 0 0 0.0.0.0:3306 0.0.0.0:* > LISTEN 2417/mysqld > tcp 0 0 211.129.114.121:80 0.0.0.0:* > LISTEN 3057/apache2 > tcp 0 0 127.0.0.1:25 0.0.0.0:* > LISTEN 2915/exim4 > tcp 0 0 211.129.114.121:443 0.0.0.0:* > LISTEN 3057/apache2 > tcp6 0 0 :::222 :::* > LISTEN 2983/sshd > > > > red5.properties > # Socket policy > policy.host=74.57.65.85 > policy.port=843 > > # HTTP > http.host=74.57.65.85 > http.port=80 > https.port=8449 > > # RTMP > rtmp.host=74.57.65.85 > 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=74.57.65.85 > 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=74.57.65.85 > 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=74.57.65.85 > mrtmp.server=video.englishyourself.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=74.57.65.85 > jmx.rmi.ssl=false > > ----------------------------------------- > > > After start in /usr/lib/red5 > ./red5.sh > > Error is: > [INFO] [main] org.red5.server.tomcat.TomcatLoader - Setting connector: > org.apache.catalina.connector.Connector > [INFO] [main] org.red5.server.tomcat.TomcatLoader - Loading tomcat context > [INFO] [main] org.red5.server.tomcat.TomcatLoader - Server root: > /usr/lib/red5 > [INFO] [main] org.red5.server.tomcat.TomcatLoader - Config root: > /usr/lib/red5/conf > [INFO] [main] org.red5.server.tomcat.TomcatLoader - Application root: > /usr/lib/red5/webapps > [INFO] [main] org.red5.server.tomcat.TomcatLoader - Starting Tomcat > servlet engine > [INFO] [main] org.apache.catalina.startup.Embedded - Starting tomcat server > [INFO] [main] org.apache.catalina.core.StandardEngine - Starting > Servlet Engine: Apache Tomcat/6.0.18 > > [ERROR] [main] org.apache.coyote.http11.Http11Protocol - Error > initializing endpoint java.net.BindException: Address already in > use<null>:80 > > at org.apache.tomcat.util.net.JIoEndpoint.init(JIoEndpoint.java:502) > [tomcat-coyote-6.0.18.jar:na] > at org.apache.coyote.http11.Http11Protocol.init(Http11Protocol.java:176) > [tomcat-coyote-6.0.18.jar:na] > at org.apache.catalina.connector.Connector.initialize( > Connector.java:1058) > [catalina-6.0.18.jar:na] > > _______________________________________________ > osflash mailing > [email protected]http://osflash.org/mailman/listinfo/osflash_osflash.org > > > > > -- > > Glen Pike > 01326 218440www.glenpike.co.uk > > _______________________________________________ > osflash mailing > [email protected]http://osflash.org/mailman/listinfo/osflash_osflash.org > > > _______________________________________________ > osflash mailing > [email protected]http://osflash.org/mailman/listinfo/osflash_osflash.org > > > > -- > > Glen Pike > 01326 218440 > www.glenpike.co.uk > > _______________________________________________ > osflash mailing list > [email protected] > http://osflash.org/mailman/listinfo/osflash_osflash.org > >
_______________________________________________ osflash mailing list [email protected] http://osflash.org/mailman/listinfo/osflash_osflash.org
