Dreamhost launch issues. What gems are used in my rails app?

Hi guys,

I made a quick app for a family member to be deployed on Dreamhost (low
budget). It’s my first time deploying on DH so I’m not familiar with the
restrictions.

I’m having an issue where I’ve been able to get git on both systems and
used capistrano to deploy the app. However migrations fail. I also tried
exporting my local staging mysql schema and importing it on the DH mysql
database for production (same schema) and the site still fails to load.

The only thing I can think of at the moment is that it is a gem issue. I
haven’t used any gems knowingly, I’ve only used plugins (authlogic,
enum-column, paperclip, searchlogic, and will_paginate). However, some
of these may use plugins (may) use gems. Anyone know of a way to get
this info easily?

OR… maybe it has nothing to do with gems?? Here is the passenger error
page just in case, Any help is appreciated!!:

A source file that the application requires, is missing.
It is possible that you didn’t upload your application files correctly.
Please check whether all your application files are uploaded.
A required library may not installed. Please install all libraries that
this application requires.
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:
no such file to load – application (MissingSourceFile)
Exception class:
PhusionPassenger::UnknownError
Application root:
/home/[domain]/store.[domain].com/current
Backtrace:

File Line Location

0 /usr/local/lib/site_ruby/1.8/rubygems/custom_require.rb 31 in
gem_original_require' 1 /usr/local/lib/site_ruby/1.8/rubygems/custom_require.rb 31 inrequire’
2
/usr/lib/ruby/gems/1.8/gems/activesupport-2.2.2/lib/active_support/dependencies.rb
155 in require' 3 /usr/lib/ruby/gems/1.8/gems/activesupport-2.2.2/lib/active_support/dependencies.rb 262 inrequire_or_load’
4
/usr/lib/ruby/gems/1.8/gems/activesupport-2.2.2/lib/active_support/dependencies.rb
221 in depend_on' 5 /usr/lib/ruby/gems/1.8/gems/activesupport-2.2.2/lib/active_support/dependencies.rb 133 inrequire_dependency’
6
/usr/lib/ruby/gems/1.8/gems/actionpack-2.2.2/lib/action_controller/dispatcher.rb
18 in define_dispatcher_callbacks' 7 /usr/lib/ruby/gems/1.8/gems/activesupport-2.2.2/lib/active_support/callbacks.rb 182 incall’
8
/usr/lib/ruby/gems/1.8/gems/activesupport-2.2.2/lib/active_support/callbacks.rb
182 in evaluate_method' 9 /usr/lib/ruby/gems/1.8/gems/activesupport-2.2.2/lib/active_support/callbacks.rb 166 incall’
10
/usr/lib/ruby/gems/1.8/gems/activesupport-2.2.2/lib/active_support/callbacks.rb
90 in run' 11 /usr/lib/ruby/gems/1.8/gems/activesupport-2.2.2/lib/active_support/callbacks.rb 90 ineach’
12
/usr/lib/ruby/gems/1.8/gems/activesupport-2.2.2/lib/active_support/callbacks.rb
90 in send' 13 /usr/lib/ruby/gems/1.8/gems/activesupport-2.2.2/lib/active_support/callbacks.rb 90 inrun’
14
/usr/lib/ruby/gems/1.8/gems/activesupport-2.2.2/lib/active_support/callbacks.rb
277 in run_callbacks' 15 /usr/lib/ruby/gems/1.8/gems/rails-2.2.2/lib/initializer.rb 559 insend’
16 /usr/lib/ruby/gems/1.8/gems/rails-2.2.2/lib/initializer.rb 559 in
prepare_dispatcher' 17 /usr/lib/ruby/gems/1.8/gems/rails-2.2.2/lib/initializer.rb 173 inprocess’
18 /usr/lib/ruby/gems/1.8/gems/rails-2.2.2/lib/initializer.rb 112 in
send' 19 /usr/lib/ruby/gems/1.8/gems/rails-2.2.2/lib/initializer.rb 112 inrun’
20 ./config/environment.rb 9
21 /usr/local/lib/site_ruby/1.8/rubygems/custom_require.rb 31 in
gem_original_require' 22 /usr/local/lib/site_ruby/1.8/rubygems/custom_require.rb 31 inrequire’
23 /dh/passenger/lib/phusion_passenger/railz/application_spawner.rb
303 in preload_application' 24 /dh/passenger/lib/phusion_passenger/railz/application_spawner.rb 252 ininitialize_server’
25 /dh/passenger/lib/phusion_passenger/utils.rb 230 in
report_app_init_status' 26 /dh/passenger/lib/phusion_passenger/railz/application_spawner.rb 237 ininitialize_server’
27 /dh/passenger/lib/phusion_passenger/abstract_server.rb 193 in
start_synchronously' 28 /dh/passenger/lib/phusion_passenger/abstract_server.rb 162 instart’
29 /dh/passenger/lib/phusion_passenger/railz/application_spawner.rb
213 in start' 30 /dh/passenger/lib/phusion_passenger/spawn_manager.rb 261 inspawn_rails_application’
31 /dh/passenger/lib/phusion_passenger/abstract_server_collection.rb
126 in lookup_or_add' 32 /dh/passenger/lib/phusion_passenger/spawn_manager.rb 255 inspawn_rails_application’
33 /dh/passenger/lib/phusion_passenger/abstract_server_collection.rb
80 in synchronize' 34 /dh/passenger/lib/phusion_passenger/abstract_server_collection.rb 79 insynchronize’
35 /dh/passenger/lib/phusion_passenger/spawn_manager.rb 254 in
spawn_rails_application' 36 /dh/passenger/lib/phusion_passenger/spawn_manager.rb 153 inspawn_application’
37 /dh/passenger/lib/phusion_passenger/spawn_manager.rb 286 in
handle_spawn_application' 38 /dh/passenger/lib/phusion_passenger/abstract_server.rb 351 insend
39 /dh/passenger/lib/phusion_passenger/abstract_server.rb 351 in
main_loop' 40 /dh/passenger/lib/phusion_passenger/abstract_server.rb 195 instart_synchronously’
41 /dh/passenger/bin/passenger-spawn-server 61

Have you tried to run

rake gems:install

on the server to install all required gems?

Heinz S. wrote:

Have you tried to run

rake gems:install

on the server to install all required gems?

Yea tried that - there was nothing to install. I think I just figured
out what’s partly wrong. I had to install rails 2.3.3 on DH. Now I’m
getting a different error.

Thanks!

2009/9/23 Tony T. [email protected]:

database for production (same schema) and the site still fails to load.
page just in case, Any help is appreciated!!:
no such file to load – application (MissingSourceFile)
2
133 Â in require_dependency' /usr/lib/ruby/gems/1.8/gems/activesupport-2.2.2/lib/active_support/callbacks.rb 13 process’
18  /usr/lib/ruby/gems/1.8/gems/rails-2.2.2/lib/initializer.rb  112  in
send' 19  /usr/lib/ruby/gems/1.8/gems/rails-2.2.2/lib/initializer.rb  112  in run’
20  ./config/environment.rb  9

Did you see this? What is at line 9 in environment.rb?

Colin

Colin L. wrote:

2009/9/23 Tony T. [email protected]:

database for production (same schema) and the site still fails to load.
page just in case, Any help is appreciated!!:
no such file to load – application (MissingSourceFile)
2
133 Â in require_dependency' /usr/lib/ruby/gems/1.8/gems/activesupport-2.2.2/lib/active_support/callbacks.rb 13 process’
18  /usr/lib/ruby/gems/1.8/gems/rails-2.2.2/lib/initializer.rb  112  in
send' 19  /usr/lib/ruby/gems/1.8/gems/rails-2.2.2/lib/initializer.rb  112  in run’
20  ./config/environment.rb  9

Did you see this? What is at line 9 in environment.rb?

Colin

Hi Colin,

That line is “Rails::Initializer.run do |config|”. It probably had to do
with 2.3.3 not being installed and me trying to use 2.2.2.

Now I’m trying to see my log files but having zero log (their freaking
empty).

Thanks.

for migrations, have you tried running rake db:migrate
RAILS_ENV=production ? That may or may not work. As far as the plugins
go, you shouldnt need gems to make them work, or if you did you would
only get an error when trying to use them. I believe paperclip does
require ImageMagick though. You can see your gems if you type gem list
–local in your terminal. If you contact Dreamhost they’ll probably be
able to tell you more too.

The Ultimation wrote:

for migrations, have you tried running rake db:migrate
RAILS_ENV=production ? That may or may not work. As far as the plugins
go, you shouldnt need gems to make them work, or if you did you would
only get an error when trying to use them. I believe paperclip does
require ImageMagick though. You can see your gems if you type gem list
–local in your terminal. If you contact Dreamhost they’ll probably be
able to tell you more too.

Ultimation,

Thanks for the reply. Tried it with no luck. Waiting on DH to get back
to me. Thanks again!