Skip to content
View in the app

A better way to browse. Learn more.

Unraid

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

Array undefined.

Featured Replies

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

  • Author

I also notice this line

 

Quote

Feb  5 13:52:33 Tower rc.diskinfo[17252]: PHP Warning: file_put_contents(): Only 4096 of 17834 bytes written, possibly out of free disk space in /etc/rc.d/rc.diskinfo on line 266

 

Does this mean I have no disk space available?

Start your system in safe mode to ensure no conflcts are present with plugins and packages.

  • Author

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.

  • Author

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
  }
 

 

Uninstall the Advanced Buttons and Preclear plugins, these are known to be incompatible. You should review the other advice in this thread as well:
   

 

Archived

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

Account

Navigation

Search

Search

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.