Rails 3 + Passenger: Rack Error

I get the following error that spontaneously popped up and crashed my site a few days ago. I am using Ruby 1.8.7, Rails 3.0.0, on a Dreamhost machine with Passenger. See this cached page for another description of the same problem.

Ruby (Rack) application could not be started. 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. Error message: no such file to load -- rack Exception class: LoadError Application root: [omitted] Backtrace: # File Line Location 0 /usr/lib/ruby/1.8/rubygems/custom_require.rb 31 in `gem_original_require' 1 /usr/lib/ruby/1.8/rubygems/custom_require.rb 31 in `require' 2 /dh/passenger/lib/phusion_passenger/rack/application_spawner.rb 139 in `load_rack_app' 3 /dh/passenger/lib/phusion_passenger/rack/application_spawner.rb 100 in `run' 4 /dh/passenger/lib/phusion_passenger/utils.rb 255 in `report_app_init_status' 5 /dh/passenger/lib/phusion_passenger/rack/application_spawner.rb 87 in `run' 6 /dh/passenger/lib/phusion_passenger/rack/application_spawner.rb 65 in `spawn_application' 7 /dh/passenger/lib/phusion_passenger/utils.rb 184 in `safe_fork' 8 /dh/passenger/lib/phusion_passenger/rack/application_spawner.rb 58 in `spawn_application' 9 /dh/passenger/lib/phusion_passenger/rack/application_spawner.rb 41 in `spawn_application' 10 /dh/passenger/lib/phusion_passenger/spawn_manager.rb 159 in `spawn_application' 11 /dh/passenger/lib/phusion_passenger/spawn_manager.rb 287 in `handle_spawn_application' 12 /dh/passenger/lib/phusion_passenger/abstract_server.rb 352 in `__send__' 13 /dh/passenger/lib/phusion_passenger/abstract_server.rb 352 in `main_loop' 14 /dh/passenger/lib/phusion_passenger/abstract_server.rb 196 in `start_synchronously' 15 /dh/passenger/bin/passenger-spawn-server 61 
+4
source share
3 answers

I also had the same issue with Dreamhost / Passenger / Rails. I sent a support request and received the following response. My sites are also up and running.


Thank you for contacting technical support. I apologize for the problems with this. Recently, the servers have been upgraded to Debian, as well as some updates regarding your installation. I went ahead and fixed the sites with errors, as some stones needed to be reinstalled.

I apologize for the problems with this. Please let me know if there is anything else that I can do for you and have a nice day.

+1
source

I had to go the same way. After applying for support support, I returned to the right track:

Thank you for contacting technical support. I apologize for the problems with your site. There seems to be a problem with your Gem rack. I went ahead and reinstalled Gem for you, and then redesigned your Rails application. Now your site is updated and working. :) I make sure that your images do not load. Doing some research on this, I see that the files do not exist in your resource folder. You will need to study this and get the downloaded files in order to solve this problem. question.:)

Please let me know if there is anything else that I can do for you and have a great day.

The problem with the image is not related to this.

0
source

I had the same problem, this is due to the correct bunch of my gems. The server searched for the required gems in /usr/lib/ruby/gems/1.8/ . Rerunning bundle install on the server fixed my problems. Hope this helps someone else as this issue seems to have many causes.

0
source

All Articles