BBB's API cannot start with error: Startup unsuccessful: could not connect to http://176.58.122.97/bigbluebutton/api

3,171 views
Skip to first unread message

Truong Chuong Duong

unread,
Dec 11, 2013, 7:19:07 AM12/11/13
to bigblueb...@googlegroups.com
Dear all,

I know many other user report same issue but I tried all thing I see still cannot resolve my problem.
My BBB run very well in few week, it just got error few hours ago. All HDD are not full, memory and CPU are free for BBB (I only run BBB on this server).

I ran sudo bbb-conf --start, the result is:

Starting FreeSWITCH
Waiting for FreeSWITCH to start:
OpenOffice headless server has already started.
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 Tomcat servlet engine tomcat6                                                                                                             [ OK ]
Record and Playback monitoring started
Waiting for BigBlueButton to finish starting up (this may take a minute): Startup unsuccessful: could not connect to http://176.58.122.97/bigbluebutton/api

run bbb-conf --clean, the result is:

Doing a restart of BigBlueButton and cleaning out all log files...
 * Stopping Red5 Server red5                                                                                                                          [ OK ]
 * Stopping Tomcat servlet engine tomcat6                                                                                                             [ OK ]
Stopping nginx: nginx.
Killing: 3813
Stopping OpenOffice headless server.
Record and Playback monitoring stopped

Cleaning Log Files ...
 * nginx is not running
 * Red5 Server is not running.
 * Tomcat servlet engine is not running.

Starting FreeSWITCH
6312 Backgrounding.
Waiting for FreeSWITCH to start: ...............
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 Tomcat servlet engine tomcat6                                                                                                             [ OK ]
Record and Playback monitoring started
Waiting for BigBlueButton to finish starting up (this may take a minute): Startup unsuccessful: could not connect to http://176.58.122.97/bigbluebutton/api


Run bbb-conf --check the result is:

BigBlueButton Server 0.81-RC5 (1544)
                    Kernel version: 3.11.6-x86_64-linode35
                      Distribution: Ubuntu 10.04.4 LTS (64-bit)
                            Memory: 3934 MB

/var/www/bigbluebutton/client/conf/config.xml (bbb-client)
                Port test (tunnel): 176.58.122.97
                              Red5: 176.58.122.97

/etc/nginx/sites-available/bigbluebutton (nginx)
                       server name: 176.58.122.97
                              port: 80
                    bbb-client dir: /var/www/bigbluebutton

/var/lib/tomcat6/webapps/bigbluebutton/WEB-INF/classes/bigbluebutton.properties (bbb-web)
                      bbb-web host: 176.58.122.97

/var/lib/tomcat6/webapps/demo/bbb_api_conf.jsp (API demos)
                           api url: 176.58.122.97

/usr/share/red5/webapps/bigbluebutton/WEB-INF/red5-web.xml (red5)
                  voice conference: FreeSWITCH
                     capture video: true
                   capture desktop: true

/usr/local/bigbluebutton/core/scripts/bigbluebutton.yml (record and playback)
                     playback host: 176.58.122.97


** Potential problems described below **
# Warning: nginx is not serving BigBlueButton's web application
# from port 8080
#
# (This is OK if you have setup a development environment.)

# Error: Could not connect to the configured hostname/IP address
#
#    http://176.58.122.97/
#
# If your BigBlueButton server is behind a firewall, see FAQ:
#
#   http://code.google.com/p/bigbluebutton/wiki/FAQ
#
# (See entry for setting up BigBlueButton behind a firewall.)

# Warning: The API demos are installed and accessible from:
#
#    http://176.58.122.97/
#
# These API demos allow anyone to access your server without authentication
# to create/manage meetings and recordings. They are for testing purposes only.
# If you are running a production system, remove them by running:
#
#    sudo apt-get purge bbb-demo

I ran bbb-conf --setip 176.58.122.97 but BBB still doesn't work

I ran bbb-conf --debug, the logs is:

   -- Exceptions found in /var/lib/tomcat6/logs/ --
/var/lib/tomcat6/logs/catalina.out:java.io.FileNotFoundException: stacktrace.log (Permission denied)
/var/lib/tomcat6/logs/catalina.out:org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'messageSource': Initialization of bean failed; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'transactionManager': Cannot resolve reference to bean 'sessionFactory' while setting bean property 'sessionFactory'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'sessionFactory': Cannot resolve reference to bean 'hibernateProperties' while setting bean property 'hibernateProperties'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'hibernateProperties': Cannot resolve reference to bean 'dialectDetector' while setting bean property 'properties' with key [hibernate.dialect]; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'dialectDetector': Invocation of init method failed; nested exception is org.springframework.jdbc.support.MetaDataAccessException: Error while extracting DatabaseMetaData; nested exception is org.apache.commons.dbcp.SQLNestedException: Cannot create PoolableConnectionFactory (File input/output error prodDb.properties java.io.FileNotFoundException: prodDb.properties.new (Permission denied))
/var/lib/tomcat6/logs/catalina.out:Caused by: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'transactionManager': Cannot resolve reference to bean 'sessionFactory' while setting bean property 'sessionFactory'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'sessionFactory': Cannot resolve reference to bean 'hibernateProperties' while setting bean property 'hibernateProperties'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'hibernateProperties': Cannot resolve reference to bean 'dialectDetector' while setting bean property 'properties' with key [hibernate.dialect]; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'dialectDetector': Invocation of init method failed; nested exception is org.springframework.jdbc.support.MetaDataAccessException: Error while extracting DatabaseMetaData; nested exception is org.apache.commons.dbcp.SQLNestedException: Cannot create PoolableConnectionFactory (File input/output error prodDb.properties java.io.FileNotFoundException: prodDb.properties.new (Permission denied))
/var/lib/tomcat6/logs/catalina.out:Caused by: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'sessionFactory': Cannot resolve reference to bean 'hibernateProperties' while setting bean property 'hibernateProperties'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'hibernateProperties': Cannot resolve reference to bean 'dialectDetector' while setting bean property 'properties' with key [hibernate.dialect]; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'dialectDetector': Invocation of init method failed; nested exception is org.springframework.jdbc.support.MetaDataAccessException: Error while extracting DatabaseMetaData; nested exception is org.apache.commons.dbcp.SQLNestedException: Cannot create PoolableConnectionFactory (File input/output error prodDb.properties java.io.FileNotFoundException: prodDb.properties.new (Permission denied))
/var/lib/tomcat6/logs/catalina.out:Caused by: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'hibernateProperties': Cannot resolve reference to bean 'dialectDetector' while setting bean property 'properties' with key [hibernate.dialect]; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'dialectDetector': Invocation of init method failed; nested exception is org.springframework.jdbc.support.MetaDataAccessException: Error while extracting DatabaseMetaData; nested exception is org.apache.commons.dbcp.SQLNestedException: Cannot create PoolableConnectionFactory (File input/output error prodDb.properties java.io.FileNotFoundException: prodDb.properties.new (Permission denied))
/var/lib/tomcat6/logs/catalina.out:Caused by: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'dialectDetector': Invocation of init method failed; nested exception is org.springframework.jdbc.support.MetaDataAccessException: Error while extracting DatabaseMetaData; nested exception is org.apache.commons.dbcp.SQLNestedException: Cannot create PoolableConnectionFactory (File input/output error prodDb.properties java.io.FileNotFoundException: prodDb.properties.new (Permission denied))
/var/lib/tomcat6/logs/catalina.out:Caused by: org.springframework.jdbc.support.MetaDataAccessException: Error while extracting DatabaseMetaData; nested exception is org.apache.commons.dbcp.SQLNestedException: Cannot create PoolableConnectionFactory (File input/output error prodDb.properties java.io.FileNotFoundException: prodDb.properties.new (Permission denied))
/var/lib/tomcat6/logs/catalina.out:Caused by: org.apache.commons.dbcp.SQLNestedException: Cannot create PoolableConnectionFactory (File input/output error prodDb.properties java.io.FileNotFoundException: prodDb.properties.new (Permission denied))
/var/lib/tomcat6/logs/catalina.out:Caused by: java.sql.SQLException: File input/output error prodDb.properties java.io.FileNotFoundException: prodDb.properties.new (Permission denied)
/var/lib/tomcat6/logs/catalina.out:     at org.hsqldb.jdbc.Util.sqlException(Unknown Source)
/var/lib/tomcat6/logs/localhost.2013-12-11.log:SEVERE: Exception sending context initialized event to listener instance of class org.codehaus.groovy.grails.web.context.GrailsContextLoaderListener
/var/lib/tomcat6/logs/localhost.2013-12-11.log:org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'messageSource': Initialization of bean failed; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'transactionManager': Cannot resolve reference to bean 'sessionFactory' while setting bean property 'sessionFactory'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'sessionFactory': Cannot resolve reference to bean 'hibernateProperties' while setting bean property 'hibernateProperties'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'hibernateProperties': Cannot resolve reference to bean 'dialectDetector' while setting bean property 'properties' with key [hibernate.dialect]; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'dialectDetector': Invocation of init method failed; nested exception is org.springframework.jdbc.support.MetaDataAccessException: Error while extracting DatabaseMetaData; nested exception is org.apache.commons.dbcp.SQLNestedException: Cannot create PoolableConnectionFactory (File input/output error prodDb.properties java.io.FileNotFoundException: prodDb.properties.new (Permission denied))
/var/lib/tomcat6/logs/localhost.2013-12-11.log:Caused by: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'transactionManager': Cannot resolve reference to bean 'sessionFactory' while setting bean property 'sessionFactory'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'sessionFactory': Cannot resolve reference to bean 'hibernateProperties' while setting bean property 'hibernateProperties'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'hibernateProperties': Cannot resolve reference to bean 'dialectDetector' while setting bean property 'properties' with key [hibernate.dialect]; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'dialectDetector': Invocation of init method failed; nested exception is org.springframework.jdbc.support.MetaDataAccessException: Error while extracting DatabaseMetaData; nested exception is org.apache.commons.dbcp.SQLNestedException: Cannot create PoolableConnectionFactory (File input/output error prodDb.properties java.io.FileNotFoundException: prodDb.properties.new (Permission denied))
/var/lib/tomcat6/logs/localhost.2013-12-11.log:Caused by: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'sessionFactory': Cannot resolve reference to bean 'hibernateProperties' while setting bean property 'hibernateProperties'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'hibernateProperties': Cannot resolve reference to bean 'dialectDetector' while setting bean property 'properties' with key [hibernate.dialect]; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'dialectDetector': Invocation of init method failed; nested exception is org.springframework.jdbc.support.MetaDataAccessException: Error while extracting DatabaseMetaData; nested exception is org.apache.commons.dbcp.SQLNestedException: Cannot create PoolableConnectionFactory (File input/output error prodDb.properties java.io.FileNotFoundException: prodDb.properties.new (Permission denied))
/var/lib/tomcat6/logs/localhost.2013-12-11.log:Caused by: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'hibernateProperties': Cannot resolve reference to bean 'dialectDetector' while setting bean property 'properties' with key [hibernate.dialect]; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'dialectDetector': Invocation of init method failed; nested exception is org.springframework.jdbc.support.MetaDataAccessException: Error while extracting DatabaseMetaData; nested exception is org.apache.commons.dbcp.SQLNestedException: Cannot create PoolableConnectionFactory (File input/output error prodDb.properties java.io.FileNotFoundException: prodDb.properties.new (Permission denied))
/var/lib/tomcat6/logs/localhost.2013-12-11.log:Caused by: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'dialectDetector': Invocation of init method failed; nested exception is org.springframework.jdbc.support.MetaDataAccessException: Error while extracting DatabaseMetaData; nested exception is org.apache.commons.dbcp.SQLNestedException: Cannot create PoolableConnectionFactory (File input/output error prodDb.properties java.io.FileNotFoundException: prodDb.properties.new (Permission denied))
/var/lib/tomcat6/logs/localhost.2013-12-11.log:Caused by: org.springframework.jdbc.support.MetaDataAccessException: Error while extracting DatabaseMetaData; nested exception is org.apache.commons.dbcp.SQLNestedException: Cannot create PoolableConnectionFactory (File input/output error prodDb.properties java.io.FileNotFoundException: prodDb.properties.new (Permission denied))
/var/lib/tomcat6/logs/localhost.2013-12-11.log:Caused by: org.apache.commons.dbcp.SQLNestedException: Cannot create PoolableConnectionFactory (File input/output error prodDb.properties java.io.FileNotFoundException: prodDb.properties.new (Permission denied))
/var/lib/tomcat6/logs/localhost.2013-12-11.log:Caused by: java.sql.SQLException: File input/output error prodDb.properties java.io.FileNotFoundException: prodDb.properties.new (Permission denied)
/var/lib/tomcat6/logs/localhost.2013-12-11.log: at org.hsqldb.jdbc.Util.sqlException(Unknown Source)
/var/lib/tomcat6/logs/localhost.2013-12-11.log:SEVERE: Exception sending context destroyed event to listener instance of class org.codehaus.groovy.grails.web.context.GrailsContextLoaderListener
/var/lib/tomcat6/logs/localhost.2013-12-11.log:org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'messageSource': Initialization of bean failed; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'transactionManager': Cannot resolve reference to bean 'sessionFactory' while setting bean property 'sessionFactory'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'sessionFactory': Cannot resolve reference to bean 'hibernateProperties' while setting bean property 'hibernateProperties'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'hibernateProperties': Cannot resolve reference to bean 'dialectDetector' while setting bean property 'properties' with key [hibernate.dialect]; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'dialectDetector': Invocation of init method failed; nested exception is org.springframework.jdbc.support.MetaDataAccessException: Error while extracting DatabaseMetaData; nested exception is org.apache.commons.dbcp.SQLNestedException: Cannot create PoolableConnectionFactory (File input/output error prodDb.properties java.io.FileNotFoundException: prodDb.properties.new (Permission denied))
/var/lib/tomcat6/logs/localhost.2013-12-11.log:Caused by: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'transactionManager': Cannot resolve reference to bean 'sessionFactory' while setting bean property 'sessionFactory'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'sessionFactory': Cannot resolve reference to bean 'hibernateProperties' while setting bean property 'hibernateProperties'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'hibernateProperties': Cannot resolve reference to bean 'dialectDetector' while setting bean property 'properties' with key [hibernate.dialect]; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'dialectDetector': Invocation of init method failed; nested exception is org.springframework.jdbc.support.MetaDataAccessException: Error while extracting DatabaseMetaData; nested exception is org.apache.commons.dbcp.SQLNestedException: Cannot create PoolableConnectionFactory (File input/output error prodDb.properties java.io.FileNotFoundException: prodDb.properties.new (Permission denied))
/var/lib/tomcat6/logs/localhost.2013-12-11.log:Caused by: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'sessionFactory': Cannot resolve reference to bean 'hibernateProperties' while setting bean property 'hibernateProperties'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'hibernateProperties': Cannot resolve reference to bean 'dialectDetector' while setting bean property 'properties' with key [hibernate.dialect]; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'dialectDetector': Invocation of init method failed; nested exception is org.springframework.jdbc.support.MetaDataAccessException: Error while extracting DatabaseMetaData; nested exception is org.apache.commons.dbcp.SQLNestedException: Cannot create PoolableConnectionFactory (File input/output error prodDb.properties java.io.FileNotFoundException: prodDb.properties.new (Permission denied))
/var/lib/tomcat6/logs/localhost.2013-12-11.log:Caused by: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'hibernateProperties': Cannot resolve reference to bean 'dialectDetector' while setting bean property 'properties' with key [hibernate.dialect]; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'dialectDetector': Invocation of init method failed; nested exception is org.springframework.jdbc.support.MetaDataAccessException: Error while extracting DatabaseMetaData; nested exception is org.apache.commons.dbcp.SQLNestedException: Cannot create PoolableConnectionFactory (File input/output error prodDb.properties java.io.FileNotFoundException: prodDb.properties.new (Permission denied))
/var/lib/tomcat6/logs/localhost.2013-12-11.log:Caused by: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'dialectDetector': Invocation of init method failed; nested exception is org.springframework.jdbc.support.MetaDataAccessException: Error while extracting DatabaseMetaData; nested exception is org.apache.commons.dbcp.SQLNestedException: Cannot create PoolableConnectionFactory (File input/output error prodDb.properties java.io.FileNotFoundException: prodDb.properties.new (Permission denied))
/var/lib/tomcat6/logs/localhost.2013-12-11.log:Caused by: org.springframework.jdbc.support.MetaDataAccessException: Error while extracting DatabaseMetaData; nested exception is org.apache.commons.dbcp.SQLNestedException: Cannot create PoolableConnectionFactory (File input/output error prodDb.properties java.io.FileNotFoundException: prodDb.properties.new (Permission denied))

   -- Errors found in /var/log/nginx/error.log --
2013/12/11 07:17:36 [error] 7908#0: *1 connect() failed (111: Connection refused) while connecting to upstream, client: 176.58.122.97, server: 176.58.122.97, request: "GET /bigbluebutton/api HTTP/1.0", upstream: "http://127.0.0.1:8081/bigbluebutton/api", host: "176.58.122.97"


Thank You
DuongTC

Fred Dixon

unread,
Dec 11, 2013, 9:27:38 AM12/11/13
to BigBlueButton-dev
Hi Doung,

# Warning: nginx is not serving BigBlueButton's web application
# from port 8080
#
# (This is OK if you have setup a development environment.) 

The API calls are serviced by bbb-web (BigBlueButton's web application).  You can confirm yourself if it's running by doing


  wget http://176.58.122.97/bigbluebutton/api -O -

which should return

  <response><returncode>SUCCESS</returncode><version>0.8</version></response>

but when I try it on your server

--2013-12-11 14:24:59--  http://176.58.122.97/bigbluebutton/api
Connecting to 176.58.122.97:80... connected.
HTTP request sent, awaiting response... 502 Bad Gateway
2013-12-11 14:24:59 ERROR 502: Bad Gateway.


I'm getting an error.  Is there a firewall in front of your server?  Also, can you revert back to using the built-in bbb-web and see if the above check works.

I think the problem is the development setup for bbb-web is not responding or the API requests are not reaching it.

Again, try reverting back to the packaged version of bbb-web to see if the API requests get through.

Regards,... Fred


--
You received this message because you are subscribed to the Google Groups "BigBlueButton-dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email to bigbluebutton-...@googlegroups.com.
To post to this group, send email to bigblueb...@googlegroups.com.
Visit this group at http://groups.google.com/group/bigbluebutton-dev.
For more options, visit https://groups.google.com/groups/opt_out.



--
BigBlueButton Developer
BigBlueButton on twitter: @bigbluebutton

Truong Chuong Duong

unread,
Dec 11, 2013, 11:00:35 AM12/11/13
to bigblueb...@googlegroups.com
Thanks Fred for the answer! We actually, solved it by running from the dev folder:
    grails -Dserver.port=8081 run-war
 
So, we can get it to work that way. But, if the machine reboots we have to run this same command again. And, the other problem is that sometimes the above command starts but doesn´t conclude, sometimes it takes up the console and we have to use ´nohup grails -Dserver.port=8081 run-war &´ .
 
Any suggestions for us not to have to run this command every time on machine reboot (which hopefully won´t happen often of course). Or, at least clarification as to why we have to run
nohup grails -Dserver.port=8081 run-war &
or,
grails -Dserver.port=8081 run-war
or,
grails -Dserver.port=8081 run-war &
 
?
 
Regards,

Chad Pilkey

unread,
Dec 11, 2013, 12:31:12 PM12/11/13
to bigblueb...@googlegroups.com
If you aren't doing active development on bbb-web you should build a war file and deploy it to Tomcat and then update your bbb-web nginx file to point to back to the packaged bbb-web.

The grails commands are only useful for development (where you need to start and stop constantly), if you read through the following section of the development docs, http://code.google.com/p/bigbluebutton/wiki/Developing#Developing_BBB-Web. Starting at the line that says "grails war" is a set of instructions for creating a war file and deploying it.

Chad

Truong Chuong Duong

unread,
Dec 12, 2013, 2:51:23 AM12/12/13
to bigblueb...@googlegroups.com
Thanks Chad for the answer,

I'll try to create war file and deploy my project.

Truong Chuong Duong

unread,
Dec 18, 2013, 6:13:18 AM12/18/13
to bigblueb...@googlegroups.com
Dear all,


If I run:

grails -Dserver.port=8888 run-war
then change the nginx forward the api to port 8888 it is working well.

I did the deploy steps but my api doesn't work. What did I miss when deploy?

The steps I did is:

Change to root source directory
cd ~/dev/bigbluebutton/bigbluebutton-web
run:
grails war
the output is:
Welcome to Grails 1.3.9 - http://grails.org/
Licensed under Apache Standard License 2.0
Grails home is set to: /root/dev/tools/grails-1.3.9

Base Directory: /root/dev/bigbluebutton/bigbluebutton-web
Resolving dependencies...
Dependencies resolved in 3839ms.
Running script /root/dev/tools/grails-1.3.9/scripts/War.groovy
Environment set to production
     [copy] Copying 1 file to /root/.grails/1.3.9/projects/bigbluebutton-web
     [gspc] Compiling 7 GSP files for package [bigbluebutton] to /root/.grails/1.3.9/projects/bigbluebutton-web/classes
     [gspc] Compiling 1 GSP file for package [bigbluebutton_webapp] to /root/.grails/1.3.9/projects/bigbluebutton-web/classes
    [mkdir] Created dir: /root/.grails/1.3.9/projects/bigbluebutton-web/stage
Building WAR file ...
     [copy] Copying 105 files to /root/.grails/1.3.9/projects/bigbluebutton-web/stage
     [copy] Copied 20 empty directories to 1 empty directory under /root/.grails/1.3.9/projects/bigbluebutton-web/stage
     [copy] Copying 18 files to /root/.grails/1.3.9/projects/bigbluebutton-web/stage/WEB-INF/grails-app
     [copy] Copying 13 files to /root/.grails/1.3.9/projects/bigbluebutton-web/stage/WEB-INF/classes
     [copy] Copying 358 files to /root/.grails/1.3.9/projects/bigbluebutton-web/stage/WEB-INF/classes
    [mkdir] Created dir: /root/.grails/1.3.9/projects/bigbluebutton-web/stage/WEB-INF/spring
     [copy] Copying 2 files to /root/.grails/1.3.9/projects/bigbluebutton-web/stage/WEB-INF/spring
     [copy] Copying 1 file to /root/.grails/1.3.9/projects/bigbluebutton-web/stage/WEB-INF/classes
    [mkdir] Created dir: /root/.grails/1.3.9/projects/bigbluebutton-web/stage/WEB-INF/templates/scaffolding
     [copy] Copying 6 files to /root/.grails/1.3.9/projects/bigbluebutton-web/stage/WEB-INF/templates/scaffolding
     [copy] Copying 82 files to /root/.grails/1.3.9/projects/bigbluebutton-web/stage/WEB-INF/lib
     [copy] Copying 1 file to /root/.grails/1.3.9/projects/bigbluebutton-web/stage/WEB-INF
   [delete] Deleting: /root/.grails/1.3.9/projects/bigbluebutton-web/resources/web.xml
[propertyfile] Updating property file: /root/.grails/1.3.9/projects/bigbluebutton-web/stage/WEB-INF/classes/application.properties
*** Copying our custom log4j.properties as workaround for logging problem. ***
     [copy] Copying 1 file to /root/.grails/1.3.9/projects/bigbluebutton-web/stage/WEB-INF/classes
    [mkdir] Created dir: /root/.grails/1.3.9/projects/bigbluebutton-web/stage/WEB-INF/plugins/hibernate-1.3.9
     [copy] Copying 1 file to /root/.grails/1.3.9/projects/bigbluebutton-web/stage/WEB-INF/plugins/hibernate-1.3.9
      [jar] Building jar: /root/dev/bigbluebutton/bigbluebutton-web/target/bigbluebutton-0.70dev.war
   [delete] Deleting directory /root/.grails/1.3.9/projects/bigbluebutton-web/stage
Done creating WAR /root/dev/bigbluebutton/bigbluebutton-web/target/bigbluebutton-0.70dev.war


delete old bbb app folder:
rm -fr /root/tomcat6/webapps/bigbluebutton
rm -fr /root/tomcat6/webapps/bigbluebutton.war

then I copy the new war:
cp /root/dev/bigbluebutton/bigbluebutton-web/target/bigbluebutton-0.70dev.war /root/tomcat6/webapps/bigbluebutton.war

restart tomcat:
service tomcat6 restart

I see tomcat deployed file bigbluebutton.war and create the new folder /root/tomcat6/webapps/bigbluebutton

Change the /etc/bigbluebutton/nginx/web.nginx to:
         # Handle request to bbb-web running within Tomcat.  This is for
         # the BBB-API and Presentation.
       location /bigbluebutton {
           proxy_pass         http://127.0.0.1:8080;
           proxy_redirect     default;
           proxy_set_header   X-Forwarded-For   $proxy_add_x_forwarded_for;

        # Allow 30M uploaded presentation document.
           client_max_body_size       30m;
           client_body_buffer_size    128k;

           proxy_connect_timeout      90;
           proxy_send_timeout         90;
           proxy_read_timeout         90;

           proxy_buffer_size          4k;
           proxy_buffers              4 32k;
           proxy_busy_buffers_size    64k;
           proxy_temp_file_write_size 64k;

           include    fastcgi_params;
       }

restart nginx:
service nginx restart

when I access the link: http://176.58.122.97/bigbluebutton/api/ it say:

HTTP Status 404 -


type Status report

message

description The requested resource () is not available.


Apache Tomcat/6.0.24


Run bbb-conf -c the output is:

BigBlueButton Server 0.81-RC5 (1544)
                    Kernel version: 3.11.6-x86_64-linode35
                      Distribution: Ubuntu 10.04.4 LTS (64-bit)
                            Memory: 3934 MB

/var/www/bigbluebutton/client/conf/config.xml (bbb-client)
                Port test (tunnel): 176.58.122.97
                              Red5: 176.58.122.97

/etc/nginx/sites-available/bigbluebutton (nginx)
                       server name: 176.58.122.97
                              port: 80
                    bbb-client dir: /var/www/bigbluebutton

/var/lib/tomcat6/webapps/bigbluebutton/WEB-INF/classes/bigbluebutton.properties (bbb-web)
                      bbb-web host: 176.58.122.97

/var/lib/tomcat6/webapps/demo/bbb_api_conf.jsp (API demos)
                           api url: 176.58.122.97

/usr/share/red5/webapps/bigbluebutton/WEB-INF/red5-web.xml (red5)
                  voice conference: FreeSWITCH
                     capture video: true
                   capture desktop: true

/usr/local/bigbluebutton/core/scripts/bigbluebutton.yml (record and playback)
                     playback host: 176.58.122.97


** Potential problems described below **

# Error: Could not connect to the configured hostname/IP address
#
#    http://176.58.122.97/
#
# If your BigBlueButton server is behind a firewall, see FAQ:
#
#   http://code.google.com/p/bigbluebutton/wiki/FAQ
#
# (See entry for setting up BigBlueButton behind a firewall.)

# Warning: The API demos are installed and accessible from:
#
#    http://176.58.122.97/
#
# These API demos allow anyone to access your server without authentication
# to create/manage meetings and recordings. They are for testing purposes only.
# If you are running a production system, remove them by running:
#
#    sudo apt-get purge bbb-demo


Thank You in advance,
DuongTC

Truong Chuong Duong

unread,
Dec 18, 2013, 7:00:53 AM12/18/13
to bigblueb...@googlegroups.com
Sorry for the double post. The bigger issue and reason behind these questions is that we initially restarted our server because load was going into 8 and 9 quite quickly with only a few users joining in 2-3 separate meetings at the same time.
 
So, we restarted the server and we found the history mentioned above. I now used another BBB dev installation to build the war file, copied it to our production server and it worked.
 
I'm hoping the load will go down. We're on a Linode with 4GB RAM, 8 CPU ( Intel(R) Xeon(R) CPU L5520 @ 2.27GHz, '4x priority' - whatever this means). It should be handling quite a large number of sessions in parallel.

Fred Dixon

unread,
Dec 18, 2013, 7:30:48 AM12/18/13
to BigBlueButton-dev
Hi Truong,

Next time the server goes into the load, use top to see what processes are generating the load.  Post if your unsure which processes are running are related to BigBlueButton.

If your server is using a lot of swap space, try bumping up the memory to 8G.

Regards,... Fred
 


--
You received this message because you are subscribed to the Google Groups "BigBlueButton-dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email to bigbluebutton-...@googlegroups.com.
To post to this group, send email to bigblueb...@googlegroups.com.
Visit this group at http://groups.google.com/group/bigbluebutton-dev.
For more options, visit https://groups.google.com/groups/opt_out.

Truong Chuong Duong

unread,
Dec 18, 2013, 7:46:05 AM12/18/13
to bigblueb...@googlegroups.com
Thanks Fred for the reply.

How about my deployment step. I still need to re-build it and deploy the new war, I don't know why when run as test mode with
grails -Dserver.port=8888 run-war it worked but when build the war file (grails war) and deploy it to tomcat it doesn't.

Thank You,
DuongTC

P.s.: Sorry Fred because of double post, I clicked wrong button :(

Truong Chuong Duong

unread,
Dec 19, 2013, 2:37:20 AM12/19/13
to bigblueb...@googlegroups.com
I resolved the build issue by the war file created by command:
grails -Dserver.port=8888 run-war

I ran above command to make it run on port 8888, then I copy the war file from grails and deploy it to tomcat.

After restart tomcat I see that war file can run well.

My question is:
Why the war file created by command grails -Dserver.port=8888 run-war CAN deploy on tomcat
BUT
the war file created by command grails war CANNOT run?
What different between them?

Thank You,
DuongTC

Richard Alam

unread,
Dec 19, 2013, 12:13:00 PM12/19/13
to BigBlueButton-dev
Shouldn't have any difference. The bigbluebutton.war package that gets installed on fresh BBB is built using grails war.



 

Thank You,
DuongTC

--
You received this message because you are subscribed to the Google Groups "BigBlueButton-dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email to bigbluebutton-...@googlegroups.com.
To post to this group, send email to bigblueb...@googlegroups.com.
Visit this group at http://groups.google.com/group/bigbluebutton-dev.
For more options, visit https://groups.google.com/groups/opt_out.

Muhammad Umair

unread,
Jan 15, 2016, 11:57:06 AM1/15/16
to BigBlueButton-dev
I am also getting the same issue when I run bbb-conf --debug I get the following error
   -- Errors found in /var/log/nginx/error.log --
2016/01/15 21:42:53 [emerg] 35829#0: bind() to 0.0.0.0:80 failed (98: Address al     ready in use)
2016/01/15 21:42:53 [emerg] 35829#0: bind() to [::]:80 failed (98: Address alrea     dy in use)
2016/01/15 21:42:53 [emerg] 35829#0: bind() to 0.0.0.0:80 failed (98: Address al     ready in use)
2016/01/15 21:42:53 [emerg] 35829#0: bind() to [::]:80 failed (98: Address alrea     dy in use)
2016/01/15 21:42:53 [emerg] 35829#0: bind() to 0.0.0.0:80 failed (98: Address al     ready in use)
2016/01/15 21:42:53 [emerg] 35829#0: bind() to [::]:80 failed (98: Address alrea     dy in use)
2016/01/15 21:42:53 [emerg] 35829#0: bind() to 0.0.0.0:80 failed (98: Address al     ready in use)
2016/01/15 21:42:53 [emerg] 35829#0: bind() to [::]:80 failed (98: Address alrea     dy in use)
2016/01/15 21:42:53 [emerg] 35829#0: bind() to 0.0.0.0:80 failed (98: Address al     ready in use)
2016/01/15 21:42:53 [emerg] 35829#0: bind() to [::]:80 failed (98: Address alrea     dy in use)
2016/01/15 21:42:53 [emerg] 35829#0: still could not bind()
2016/01/15 21:50:19 [emerg] 36406#0: bind() to 0.0.0.0:80 failed (98: Address al     ready in use)
2016/01/15 21:50:19 [emerg] 36406#0: bind() to [::]:80 failed (98: Address alrea     dy in use)
2016/01/15 21:50:19 [emerg] 36406#0: bind() to 0.0.0.0:80 failed (98: Address al     ready in use)
2016/01/15 21:50:19 [emerg] 36406#0: bind() to [::]:80 failed (98: Address alrea     dy in use)
2016/01/15 21:50:19 [emerg] 36406#0: bind() to 0.0.0.0:80 failed (98: Address al     ready in use)
2016/01/15 21:50:19 [emerg] 36406#0: bind() to [::]:80 failed (98: Address alrea     dy in use)
2016/01/15 21:50:19 [emerg] 36406#0: bind() to 0.0.0.0:80 failed (98: Address al     ready in use)
2016/01/15 21:50:19 [emerg] 36406#0: bind() to [::]:80 failed (98: Address alrea     dy in use)
2016/01/15 21:50:19 [emerg] 36406#0: bind() to 0.0.0.0:80 failed (98: Address al     ready in use)
2016/01/15 21:50:19 [emerg] 36406#0: bind() to [::]:80 failed (98: Address alrea     dy in use)
2016/01/15 21:50:19 [emerg] 36406#0: still could not bind()
2016/01/15 21:52:45 [emerg] 36806#0: bind() to 0.0.0.0:80 failed (98: Address al     ready in use)
2016/01/15 21:52:45 [emerg] 36806#0: bind() to [::]:80 failed (98: Address alrea     dy in use)
2016/01/15 21:52:45 [emerg] 36806#0: bind() to 0.0.0.0:80 failed (98: Address al     ready in use)
2016/01/15 21:52:45 [emerg] 36806#0: bind() to [::]:80 failed (98: Address alrea     dy in use)
2016/01/15 21:52:45 [emerg] 36806#0: bind() to 0.0.0.0:80 failed (98: Address al     ready in use)
2016/01/15 21:52:45 [emerg] 36806#0: bind() to [::]:80 failed (98: Address alrea     dy in use)
2016/01/15 21:52:45 [emerg] 36806#0: bind() to 0.0.0.0:80 failed (98: Address al     ready in use)
2016/01/15 21:52:45 [emerg] 36806#0: bind() to [::]:80 failed (98: Address alrea     dy in use)
2016/01/15 21:52:45 [emerg] 36806#0: bind() to 0.0.0.0:80 failed (98: Address al     ready in use)
2016/01/15 21:52:45 [emerg] 36806#0: bind() to [::]:80 failed (98: Address alrea     dy in use)
2016/01/15 21:52:45 [emerg] 36806#0: still could not bind()
 and my bbb-conf --clean Startup unsuccessful: could not connect to http://192.168.1.126/bigbluebutton/api

Chad Pilkey

unread,
Jan 15, 2016, 1:05:00 PM1/15/16
to BigBlueButton-dev
Muhammad,

Your issue is different from the original topic. It's best to create a new post rather than replying to a post from 2013.

The log that you posted points to the issue being that something else on your server has already bound to port 80. Do you have another webserver like Apache installed on your server?
Reply all
Reply to author
Forward
0 new messages