Another ruby on rails issue

gagowen
Posts: 3
Joined: Fri May 21, 2010 11:22 am

Another ruby on rails issue

Postby gagowen » Tue Jun 08, 2010 5:55 am

Hi
I have studied all replies in the forum and I have also tried the various 'fixes' but after days of effort I still get the following screen when accessing http://hda. Can someone please help I need to get some sleep.


* Phusion Passenger

Ruby on Rails 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.

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 -- pluginfactory (MissingSourceFile)
Exception class:
PhusionPassenger::UnknownError
Application root:
/var/hda/platform/html
Backtrace:
# File Line Location
0 /usr/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb 31 in `gem_original_require'
1 /usr/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb 31 in `require'
2 /usr/lib/ruby/gems/1.8/gems/activesupport-2.3.4/lib/active_support/dependencies.rb 158 in `require'
3 /var/hda/platform/html/lib/router-driver.rb 19
4 /usr/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb 31 in `gem_original_require'
5 /usr/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb 31 in `require'
6 /usr/lib/ruby/gems/1.8/gems/activesupport-2.3.4/lib/active_support/dependencies.rb 158 in `require'
7 /var/hda/platform/html/app/models/firewall.rb 17
8 /usr/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb 31 in `gem_original_require'
9 /usr/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb 31 in `require'
10 /usr/lib/ruby/gems/1.8/gems/activesupport-2.3.4/lib/active_support/dependencies.rb 158 in `require'
11 /usr/lib/ruby/gems/1.8/gems/activesupport-2.3.4/lib/active_support/dependencies.rb 265 in `require_or_load'
12 /usr/lib/ruby/gems/1.8/gems/activesupport-2.3.4/lib/active_support/dependencies.rb 224 in `depend_on'
13 /usr/lib/ruby/gems/1.8/gems/activesupport-2.3.4/lib/active_support/dependencies.rb 136 in `require_dependency'
14 /usr/lib/ruby/gems/1.8/gems/rails-2.3.4/lib/initializer.rb 414 in `load_application_classes'
15 /usr/lib/ruby/gems/1.8/gems/rails-2.3.4/lib/initializer.rb 413 in `each'
16 /usr/lib/ruby/gems/1.8/gems/rails-2.3.4/lib/initializer.rb 413 in `load_application_classes'
17 /usr/lib/ruby/gems/1.8/gems/rails-2.3.4/lib/initializer.rb 411 in `each'
18 /usr/lib/ruby/gems/1.8/gems/rails-2.3.4/lib/initializer.rb 411 in `load_application_classes'
19 /usr/lib/ruby/gems/1.8/gems/rails-2.3.4/lib/initializer.rb 197 in `process'
20 /usr/lib/ruby/gems/1.8/gems/rails-2.3.4/lib/initializer.rb 113 in `send'
21 /usr/lib/ruby/gems/1.8/gems/rails-2.3.4/lib/initializer.rb 113 in `run'
22 /var/hda/platform/html/config/environment.rb 9
23 /usr/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb 31 in `gem_original_require'
24 /usr/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb 31 in `require'
25 /usr/lib/ruby/gems/1.8/gems/passenger-2.2.11/lib/phusion_passenger/railz/application_spawner.rb 303 in `preload_application'
26 /usr/lib/ruby/gems/1.8/gems/passenger-2.2.11/lib/phusion_passenger/railz/application_spawner.rb 252 in `initialize_server'
27 /usr/lib/ruby/gems/1.8/gems/passenger-2.2.11/lib/phusion_passenger/utils.rb 255 in `report_app_init_status'
28 /usr/lib/ruby/gems/1.8/gems/passenger-2.2.11/lib/phusion_passenger/railz/application_spawner.rb 237 in `initialize_server'
29 /usr/lib/ruby/gems/1.8/gems/passenger-2.2.11/lib/phusion_passenger/abstract_server.rb 194 in `start_synchronously'
30 /usr/lib/ruby/gems/1.8/gems/passenger-2.2.11/lib/phusion_passenger/abstract_server.rb 163 in `start'
31 /usr/lib/ruby/gems/1.8/gems/passenger-2.2.11/lib/phusion_passenger/railz/application_spawner.rb 213 in `start'
32 /usr/lib/ruby/gems/1.8/gems/passenger-2.2.11/lib/phusion_passenger/spawn_manager.rb 262 in `spawn_rails_application'
33 /usr/lib/ruby/gems/1.8/gems/passenger-2.2.11/lib/phusion_passenger/abstract_server_collection.rb 126 in `lookup_or_add'
34 /usr/lib/ruby/gems/1.8/gems/passenger-2.2.11/lib/phusion_passenger/spawn_manager.rb 256 in `spawn_rails_application'
35 /usr/lib/ruby/gems/1.8/gems/passenger-2.2.11/lib/phusion_passenger/abstract_server_collection.rb 80 in `synchronize'
36 /usr/lib/ruby/gems/1.8/gems/passenger-2.2.11/lib/phusion_passenger/abstract_server_collection.rb 79 in `synchronize'
37 /usr/lib/ruby/gems/1.8/gems/passenger-2.2.11/lib/phusion_passenger/spawn_manager.rb 255 in `spawn_rails_application'
38 /usr/lib/ruby/gems/1.8/gems/passenger-2.2.11/lib/phusion_passenger/spawn_manager.rb 154 in `spawn_application'
39 /usr/lib/ruby/gems/1.8/gems/passenger-2.2.11/lib/phusion_passenger/spawn_manager.rb 287 in `handle_spawn_application'
40 /usr/lib/ruby/gems/1.8/gems/passenger-2.2.11/lib/phusion_passenger/abstract_server.rb 352 in `__send__'
41 /usr/lib/ruby/gems/1.8/gems/passenger-2.2.11/lib/phusion_passenger/abstract_server.rb 352 in `main_loop'
42 /usr/lib/ruby/gems/1.8/gems/passenger-2.2.11/lib/phusion_passenger/abstract_server.rb 196 in `start_synchronously'
43 /usr/lib/phusion_passenger/passenger-spawn-server

User avatar
bigfoot65
Project Manager
Posts: 11924
Joined: Mon May 25, 2009 4:31 pm

Re: Another ruby on rails issue

Postby bigfoot65 » Tue Jun 08, 2010 9:58 am

Sorry to hear you are having issues. Have to tried some of the options listed in this post (http://forums.amahi.org/viewtopic.php?f ... ruby+rails)?

I cannot be of much help, but maybe searching the forums might yield an answer. If not, I am sure our ruby experts will reply soon.
ßîgƒσστ65
Applications Manager

My HDA: Intel(R) Core(TM) i5-3570K CPU @ 3.40GHz on MSI board, 16GB RAM, 1TBx1+2TBx2+4TBx2

User avatar
cale250
Posts: 33
Joined: Wed May 19, 2010 6:56 pm
Location: US of A
Contact:

Re: Another ruby on rails issue

Postby cale250 » Tue Jun 08, 2010 10:37 am

Try running the following commands as root in a terminal (su root):

gem install pluginfactory
gem install rack -v=1.0.0

If it gives any more errors past that, go ahead and post here again. The Fedora version of Passenger sometimes needs an edit or two.

gagowen
Posts: 3
Joined: Fri May 21, 2010 11:22 am

Re: Another ruby on rails issue

Postby gagowen » Tue Jun 08, 2010 11:38 am

Thank you so much for your replies guys and a really big thank you to cale250, your suggestion did the trick. I can get somw sleep tonight :D

rhubarb
Posts: 54
Joined: Wed May 05, 2010 1:59 pm

Re: Another ruby on rails issue

Postby rhubarb » Wed Jun 09, 2010 4:55 am

I am an Amahi noob. One of my failed attempts to setup my Amahi server also gave some kind of Phusion Passenger error that I never managed to solve (except by reinstalling from scratch)

what was annoying was that there was no good error text in all the logged info.

since fault tracing these days mosty involves googling the error text, it is very important that a good error text is
* available
* easy to find
* easy to understand
* easy to google

Peter

User avatar
cpg
Administrator
Posts: 2618
Joined: Wed Dec 03, 2008 7:40 am
Contact:

Re: Another ruby on rails issue

Postby cpg » Wed Jun 09, 2010 10:42 am

Over time, we have been learning how to make Amahi install more and more reliably.

We protect against dozens of failure scenarios.

However, we still depend on one - the "gem" repos being present, so that pluginfactory, sinatra and perhaps other things are installed when needed. (Gems are the way ruby libraries are packaged)

Well, the gem repos vanished in the last three days, that is why we're seeing such a high incident rate of ruby/phusion errors.

Apologies for not protecting against that. In the past we have tried to package these gems ourselves, however, it's not easy in a few cases. We will have to try harder.
My HDA: Intel(R) Core(TM) i5-3570K CPU @ 3.40GHz on MSI board, 8GB RAM, 1TBx2+3TBx1

Who is online

Users browsing this forum: No registered users and 54 guests