macielbombonato / bigbluebutton

Automatically exported from code.google.com/p/bigbluebutton
0 stars 0 forks source link

red5 not able to connect to asterisk on reboot of pre-release BigBlueButton 0.7 VM #576

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
In BigBluebutton pre-0.7 VM (released on 2010-07-09), do the following

1.  'sudo bbb-conf --clean'
2.  login to BigBlueButton and join voice conference (should work)
3.  sudo reboot
4.  login to BigBlueButton and join voice conference

What is the expected output? What do you see instead?
Expected to appear in listeners window.

Instead there is no entry.  Running 'sudo bbb-conf --debug' shows

   -- ERRORS found in /usr/share/red5/log/* --
/usr/share/red5/log/bigbluebutton.log:2010-07-10 23:26:11,055 
[Launcher:/bigbluebutton] ERROR o.b.w.v.a.AsteriskServiceProvider - IOException 
occured on login to AMI

   -- Exceptions found in /usr/share/red5/log/* --
/usr/share/red5/log/bigbluebutton.log:2010-07-10 23:26:11,055 
[Launcher:/bigbluebutton] ERROR o.b.w.v.a.AsteriskServiceProvider - IOException 
occured on login to AMI

   -- Exceptions found in /var/lib/tomcat6/logs/ --
/var/lib/tomcat6/logs/catalina.out:org.codehaus.groovy.runtime.InvokerInvocation
Exception: org.apache.commons.dbcp.SQLNestedException: Cannot create 
PoolableConnectionFactory (Communications link failure
/var/lib/tomcat6/logs/catalina.out:Caused by: 
org.apache.commons.dbcp.SQLNestedException: Cannot create 
PoolableConnectionFactory (Communications link failure
/var/lib/tomcat6/logs/catalina.out:Caused by: 
com.mysql.jdbc.exceptions.jdbc4.CommunicationsException: Communications link 
failure
/var/lib/tomcat6/logs/catalina.out:     at 
com.mysql.jdbc.SQLError.createCommunicationsException(SQLError.java:1074)
/var/lib/tomcat6/logs/catalina.out:Caused by: java.net.ConnectException: 
Connection refused
/var/lib/tomcat6/logs/catalina.out:2010-07-10 23:25:37,060 ERROR 
[org.codehaus.groovy.grails.web.context.GrailsContextLoader] - <Error occurred 
shutting down plug-in manager: org.apache.commons.dbcp.SQLNestedException: 
Cannot create PoolableConnectionFactory (Communications link failure
/var/lib/tomcat6/logs/catalina.out:org.codehaus.groovy.runtime.InvokerInvocation
Exception: org.apache.commons.dbcp.SQLNestedException: Cannot create 
PoolableConnectionFactory (Communications link failure
/var/lib/tomcat6/logs/catalina.out:Caused by: 
org.apache.commons.dbcp.SQLNestedException: Cannot create 
PoolableConnectionFactory (Communications link failure
/var/lib/tomcat6/logs/catalina.out:Caused by: 
com.mysql.jdbc.exceptions.jdbc4.CommunicationsException: Communications link 
failure
/var/lib/tomcat6/logs/catalina.out:     at 
com.mysql.jdbc.SQLError.createCommunicationsException(SQLError.java:1074)
/var/lib/tomcat6/logs/catalina.out:Caused by: java.net.ConnectException: 
Connection refused

Which suggests that red5 was unable to access Asterisk. Probably a race 
condition on startup.

Please use labels and text to provide additional information.

Original issue reported on code.google.com by ffdixon@gmail.com on 10 Jul 2010 at 11:31

GoogleCodeExporter commented 9 years ago
In looking at /var/log/boot.log, red5 is starting before asterisk.

firstuser@bbb-vm-20100710-14:/var/log$ cat boot.log
 * Setting sensors limits                                                [ OK ]
Loading DAHDI hardware modules:
   dahdi: done   dahdi_dummy: done   dahdi_transcode: done
Running dahdi_cfg: done.
 * Starting Apache ActiveMQ service activemq                             [ OK ]
Starting OpenOffice headless server
Starting nginx: the configuration file /etc/nginx/nginx.conf syntax is ok
configuration file /etc/nginx/nginx.conf test is successful
nginx.
 * Starting Red5 Server red5
                                                                         [ OK ]
Starting Asterisk PBX: asterisk.
 * Starting Tomcat servlet engine tomcat6                                       Using CATALINA_BASE:   /var/lib/tomcat6
Using CATALINA_HOME:   /usr/share/tomcat6
Using CATALINA_TMPDIR: /tmp/tomcat6-tmp
Using JRE_HOME:        /usr/lib/jvm/java-6-openjdk
Using CLASSPATH:       /usr/share/tomcat6/bin/bootstrap.jar
                                                                         [ OK ]
firstuser@bbb-vm-20100710-14:/var/log$

Original comment by ffdixon@gmail.com on 10 Jul 2010 at 11:33

GoogleCodeExporter commented 9 years ago
Yep.  red5 is started before activemq

firstuser@bbb-vm-20100710-14:/etc/rc2.d$ ls
README  S15dahdi  S20activemq  S20bbb-openoffice-headless  S20fancontrol  
S20nginx  S20red5  S21asterisk  S50rsync  S92tomcat6  S99grub-common  
S99ondemand  S99rc.local

S20red5 is going to start before S21asterisk

Original comment by ffdixon@gmail.com on 11 Jul 2010 at 12:36

GoogleCodeExporter commented 9 years ago

Original comment by ffdixon@gmail.com on 13 Jul 2010 at 3:33