emhttpd crashed (segfault) after HDD disabled?


georgez

Recommended Posts

I like to shutdown all idle disks to save power consumption, it's running fine until some disks started to timeout during power-up, weird things happened since then.

 

When a disk timed out during power-up, it's usually reset automatically (I read that in dmesg and syslog) and everything's back to normal, but in some cases, the disk was (wrongly) marked as bad then disabled and moved into unassigned disks area, but in fact the disk was just fine, I assured by scanning all the sectors without any error.

 

Along with the disk being disabled, the emhttpd daemon crashed like this:

[Sat Oct 22 07:11:48 2022] emhttpd[4490]: segfault at 674 ip 0000000000413f90 sp 00007ffcb9077500 error 4 in emhttpd[403000+1d000]

Since emhttpd crashed, the green dot in front of the disk was not changed, so I wouldn't even notice the disk was disabled, and I couldn't stop the array, the STOP button didn't work any more.

 

I guess this (emhttpd crashed) is a bug, I've attached the diagnostic file for examination.

 

But before it's fixed I'd like to know how to shutdown the array safely when the GUI's not working, please help me.

 

Thanks for your time

unraid-diagnostics-20221022-0721.zip

Link to comment

Yeah that's what I do. While looking around for possible solution, I read a post which claims some combination of Seagate 8TB and LSI will lead to similar issue, the post introduced a Seagate utility and changed some HDD parameters to workaround the issue. I didn't find such a utility for Toshiba HDD, so I'm trying another way, I've ordered an Adaptec card, will see if it helps.

 

As for the array shutdown without GUI, I've unmounted all disks manually, and used 'powerdown' to shutdown the server, not sure if it's the right way, but it seemed like working for me.

Link to comment

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.