Problems with Rails 4 app into Bluehost

227 views
Skip to first unread message

Hernán Albano

unread,
Mar 5, 2015, 12:32:57 PM3/5/15
to phusion-...@googlegroups.com
Hi all, 

I'm facing some problems launching my rails app hosted on bluehost. 

I think that the problem is the passenger version interacting with the rails 4 app but I'm not sure.

When I laucnh my app I get this trace: 


Ruby (Rack) application could not be started

These are the possible causes:
  • There may be a syntax error in the application's code. Please check for such errors and fix them.
  • A required library may not installed. Please install all libraries that this application requires.
  • The application may not be properly configured. Please check whether all configuration files are written correctly, fix any incorrect configurations, and restart this application.
  • A service that the application relies on (such as the database server or the Ferret search engine server) may not have been started. Please start that service.
Further information about the error may have been written to the application's log file. Please check it in order to analyse the problem.
Error message:
Could not initialize MySQL client library
Exception class:
RuntimeError
Application root:
/home5/barracam/rails_apps/admin/admin
Backtrace:
#FileLineLocation
0/home5/barracam/ruby/gems/gems/mysql2-0.3.18/lib/mysql2.rb31in `require'
1/home5/barracam/ruby/gems/gems/mysql2-0.3.18/lib/mysql2.rb31in `'
2/usr/lib64/ruby/gems/1.9.3/gems/bundler-1.3.5/lib/bundler/runtime.rb72in `require'
3/usr/lib64/ruby/gems/1.9.3/gems/bundler-1.3.5/lib/bundler/runtime.rb72in `block (2 levels) in require'
4/usr/lib64/ruby/gems/1.9.3/gems/bundler-1.3.5/lib/bundler/runtime.rb70in `each'
5/usr/lib64/ruby/gems/1.9.3/gems/bundler-1.3.5/lib/bundler/runtime.rb70in `block in require'
6/usr/lib64/ruby/gems/1.9.3/gems/bundler-1.3.5/lib/bundler/runtime.rb59in `each'
7/usr/lib64/ruby/gems/1.9.3/gems/bundler-1.3.5/lib/bundler/runtime.rb59in `require'
8/usr/lib64/ruby/gems/1.9.3/gems/bundler-1.3.5/lib/bundler.rb132in `require'
9/home5/barracam/rails_apps/admin/admin/config/application.rb7in `'
10/home5/barracam/rails_apps/admin/admin/config/environment.rb2in `require'
11/home5/barracam/rails_apps/admin/admin/config/environment.rb2in `'
12config.ru3in `require'
13config.ru3in `block in'
14/home5/barracam/ruby/gems/gems/rack-1.5.2/lib/rack/builder.rb55in `instance_eval'
15/home5/barracam/ruby/gems/gems/rack-1.5.2/lib/rack/builder.rb55in `initialize'
16config.ru1in `new'
17config.ru1in `'
18/etc/httpd/modules/passenger/lib/phusion_passenger/rack/application_spawner.rb225in `eval'
19/etc/httpd/modules/passenger/lib/phusion_passenger/rack/application_spawner.rb225in `load_rack_app'
20/etc/httpd/modules/passenger/lib/phusion_passenger/rack/application_spawner.rb157in `block in initialize_server'
21/etc/httpd/modules/passenger/lib/phusion_passenger/utils.rb563in `report_app_init_status'
22/etc/httpd/modules/passenger/lib/phusion_passenger/rack/application_spawner.rb154in `initialize_server'
23/etc/httpd/modules/passenger/lib/phusion_passenger/abstract_server.rb204in `start_synchronously'
24/etc/httpd/modules/passenger/lib/phusion_passenger/abstract_server.rb180in `start'
25/etc/httpd/modules/passenger/lib/phusion_passenger/rack/application_spawner.rb129in `start'
26/etc/httpd/modules/passenger/lib/phusion_passenger/spawn_manager.rb253in `block (2 levels) in spawn_rack_application'
27/etc/httpd/modules/passenger/lib/phusion_passenger/abstract_server_collection.rb132in `lookup_or_add'
28/etc/httpd/modules/passenger/lib/phusion_passenger/spawn_manager.rb246in `block in spawn_rack_application'
29/etc/httpd/modules/passenger/lib/phusion_passenger/abstract_server_collection.rb82in `block in synchronize'
30prelude>10:in `synchronize'
31/etc/httpd/modules/passenger/lib/phusion_passenger/abstract_server_collection.rb79in `synchronize'
32/etc/httpd/modules/passenger/lib/phusion_passenger/spawn_manager.rb244in `spawn_rack_application'
33/etc/httpd/modules/passenger/lib/phusion_passenger/spawn_manager.rb137in `spawn_application'
34/etc/httpd/modules/passenger/lib/phusion_passenger/spawn_manager.rb275in `handle_spawn_application'
35/etc/httpd/modules/passenger/lib/phusion_passenger/abstract_server.rb357in `server_main_loop'
36/etc/httpd/modules/passenger/lib/phusion_passenger/abstract_server.rb206in `start_synchronously'
37/etc/httpd/modules/passenger/helper-scripts/passenger-spawn-server99in `'
Powered by Phusion Passengermod_rails / mod_rack for Apache and Nginx.

I tried to run a rails 3 app and all works fine. What do you think about the problem?

Any help is really appreciated. 

André Camargo

unread,
Mar 5, 2015, 1:03:36 PM3/5/15
to phusion-...@googlegroups.com
hi, run bundle install

regards

andré ribeiro camargo
--
sócio proprietário
portaiseletronicos.com.br

--
You received this message because you are subscribed to the Google Groups "Phusion Passenger Discussions" group.
To unsubscribe from this group and stop receiving emails from it, send an email to phusion-passen...@googlegroups.com.
To post to this group, send email to phusion-...@googlegroups.com.
Visit this group at http://groups.google.com/group/phusion-passenger.
To view this discussion on the web visit https://groups.google.com/d/msgid/phusion-passenger/78df0ced-2341-4c1a-9426-47de56b8814b%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Hernán Albano

unread,
Mar 5, 2015, 1:53:55 PM3/5/15
to
Hi André, how are you? 

I had run bundle install with no luck. Even had tried: bundle install --without development test

The issue seems to be related with the MySQL gem or something like that. I had read that the pool size could be the problem, and also see that the passenger version in Bluehost is old to work with rails 4. 

Any additional idea?

Hongli Lai

unread,
Mar 5, 2015, 3:47:39 PM3/5/15
to phusion-passenger
Bluehost is running a very old version of Passenger, one that we no longer support. Please contact Bluehost for any support instead.

--
You received this message because you are subscribed to the Google Groups "Phusion Passenger Discussions" group.
To unsubscribe from this group and stop receiving emails from it, send an email to phusion-passen...@googlegroups.com.
To post to this group, send email to phusion-...@googlegroups.com.
Visit this group at http://groups.google.com/group/phusion-passenger.
To view this discussion on the web visit https://groups.google.com/d/msgid/phusion-passenger/78df0ced-2341-4c1a-9426-47de56b8814b%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.



--
Phusion | Web Application deployment, scaling, and monitoring solutions

Web: http://www.phusion.nl/
E-mail: in...@phusion.nl
Chamber of commerce no: 08173483 (The Netherlands)

Muzafar Ali

unread,
Apr 21, 2015, 2:40:40 PM4/21/15
to phusion-...@googlegroups.com
Hi..

Hope you are doing well..

I would like to know if you had any luck on the same issue? i'm also into same situation..!

Thanks.
Reply all
Reply to author
Forward
0 new messages