Dashboard widgets does not working

Yarik

Cadet
Joined
Oct 28, 2016
Messages
2
Hello dear FreeNas Community
I have an issue with some WebUI dashboard widgets:
Memory Usage, CPU Usage, CPU Temperatures, Load Average - shows nothing
Network Info - always with a loading bar on top

I noticed it since 11.1 or even earlier.
I am running FreeNas under Proxmox VM, so it can be the cause, but may not be.
After short examination I found some JS errors in browser console log (something about rrdtool), so it should help
I realize that there is no full access to some hardware data (i.e. cpu/hdd temp and so on) in my case (VM & passthrough), but I think that some messages should be shown instead of empty widgets and console errors. Anyway I just want to know if this behavior is normal in my case. And it will be great if the information I provide will help to fix bug. Thanks.

Console JS error
Code:
22:42:54.504 ERROR TypeError: "t[0] is undefined"       main.9d0e0bcdf89b5356804c.bundle.js:1:1947329
   mergeMessages http://192.168.1.201/ui/main.9d0e0bcdf89b5356804c.bundle.js:1
    startBroadcast http://192.168.1.201/ui/main.9d0e0bcdf89b5356804c.bundle.js:1
    updateSources http://192.168.1.201/ui/main.9d0e0bcdf89b5356804c.bundle.js:1
    t http://192.168.1.201/ui/main.9d0e0bcdf89b5356804c.bundle.js:1
    __tryOrUnsub http://192.168.1.201/ui/main.9d0e0bcdf89b5356804c.bundle.js:1
    next http://192.168.1.201/ui/main.9d0e0bcdf89b5356804c.bundle.js:1
    _next http://192.168.1.201/ui/main.9d0e0bcdf89b5356804c.bundle.js:1
    next http://192.168.1.201/ui/main.9d0e0bcdf89b5356804c.bundle.js:1
    next http://192.168.1.201/ui/main.9d0e0bcdf89b5356804c.bundle.js:1
    emit http://192.168.1.201/ui/main.9d0e0bcdf89b5356804c.bundle.js:1
    callWebsocket http://192.168.1.201/ui/main.9d0e0bcdf89b5356804c.bundle.js:1
    __tryOrUnsub http://192.168.1.201/ui/main.9d0e0bcdf89b5356804c.bundle.js:1
    next http://192.168.1.201/ui/main.9d0e0bcdf89b5356804c.bundle.js:1
    _next http://192.168.1.201/ui/main.9d0e0bcdf89b5356804c.bundle.js:1
    next http://192.168.1.201/ui/main.9d0e0bcdf89b5356804c.bundle.js:1
    onmessage http://192.168.1.201/ui/main.9d0e0bcdf89b5356804c.bundle.js:1
    x http://192.168.1.201/ui/polyfills.4e42ab25a6112b333361.bundle.js:1
    i http://192.168.1.201/ui/main.9d0e0bcdf89b5356804c.bundle.js:1
    invokeTask http://192.168.1.201/ui/polyfills.4e42ab25a6112b333361.bundle.js:1
    onInvokeTask http://192.168.1.201/ui/main.9d0e0bcdf89b5356804c.bundle.js:1
    invokeTask http://192.168.1.201/ui/polyfills.4e42ab25a6112b333361.bundle.js:1
    runTask http://192.168.1.201/ui/polyfills.4e42ab25a6112b333361.bundle.js:1
    invokeTask http://192.168.1.201/ui/polyfills.4e42ab25a6112b333361.bundle.js:1
    m http://192.168.1.201/ui/polyfills.4e42ab25a6112b333361.bundle.js:1
    b http://192.168.1.201/ui/polyfills.4e42ab25a6112b333361.bundle.js:1

    e http://192.168.1.201/ui/main.9d0e0bcdf89b5356804c.bundle.js:1
    _t http://192.168.1.201/ui/main.9d0e0bcdf89b5356804c.bundle.js:1
    handleError http://192.168.1.201/ui/main.9d0e0bcdf89b5356804c.bundle.js:1
    next http://192.168.1.201/ui/main.9d0e0bcdf89b5356804c.bundle.js:1
    i http://192.168.1.201/ui/main.9d0e0bcdf89b5356804c.bundle.js:1
    __tryOrUnsub http://192.168.1.201/ui/main.9d0e0bcdf89b5356804c.bundle.js:1
    next http://192.168.1.201/ui/main.9d0e0bcdf89b5356804c.bundle.js:1
    _next http://192.168.1.201/ui/main.9d0e0bcdf89b5356804c.bundle.js:1
    next http://192.168.1.201/ui/main.9d0e0bcdf89b5356804c.bundle.js:1
    next http://192.168.1.201/ui/main.9d0e0bcdf89b5356804c.bundle.js:1
    emit http://192.168.1.201/ui/main.9d0e0bcdf89b5356804c.bundle.js:1
    onHandleError http://192.168.1.201/ui/main.9d0e0bcdf89b5356804c.bundle.js:1
    invoke http://192.168.1.201/ui/polyfills.4e42ab25a6112b333361.bundle.js:1
    run http://192.168.1.201/ui/polyfills.4e42ab25a6112b333361.bundle.js:1
    runOutsideAngular http://192.168.1.201/ui/main.9d0e0bcdf89b5356804c.bundle.js:1
    onHandleError http://192.168.1.201/ui/main.9d0e0bcdf89b5356804c.bundle.js:1
    handleError http://192.168.1.201/ui/polyfills.4e42ab25a6112b333361.bundle.js:1
    runTask http://192.168.1.201/ui/polyfills.4e42ab25a6112b333361.bundle.js:1
    invokeTask http://192.168.1.201/ui/polyfills.4e42ab25a6112b333361.bundle.js:1
    m http://192.168.1.201/ui/polyfills.4e42ab25a6112b333361.bundle.js:1
    b http://192.168.1.201/ui/polyfills.4e42ab25a6112b333361.bundle.js:1


Console JSON error (expanded):
Code:
{
  "error": 14,
  "type": null,
  "reason": "[EFAULT] rrdtool failed: ERROR: realpath(/var/db/collectd/rrd/localhost//disktemp-vtbd0/temperature.rrd): No such file or directory\n",
  "trace": {
    "class": "CallError",
    "frames": [
      {
        "filename": "/usr/local/lib/python3.6/site-packages/middlewared/main.py",
        "lineno": 194,
        "method": "call_method",
        "line": "            self.send_error(message, e.errno, str(e), sys.exc_info(), extra=e.extra)\n",
        "argspec": [
          "self",
          "message"
        ],
        "locals": {
          "e": "CallError('rrdtool failed: ERROR: realpath(/var/db/collectd/rrd/localhost//disktemp-vtbd0/temperature.rrd): No such file or directory\\n',)",
          "message": "{'id': '383344b2-4b88-e908-f994-74115e818562', 'msg': 'method', 'method': 'stats.get_data', 'params': [[{'source': 'disktemp-vtbd0', 'type': 'temperature', 'dataset': 'value'}, {'source': 'disktemp-vtbd0', 'type': 'temperature', 'dataset': 'value'}, {'source': 'disktemp-vtbd0', 'type': 'temperature', 'dataset': 'value'}, {'source': 'disktemp-vtbd0', 'type': 'temperature', 'dataset': 'value'}, {'source': 'disktemp-vtbd0', 'type': 'temperature', 'dataset': 'value'}]]}",
          "self": "<middlewared.main.Application object at 0x81c1b99e8>"
        }
      },
      {
        "filename": "/usr/local/lib/python3.6/site-packages/middlewared/main.py",
        "lineno": 1098,
        "method": "call_method",
        "line": "        return await self._call(message['method'], serviceobj, methodobj, params, app=app, io_thread=False)\n",
        "argspec": [
          "self",
          "app",
          "message"
        ],
        "locals": {
          "methodobj": "<bound method accepts.<locals>.wrap.<locals>.nf of <stats.StatsService object at 0x819fedb70>>",
          "serviceobj": "<stats.StatsService object at 0x819fedb70>",
          "params": "[[{'source': 'disktemp-vtbd0', 'type': 'temperature', 'dataset': 'value'}, {'source': 'disktemp-vtbd0', 'type': 'temperature', 'dataset': 'value'}, {'source': 'disktemp-vtbd0', 'type': 'temperature', 'dataset': 'value'}, {'source': 'disktemp-vtbd0', 'type': 'temperature', 'dataset': 'value'}, {'source': 'disktemp-vtbd0', 'type': 'temperature', 'dataset': 'value'}]]",
          "message": "{'id': '383344b2-4b88-e908-f994-74115e818562', 'msg': 'method', 'method': 'stats.get_data', 'params': [[{'source': 'disktemp-vtbd0', 'type': 'temperature', 'dataset': 'value'}, {'source': 'disktemp-vtbd0', 'type': 'temperature', 'dataset': 'value'}, {'source': 'disktemp-vtbd0', 'type': 'temperature', 'dataset': 'value'}, {'source': 'disktemp-vtbd0', 'type': 'temperature', 'dataset': 'value'}, {'source': 'disktemp-vtbd0', 'type': 'temperature', 'dataset': 'value'}]]}",
          "app": "<middlewared.main.Application object at 0x81c1b99e8>",
          "self": "<middlewared.main.Middleware object at 0x80afdfbe0>"
        }
      },
      {
        "filename": "/usr/local/lib/python3.6/site-packages/middlewared/main.py",
        "lineno": 1046,
        "method": "_call",
        "line": "                return await methodobj(*args)\n",
        "argspec": [
          "self",
          "name",
          "serviceobj",
          "methodobj",
          "params",
          "app",
          "pipes",
          "io_thread"
        ],
        "locals": {
          "job": "None",
          "job_options": "None",
          "args": "[[{'source': 'disktemp-vtbd0', 'type': 'temperature', 'dataset': 'value'}, {'source': 'disktemp-vtbd0', 'type': 'temperature', 'dataset': 'value'}, {'source': 'disktemp-vtbd0', 'type': 'temperature', 'dataset': 'value'}, {'source': 'disktemp-vtbd0', 'type': 'temperature', 'dataset': 'value'}, {'source': 'disktemp-vtbd0', 'type': 'temperature', 'dataset': 'value'}]]",
          "io_thread": "False",
          "pipes": "None",
          "app": "<middlewared.main.Application object at 0x81c1b99e8>",
          "params": "[[{'source': 'disktemp-vtbd0', 'type': 'temperature', 'dataset': 'value'}, {'source': 'disktemp-vtbd0', 'type': 'temperature', 'dataset': 'value'}, {'source': 'disktemp-vtbd0', 'type': 'temperature', 'dataset': 'value'}, {'source': 'disktemp-vtbd0', 'type': 'temperature', 'dataset': 'value'}, {'source': 'disktemp-vtbd0', 'type': 'temperature', 'dataset': 'value'}]]",
          "methodobj": "<bound method accepts.<locals>.wrap.<locals>.nf of <stats.StatsService object at 0x819fedb70>>",
          "serviceobj": "<stats.StatsService object at 0x819fedb70>",
          "name": "'stats.get_data'",
          "self": "<middlewared.main.Middleware object at 0x80afdfbe0>"
        }
      },
      {
        "filename": "/usr/local/lib/python3.6/site-packages/middlewared/schema.py",
        "lineno": 664,
        "method": "nf",
        "line": "                return await f(*args, **kwargs)\n",
        "varargspec": "args",
        "keywordspec": "kwargs",
        "locals": {
          "kwargs": "{'stats': {'step': 10, 'start': 'now-1h', 'end': 'now'}}",
          "args": "('***', '***')",
          "f": "<function StatsService.get_data at 0x81a007a60>",
          "clean_and_validate_args": "<function accepts.<locals>.wrap.<locals>.clean_and_validate_args at 0x81a007ae8>"
        }
      },
      {
        "filename": "/usr/local/lib/python3.6/site-packages/middlewared/plugins/stats.py",
        "lineno": 115,
        "method": "get_data",
        "line": "            raise CallError('rrdtool failed: {}'.format(err.decode()))\n",
        "argspec": [
          "self",
          "data_list",
          "stats"
        ],
        "locals": {
          "err": "b'ERROR: realpath(/var/db/collectd/rrd/localhost//disktemp-vtbd0/temperature.rrd): No such file or directory\\n'",
          "proc": "<Process 96908>",
          "rrdfile": "'/var/db/collectd/rrd/localhost//disktemp-vtbd0/temperature.rrd'",
          "data": "b''",
          "i": "4",
          "names_pair": "[['disktemp-vtbd0', 'temperature'], ['disktemp-vtbd0', 'temperature'], ['disktemp-vtbd0', 'temperature'], ['disktemp-vtbd0', 'temperature'], ['disktemp-vtbd0', 'temperature']]",
          "defs": "['DEF:xxx0=/var/db/collectd/rrd/localhost//disktemp-vtbd0/temperature.rrd:value:AVERAGE', 'XPORT:xxx0:disktemp-vtbd0/temperature', 'DEF:xxx1=/var/db/collectd/rrd/localhost//disktemp-vtbd0/temperature.rrd:value:AVERAGE', 'XPORT:xxx1:disktemp-vtbd0/temperature', 'DEF:xxx2=/var/db/collectd/rrd/localhost//disktemp-vtbd0/temperature.rrd:value:AVERAGE', 'XPORT:xxx2:disktemp-vtbd0/temperature', 'DEF:xxx3=/var/db/collectd/rrd/localhost//disktemp-vtbd0/temperature.rrd:value:AVERAGE', 'XPORT:xxx3:disktemp-vtbd0/temperature', 'DEF:xxx4=/var/db/collectd/rrd/localhost//disktemp-vtbd0/temperature.rrd:value:AVERAGE', 'XPORT:xxx4:disktemp-vtbd0/temperature']",
          "stats": "{'step': 10, 'start': 'now-1h', 'end': 'now'}",
          "data_list": "[{'source': 'disktemp-vtbd0', 'type': 'temperature', 'dataset': 'value', 'cf': 'AVERAGE'}, {'source': 'disktemp-vtbd0', 'type': 'temperature', 'dataset': 'value', 'cf': 'AVERAGE'}, {'source': 'disktemp-vtbd0', 'type': 'temperature', 'dataset': 'value', 'cf': 'AVERAGE'}, {'source': 'disktemp-vtbd0', 'type': 'temperature', 'dataset': 'value', 'cf': 'AVERAGE'}, {'source': 'disktemp-vtbd0', 'type': 'temperature', 'dataset': 'value', 'cf': 'AVERAGE'}]",
          "self": "<stats.StatsService object at 0x819fedb70>"
        }
      }
    ],
    "formatted": "Traceback (most recent call last):\n  File \"/usr/local/lib/python3.6/site-packages/middlewared/main.py\", line 167, in call_method\n    result = await self.middleware.call_method(self, message)\n  File \"/usr/local/lib/python3.6/site-packages/middlewared/main.py\", line 1098, in call_method\n    return await self._call(message['method'], serviceobj, methodobj, params, app=app, io_thread=False)\n  File \"/usr/local/lib/python3.6/site-packages/middlewared/main.py\", line 1046, in _call\n    return await methodobj(*args)\n  File \"/usr/local/lib/python3.6/site-packages/middlewared/schema.py\", line 664, in nf\n    return await f(*args, **kwargs)\n  File \"/usr/local/lib/python3.6/site-packages/middlewared/plugins/stats.py\", line 115, in get_data\n    raise CallError('rrdtool failed: {}'.format(err.decode()))\nmiddlewared.service_exception.CallError: [EFAULT] rrdtool failed: ERROR: realpath(/var/db/collectd/rrd/localhost//disktemp-vtbd0/temperature.rrd): No such file or directory\n\n"
  },
  "extra": null,
  "id": [
    [
      {
        "source": "disktemp-vtbd0",
        "type": "temperature",
        "dataset": "value"
      },
      {
        "source": "disktemp-vtbd0",
        "type": "temperature",
        "dataset": "value"
      },
      {
        "source": "disktemp-vtbd0",
        "type": "temperature",
        "dataset": "value"
      },
      {
        "source": "disktemp-vtbd0",
        "type": "temperature",
        "dataset": "value"
      },
      {
        "source": "disktemp-vtbd0",
        "type": "temperature",
        "dataset": "value"
      }
    ]
  ]
}
 

Attachments

  • freenas.PNG
    freenas.PNG
    87.6 KB · Views: 384
  • console.PNG
    console.PNG
    104.6 KB · Views: 362
Last edited:

Redcoat

MVP
Joined
Feb 18, 2014
Messages
2,925

Yarik

Cadet
Joined
Oct 28, 2016
Messages
2
There have been quite a few reports of such behavior.

Recently Moderator Dru Lavigne commented to the effect that this was highly-hardware-dependent information and the next OS version would have some enhancements to improve what we are seeing.

Go here https://www.ixsystems.com/community/threads/freenas-web-gui-issues-missing-info.77551/#post-539214
Oh, thanks for your replay, just to figure out, by
next OS version would have some enhancements
you mean 11.3 or 12?
 

Redcoat

MVP
Joined
Feb 18, 2014
Messages
2,925
Per Dru Lavigne's posting - 11.3
 
Top