Project

General

Profile

Bug #217

storage tab crashes - permission denied

Added by cpg over 11 years ago. Updated about 10 years ago.

Status:
Closed
Priority:
Normal
Assignee:
Category:
-
Target version:
-
Start date:
05/27/2009
Due date:
% Done:

100%


Description

the error looks like this:

Errno::EACCES (Permission denied):
 lib/partition-utils.rb:67:in `syscall'
 lib/partition-utils.rb:67:in `disk_stats'
 lib/partition-utils.rb:35:in `initialize'
 app/controllers/setup_controller.rb:51:in `new'
 app/controllers/setup_controller.rb:51:in `index'

the user configuration is:

Filesystem            Size  Used Avail Use% Mounted on
/dev/mapper/vg_serversundaram-lv_root
                      75G  3.3G   68G   5% /
tmpfs                 249M     0  249M   0% /dev/shm
/dev/sda1             194M   39M  146M  21% /boot
/dev/sdb1             367G  325G   24G  94% /home/arun/500
/dev/sdc1             917G   73G  798G   9% /home/arun/1000
/dev/sdb2              92G  188M   87G   1% /home/arun/501

History

#1 Updated by cpg almost 11 years ago

  • Status changed from New to Closed

it's fixed

#2 Updated by cpg over 10 years ago

  • Subject changed from storage tab shows spinners - permission denied to storage tab crashes - permission denied
  • Status changed from Closed to Assigned
  • Assignee set to cpg

reopened and updated.

some user is also having a problem with this.

perhaps a mount issue?

thinking about what more data we need ...

#3 Updated by setdosa over 10 years ago

I ran it and this was the o/p.
ls -ld /home/arun/500 /home/arun/501 /home/arun/1000
drwxr-xr-x 10 arun arun 4096 2010-03-24 17:05 /home/arun/1000
drwxr-xr-x 14 arun arun 4096 2010-03-03 00:09 /home/arun/500
drwxr-xr-x 3 arun arun 4096 2008-03-22 22:21 /home/arun/501

The thing was I setup the external hdd in ubuntu. So I chown'ed to
arun:users
ls -ld /home/arun/500 /home/arun/501 /home/arun/1000
drwxr-xr-x 10 arun users 4096 2010-03-24 17:05 /home/arun/1000
drwxr-xr-x 14 arun users 4096 2010-03-03 00:09 /home/arun/500
drwxr-xr-x 3 arun users 4096 2008-03-22 22:21 /home/arun/501

but the error is still happening. Btw, they are all external USB HDD.

Processing UserSessionsController#create (for 10.8.0.6 at 2010-04-28 15:31:29) [POST]
Parameters: {"commit"=>"Log In", "action"=>"create", "authenticity_token"=>"YUX9QXRdkeYW7cr61HpdQpjbUIMd96dFdZPhrdZkbwY=", "username"=>"arun", "controller"=>"user_sessions", "password"=>"[FILTERED]"}
Redirected to http://hda.home.com/
Completed in 294ms (DB: 98) | 302 Found [http://hda.home.com/user_sessions]

Processing FrontController#index (for 10.8.0.6 at 2010-04-28 15:31:29) [GET]
Parameters: {"action"=>"index", "controller"=>"front"}
Rendering template within layouts/amahi
Rendering front/index
Completed in 649ms (View: 488, DB: 60) | 200 OK [http://hda.home.com/]

Processing SetupController#index (for 10.8.0.6 at 2010-04-28 15:37:38) [GET]
Parameters: {"action"=>"index", "controller"=>"setup"}
Rendering template within layouts/amahi
Rendering setup/index
Completed in 210ms (View: 107, DB: 67) | 200 OK [http://hda.home.com/setup]

Processing SetupController#index (for 10.8.0.6 at 2010-04-28 15:37:41) [GET]
Parameters: {"sub"=>"partitions", "action"=>"index", "controller"=>"setup", "tab"=>"storage"}

Errno::EACCES (Permission denied):
lib/partition-utils.rb:67:in `syscall'
lib/partition-utils.rb:67:in `disk_stats'
lib/partition-utils.rb:35:in `initialize'
app/controllers/setup_controller.rb:51:in `new'
app/controllers/setup_controller.rb:51:in `index'
passenger (2.2.5) lib/phusion_passenger/rack/request_handler.rb:95:in `process_request'
passenger (2.2.5) lib/phusion_passenger/abstract_request_handler.rb:207:in `main_loop'
passenger (2.2.5) lib/phusion_passenger/railz/application_spawner.rb:378:in `start_request_handler'
passenger (2.2.5) lib/phusion_passenger/railz/application_spawner.rb:336:in `handle_spawn_application'
passenger (2.2.5) lib/phusion_passenger/utils.rb:183:in `safe_fork'
passenger (2.2.5) lib/phusion_passenger/railz/application_spawner.rb:334:in `handle_spawn_application'
passenger (2.2.5) lib/phusion_passenger/abstract_server.rb:352:in `__send__'
passenger (2.2.5) lib/phusion_passenger/abstract_server.rb:352:in `main_loop'
passenger (2.2.5) lib/phusion_passenger/abstract_server.rb:196:in `start_synchronously'
passenger (2.2.5) lib/phusion_passenger/abstract_server.rb:163:in `start'
passenger (2.2.5) lib/phusion_passenger/railz/application_spawner.rb:213:in `start'
passenger (2.2.5) lib/phusion_passenger/spawn_manager.rb:262:in `spawn_rails_application'
passenger (2.2.5) lib/phusion_passenger/abstract_server_collection.rb:126:in `lookup_or_add'
passenger (2.2.5) lib/phusion_passenger/spawn_manager.rb:256:in `spawn_rails_application'
passenger (2.2.5) lib/phusion_passenger/abstract_server_collection.rb:80:in `synchronize'
passenger (2.2.5) lib/phusion_passenger/abstract_server_collection.rb:79:in `synchronize'
passenger (2.2.5) lib/phusion_passenger/spawn_manager.rb:255:in `spawn_rails_application'
passenger (2.2.5) lib/phusion_passenger/spawn_manager.rb:154:in `spawn_application'
passenger (2.2.5) lib/phusion_passenger/spawn_manager.rb:287:in `handle_spawn_application'
passenger (2.2.5) lib/phusion_passenger/abstract_server.rb:352:in `__send__'
passenger (2.2.5) lib/phusion_passenger/abstract_server.rb:352:in `main_loop'
passenger (2.2.5) lib/phusion_passenger/abstract_server.rb:196:in `start_synchronously'
/usr/lib/phusion_passenger/passenger-spawn-server:19:in `load'
/usr/lib/phusion_passenger/passenger-spawn-server:19

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

Processing SetupController#index (for 10.8.0.6 at 2010-04-28 15:37:45) [GET]
Parameters: {"action"=>"index", "controller"=>"setup", "tab"=>"debug"}
Rendering template within layouts/amahi
Rendering setup/index
Completed in 142ms (View: 74, DB: 51) | 200 OK [http://hda.home.com/setup?tab=debug]

Processing SetupController#index (for 10.8.0.6 at 2010-04-28 15:39:34) [GET]
Parameters: {"sub"=>"partitions", "action"=>"index", "controller"=>"setup", "tab"=>"storage"}

Errno::EACCES (Permission denied):
lib/partition-utils.rb:67:in `syscall'
lib/partition-utils.rb:67:in `disk_stats'
lib/partition-utils.rb:35:in `initialize'
app/controllers/setup_controller.rb:51:in `new'
app/controllers/setup_controller.rb:51:in `index'
passenger (2.2.5) lib/phusion_passenger/rack/request_handler.rb:95:in `process_request'
passenger (2.2.5) lib/phusion_passenger/abstract_request_handler.rb:207:in `main_loop'
passenger (2.2.5) lib/phusion_passenger/railz/application_spawner.rb:378:in `start_request_handler'
passenger (2.2.5) lib/phusion_passenger/railz/application_spawner.rb:336:in `handle_spawn_application'
passenger (2.2.5) lib/phusion_passenger/utils.rb:183:in `safe_fork'
passenger (2.2.5) lib/phusion_passenger/railz/application_spawner.rb:334:in `handle_spawn_application'
passenger (2.2.5) lib/phusion_passenger/abstract_server.rb:352:in `__send__'
passenger (2.2.5) lib/phusion_passenger/abstract_server.rb:352:in `main_loop'
passenger (2.2.5) lib/phusion_passenger/abstract_server.rb:196:in `start_synchronously'
passenger (2.2.5) lib/phusion_passenger/abstract_server.rb:163:in `start'
passenger (2.2.5) lib/phusion_passenger/railz/application_spawner.rb:213:in `start'
passenger (2.2.5) lib/phusion_passenger/spawn_manager.rb:262:in `spawn_rails_application'
passenger (2.2.5) lib/phusion_passenger/abstract_server_collection.rb:126:in `lookup_or_add'
passenger (2.2.5) lib/phusion_passenger/spawn_manager.rb:256:in `spawn_rails_application'
passenger (2.2.5) lib/phusion_passenger/abstract_server_collection.rb:80:in `synchronize'
passenger (2.2.5) lib/phusion_passenger/abstract_server_collection.rb:79:in `synchronize'
passenger (2.2.5) lib/phusion_passenger/spawn_manager.rb:255:in `spawn_rails_application'
passenger (2.2.5) lib/phusion_passenger/spawn_manager.rb:154:in `spawn_application'
passenger (2.2.5) lib/phusion_passenger/spawn_manager.rb:287:in `handle_spawn_application'
passenger (2.2.5) lib/phusion_passenger/abstract_server.rb:352:in `__send__'
passenger (2.2.5) lib/phusion_passenger/abstract_server.rb:352:in `main_loop'
passenger (2.2.5) lib/phusion_passenger/abstract_server.rb:196:in `start_synchronously'
/usr/lib/phusion_passenger/passenger-spawn-server:19:in `load'
/usr/lib/phusion_passenger/passenger-spawn-server:19

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

Arun

#4 Updated by gboudreau over 10 years ago

My guess is that the Ruby syscall fails for the LVM / volume you have, not for any of the /home/arun/* mounts.
I guess the system call that is made isn't compatible with LVM partitions.

#5 Updated by cpg over 10 years ago

i think we have LVM covered. many amahi users do use LVM.

maybe i can cook up a script to test/debug this out further, since it appears we have a fairly technical user!

#6 Updated by setdosa over 10 years ago

I am not familiar with ruby but I can run the scripts for you.

#7 Updated by Anonymous about 10 years ago

  • Status changed from Assigned to Closed
  • % Done changed from 0 to 100

Applied in changeset commit:"30d1c21659b4d86bbfb94ca9ccedf98606bf7828".

Also available in: Atom