Repair amahi after upgrade crash

reelradio
Posts: 1
Joined: Wed Jan 13, 2010 5:06 pm

Repair amahi after upgrade crash

Postby reelradio » Wed Jan 13, 2010 5:17 pm

I tried upgrading to amahi 5.1 from 5.0 using the graphical update manager, but my server crashed right in the middle of the process.

Now, when I try accessing my server via the web interface I get a "Ruby on Rails application could not be started" error message.

Is there a way to repair this?

Here's the rest of the message:
These are the possible causes:

*
There may be a syntax error in the application's code. Please check for such errors and fix them.
*
A required library may not installed. Please install all libraries that this application requires.
*
The application may not be properly configured. Please check whether all configuration files are written correctly, fix any incorrect configurations, and restart this application.
*
A service that the application relies on (such as the database server or the Ferret search engine server) may not have been started. Please start that service.

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:
undefined method `each' for false:FalseClass
Exception class:
NoMethodError
Application root:
/var/hda/platform/html
Backtrace:
# File Line Location
0 /usr/lib/ruby/gems/1.8/gems/activesupport-2.3.4/lib/active_support/vendor/i18n-0.1.3/lib/i18n/backend/simple.rb 177 in `load_file'
1 /usr/lib/ruby/gems/1.8/gems/activesupport-2.3.4/lib/active_support/vendor/i18n-0.1.3/lib/i18n/backend/simple.rb 13 in `load_translations'
2 /usr/lib/ruby/gems/1.8/gems/activesupport-2.3.4/lib/active_support/vendor/i18n-0.1.3/lib/i18n/backend/simple.rb 13 in `each'
3 /usr/lib/ruby/gems/1.8/gems/activesupport-2.3.4/lib/active_support/vendor/i18n-0.1.3/lib/i18n/backend/simple.rb 13 in `load_translations'
4 /usr/lib/ruby/gems/1.8/gems/activesupport-2.3.4/lib/active_support/vendor/i18n-0.1.3/lib/i18n/backend/simple.rb 85 in `init_translations'
5 /usr/lib/ruby/gems/1.8/gems/activesupport-2.3.4/lib/active_support/vendor/i18n-0.1.3/lib/i18n/backend/simple.rb 74 in `available_locales'
6 /usr/lib/ruby/gems/1.8/gems/activesupport-2.3.4/lib/active_support/vendor/i18n-0.1.3/lib/i18n.rb 50 in `available_locales'
7 /usr/lib/ruby/gems/1.8/gems/actionpack-2.3.4/lib/action_view/template.rb 220 in `valid_locale?'
8 /usr/lib/ruby/gems/1.8/gems/actionpack-2.3.4/lib/action_view/template.rb 237 in `parse_extensions'
9 /usr/lib/ruby/gems/1.8/gems/actionpack-2.3.4/lib/action_view/template.rb 227 in `split'
10 /usr/lib/ruby/gems/1.8/gems/actionpack-2.3.4/lib/action_view/template.rb 112 in `initialize'
11 /usr/lib/ruby/gems/1.8/gems/actionpack-2.3.4/lib/action_view/template.rb 87 in `new'
12 /usr/lib/ruby/gems/1.8/gems/actionpack-2.3.4/lib/action_view/template.rb 87 in `create_template'
13 /usr/lib/ruby/gems/1.8/gems/actionpack-2.3.4/lib/action_view/template.rb 82 in `templates_in_path'
14 /usr/lib/ruby/gems/1.8/gems/actionpack-2.3.4/lib/action_view/template.rb 81 in `each'
15 /usr/lib/ruby/gems/1.8/gems/actionpack-2.3.4/lib/action_view/template.rb 81 in `templates_in_path'
16 /usr/lib/ruby/gems/1.8/gems/actionpack-2.3.4/lib/action_view/template.rb 64 in `load!'
17 /usr/lib/ruby/gems/1.8/gems/activesupport-2.3.4/lib/active_support/core_ext/symbol.rb 11 in `__send__'
18 /usr/lib/ruby/gems/1.8/gems/activesupport-2.3.4/lib/active_support/core_ext/symbol.rb 11 in `to_proc'
19 /usr/lib/ruby/gems/1.8/gems/actionpack-2.3.4/lib/action_view/paths.rb 40 in `each'
20 /usr/lib/ruby/gems/1.8/gems/actionpack-2.3.4/lib/action_view/paths.rb 40 in `load!'
21 /usr/lib/ruby/gems/1.8/gems/rails-2.3.4/lib/initializer.rb 402 in `load_view_paths'
22 /usr/lib/ruby/gems/1.8/gems/rails-2.3.4/lib/initializer.rb 194 in `process'
23 /usr/lib/ruby/gems/1.8/gems/rails-2.3.4/lib/initializer.rb 113 in `send'
24 /usr/lib/ruby/gems/1.8/gems/rails-2.3.4/lib/initializer.rb 113 in `run'
25 /var/hda/platform/html/config/environment.rb 9
26 /usr/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb 31 in `gem_original_require'
27 /usr/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb 31 in `require'
28 /usr/lib/ruby/gems/1.8/gems/passenger-2.2.5/lib/phusion_passenger/railz/application_spawner.rb 303 in `preload_application'
29 /usr/lib/ruby/gems/1.8/gems/passenger-2.2.5/lib/phusion_passenger/railz/application_spawner.rb 252 in `initialize_server'
30 /usr/lib/ruby/gems/1.8/gems/passenger-2.2.5/lib/phusion_passenger/utils.rb 254 in `report_app_init_status'
31 /usr/lib/ruby/gems/1.8/gems/passenger-2.2.5/lib/phusion_passenger/railz/application_spawner.rb 237 in `initialize_server'
32 /usr/lib/ruby/gems/1.8/gems/passenger-2.2.5/lib/phusion_passenger/abstract_server.rb 194 in `start_synchronously'
33 /usr/lib/ruby/gems/1.8/gems/passenger-2.2.5/lib/phusion_passenger/abstract_server.rb 163 in `start'
34 /usr/lib/ruby/gems/1.8/gems/passenger-2.2.5/lib/phusion_passenger/railz/application_spawner.rb 213 in `start'
35 /usr/lib/ruby/gems/1.8/gems/passenger-2.2.5/lib/phusion_passenger/spawn_manager.rb 262 in `spawn_rails_application'
36 /usr/lib/ruby/gems/1.8/gems/passenger-2.2.5/lib/phusion_passenger/abstract_server_collection.rb 126 in `lookup_or_add'
37 /usr/lib/ruby/gems/1.8/gems/passenger-2.2.5/lib/phusion_passenger/spawn_manager.rb 256 in `spawn_rails_application'
38 /usr/lib/ruby/gems/1.8/gems/passenger-2.2.5/lib/phusion_passenger/abstract_server_collection.rb 80 in `synchronize'
39 /usr/lib/ruby/gems/1.8/gems/passenger-2.2.5/lib/phusion_passenger/abstract_server_collection.rb 79 in `synchronize'
40 /usr/lib/ruby/gems/1.8/gems/passenger-2.2.5/lib/phusion_passenger/spawn_manager.rb 255 in `spawn_rails_application'
41 /usr/lib/ruby/gems/1.8/gems/passenger-2.2.5/lib/phusion_passenger/spawn_manager.rb 154 in `spawn_application'
42 /usr/lib/ruby/gems/1.8/gems/passenger-2.2.5/lib/phusion_passenger/spawn_manager.rb 287 in `handle_spawn_application'
43 /usr/lib/ruby/gems/1.8/gems/passenger-2.2.5/lib/phusion_passenger/abstract_server.rb 352 in `__send__'
44 /usr/lib/ruby/gems/1.8/gems/passenger-2.2.5/lib/phusion_passenger/abstract_server.rb 352 in `main_loop'
45 /usr/lib/ruby/gems/1.8/gems/passenger-2.2.5/lib/phusion_passenger/abstract_server.rb 196 in `start_synchronously'
46 /usr/lib/ruby/gems/1.8/gems/passenger-2.2.5/bin/passenger-spawn-server 61
47 /usr/lib/phusion_passenger/passenger-spawn-server 19 in `load'
48 /usr/lib/phusion_passenger/passenger-spawn-server 19

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

Re: Repair amahi after upgrade crash

Postby cpg » Fri Jan 15, 2010 2:43 am

hmmmmmmm.

can you share the last 200 or 300 lines of this file

/var/hda/platform/html/log/production.log

immediately after the error occurs?

looks like it missed loading some translation. do you know what languages your browser takes?
you can tell from the user agent it uses.

if it portuguese/portugal, maybe you came across a bug, so please file a bug in that case.

did you try rebooting?

you can also try to install the package with brute force:

Code: Select all

rpm -Uvh --force http://f12.amahi.org/noarch/hda-platform-5.1-1.noarch.rpm
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: Google [Bot] and 10 guests