Project

General

Profile

Bug #648

Internal Server Error 500 Storage tab Amahi Plug Edition 0.10d

Added by SolaR almost 10 years ago. Updated almost 10 years ago.

Status:
New
Priority:
Normal
Assignee:
-
Category:
-
Target version:
-
Start date:
10/06/2010
Due date:
% Done:

0%


Description

After some idle time I wanted to go to the Storage settings tab.

Amahi gave me an internal server error.

Log of the problem:

Processing SetupController#index (for 10.0.0.102 at 2010-10-06 17:28:35) [GET]
  Parameters: {"sub"=>"partitions", "action"=>"index", "controller"=>"setup", "tab"=>"storage"}

NoMethodError (private method `gsub' called for nil:NilClass):
  lib/disk-utils.rb:44:in `info'
  lib/disk-utils.rb:41:in `each'
  lib/disk-utils.rb:41:in `info'
  app/controllers/setup_controller.rb:52:in `index'
  passenger (2.2.11) lib/phusion_passenger/rack/request_handler.rb:92:in `process_request'
  passenger (2.2.11) lib/phusion_passenger/abstract_request_handler.rb:207:in `main_loop'
  passenger (2.2.11) lib/phusion_passenger/railz/application_spawner.rb:418:in `start_request_handler'
  passenger (2.2.11) lib/phusion_passenger/railz/application_spawner.rb:358:in `handle_spawn_application'
  passenger (2.2.11) lib/phusion_passenger/utils.rb:184:in `safe_fork'
  passenger (2.2.11) lib/phusion_passenger/railz/application_spawner.rb:354:in `handle_spawn_application'
  passenger (2.2.11) lib/phusion_passenger/abstract_server.rb:352:in `__send__'
  passenger (2.2.11) lib/phusion_passenger/abstract_server.rb:352:in `main_loop'
  passenger (2.2.11) lib/phusion_passenger/abstract_server.rb:196:in `start_synchronously'
  passenger (2.2.11) lib/phusion_passenger/abstract_server.rb:163:in `start'
  passenger (2.2.11) lib/phusion_passenger/railz/application_spawner.rb:213:in `start'
  passenger (2.2.11) lib/phusion_passenger/spawn_manager.rb:262:in `spawn_rails_application'
  passenger (2.2.11) lib/phusion_passenger/abstract_server_collection.rb:126:in `lookup_or_add'
  passenger (2.2.11) lib/phusion_passenger/spawn_manager.rb:256:in `spawn_rails_application'
  passenger (2.2.11) lib/phusion_passenger/abstract_server_collection.rb:80:in `synchronize'
  passenger (2.2.11) lib/phusion_passenger/abstract_server_collection.rb:79:in `synchronize'
  passenger (2.2.11) lib/phusion_passenger/spawn_manager.rb:255:in `spawn_rails_application'
  passenger (2.2.11) lib/phusion_passenger/spawn_manager.rb:154:in `spawn_application'
  passenger (2.2.11) lib/phusion_passenger/spawn_manager.rb:287:in `handle_spawn_application'
  passenger (2.2.11) lib/phusion_passenger/abstract_server.rb:352:in `__send__'
  passenger (2.2.11) lib/phusion_passenger/abstract_server.rb:352:in `main_loop'
  passenger (2.2.11) lib/phusion_passenger/abstract_server.rb:196:in `start_synchronously'
  /usr/lib/phusion_passenger/passenger-spawn-server:61

Rendering /var/hda/platform/html/public/500.html (500 Internal Server Error)

History

#1 Updated by cpg almost 10 years ago

what hda-platform is it running at that moment?

this one has fixes in this area and i think it will help:

http://alpha.amahi.org/tmp/hda-platform-5.5.1-22.noarch.rpm

#2 Updated by SolaR almost 10 years ago

After install (so default) version of hda-platform is:

hda-platform-5.5.1-7.noarch

Output of mount:

/dev/root on / type nfs (rw)
proc on /proc type proc (rw)
sysfs on /sys type sysfs (rw)
devpts on /dev/pts type devpts (rw,gid=5,mode=620)
tmpfs on /dev/shm type tmpfs (rw)

Output of df -h:

Filesystem            Size  Used Avail Use% Mounted on
/dev/root             7.0G  948M  5.7G  15% /
tmpfs                 251M  136K  251M   1% /dev/shm

#3 Updated by gboudreau almost 10 years ago

I'm guessing this happens because you have no partition, not even / (which is nfs!?), that can be added to the storage pool.

#4 Updated by cpg almost 10 years ago

SolaR, your're killing me. does that rpm help or not?

#5 Updated by SolaR almost 10 years ago

cpg, i've installed http://alpha.amahi.org/tmp/hda-platform-5.5.1-23.noarch.rpm which does not help. Still getting the same error.

@gboudreau: don't know why it's saying nfs. It's just an USB stick installed with the default plug install script.

The weird thing is that it did work on the first boot. Everything was fine (the "storage pool" tab worked fine too and showed the USB root partition, which i did not add to a pool). Then I installed both rpmfusion repos and after that it was giving this error.

I'll try uninstalling the repos tomorrow and see if that helps.

#6 Updated by cpg almost 10 years ago

Please don't. Debugging is the only sane way. Trying things will just be a lot of work with uncertain outcome.

We ened the new error trace, as lib/disk-utils.rb has changed and line 44 may have changed.

Since this is a library, you can run it independenrly with irb:

cd /var/hda/platform/html/lib
irb

require 'disk-utils'
d = DiskUtils.info

Also available in: Atom