Closed Matten-Matten closed 4 years ago
This issue is caused by the limitatation of raspberrymatic. The command line interface "getconf" is called, which is not available on raspimatic.
The error message comes from cpu.js
function getClockAndPageSize (next) { parallel([ function getClockTick (cb) { getconf('CLK_TCK', {default: 100}, cb) }, function getPageSize (cb) { getconf('PAGESIZE', {default: 4096}, cb) } ], function (err, data) { if (err) return next(err)
next(null, {clockTick: data[0], pageSize: data[1]})
}) } With error message output here:
function getconf (keyword, options, next) { if (typeof options === 'function') { next = options options = { default: '' } }
exec('getconf ' + keyword, function (error, stdout, stderr) { if (error !== null) { console.error('Error while getting ' + keyword, error) return next(null, options.default) }
stdout = parseInt(stdout)
if (!isNaN(stdout)) {
return next(null, stdout)
}
return next(null, options.default)
}) }
Because there are dedault values taken this issue should not matter.
Na wenn das getconf wirklich nicht zwingend gebraucht wird würde ich dieses ticket nicht einfach schließen sondern an ursprünglicher stelle dafür sorgen (durch ein entsprechendes ticket im js-controller github) das vor ausführung eine simple prüfung eingebaut wird ob es das kommando gibt oder nicht sodass in einer zukünftigen version von js-controller das problem nicht mehr auftritt.
/usr/local/addons/hm-iobroker/node_modules/pidusage/lib/helpers/cpu.js
ich hab das erzeugen der Meldung jetzt erst einmal in Zeile 75 ausgeklammert.
Zuerst mal, aller erste Sahne das du das Thema iobroker addon angegangen bist. Ich habe das Addon erfolgreich installieren und updaten können.
ab und an spuckt das Log folgende Fehlermeldung aus:
ich hoffe das hilft dir bei der Weiterentwicklung. Gruß Matten Matten