Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error: Undefined offset: 6 at /apps/serverinfo/templates/settings-admin.php#35 #316

Closed
solracsf opened this issue Jun 10, 2021 · 3 comments

Comments

@solracsf
Copy link
Member

  • Nextcloud 19.0.12
{
  "reqId": "OT5277cqP9ttis6sgnO0",
  "level": 3,
  "app": "PHP",
  "method": "GET",
  "url": "/settings/admin/serverinfo",
  "message": {
    "Exception": "Error",
    "Message": "Undefined offset: 6 at /apps/serverinfo/templates/settings-admin.php#35",
    "Code": 0,
    "Trace": [
      {
        "file": "/apps/serverinfo/templates/settings-admin.php",
        "line": 35,
        "function": "onError",
        "class": "OC\\Log\\ErrorHandler",
        "type": "::",
        "args": [
          8,
          "Undefined offset: 6",
          "/apps/serverinfo/templates/settings-admin.php",
          35,
          {
            "byte": 1,
            "count": 6
          }
        ]
      },
      {
        "file": "/apps/serverinfo/templates/settings-admin.php",
        "line": 137,
        "function": "FormatBytes",
        "args": [
          1
        ]
      },
      {
        "file": "/lib/private/Template/Base.php",
        "line": 180,
        "args": [
          "/apps/serverinfo/templates/settings-admin.php"
        ],
        "function": "include"
      },
      {
        "file": "/lib/private/Template/Base.php",
        "line": 150,
        "function": "load",
        "class": "OC\\Template\\Base",
        "type": "->",
        "args": [
          "/apps/serverinfo/templates/settings-admin.php",
          {
            "0": "And 9 more entries, set log level to debug to see all entries",
            "hostname": "sd-103179",
            "osname": "Linux 5.4.0-70-generic x86_64",
            "memory": {
              "MemTotal": 67223117824,
              "MemFree": 495415296,
              "MemAvailable": 34293444608,
              "SwapTotal": 1610600448,
              "SwapFree": 1196716032
            },
            "cpu": "Intel(R) Xeon(R) CPU E3-1245 v5 @ 3.50GHz (8 cores)",
            "diskinfo": [
              {
                "0": "And 1 more entries, set log level to debug to see all entries",
                "device": "/dev/md1",
                "fs": "xfs",
                "used": 37981196288,
                "available": 133591068672,
                "percent": "23%"
              },
              {
                "0": "And 1 more entries, set log level to debug to see all entries",
                "device": "/dev/md0",
                "fs": "ext4",
                "used": 217022464,
                "available": 246771712,
                "percent": "47%"
              },
              {
                "0": "And 1 more entries, set log level to debug to see all entries",
                "device": "/dev/md2",
                "fs": "xfs",
                "used": 839564673024,
                "available": 10023256064,
                "percent": "99%"
              },
              {
                "0": "And 1 more entries, set log level to debug to see all entries",
                "device": "/dev/sda3",
                "fs": "fuse",
                "used": 1366917509120,
                "available": 1152920137689337900,
                "percent": "1%"
              }
            ]
          }
        ]
      },
      {
        "file": "/lib/private/legacy/OC_Template.php",
        "line": 182,
        "function": "fetchPage",
        "class": "OC\\Template\\Base",
        "type": "->",
        "args": [
          {
            "0": "And 9 more entries, set log level to debug to see all entries",
            "hostname": "sd-103179",
            "osname": "Linux 5.4.0-70-generic x86_64",
            "memory": {
              "MemTotal": 67223117824,
              "MemFree": 495415296,
              "MemAvailable": 34293444608,
              "SwapTotal": 1610600448,
              "SwapFree": 1196716032
            },
            "cpu": "Intel(R) Xeon(R) CPU E3-1245 v5 @ 3.50GHz (8 cores)",
            "diskinfo": [
              {
                "0": "And 1 more entries, set log level to debug to see all entries",
                "device": "/dev/md1",
                "fs": "xfs",
                "used": 37981196288,
                "available": 133591068672,
                "percent": "23%"
              },
              {
                "0": "And 1 more entries, set log level to debug to see all entries",
                "device": "/dev/md0",
                "fs": "ext4",
                "used": 217022464,
                "available": 246771712,
                "percent": "47%"
              },
              {
                "0": "And 1 more entries, set log level to debug to see all entries",
                "device": "/dev/md2",
                "fs": "xfs",
                "used": 839564673024,
                "available": 10023256064,
                "percent": "99%"
              },
              {
                "0": "And 1 more entries, set log level to debug to see all entries",
                "device": "/dev/sda3",
                "fs": "fuse",
                "used": 1366917509120,
                "available": 1152920137689337900,
                "percent": "1%"
              }
            ]
          }
        ]
      },
      {
        "file": "/lib/public/AppFramework/Http/TemplateResponse.php",
        "line": 166,
        "function": "fetchPage",
        "class": "OC_Template",
        "type": "->",
        "args": [
          {
            "0": "And 9 more entries, set log level to debug to see all entries",
            "hostname": "sd-103179",
            "osname": "Linux 5.4.0-70-generic x86_64",
            "memory": {
              "MemTotal": 67223117824,
              "MemFree": 495415296,
              "MemAvailable": 34293444608,
              "SwapTotal": 1610600448,
              "SwapFree": 1196716032
            },
            "cpu": "Intel(R) Xeon(R) CPU E3-1245 v5 @ 3.50GHz (8 cores)",
            "diskinfo": [
              {
                "0": "And 1 more entries, set log level to debug to see all entries",
                "device": "/dev/md1",
                "fs": "xfs",
                "used": 37981196288,
                "available": 133591068672,
                "percent": "23%"
              },
              {
                "0": "And 1 more entries, set log level to debug to see all entries",
                "device": "/dev/md0",
                "fs": "ext4",
                "used": 217022464,
                "available": 246771712,
                "percent": "47%"
              },
              {
                "0": "And 1 more entries, set log level to debug to see all entries",
                "device": "/dev/md2",
                "fs": "xfs",
                "used": 839564673024,
                "available": 10023256064,
                "percent": "99%"
              },
              {
                "0": "And 1 more entries, set log level to debug to see all entries",
                "device": "/dev/sda3",
                "fs": "fuse",
                "used": 1366917509120,
                "available": 1152920137689337900,
                "percent": "1%"
              }
            ]
          }
        ]
      },
      {
        "file": "/apps/settings/lib/Controller/CommonSettingsTrait.php",
        "line": 142,
        "function": "render",
        "class": "OCP\\AppFramework\\Http\\TemplateResponse",
        "type": "->",
        "args": []
      },
      {
        "file": "/apps/settings/lib/Controller/AdminSettingsController.php",
        "line": 83,
        "function": "formatSettings",
        "class": "OCA\\Settings\\Controller\\AdminSettingsController",
        "type": "->",
        "args": [
          [
            [
              {
                "__class__": "OCA\\ServerInfo\\Settings\\AdminSettings"
              }
            ]
          ]
        ]
      },
      {
        "file": "/apps/settings/lib/Controller/CommonSettingsTrait.php",
        "line": 152,
        "function": "getSettings",
        "class": "OCA\\Settings\\Controller\\AdminSettingsController",
        "type": "->",
        "args": [
          "serverinfo"
        ]
      },
      {
        "file": "/apps/settings/lib/Controller/AdminSettingsController.php",
        "line": 68,
        "function": "getIndexResponse",
        "class": "OCA\\Settings\\Controller\\AdminSettingsController",
        "type": "->",
        "args": [
          "admin",
          "serverinfo"
        ]
      },
      {
        "file": "/lib/private/AppFramework/Http/Dispatcher.php",
        "line": 170,
        "function": "index",
        "class": "OCA\\Settings\\Controller\\AdminSettingsController",
        "type": "->",
        "args": [
          "serverinfo"
        ]
      },
      {
        "file": "/lib/private/AppFramework/Http/Dispatcher.php",
        "line": 100,
        "function": "executeController",
        "class": "OC\\AppFramework\\Http\\Dispatcher",
        "type": "->",
        "args": [
          {
            "__class__": "OCA\\Settings\\Controller\\AdminSettingsController"
          },
          "index"
        ]
      },
      {
        "file": "/lib/private/AppFramework/App.php",
        "line": 137,
        "function": "dispatch",
        "class": "OC\\AppFramework\\Http\\Dispatcher",
        "type": "->",
        "args": [
          {
            "__class__": "OCA\\Settings\\Controller\\AdminSettingsController"
          },
          "index"
        ]
      },
      {
        "file": "/lib/private/AppFramework/Routing/RouteActionHandler.php",
        "line": 47,
        "function": "main",
        "class": "OC\\AppFramework\\App",
        "type": "::",
        "args": [
          "OCA\\Settings\\Controller\\AdminSettingsController",
          "index",
          {
            "__class__": "OC\\AppFramework\\DependencyInjection\\DIContainer"
          },
          {
            "section": "serverinfo",
            "_route": "settings.AdminSettings.index"
          }
        ]
      },
      {
        "function": "__invoke",
        "class": "OC\\AppFramework\\Routing\\RouteActionHandler",
        "type": "->",
        "args": [
          {
            "section": "serverinfo",
            "_route": "settings.AdminSettings.index"
          }
        ]
      },
      {
        "file": "/lib/private/Route/Router.php",
        "line": 297,
        "function": "call_user_func",
        "args": [
          {
            "__class__": "OC\\AppFramework\\Routing\\RouteActionHandler"
          },
          {
            "section": "serverinfo",
            "_route": "settings.AdminSettings.index"
          }
        ]
      },
      {
        "file": "/lib/base.php",
        "line": 1010,
        "function": "match",
        "class": "OC\\Route\\Router",
        "type": "->",
        "args": [
          "/settings/admin/serverinfo"
        ]
      },
      {
        "file": "/index.php",
        "line": 37,
        "function": "handleRequest",
        "class": "OC",
        "type": "::",
        "args": []
      }
    ],
    "File": "/lib/private/Log/ErrorHandler.php",
    "Line": 91,
    "CustomMessage": "--"
  },
  "userAgent": "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/91.0.4472.77 Safari/537.36",
  "version": "19.0.12.0",
  "id": "60c1b7eb48fd1"
}
@joshtrichards
Copy link
Member

This was likely addressed in #451 (directly) in NC27/master and, in part, by #231 (albeit indirectly and just incrementally). That is, if your fuse filesystem /dev/sda3 was really 1.15 Exabytes at the time.

              {
                "0": "And 1 more entries, set log level to debug to see all entries",
                "device": "/dev/sda3",
                "fs": "fuse",
                "used": 1366917509120,
                "available": 1152920137689337900,
                "percent": "1%"
              }

@kesselb
Copy link
Collaborator

kesselb commented Jul 4, 2023

@solracsf you still see this error?

@solracsf
Copy link
Member Author

solracsf commented Jul 5, 2023

No, closing.

@solracsf solracsf closed this as completed Jul 5, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants