Though my hda was initially working flawlessly, Ruby on Rails does not start since a few weeks. This happened after one of my drives filled up to 99%, though it does not belong to the greyhole storage pool. So perhaps this is unrelated.
Anyhow, Rails does not start, so the control panel is inaccessible. I tried recommendations from several other posts such as reinstalling rails 2.3.4, removing rack 1.1.0 (I also tried removing 1.0.1 and keeping 1.1.0), reinstalling hda-platform. Nothing worked.
Now my error message (see below) is slightly different from other Ruby on Rails problems. The message suggests that the real problem lies with hda platform. However, I do not have the slightest idea how to solve this and I would prefer not to reinstall hda because of custom settings.
Any help? Please find the output of Phusion Passenger below.
Error message:
uninitialized class variable @@platform in Platform
Exception class:
NameError
Application root:
/var/hda/platform/html
Backtrace:# File Line Location
0 /var/hda/platform/html/app/models/platform.rb 83 in `set_platform'
1 /var/hda/platform/html/app/models/platform.rb 93
2 /usr/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb 31 in `gem_original_require'
3 /usr/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb 31 in `require'
4 /usr/lib/ruby/gems/1.8/gems/activesupport-2.3.4/lib/active_support/dependencies.rb 158 in `require'
5 /usr/lib/ruby/gems/1.8/gems/activesupport-2.3.4/lib/active_support/dependencies.rb 265 in `require_or_load'
6 /usr/lib/ruby/gems/1.8/gems/activesupport-2.3.4/lib/active_support/dependencies.rb 224 in `depend_on'
7 /usr/lib/ruby/gems/1.8/gems/activesupport-2.3.4/lib/active_support/dependencies.rb 136 in `require_dependency'
8 /usr/lib/ruby/gems/1.8/gems/rails-2.3.4/lib/initializer.rb 414 in `load_application_classes'
9 /usr/lib/ruby/gems/1.8/gems/rails-2.3.4/lib/initializer.rb 413 in `each'
10 /usr/lib/ruby/gems/1.8/gems/rails-2.3.4/lib/initializer.rb 413 in `load_application_classes'
11 /usr/lib/ruby/gems/1.8/gems/rails-2.3.4/lib/initializer.rb 411 in `each'
12 /usr/lib/ruby/gems/1.8/gems/rails-2.3.4/lib/initializer.rb 411 in `load_application_classes'
13 /usr/lib/ruby/gems/1.8/gems/rails-2.3.4/lib/initializer.rb 197 in `process'
14 /usr/lib/ruby/gems/1.8/gems/rails-2.3.4/lib/initializer.rb 113 in `send'
15 /usr/lib/ruby/gems/1.8/gems/rails-2.3.4/lib/initializer.rb 113 in `run'
16 /var/hda/platform/html/config/environment.rb 9
17 /usr/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb 31 in `gem_original_require'
18 /usr/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb 31 in `require'
19 /usr/lib/ruby/gems/1.8/gems/passenger-3.0.0/lib/phusion_passenger/classic_rails/application_spawner.rb 222 in `preload_application'
20 /usr/lib/ruby/gems/1.8/gems/passenger-3.0.0/lib/phusion_passenger/classic_rails/application_spawner.rb 181 in `initialize_server'
21 /usr/lib/ruby/gems/1.8/gems/passenger-3.0.0/lib/phusion_passenger/utils.rb 564 in `report_app_init_status'
22 /usr/lib/ruby/gems/1.8/gems/passenger-3.0.0/lib/phusion_passenger/classic_rails/application_spawner.rb 174 in `initialize_server'
23 /usr/lib/ruby/gems/1.8/gems/passenger-3.0.0/lib/phusion_passenger/abstract_server.rb 204 in `start_synchronously'
24 /usr/lib/ruby/gems/1.8/gems/passenger-3.0.0/lib/phusion_passenger/abstract_server.rb 180 in `start'
25 /usr/lib/ruby/gems/1.8/gems/passenger-3.0.0/lib/phusion_passenger/classic_rails/application_spawner.rb 149 in `start'
26 /usr/lib/ruby/gems/1.8/gems/passenger-3.0.0/lib/phusion_passenger/spawn_manager.rb 219 in `spawn_rails_application'
27 /usr/lib/ruby/gems/1.8/gems/passenger-3.0.0/lib/phusion_passenger/abstract_server_collection.rb 132 in `lookup_or_add'
28 /usr/lib/ruby/gems/1.8/gems/passenger-3.0.0/lib/phusion_passenger/spawn_manager.rb 214 in `spawn_rails_application'
29 /usr/lib/ruby/gems/1.8/gems/passenger-3.0.0/lib/phusion_passenger/abstract_server_collection.rb 82 in `synchronize'
30 /usr/lib/ruby/gems/1.8/gems/passenger-3.0.0/lib/phusion_passenger/abstract_server_collection.rb 79 in `synchronize'
31 /usr/lib/ruby/gems/1.8/gems/passenger-3.0.0/lib/phusion_passenger/spawn_manager.rb 213 in `spawn_rails_application'
32 /usr/lib/ruby/gems/1.8/gems/passenger-3.0.0/lib/phusion_passenger/spawn_manager.rb 132 in `spawn_application'
33 /usr/lib/ruby/gems/1.8/gems/passenger-3.0.0/lib/phusion_passenger/spawn_manager.rb 275 in `handle_spawn_application'
34 /usr/lib/ruby/gems/1.8/gems/passenger-3.0.0/lib/phusion_passenger/abstract_server.rb 357 in `__send__'
35 /usr/lib/ruby/gems/1.8/gems/passenger-3.0.0/lib/phusion_passenger/abstract_server.rb 357 in `server_main_loop'
36 /usr/lib/ruby/gems/1.8/gems/passenger-3.0.0/lib/phusion_passenger/abstract_server.rb 206 in `start_synchronously'
37 /usr/lib/ruby/gems/1.8/gems/passenger-3.0.0/helper-scripts/passenger-spawn-server 99
Ruby on Rails could not be started>class variable @@platform
Re: Ruby on Rails could not be started>class variable @@plat
If your root drive is full, this could be a result of that. Once you clear out some space, a restart might fix things.
ßîgƒσστ65
Applications Manager
My HDA: Intel(R) Core(TM) i5-3570K CPU @ 3.40GHz on MSI board, 16GB RAM, 1TBx1+2TBx2+4TBx2
Applications Manager
My HDA: Intel(R) Core(TM) i5-3570K CPU @ 3.40GHz on MSI board, 16GB RAM, 1TBx1+2TBx2+4TBx2
Re: Ruby on Rails could not be started>class variable @@plat
There is plenty of space in the root partition, and there always has been. Still Rails won't start, and I do not know how to solve it. The steps mentioned in several forum threads do not work here.
I am convinced the fault lies somewhere else, for example with the platform variable mentioned in the error message. Any help?
I am convinced the fault lies somewhere else, for example with the platform variable mentioned in the error message. Any help?
Re: Ruby on Rails could not be started>class variable @@plat
It is a bit frustrating to 'answer' my own post, but it seems no one can help out here.
To encourage anyone seeing this post to leave some advice, I will also add the output of 'gem list' below:
abstract (1.0.0)
actionmailer (2.3.4)
actionpack (2.3.4)
activemodel (3.0.7)
activerecord (2.3.4)
activeresource (2.3.4)
activesupport (2.3.4)
arel (2.1.0, 2.0.9)
builder (2.1.2)
bundler (1.0.13)
daemon_controller (0.2.6, 0.2.5)
erubis (2.7.0, 2.6.6)
fastthread (1.0.7)
file-tail (1.0.5)
gd2 (1.1.1)
gruff (0.3.6)
hoe (2.9.1)
i18n (0.5.0)
json (1.5.1, 1.4.3)
mail (2.2.19)
mime-types (1.16)
passenger (3.0.7, 3.0.0)
pluginfactory (1.0.7)
polyglot (0.3.1)
rack (1.0.1)
rack-mount (0.7.2, 0.6.14)
rack-test (0.5.7, 0.5.4)
rails (2.3.4)
railties (3.0.7)
rake (0.8.7)
rubyforge (2.0.4)
sinatra (1.2.6, 1.0)
spruz (0.2.6, 0.1.5)
thor (0.14.6)
tilt (1.3)
treetop (1.4.9)
tzinfo (0.3.27)
I hope this provides enough information for Linux cracks to solve this problem. Otherwise, I will probably have to uninstall Amahi and call it a day.
To encourage anyone seeing this post to leave some advice, I will also add the output of 'gem list' below:
abstract (1.0.0)
actionmailer (2.3.4)
actionpack (2.3.4)
activemodel (3.0.7)
activerecord (2.3.4)
activeresource (2.3.4)
activesupport (2.3.4)
arel (2.1.0, 2.0.9)
builder (2.1.2)
bundler (1.0.13)
daemon_controller (0.2.6, 0.2.5)
erubis (2.7.0, 2.6.6)
fastthread (1.0.7)
file-tail (1.0.5)
gd2 (1.1.1)
gruff (0.3.6)
hoe (2.9.1)
i18n (0.5.0)
json (1.5.1, 1.4.3)
mail (2.2.19)
mime-types (1.16)
passenger (3.0.7, 3.0.0)
pluginfactory (1.0.7)
polyglot (0.3.1)
rack (1.0.1)
rack-mount (0.7.2, 0.6.14)
rack-test (0.5.7, 0.5.4)
rails (2.3.4)
railties (3.0.7)
rake (0.8.7)
rubyforge (2.0.4)
sinatra (1.2.6, 1.0)
spruz (0.2.6, 0.1.5)
thor (0.14.6)
tilt (1.3)
treetop (1.4.9)
tzinfo (0.3.27)
I hope this provides enough information for Linux cracks to solve this problem. Otherwise, I will probably have to uninstall Amahi and call it a day.
Re: Ruby on Rails could not be started>class variable @@plat
I have removed Amahi and changed my server into a Vortexbox music server. I manually added Greyhole, so it doubles as a file server, and this really rocks.
Who is online
Users browsing this forum: No registered users and 23 guests