Hi,
I've upgraded my Unraid server from 6.12.8 > 6.12.9 yesterday.
I might (not one hundred percent sure and I don't know if I can check it somewhere) have triggered a double reboot (I think after the automatic reboot from the upgrade I want back to the home url thinking it would be down, it was not the case, so I might have reclicked on a reboot button)
Once the server was rebooted, I was unable to mount my array. The field Encryption Key was missing from the GUI AND my main disk was in a strange status "disabled" (I didn't take a print screen to be more precise).
(I only have two disk : one for data and one for parity)
I searched online to see what I could do (I've try to start the array in maintenance mode, reboot, ...) with no luck
I even try to create the /root/keyfile but it didn't work "wrong encryption key"
In the end, I had to play the php code to allow me to start my array.
I've made ONE modification :
File : /usr/local/emhttp/webGui/ArrayOperation.page
Line : 43
I've commented the line
// else return;
The overall function check_encryption looks like that
function check_encryption() {
global $forced, $missing, $wrong;
if ($forced) $status = _('Enter new key');
elseif ($missing) $status = _('Missing key');
elseif ($wrong) $status = _('Wrong key');
// else return;
echo "<tr><td></td><td class='gap'>",_('Encryption status').":</td><td><span class='red-text'>$status</span><span id='pass'><input name='luksReformat' type='checkbox' onchange='selectInput(this.form)'>permit reformat</span></td></tr>";
echo "<tr><td></td><td class='gap'>",_('Encryption input').":</td><td>";
echo "<select name='input' size='1' onchange='selectInput(this.form)'>";
echo mk_option(1,'text',_('Passphrase'));
echo mk_option(1,'file',_('Keyfile'));
echo "</select></td></tr>";
echo "<tr id='text'><td></td><td class='gap'>",_('Passphrase'),":</td><td><input type='password' name='text' maxlength='512' value='' onkeyup='selectInput(this.form)' placeholder=\""._('use printable characters only')."\"><input name='showPass' type='checkbox' onchange='selectInput(this.form)'>"._('show passphrase')."</td></tr>";
echo "<tr id='copy'><td></td><td class='gap'>",_('Retype passphrase'),":</td><td><input type='password' name='copy' maxlength='512' value='' onkeyup='selectInput(this.form)'></td></tr>";
echo "<tr id='file'><td></td><td class='gap'>",_('Keyfile'),":</td><td><input type='file' name='local' onchange='getFileContent(event,this.form)'></td></tr>";
}
Again, I don't know if I'm at fault or if there is a bug but better safe than sorry
My array is being rebuilt at the moment 🤞
salignac-diagnostics-20240403-0819.zip