Project

General

Profile

Bug #1902

disk_wizards

Added by mattman almost 5 years ago. Updated almost 5 years ago.

Status:
Closed
Priority:
Normal
Assignee:
Category:
-
Target version:
-
Start date:
01/04/2016
Due date:
% Done:

0%


Description

After trying to add a 500gb SATA HDD I getting this error on selecting format disk, if I select entire disk there is not error report it is just not working.

I have two drive the same and they are both reporting this error.

from app log
Processing by DiskWizardController#select_fs as HTML
Parameters: {"utf8"=>"?", "authenticity_token"=>"l9EgvVjHtq0rcWcuD+CjiofnyPuzkYUj/pMW5J0pL8yR0KEiZPsxLgltemQh34vMifUEe0GqEQ0BWxWE2s7JNA==", "device"=>"/dev/sda"}
Rendered plugins/1001-disk_wizards/app/views/disk_wizard/select_fs.html.erb within layouts/wizard (63.3ms)
Rendered shared/_js_vars.html.slim (0.2ms)
Rendered layouts/_searchform.html.slim (0.3ms)
Rendered layouts/_header.html.slim (1.8ms)
Rendered plugins/1001-disk_wizards/app/views/shared/_dw_flash_messages.html.slim (0.1ms)
Rendered layouts/_footer.html.slim (0.4ms)
Completed 200 OK in 384ms (Views: 71.2ms | ActiveRecord: 1.9ms)
Started POST "/tab/disks/disk_wizards/manage" for 192.168.0.8 at 2016-01-04 19:10:56 +0000
Processing by DiskWizardController#manage_disk as
Parameters: {"utf8"=>"?", "authenticity_token"=>"rREnuJvozQyaBjHDezlfCn7nhwmK2x0wRDu/YuR0j8GrEKYnp9RKj7gaLIlVBndMcPVLiXjgiR6787wCo5NpOQ==", "device"=>"/dev/sda", "model"=>"ST3500320NS", "partition"=>"/dev/md126p1", "fs_type"=>"0"}
Completed 500 Internal Server Error in 50ms (ActiveRecord: 1.9ms)

NoMethodError (undefined method `[]' for nil:NilClass):
plugins/1001-disk_wizards/lib/modules/operation.rb:177:in `find'
plugins/1001-disk_wizards/app/controllers/disk_wizard_controller.rb:64:in `manage_disk'
vendor/bundle/ruby/gems/actionpack-4.2.4/lib/action_controller/metal/implicit_render.rb:4:in `send_action'
vendor/bundle/ruby/gems/actionpack-4.2.4/lib/abstract_controller/base.rb:198:in `process_action'
vendor/bundle/ruby/gems/actionpack-4.2.4/lib/action_controller/metal/rendering.rb:10:in `process_action'
vendor/bundle/ruby/gems/actionpack-4.2.4/lib/abstract_controller/callbacks.rb:20:in `block in process_action'
vendor/bundle/ruby/gems/activesupport-4.2.4/lib/active_support/callbacks.rb:117:in `call'
vendor/bundle/ruby/gems/activesupport-4.2.4/lib/active_support/callbacks.rb:117:in `call'
vendor/bundle/ruby/gems/activesupport-4.2.4/lib/active_support/callbacks.rb:555:in `block (2 levels) in compile'
vendor/bundle/ruby/gems/activesupport-4.2.4/lib/active_support/callbacks.rb:505:in `call'
vendor/bundle/ruby/gems/activesupport-4.2.4/lib/active_support/callbacks.rb:505:in `call'
vendor/bundle/ruby/gems/activesupport-4.2.4/lib/active_support/callbacks.rb:92:in `__run_callbacks__'
vendor/bundle/ruby/gems/activesupport-4.2.4/lib/active_support/callbacks.rb:778:in `_run_process_action_callbacks'
vendor/bundle/ruby/gems/activesupport-4.2.4/lib/active_support/callbacks.rb:81:in `run_callbacks'
vendor/bundle/ruby/gems/actionpack-4.2.4/lib/abstract_controller/callbacks.rb:19:in `process_action'
vendor/bundle/ruby/gems/actionpack-4.2.4/lib/action_controller/metal/rescue.rb:29:in `process_action'
vendor/bundle/ruby/gems/actionpack-4.2.4/lib/action_controller/metal/instrumentation.rb:32:in `block in process_action'
vendor/bundle/ruby/gems/activesupport-4.2.4/lib/active_support/notifications.rb:164:in `block in instrument'
vendor/bundle/ruby/gems/activesupport-4.2.4/lib/active_support/notifications/instrumenter.rb:20:in `instrument'
vendor/bundle/ruby/gems/activesupport-4.2.4/lib/active_support/notifications.rb:164:in `instrument'
vendor/bundle/ruby/gems/actionpack-4.2.4/lib/action_controller/metal/instrumentation.rb:30:in `process_action'
vendor/bundle/ruby/gems/actionpack-4.2.4/lib/action_controller/metal/params_wrapper.rb:250:in `process_action'
vendor/bundle/ruby/gems/activerecord-4.2.4/lib/active_record/railties/controller_runtime.rb:18:in `process_action'
vendor/bundle/ruby/gems/actionpack-4.2.4/lib/abstract_controller/base.rb:137:in `process'
vendor/bundle/ruby/gems/actionview-4.2.4/lib/action_view/rendering.rb:30:in `process'
vendor/bundle/ruby/gems/actionpack-4.2.4/lib/action_controller/metal.rb:196:in `dispatch'
vendor/bundle/ruby/gems/actionpack-4.2.4/lib/action_controller/metal/rack_delegation.rb:13:in `dispatch'
vendor/bundle/ruby/gems/actionpack-4.2.4/lib/action_controller/metal.rb:237:in `block in action'
vendor/bundle/ruby/gems/actionpack-4.2.4/lib/action_dispatch/routing/route_set.rb:76:in `call'
vendor/bundle/ruby/gems/actionpack-4.2.4/lib/action_dispatch/routing/route_set.rb:76:in `dispatch'
vendor/bundle/ruby/gems/actionpack-4.2.4/lib/action_dispatch/routing/route_set.rb:45:in `serve'
vendor/bundle/ruby/gems/actionpack-4.2.4/lib/action_dispatch/journey/router.rb:43:in `block in serve'
vendor/bundle/ruby/gems/actionpack-4.2.4/lib/action_dispatch/journey/router.rb:30:in `each'
vendor/bundle/ruby/gems/actionpack-4.2.4/lib/action_dispatch/journey/router.rb:30:in `serve'
vendor/bundle/ruby/gems/actionpack-4.2.4/lib/action_dispatch/routing/route_set.rb:821:in `call'
vendor/bundle/ruby/gems/railties-4.2.4/lib/rails/engine.rb:518:in `call'
vendor/bundle/ruby/gems/railties-4.2.4/lib/rails/railtie.rb:194:in `public_send'
vendor/bundle/ruby/gems/railties-4.2.4/lib/rails/railtie.rb:194:in `method_missing'
vendor/bundle/ruby/gems/actionpack-4.2.4/lib/action_dispatch/routing/mapper.rb:51:in `serve'
vendor/bundle/ruby/gems/actionpack-4.2.4/lib/action_dispatch/journey/router.rb:43:in `block in serve'
vendor/bundle/ruby/gems/actionpack-4.2.4/lib/action_dispatch/journey/router.rb:30:in `each'
vendor/bundle/ruby/gems/actionpack-4.2.4/lib/action_dispatch/journey/router.rb:30:in `serve'
vendor/bundle/ruby/gems/actionpack-4.2.4/lib/action_dispatch/routing/route_set.rb:821:in `call'
vendor/bundle/ruby/gems/rack-1.6.4/lib/rack/etag.rb:24:in `call'
vendor/bundle/ruby/gems/rack-1.6.4/lib/rack/conditionalget.rb:38:in `call'
vendor/bundle/ruby/gems/rack-1.6.4/lib/rack/head.rb:13:in `call'
vendor/bundle/ruby/gems/actionpack-4.2.4/lib/action_dispatch/middleware/params_parser.rb:27:in `call'
vendor/bundle/ruby/gems/actionpack-4.2.4/lib/action_dispatch/middleware/flash.rb:260:in `call'
vendor/bundle/ruby/gems/rack-1.6.4/lib/rack/session/abstract/id.rb:225:in `context'
vendor/bundle/ruby/gems/rack-1.6.4/lib/rack/session/abstract/id.rb:220:in `call'
vendor/bundle/ruby/gems/actionpack-4.2.4/lib/action_dispatch/middleware/cookies.rb:560:in `call'
vendor/bundle/ruby/gems/activerecord-4.2.4/lib/active_record/query_cache.rb:36:in `call'
vendor/bundle/ruby/gems/activerecord-4.2.4/lib/active_record/connection_adapters/abstract/connection_pool.rb:653:in `call'
vendor/bundle/ruby/gems/actionpack-4.2.4/lib/action_dispatch/middleware/callbacks.rb:29:in `block in call'
vendor/bundle/ruby/gems/activesupport-4.2.4/lib/active_support/callbacks.rb:88:in `__run_callbacks__'
vendor/bundle/ruby/gems/activesupport-4.2.4/lib/active_support/callbacks.rb:778:in `_run_call_callbacks'
vendor/bundle/ruby/gems/activesupport-4.2.4/lib/active_support/callbacks.rb:81:in `run_callbacks'
vendor/bundle/ruby/gems/actionpack-4.2.4/lib/action_dispatch/middleware/callbacks.rb:27:in `call'
vendor/bundle/ruby/gems/actionpack-4.2.4/lib/action_dispatch/middleware/remote_ip.rb:78:in `call'
vendor/bundle/ruby/gems/actionpack-4.2.4/lib/action_dispatch/middleware/debug_exceptions.rb:17:in `call'
vendor/bundle/ruby/gems/actionpack-4.2.4/lib/action_dispatch/middleware/show_exceptions.rb:30:in `call'
vendor/bundle/ruby/gems/railties-4.2.4/lib/rails/rack/logger.rb:38:in `call_app'
vendor/bundle/ruby/gems/railties-4.2.4/lib/rails/rack/logger.rb:20:in `block in call'
vendor/bundle/ruby/gems/activesupport-4.2.4/lib/active_support/tagged_logging.rb:68:in `block in tagged'
vendor/bundle/ruby/gems/activesupport-4.2.4/lib/active_support/tagged_logging.rb:26:in `tagged'
vendor/bundle/ruby/gems/activesupport-4.2.4/lib/active_support/tagged_logging.rb:68:in `tagged'
vendor/bundle/ruby/gems/railties-4.2.4/lib/rails/rack/logger.rb:20:in `call'
vendor/bundle/ruby/gems/request_store-1.2.0/lib/request_store/middleware.rb:8:in `call'
vendor/bundle/ruby/gems/actionpack-4.2.4/lib/action_dispatch/middleware/request_id.rb:21:in `call'
vendor/bundle/ruby/gems/rack-1.6.4/lib/rack/methodoverride.rb:22:in `call'
vendor/bundle/ruby/gems/rack-1.6.4/lib/rack/runtime.rb:18:in `call'
vendor/bundle/ruby/gems/activesupport-4.2.4/lib/active_support/cache/strategy/local_cache_middleware.rb:28:in `call'
vendor/bundle/ruby/gems/actionpack-4.2.4/lib/action_dispatch/middleware/static.rb:116:in `call'
vendor/bundle/ruby/gems/rack-1.6.4/lib/rack/sendfile.rb:113:in `call'
vendor/bundle/ruby/gems/railties-4.2.4/lib/rails/engine.rb:518:in `call'
vendor/bundle/ruby/gems/railties-4.2.4/lib/rails/application.rb:165:in `call'
/usr/share/passenger/phusion_passenger/rack/thread_handler_extension.rb:74:in `process_request'
/usr/share/passenger/phusion_passenger/request_handler/thread_handler.rb:141:in `accept_and_process_next_request'
/usr/share/passenger/phusion_passenger/request_handler/thread_handler.rb:109:in `main_loop'
/usr/share/passenger/phusion_passenger/request_handler.rb:455:in `block (3 levels) in start_threads'

Started GET "/tab/debug" for 192.168.0.8 at 2016-01-04 19:11:00 +0000
Processing by DebugController#index as HTML
Rendered debug/_form.html.slim (1.4ms)

System Info

19:13:37 up 19 min,  2 users,  load average: 0.18, 0.19, 0.19
processor : 0
vendor_id : GenuineIntel
cpu family : 6
model : 42
model name : Intel(R) Core(TM) i5-2400 CPU @ 3.10GHz
stepping : 7
microcode : 0x6
cpu MHz : 1794.972
cache size : 6144 KB
physical id : 0
siblings : 4
core id : 0
cpu cores : 4
apicid : 0
initial apicid : 0
fpu : yes
fpu_exception : yes
cpuid level : 13
wp : yes
flags : fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat pse36 clflush dts acpi mmx fxsr sse sse2 ss ht tm pbe syscall nx rdtscp lm constant_tsc arch_perfmon pebs bts rep_good nopl xtopology nonstop_tsc aperfmperf eagerfpu pni pclmulqdq dtes64 monitor ds_cpl vmx smx est tm2 ssse3 cx16 xtpr pdcm pcid sse4_1 sse4_2 x2apic popcnt tsc_deadline_timer aes xsave avx lahf_lm ida arat epb pln pts dtherm tpr_shadow vnmi flexpriority ept vpid xsaveopt
bugs :
bogomips : 6185.54
clflush size : 64
cache_alignment : 64
address sizes : 36 bits physical, 48 bits virtual
power management:

processor : 1
vendor_id : GenuineIntel
cpu family : 6
model : 42
model name : Intel(R) Core(TM) i5-2400 CPU @ 3.10GHz
stepping : 7
microcode : 0x6
cpu MHz : 1726.554
cache size : 6144 KB
physical id : 0
siblings : 4
core id : 1
cpu cores : 4
apicid : 2
initial apicid : 2
fpu : yes
fpu_exception : yes
cpuid level : 13
wp : yes
flags : fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat pse36 clflush dts acpi mmx fxsr sse sse2 ss ht tm pbe syscall nx rdtscp lm constant_tsc arch_perfmon pebs bts rep_good nopl xtopology nonstop_tsc aperfmperf eagerfpu pni pclmulqdq dtes64 monitor ds_cpl vmx smx est tm2 ssse3 cx16 xtpr pdcm pcid sse4_1 sse4_2 x2apic popcnt tsc_deadline_timer aes xsave avx lahf_lm ida arat epb pln pts dtherm tpr_shadow vnmi flexpriority ept vpid xsaveopt
bugs :
bogomips : 6185.54
clflush size : 64
cache_alignment : 64
address sizes : 36 bits physical, 48 bits virtual
power management:

processor : 2
vendor_id : GenuineIntel
cpu family : 6
model : 42
model name : Intel(R) Core(TM) i5-2400 CPU @ 3.10GHz
stepping : 7
microcode : 0x6
cpu MHz : 1790.734
cache size : 6144 KB
physical id : 0
siblings : 4
core id : 2
cpu cores : 4
apicid : 4
initial apicid : 4
fpu : yes
fpu_exception : yes
cpuid level : 13
wp : yes
flags : fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat pse36 clflush dts acpi mmx fxsr sse sse2 ss ht tm pbe syscall nx rdtscp lm constant_tsc arch_perfmon pebs bts rep_good nopl xtopology nonstop_tsc aperfmperf eagerfpu pni pclmulqdq dtes64 monitor ds_cpl vmx smx est tm2 ssse3 cx16 xtpr pdcm pcid sse4_1 sse4_2 x2apic popcnt tsc_deadline_timer aes xsave avx lahf_lm ida arat epb pln pts dtherm tpr_shadow vnmi flexpriority ept vpid xsaveopt
bugs :
bogomips : 6185.54
clflush size : 64
cache_alignment : 64
address sizes : 36 bits physical, 48 bits virtual
power management:

processor : 3
vendor_id : GenuineIntel
cpu family : 6
model : 42
model name : Intel(R) Core(TM) i5-2400 CPU @ 3.10GHz
stepping : 7
microcode : 0x6
cpu MHz : 1632.949
cache size : 6144 KB
physical id : 0
siblings : 4
core id : 3
cpu cores : 4
apicid : 6
initial apicid : 6
fpu : yes
fpu_exception : yes
cpuid level : 13
wp : yes
flags : fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat pse36 clflush dts acpi mmx fxsr sse sse2 ss ht tm pbe syscall nx rdtscp lm constant_tsc arch_perfmon pebs bts rep_good nopl xtopology nonstop_tsc aperfmperf eagerfpu pni pclmulqdq dtes64 monitor ds_cpl vmx smx est tm2 ssse3 cx16 xtpr pdcm pcid sse4_1 sse4_2 x2apic popcnt tsc_deadline_timer aes xsave avx lahf_lm ida arat epb pln pts dtherm tpr_shadow vnmi flexpriority ept vpid xsaveopt
bugs :
bogomips : 6185.54
clflush size : 64
cache_alignment : 64
address sizes : 36 bits physical, 48 bits virtual
power management:

MemTotal: 8061564 kB
MemFree: 6820056 kB
MemAvailable: 7319228 kB
Buffers: 35700 kB
Cached: 475032 kB
SwapCached: 0 kB
Active: 888424 kB
Inactive: 218908 kB
Active(anon): 599240 kB
Inactive(anon): 828 kB
Active(file): 289184 kB
Inactive(file): 218080 kB
Unevictable: 10800 kB
Mlocked: 10800 kB
SwapTotal: 3932156 kB
SwapFree: 3932156 kB
Dirty: 60 kB
Writeback: 0 kB
AnonPages: 607392 kB
Mapped: 114836 kB
Shmem: 1264 kB
Slab: 54864 kB
SReclaimable: 34160 kB
SUnreclaim: 20704 kB
KernelStack: 4896 kB
PageTables: 15320 kB
NFS_Unstable: 0 kB
Bounce: 0 kB
WritebackTmp: 0 kB
CommitLimit: 7962936 kB
Committed_AS: 1778528 kB
VmallocTotal: 34359738367 kB
VmallocUsed: 562500 kB
VmallocChunk: 34358423548 kB
HardwareCorrupted: 0 kB
AnonHugePages: 0 kB
HugePages_Total: 0
HugePages_Free: 0
HugePages_Rsvd: 0
HugePages_Surp: 0
Hugepagesize: 2048 kB
DirectMap4k: 107184 kB
DirectMap2M: 8167424 kB

History

#1 Updated by mattman almost 5 years ago

I have discovered that the drive I was trying to add was marked as a raid drive, once I removed the raid part I could add the drive using Disk Wizard.

#2 Updated by cpg almost 5 years ago

  • Status changed from New to Closed
  • Assignee set to cpg

Thanks for sharing the finding. Where was it marked like that? BIOS?

#3 Updated by mattman almost 5 years ago

I have two drives and they both error in the same way, after mounting them manually it kept giving me a device in /dev as mdXXX and this I discovered was due to a drive having a raid bit somewhere on the drive so I had to use mdadm to stop and then remove the raid marker.
Sorry if my bug report was not true to the events but this might help the developer to make some check for this in the future.

Also available in: Atom