Jump to content

Array undefined.


publicENEMY

Recommended Posts

I have this weird problem where it says that Array undefined at the bottom of tower/ home page (see screenshot). This is the second time it happen. The first time I reset my unraid box and after reset, it works fine. All drives are green. Then it happen again.

 

When it happen, I can still access my shares. Ssh also works. But my internet is downed. Lan pinging results in lots of no response. 

 

Anyway, whats the problem and what should I do? Have anyone experience this before?

photo_2018-02-05_13-43-52.jpg

Link to comment

It happen again. this time, this is the error.

Quote

Feb  6 06:21:29 Tower rc.diskinfo[17255]: PHP Warning: file_put_contents(): Only 0 of 2600 bytes written, possibly out of free disk space in /etc/rc.d/rc.diskinfo on line 499
Feb  6 06:21:30 Tower rc.diskinfo[17255]: PHP Warning: file_put_contents(): Only 0 of 2584 bytes written, possibly out of free disk space in /etc/rc.d/rc.diskinfo on line 499
Feb  6 06:21:31 Tower rc.diskinfo[17255]: PHP Warning: file_put_contents(): Only 0 of 2575 bytes written, possibly out of free disk space in /etc/rc.d/rc.diskinfo on line 499
Feb  6 06:21:31 Tower rc.diskinfo[17255]: PHP Warning: file_put_contents(): Only 16384 of 17834 bytes written, possibly out of free disk space in /etc/rc.d/rc.diskinfo on line 266
Feb  6 06:21:33 Tower rc.diskinfo[17255]: PHP Warning: file_put_contents(): Only 0 of 666 bytes written, possibly out of free disk space in /etc/rc.d/rc.diskinfo on line 499
Feb  6 06:21:33 Tower rc.diskinfo[17255]: PHP Warning: file_put_contents(): Only 0 of 2561 bytes written, possibly out of free disk space in /etc/rc.d/rc.diskinfo on line 499
Feb  6 06:21:33 Tower rc.diskinfo[17255]: PHP Warning: file_put_contents(): Only 0 of 2563 bytes written, possibly out of free disk space in /etc/rc.d/rc.diskinfo on line 499
Feb  6 06:21:34 Tower rc.diskinfo[17255]: PHP Warning: file_put_contents(): Only 0 of 2584 bytes written, possibly out of free disk space in /etc/rc.d/rc.diskinfo on line 499
Feb  6 06:21:34 Tower rc.diskinfo[17255]: PHP Warning: file_put_contents(): Only 0 of 2581 bytes written, possibly out of free disk space in /etc/rc.d/rc.diskinfo on line 499
Feb  6 06:21:34 Tower rc.diskinfo[17255]: PHP Warning: file_put_contents(): Only 0 of 2558 bytes written, possibly out of free disk space in /etc/rc.d/rc.diskinfo on line 499
Feb  6 06:21:34 Tower rc.diskinfo[17255]: PHP Warning: file_put_contents(): Only 0 of 2600 bytes written, possibly out of free disk space in /etc/rc.d/rc.diskinfo on line 499
Feb  6 06:21:35 Tower rc.diskinfo[17255]: PHP Warning: file_put_contents(): Only 0 of 2584 bytes written, possibly out of free disk space in /etc/rc.d/rc.diskinfo on line 499
Feb  6 06:21:36 Tower rc.diskinfo[17255]: PHP Warning: file_put_contents(): Only 0 of 2575 bytes written, possibly out of free disk space in /etc/rc.d/rc.diskinfo on line 499
Feb  6 06:21:36 Tower rc.diskinfo[17255]: PHP Warning: file_put_contents(): Only 16384 of 17834 bytes written, possibly out of free disk space in /etc/rc.d/rc.diskinfo on line 266
Feb  6 06:21:38 Tower rc.diskinfo[17255]: PHP Warning: file_put_contents(): Only 0 of 666 bytes written, possibly out of free disk space in /etc/rc.d/rc.diskinfo on line 499
Feb  6 06:21:38 Tower rc.diskinfo[17255]: PHP Warning: file_put_contents(): Only 0 of 2561 bytes written, possibly out of free disk space in /etc/rc.d/rc.diskinfo on line 499
Feb  6 06:21:38 Tower rc.diskinfo[17255]: PHP Warning: file_put_contents(): Only 0 of 2563 bytes written, possibly out of free disk space in /etc/rc.d/rc.diskinfo on line 499
Feb  6 06:21:39 Tower rc.diskinfo[17255]: PHP Warning: file_put_contents(): Only 0 of 2584 bytes written, possibly out of free disk space in /etc/rc.d/rc.diskinfo on line 499
Feb  6 06:21:39 Tower rc.diskinfo[17255]: PHP Warning: file_put_contents(): Only 0 of 2581 bytes written, possibly out of free disk space in /etc/rc.d/rc.diskinfo on line 499
Feb  6 06:21:39 Tower rc.diskinfo[17255]: PHP Warning: file_put_contents(): Only 0 of 2558 bytes written, possibly out of free disk space in /etc/rc.d/rc.diskinfo on line 499
Feb  6 06:21:39 Tower rc.diskinfo[17255]: PHP Warning: file_put_contents(): Only 0 of 2600 bytes written, possibly out of free disk space in /etc/rc.d/rc.diskinfo on line 499
Feb  6 06:21:40 Tower rc.diskinfo[17255]: PHP Warning: file_put_contents(): Only 0 of 2584 bytes written, possibly out of free disk space in /etc/rc.d/rc.diskinfo on line 499
Feb  6 06:21:41 Tower rc.diskinfo[17255]: PHP Warning: file_put_contents(): Only 0 of 2575 bytes written, possibly out of free disk space in /etc/rc.d/rc.diskinfo on line 499

 

 

Please help.

Link to comment

From the logs, basically I have error on line 499 and 266

 

Line 499 is the the last line of this

Quote

   // Probe persistent disk data if data isn't cached or reload triggered
    if (! isset($cache[$name]) || $reload || $force)
    {
      debug("Probing disk ${device} info...", "DEBUG");

      // Get info using UDEV subsystem
      $udev = trim($this->benchmark("shell_exec", "timeout -s 9 ". $this->exec_time ." udevadm info --query=property --name ${device} 2>/dev/null"));
      $udev = parse_ini_string($udev);
      $disk = array_intersect_key($udev, array_flip($whitelist));

      $disk['SERIAL_SHORT'] = isset($disk["ID_SCSI_SERIAL"]) ? $disk["ID_SCSI_SERIAL"] : $disk['ID_SERIAL_SHORT'];
      $disk['SERIAL']       = trim("{$disk[ID_MODEL]}_{$disk[SERIAL_SHORT]}");

      // Get device BUS
      $disk["BUS"] = (stripos($disk["DEVPATH"], "usb") !== -1) ? "usb" : "ata";
      unset($disk["DEVPATH"]);

      // Get SMART device type from cached info or get it using get_smart_type function
      $disk["SMART"] = $disk["SMART"] ? $disk["SMART"] : $this->get_smart_type($device);

      // Probe SMART data
      $smartInfo = explode(PHP_EOL, $this->benchmark("shell_exec", "timeout -s 9 ". $this->exec_time ." smartctl --info --attributes ${disk['SMART']} '${device}' 2>/dev/null"));
      $disk['FAMILY']   = $parse_smart($smartInfo, "Model Family");
      $disk['MODEL']    = $parse_smart($smartInfo, "Device Model");

      if ($disk['FAMILY'] == "n/a" && $disk['MODEL'] == "n/a" )
      {
        $vendor         = $parse_smart($smartInfo, "Vendor");
        $product        = $parse_smart($smartInfo, "Product");
        $revision       = $parse_smart($smartInfo, "Revision");
        $disk['FAMILY'] = "{$vendor} {$product}";
        $disk['MODEL']  = "{$vendor} {$product} - Rev. {$revision}";
      }

      $disk['FIRMWARE'] = $parse_smart($smartInfo, "Firmware Version");
      $disk['SIZE']     = $current["SIZE"];
      $disk['SIZE_H']   = trim(shell_exec("numfmt --to=si --suffix=B --format='%1.f' --round=nearest ${disk['SIZE']} 2>/dev/null"));
      $disk['SIZE_H']   = preg_replace("/(^\d+)(.*)/", "$1 $2", $disk['SIZE_H']);
      $disk["DEVICE"]   = $device;
      $smartInfo = implode(PHP_EOL, $smartInfo);
      file_put_contents($smart_file, $smartInfo);   <-line 499
    }
 

 

 

Line 266 is the last line of this

Quote

class Misc
{

  public static function save_json($file, $content)
  {
    file_put_contents($file, json_encode($content, JSON_PRETTY_PRINT )); <line 266
  }
 

 

Link to comment

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...