bobey / storj-collectd-plugin

A collectd exec plugin to monitor your Storj.io nodes
http://blog.overnetcity.com
MIT License
12 stars 1 forks source link

SyntaxError while running #6

Closed pRizz closed 7 years ago

pRizz commented 7 years ago

From tailing syslog


Jul  4 01:17:15 raspberrypi collectd[2360]: exec plugin: exec_read_one: error = const dnode = require('dnode');
Jul  4 01:17:15 raspberrypi collectd[2360]: exec plugin: exec_read_one: error = ^^^^^
Jul  4 01:17:15 raspberrypi collectd[2360]: exec plugin: exec_read_one: error = SyntaxError: Use of const in strict mode.
Jul  4 01:17:15 raspberrypi collectd[2360]: exec plugin: exec_read_one: error =     at Module._compile (module.js:439:25)
Jul  4 01:17:15 raspberrypi collectd[2360]: exec plugin: exec_read_one: error =     at Object.Module._extensions..js (module.js:474:10)
Jul  4 01:17:15 raspberrypi collectd[2360]: exec plugin: exec_read_one: error =     at Module.load (module.js:356:32)
Jul  4 01:17:15 raspberrypi collectd[2360]: exec plugin: exec_read_one: error =     at Function.Module._load (module.js:312:12)
Jul  4 01:17:15 raspberrypi collectd[2360]: exec plugin: exec_read_one: error =     at Function.Module.runMain (module.js:497:10)
Jul  4 01:17:15 raspberrypi collectd[2360]: exec plugin: exec_read_one: error =     at startup (node.js:119:16)
Jul  4 01:17:15 raspberrypi collectd[2360]: exec plugin: exec_read_one: error =     at node.js:906:3```
pRizz commented 7 years ago

Had to update node as root