Quantcast

fail to start up sonar as a service

classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

fail to start up sonar as a service

Ronen Perez
Hi All,

I am trying to start a sonar service on ec2 ubuntu 12.04 machine as a service. I setup mysql and I followed these instructions and log shows the following error:

2012.08.15 13:08:17 INFO  o.s.s.p.ApplicationDeployer  Deploy Ruby on Rails applications
INFO   | jvm 1    | 2012/08/15 13:08:54 | JRuby limited openssl loaded. http://jruby.org/openssl
INFO   | jvm 1    | 2012/08/15 13:08:54 | gem install jruby-openssl for full support.
INFO   | jvm 1    | 2012/08/15 13:09:25 | 2012-08-15 13:09:25.805:WARN:/:unable to create shared application instance
INFO   | jvm 1    | 2012/08/15 13:09:25 | org.jruby.rack.RackInitializationException: no connection available|?from /usr/local/sonar-3.2/war/sonar-server/WEB-INF/vendor/gems/activerecord-jdbc-adapter-1.1.3/lib/arjdbc/jdbc/connection.rb:61:in `initialize'|?from /usr/local/sonar-3.2/war/sonar-server/WEB-INF/vendor/gems/activerecord-jdbc-adapter-1.1.3/lib/arjdbc/jdbc/adapter.rb:31:in `initialize'|?from /usr/local/sonar-3.2/war/sonar-server/WEB-INF/vendor/gems/activerecord-jdbc-adapter-1.1.3/lib/arjdbc/jdbc/connection_methods.rb:6:in `jdbc_connection'|?from org/jruby/RubyKernel.java:2056:in `send'|?from /usr/local/sonar-3.2/war/sonar-server/WEB-INF/vendor/rails/activerecord/lib/active_record/connection_adapters/abstract/connection_pool.rb:223:in `new_connection'|?from /usr/local/sonar-3.2/war/sonar-server/WEB-INF/vendor/rails/activerecord/lib/active_record/connection_adapters/abstract/connection_pool.rb:245:in `checkout_new_connection'|?from /usr/local/sonar-3.2/war/sonar-server/WEB-INF/vendor/rails/activerecord/lib/active_record/connection_adapters/abstract/connection_pool.rb:188:in `checkout'|?from org/jruby/RubyKernel.java:1418:in `loop'|?from /usr/local/sonar-3.2/war/sonar-server/WEB-INF/vendor/rails/activerecord/lib/active_record/connection_adapters/abstract/connection_pool.rb:184:in `checkout'|?from file:/usr/local/sonar-3.2/war/sonar-server/WEB-INF/lib/jruby-complete-1.6.1.jar!/META-INF/jruby.home/lib/ruby/1.8/monitor.rb:191:in `mon_synchronize'|?from /usr/local/sonar-3.2/war/sonar-server/WEB-INF/vendor/rails/activerecord/lib/active_record/connection_adapters/abstract/connection_pool.rb:183:in `checkout'|?from /usr/local/sonar-3.2/war/sonar-server/WEB-INF/vendor/rails/activerecord/lib/active_record/connection_adapters/abstract/connection_pool.rb:98:in `connection'|?from /usr/local/sonar-3.2/war/sonar-server/WEB-INF/vendor/rails/activerecord/lib/active_record/connection_adapters/abstract/connection_pool.rb:326:in `retrieve_connection'|?from /usr/local/sonar-3.2/war/sonar-server/WEB-INF/vendor/rails/activerecord/lib/active_record/connection_adapters/abstract/connection_specification.rb:123:in `retrieve_connection'|?from /usr/local/sonar-3.2/war/sonar-server/WEB-INF/vendor/rails/activerecord/lib/active_record/connection_adapters/abstract/connection_specification.rb:115:in `connection'|?from /usr/local/sonar-3.2/war/sonar-server/WEB-INF/vendor/rails/activerecord/lib/active_record/migration.rb:435:in `initialize'|?from /usr/local/sonar-3.2/war/sonar-server/WEB-INF/vendor/rails/activerecord/lib/active_record/migration.rb:400:in `up'|?from /usr/local/sonar-3.2/war/sonar-server/WEB-INF/vendor/rails/activerecord/lib/active_record/migration.rb:383:in `migrate'|?from /usr/local/sonar-3.2/war/sonar-server/WEB-INF/lib/database_version.rb:63:in `upgrade_and_start'|?from /usr/local/sonar-3.2/war/sonar-server/WEB-INF/lib/database_version.rb:75:in `automatic_setup'|?from /usr/local/sonar-3.2/war/sonar-server/WEB-INF/config/environment.rb:131:in `(root)'|?from org/jruby/RubyKernel.java:1063:in `load'|?from /usr/local/sonar-3.2/war/sonar-server/WEB-INF/config/environment.rb:53:in `load_environment'|?from file:/usr/local/sonar-3.2/war/sonar-server/WEB-INF/lib/jruby-rack-1.0.0.1.jar!/jruby/rack/rails.rb:46:in `to_app'|?from file:/usr/local/sonar-3.2/war/sonar-server/WEB-INF/lib/jruby-rack-1.0.0.1.jar!/jruby/rack/rails.rb:191:in `new'|?from <script>:2:in `(root)'|?from org/jruby/RubyKernel.java:2021:in `instance_eval'|?from file:/usr/local/sonar-3.2/war/sonar-server/WEB-INF/lib/jruby-rack-1.0.0.1.jar!/vendor/rack-1.2.1/rack/builder.rb:46:in `initialize'|?from <script>:2:in `(root)'|
INFO   | jvm 1    | 2012/08/15 13:09:25 |       at org.jruby.rack.DefaultRackApplicationFactory$4.init(DefaultRackApplicationFactory.java:184)
INFO   | jvm 1    | 2012/08/15 13:09:25 |       at org.jruby.rack.DefaultRackApplicationFactory.getApplication(DefaultRackApplicationFactory.java:59)
INFO   | jvm 1    | 2012/08/15 13:09:25 |       at org.jruby.rack.SharedRackApplicationFactory.init(SharedRackApplicationFactory.java:27)
INFO   | jvm 1    | 2012/08/15 13:09:25 |       at org.jruby.rack.RackServletContextListener.contextInitialized(RackServletContextListener.java:40)
INFO   | jvm 1    | 2012/08/15 13:09:25 |       at org.mortbay.jetty.handler.ContextHandler.startContext(ContextHandler.java:548)
INFO   | jvm 1    | 2012/08/15 13:09:25 |       at org.mortbay.jetty.servlet.Context.startContext(Context.java:136)
INFO   | jvm 1    | 2012/08/15 13:09:25 |       at org.mortbay.jetty.webapp.WebAppContext.startContext(WebAppContext.java:1272)
INFO   | jvm 1    | 2012/08/15 13:09:25 |       at org.mortbay.jetty.handler.ContextHandler.doStart(ContextHandler.java:517)
INFO   | jvm 1    | 2012/08/15 13:09:25 |       at org.mortbay.jetty.webapp.WebAppContext.doStart(WebAppContext.java:489)
INFO   | jvm 1    | 2012/08/15 13:09:25 |       at org.mortbay.component.AbstractLifeCycle.start(AbstractLifeCycle.java:50)
INFO   | jvm 1    | 2012/08/15 13:09:25 |       at org.mortbay.jetty.handler.HandlerWrapper.doStart(HandlerWrapper.java:130)
INFO   | jvm 1    | 2012/08/15 13:09:25 |       at org.mortbay.jetty.Server.doStart(Server.java:224)
INFO   | jvm 1    | 2012/08/15 13:09:25 |       at org.mortbay.component.AbstractLifeCycle.start(AbstractLifeCycle.java:50)
INFO   | jvm 1    | 2012/08/15 13:09:25 |       at org.sonar.application.JettyEmbedder.start(JettyEmbedder.java:72)
INFO   | jvm 1    | 2012/08/15 13:09:25 |       at org.sonar.application.StartServer.main(StartServer.java:48)
INFO   | jvm 1    | 2012/08/15 13:09:25 |       at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
INFO   | jvm 1    | 2012/08/15 13:09:25 |       at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
INFO   | jvm 1    | 2012/08/15 13:09:25 |       at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
INFO   | jvm 1    | 2012/08/15 13:09:25 |       at java.lang.reflect.Method.invoke(Method.java:601)
INFO   | jvm 1    | 2012/08/15 13:09:25 |       at org.tanukisoftware.wrapper.WrapperSimpleApp.run(WrapperSimpleApp.java:240)
INFO   | jvm 1    | 2012/08/15 13:09:25 |       at java.lang.Thread.run(Thread.java:722)
INFO   | jvm 1    | 2012/08/15 13:09:25 | 2012-08-15 13:09:25.808:WARN:/:Error: application initialization failed
INFO   | jvm 1    | 2012/08/15 13:09:25 | org.jruby.rack.RackInitializationException: unable to create shared application instance
INFO   | jvm 1    | 2012/08/15 13:09:25 |       at org.jruby.rack.SharedRackApplicationFactory.init(SharedRackApplicationFactory.java:39)
INFO   | jvm 1    | 2012/08/15 13:09:25 |       at org.jruby.rack.RackServletContextListener.contextInitialized(RackServletContextListener.java:40)
INFO   | jvm 1    | 2012/08/15 13:09:25 |       at org.mortbay.jetty.handler.ContextHandler.startContext(ContextHandler.java:548)
INFO   | jvm 1    | 2012/08/15 13:09:25 |       at org.mortbay.jetty.servlet.Context.startContext(Context.java:136)
INFO   | jvm 1    | 2012/08/15 13:09:25 |       at org.mortbay.jetty.webapp.WebAppContext.startContext(WebAppContext.java:1272)
INFO   | jvm 1    | 2012/08/15 13:09:25 |       at org.mortbay.jetty.handler.ContextHandler.doStart(ContextHandler.java:517)
INFO   | jvm 1    | 2012/08/15 13:09:25 |       at org.mortbay.jetty.webapp.WebAppContext.doStart(WebAppContext.java:489)
INFO   | jvm 1    | 2012/08/15 13:09:25 |       at org.mortbay.component.AbstractLifeCycle.start(AbstractLifeCycle.java:50)
INFO   | jvm 1    | 2012/08/15 13:09:25 |       at org.mortbay.jetty.handler.HandlerWrapper.doStart(HandlerWrapper.java:130)
INFO   | jvm 1    | 2012/08/15 13:09:25 |       at org.mortbay.jetty.Server.doStart(Server.java:224)
INFO   | jvm 1    | 2012/08/15 13:09:25 |       at org.mortbay.component.AbstractLifeCycle.start(AbstractLifeCycle.java:50)
INFO   | jvm 1    | 2012/08/15 13:09:25 |       at org.sonar.application.JettyEmbedder.start(JettyEmbedder.java:72)
INFO   | jvm 1    | 2012/08/15 13:09:25 |       at org.sonar.application.StartServer.main(StartServer.java:48)
INFO   | jvm 1    | 2012/08/15 13:09:25 |       at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
INFO   | jvm 1    | 2012/08/15 13:09:25 |       at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
INFO   | jvm 1    | 2012/08/15 13:09:25 |       at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
INFO   | jvm 1    | 2012/08/15 13:09:25 |       at java.lang.reflect.Method.invoke(Method.java:601)
INFO   | jvm 1    | 2012/08/15 13:09:25 |       at org.tanukisoftware.wrapper.WrapperSimpleApp.run(WrapperSimpleApp.java:240)
INFO   | jvm 1    | 2012/08/15 13:09:25 |       at java.lang.Thread.run(Thread.java:722)
INFO   | jvm 1    | 2012/08/15 13:09:26 | 2012-08-15 13:09:25.956:INFO::Started SelectChannelConnector@0.0.0.0:9000

Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: fail to start up sonar as a service

MaxBernhardt
Hi Ronen,

searching in this mailing list, I found

http://sonar.15.n6.nabble.com/Sonar-MSSQL-DataBase-td4502142.html and http://sonar.15.n6.nabble.com/ANN-Release-Candidate-of-Sonar-3-2-td5001237.html.

The stacktraces look just like yours. Maybe you got an invalid DB connection configured as well ?

Cheers
Max
Loading...