RoR App Problem on Dreamhost

software development

#1

Hi guys,

We are having problems with getting our app to work properly
on dreamhost. We believe it may be something to do with a couple Gems that we’ve installed in our home directory (pdf-writer & fastercsv).

Our app works ok aside from a couple things.

  1. a problem with image locations. We are not sure where the root is set in the application on the server.
    Here is what happens in the log file when an image trys to load:
    =======================
    Processing UserController#royal.gif (for 68.146.184.91 at 2006-07-25
    21:16:30) [GET]
    Session ID: 20750595697a49c9affd7d7432818a4b
    Parameters: {“action”=>“royal.gif”, “controller”=>“user”}

ActionController::UnknownAction (No action responded to royal.gif):
/usr/lib/ruby/gems/1.8/gems/actionpack-
1.12.1/lib/action_controller/filters.rb:368:in
perform_action_without_benchmark' /usr/lib/ruby/gems/1.8/gems/actionpack- 1.12.1/lib/action_controller/benchmarking.rb:69:inperform_action_without_rescue’
/usr/lib/ruby/gems/1.8/gems/actionpack-
1.12.1/lib/action_controller/benchmarking.rb:69:in measure' /usr/lib/ruby/gems/1.8/gems/actionpack- 1.12.1/lib/action_controller/benchmarking.rb:69:inperform_action_without_rescue’
/usr/lib/ruby/gems/1.8/gems/actionpack-
1.12.1/lib/action_controller/rescue.rb:82:in perform_action' /usr/lib/ruby/gems/1.8/gems/actionpack- 1.12.1/lib/action_controller/base.rb:381:insend’
/usr/lib/ruby/gems/1.8/gems/actionpack-
1.12.1/lib/action_controller/base.rb:381:in process_without_filters' /usr/lib/ruby/gems/1.8/gems/actionpack- 1.12.1/lib/action_controller/filters.rb:377:inprocess_without_session_management_support’
/usr/lib/ruby/gems/1.8/gems/actionpack-
1.12.1/lib/action_controller/session_management.rb:117:in process' /usr/lib/ruby/gems/1.8/gems/rails-1.1.2/lib/dispatcher.rb:38:indispatch’
/usr/lib/ruby/gems/1.8/gems/rails-
1.1.2/lib/fcgi_handler.rb:150:in process_request' /usr/lib/ruby/gems/1.8/gems/rails- 1.1.2/lib/fcgi_handler.rb:54:inprocess!’
/usr/lib/ruby/gems/1.8/gems/rails-
1.1.2/lib/fcgi_handler.rb:53:in each_cgi' /usr/lib/ruby/1.8/fcgi.rb:597:ineach’
/usr/lib/ruby/1.8/fcgi.rb:597:in each_cgi' /usr/lib/ruby/gems/1.8/gems/rails- 1.1.2/lib/fcgi_handler.rb:53:inprocess!’
/usr/lib/ruby/gems/1.8/gems/rails-
1.1.2/lib/fcgi_handler.rb:23:in `process!'
dispatch.fcgi:34

Also this error may relate to the same problem:

Processing UserController#login (for 68.146.184.91 at 2006-07-25
21:16:10) [GET]
Session ID: 20750595697a49c9affd7d7432818a4b
Parameters: {“action”=>“login”, “controller”=>“user”}
Rendering within layouts/auth
Rendering user/login
Completed in 0.00752 (132 reqs/sec) | Rendering: 0.00727 (96%) | DB:
0.00000 (0%) | 200 OK
[secure.oursite.com/user/login]

Processing Base#index (for 68.146.184.91 at 2006-07-25 21:16:29)
[GET]
Session ID: 20750595697a49c9affd7d7432818a4b
Parameters: {}

ActionController::RoutingError (Recognition failed
for “/javascripts/corners.js”):
/usr/lib/ruby/gems/1.8/gems/actionpack-
1.12.1/lib/action_controller/routing.rb:488:in recognition_failed' /usr/lib/ruby/gems/1.8/gems/actionpack- 1.12.1/lib/action_controller/routing.rb:478:inrecognize!’
/usr/lib/ruby/gems/1.8/gems/rails-1.1.2/lib/dispatcher.rb:38:in
dispatch' /usr/lib/ruby/gems/1.8/gems/rails- 1.1.2/lib/fcgi_handler.rb:150:inprocess_request’
/usr/lib/ruby/gems/1.8/gems/rails-
1.1.2/lib/fcgi_handler.rb:54:in process!' /usr/lib/ruby/gems/1.8/gems/rails- 1.1.2/lib/fcgi_handler.rb:53:ineach_cgi’
/usr/lib/ruby/1.8/fcgi.rb:597:in each' /usr/lib/ruby/1.8/fcgi.rb:597:ineach_cgi’
/usr/lib/ruby/gems/1.8/gems/rails-
1.1.2/lib/fcgi_handler.rb:53:in process!' /usr/lib/ruby/gems/1.8/gems/rails- 1.1.2/lib/fcgi_handler.rb:23:inprocess!'
dispatch.fcgi:34

Please help with that.

But more importantly… several of our views cannot be accessed altogether and generate this message:

“Application Error (Rails)”

The log file shows this:

Processing Base#index (for 204.191.236.73 at 2006-07-25 21:24:25)
[GET]
Session ID: 176acc43fe1f42360f5a42363a14c3a7
Parameters: {}

MissingSourceFile (no such file to load – pdf/writer):
/usr/local/lib/site_ruby/1.8/rubygems/custom_require.rb:27:in
gem_original_require' /usr/local/lib/site_ruby/1.8/rubygems/custom_require.rb:27:inrequire’
/usr/lib/ruby/gems/1.8/gems/activesupport-
1.3.1/lib/active_support/dependencies.rb:147:in require' /app/controllers/agreements_controller.rb:4 /usr/local/lib/site_ruby/1.8/rubygems/custom_require.rb:27:ingem_original_require’
/usr/local/lib/site_ruby/1.8/rubygems/custom_require.rb:27:in
require' /usr/lib/ruby/gems/1.8/gems/activesupport- 1.3.1/lib/active_support/dependencies.rb:147:inrequire’
/usr/lib/ruby/gems/1.8/gems/activesupport-
1.3.1/lib/active_support/dependencies.rb:65:in require_or_load' /usr/lib/ruby/gems/1.8/gems/activesupport- 1.3.1/lib/active_support/dependencies.rb:30:independ_on’
/usr/lib/ruby/gems/1.8/gems/activesupport-
1.3.1/lib/active_support/dependencies.rb:85:in require_dependency' /usr/lib/ruby/gems/1.8/gems/activesupport- 1.3.1/lib/active_support/dependencies.rb:85:inrequire_dependency’
/usr/lib/ruby/gems/1.8/gems/activesupport-
1.3.1/lib/active_support/dependencies.rb:98:in const_missing' /usr/lib/ruby/gems/1.8/gems/activesupport- 1.3.1/lib/active_support/dependencies.rb:131:inconst_missing’
/usr/lib/ruby/gems/1.8/gems/actionpack-
1.12.1/lib/action_controller/routing.rb:237:in
traverse_to_controller' generated/routing/recognition.rb:7:ineval’
/usr/lib/ruby/gems/1.8/gems/actionpack-
1.12.1/lib/action_controller/routing.rb:237:in
traverse_to_controller' generated/routing/recognition.rb:7:inrecognize_path’
/usr/lib/ruby/gems/1.8/gems/actionpack-
1.12.1/lib/action_controller/routing.rb:477:in recognize!' /usr/lib/ruby/gems/1.8/gems/rails-1.1.2/lib/dispatcher.rb:38:indispatch’
/usr/lib/ruby/gems/1.8/gems/rails-
1.1.2/lib/fcgi_handler.rb:150:in process_request' /usr/lib/ruby/gems/1.8/gems/rails- 1.1.2/lib/fcgi_handler.rb:54:inprocess!’
/usr/lib/ruby/gems/1.8/gems/rails-
1.1.2/lib/fcgi_handler.rb:53:in each_cgi' /usr/lib/ruby/1.8/fcgi.rb:597:ineach’
/usr/lib/ruby/1.8/fcgi.rb:597:in each_cgi' /usr/lib/ruby/gems/1.8/gems/rails- 1.1.2/lib/fcgi_handler.rb:53:inprocess!’
/usr/lib/ruby/gems/1.8/gems/rails-
1.1.2/lib/fcgi_handler.rb:23:in `process!'
dispatch.fcgi:34

Thank you in advance for your assistance!


#2

did you freeze it first?