NEWS
[gelöst] Canvas - compiled against a different Node.js vers,
-
@mickym Die package.json scheint jetzt soweit ok, nur dass es halt noch die iobroker.core ist.
pi@raspberrypi:/opt/iobroker$ cat package.json { "name": "iobroker.core", "version": "1.0.0", "private": true, "dependencies": { "iobroker.admin": "6.2.23", "iobroker.alexa2": "3.21.0", "iobroker.backitup": "2.5.4", "iobroker.daswetter": "3.1.4", "iobroker.device-reminder": "github:xenon-s/ioBroker.device-reminder", "iobroker.devices": "1.0.12", "iobroker.echarts": "1.0.12", "iobroker.fb-checkpresence": "1.1.20", "iobroker.feiertage": "^1.1.0", "iobroker.flot": "1.11.0", "iobroker.heatingcontrol": "2.9.3", "iobroker.ical": "1.13.1", "iobroker.info": "1.9.19", "iobroker.iot": "1.11.9", "iobroker.javascript": "6.0.3", "iobroker.js-controller": "4.0.23", "iobroker.lgtv": "^1.1.10", "iobroker.lupusec": "^1.3.6", "iobroker.mihome-vacuum": "3.8.6", "iobroker.mqtt": "4.0.7", "iobroker.octoprint": "4.0.0", "iobroker.simple-api": "2.7.0", "iobroker.socketio": "4.2.0", "iobroker.sourceanalytix": "github:DrozmotiX/ioBroker.sourceanalytix#583e582d5567addd67816fcf552ec11c50f43809", "iobroker.sql": "2.1.8", "iobroker.tankerkoenig": "^2.1.1", "iobroker.telegram": "1.14.1", "iobroker.vis": "1.4.15", "iobroker.vis-colorpicker": "^1.2.0", "iobroker.vis-jqui-mfd": "^1.0.12", "iobroker.web": "4.3.0", "iobroker.yamaha": "0.5.3", "iobroker.zigbee": "github:ioBroker/ioBroker.zigbee#ec2014313ef023590b911c7d8ee8843eeab3fcbf" } }
Leider hat das dann mit dem NPM Prune nicht funktioniert:
pi@raspberrypi:/opt/iobroker$ iobroker rebuild self Rebuilding native module "self" ... rebuilt dependencies successfully Rebuilding native modules done pi@raspberrypi:/opt/iobroker$ npm list iobroker.core@1.0.0 /opt/iobroker ├── @gar/promisify@1.1.3 extraneous ├── @mapbox/node-pre-gyp@1.0.10 extraneous ├── @npmcli/fs@1.1.1 extraneous ├── @npmcli/move-file@1.1.2 extraneous ├── @tootallnate/once@1.1.2 extraneous ├── abbrev@1.1.1 extraneous ├── agentkeepalive@4.2.1 extraneous ├── aggregate-error@3.1.0 extraneous ├── aproba@1.2.0 extraneous ├── cacache@15.3.0 extraneous ├── clean-stack@2.2.0 extraneous ├── color-support@1.1.3 extraneous ├── console-control-strings@1.1.0 extraneous ├── delegates@1.0.0 extraneous ├── env-paths@2.2.1 extraneous ├── err-code@2.0.3 extraneous ├── has-unicode@2.0.1 extraneous ├── http-cache-semantics@4.1.0 extraneous ├── http-proxy-agent@4.0.1 extraneous ├── humanize-ms@1.2.1 extraneous ├── imurmurhash@0.1.4 extraneous ├── indent-string@4.0.0 extraneous ├── infer-owner@1.0.4 extraneous ├── iobroker.admin@6.2.23 ├── iobroker.alexa2@3.21.0 ├── iobroker.backitup@2.5.4 ├── iobroker.daswetter@3.1.4 ├── iobroker.device-reminder@1.2.9 (git+ssh://git@github.com/xenon-s/ioBroker.device-reminder.git#4162ebc0a96605f103df23e277abcf1b673065dd) ├── iobroker.devices@1.0.12 ├── iobroker.echarts@1.0.12 ├── iobroker.fb-checkpresence@1.1.20 ├── iobroker.feiertage@1.1.0 ├── iobroker.flot@1.11.0 ├── iobroker.heatingcontrol@2.9.3 ├── iobroker.ical@1.13.1 ├── iobroker.info@1.9.19 ├── iobroker.iot@1.11.9 ├── iobroker.javascript@6.0.3 ├── iobroker.js-controller@4.0.23 ├── iobroker.lgtv@1.1.10 ├── iobroker.lupusec@1.3.6 ├── iobroker.mihome-vacuum@3.8.6 ├── iobroker.mqtt@4.0.7 ├── iobroker.octoprint@4.0.0 ├── iobroker.simple-api@2.7.0 ├── iobroker.socketio@4.2.0 ├── iobroker.sourceanalytix@0.4.12 (git+ssh://git@github.com/DrozmotiX/ioBroker.sourceanalytix.git#583e582d5567addd67816fcf552ec11c50f43809) ├── iobroker.sql@2.1.8 ├── iobroker.tankerkoenig@2.1.1 ├── iobroker.telegram@1.14.1 ├── iobroker.vis-colorpicker@1.2.0 ├── iobroker.vis-jqui-mfd@1.0.12 ├── iobroker.vis@1.4.15 ├── iobroker.web@4.3.0 ├── iobroker.yamaha@0.5.3 ├── iobroker.zigbee@1.7.5 (git+ssh://git@github.com/ioBroker/ioBroker.zigbee.git#ec2014313ef023590b911c7d8ee8843eeab3fcbf) ├── ip@2.0.0 extraneous ├── is-lambda@1.0.1 extraneous ├── make-dir@3.1.0 extraneous ├── make-fetch-happen@9.1.0 extraneous ├── minipass-collect@1.0.2 extraneous ├── minipass-fetch@1.4.1 extraneous ├── minipass-flush@1.0.5 extraneous ├── minipass-pipeline@1.2.4 extraneous ├── minipass-sized@1.0.3 extraneous ├── node-gyp@8.4.1 extraneous ├── nopt@5.0.0 extraneous ├── promise-inflight@1.0.1 extraneous ├── promise-retry@2.0.1 extraneous ├── rimraf@3.0.2 extraneous ├── set-blocking@2.0.0 extraneous ├── smart-buffer@4.2.0 extraneous ├── socks-proxy-agent@6.2.1 extraneous ├── socks@2.7.0 extraneous ├── ssri@8.0.1 extraneous ├── unique-filename@1.1.1 extraneous ├── unique-slug@2.0.2 extraneous └── wide-align@1.1.5 extraneous pi@raspberrypi:/opt/iobroker$ npm prune up to date in 8s 76 packages are looking for funding run `npm fund` for details pi@raspberrypi:/opt/iobroker$ npm list iobroker.core@1.0.0 /opt/iobroker ├── @gar/promisify@1.1.3 extraneous ├── @mapbox/node-pre-gyp@1.0.10 extraneous ├── @npmcli/fs@1.1.1 extraneous ├── @npmcli/move-file@1.1.2 extraneous ├── @tootallnate/once@1.1.2 extraneous ├── abbrev@1.1.1 extraneous ├── agentkeepalive@4.2.1 extraneous ├── aggregate-error@3.1.0 extraneous ├── aproba@1.2.0 extraneous ├── cacache@15.3.0 extraneous ├── clean-stack@2.2.0 extraneous ├── color-support@1.1.3 extraneous ├── console-control-strings@1.1.0 extraneous ├── delegates@1.0.0 extraneous ├── env-paths@2.2.1 extraneous ├── err-code@2.0.3 extraneous ├── has-unicode@2.0.1 extraneous ├── http-cache-semantics@4.1.0 extraneous ├── http-proxy-agent@4.0.1 extraneous ├── humanize-ms@1.2.1 extraneous ├── imurmurhash@0.1.4 extraneous ├── indent-string@4.0.0 extraneous ├── infer-owner@1.0.4 extraneous ├── iobroker.admin@6.2.23 ├── iobroker.alexa2@3.21.0 ├── iobroker.backitup@2.5.4 ├── iobroker.daswetter@3.1.4 ├── iobroker.device-reminder@1.2.9 (git+ssh://git@github.com/xenon-s/ioBroker.device-reminder.git#4162ebc0a96605f103df23e277abcf1b673065dd) ├── iobroker.devices@1.0.12 ├── iobroker.echarts@1.0.12 ├── iobroker.fb-checkpresence@1.1.20 ├── iobroker.feiertage@1.1.0 ├── iobroker.flot@1.11.0 ├── iobroker.heatingcontrol@2.9.3 ├── iobroker.ical@1.13.1 ├── iobroker.info@1.9.19 ├── iobroker.iot@1.11.9 ├── iobroker.javascript@6.0.3 ├── iobroker.js-controller@4.0.23 ├── iobroker.lgtv@1.1.10 ├── iobroker.lupusec@1.3.6 ├── iobroker.mihome-vacuum@3.8.6 ├── iobroker.mqtt@4.0.7 ├── iobroker.octoprint@4.0.0 ├── iobroker.simple-api@2.7.0 ├── iobroker.socketio@4.2.0 ├── iobroker.sourceanalytix@0.4.12 (git+ssh://git@github.com/DrozmotiX/ioBroker.sourceanalytix.git#583e582d5567addd67816fcf552ec11c50f43809) ├── iobroker.sql@2.1.8 ├── iobroker.tankerkoenig@2.1.1 ├── iobroker.telegram@1.14.1 ├── iobroker.vis-colorpicker@1.2.0 ├── iobroker.vis-jqui-mfd@1.0.12 ├── iobroker.vis@1.4.15 ├── iobroker.web@4.3.0 ├── iobroker.yamaha@0.5.3 ├── iobroker.zigbee@1.7.5 (git+ssh://git@github.com/ioBroker/ioBroker.zigbee.git#ec2014313ef023590b911c7d8ee8843eeab3fcbf) ├── ip@2.0.0 extraneous ├── is-lambda@1.0.1 extraneous ├── make-dir@3.1.0 extraneous ├── make-fetch-happen@9.1.0 extraneous ├── minipass-collect@1.0.2 extraneous ├── minipass-fetch@1.4.1 extraneous ├── minipass-flush@1.0.5 extraneous ├── minipass-pipeline@1.2.4 extraneous ├── minipass-sized@1.0.3 extraneous ├── node-gyp@8.4.1 extraneous ├── nopt@5.0.0 extraneous ├── promise-inflight@1.0.1 extraneous ├── promise-retry@2.0.1 extraneous ├── rimraf@3.0.2 extraneous ├── set-blocking@2.0.0 extraneous ├── smart-buffer@4.2.0 extraneous ├── socks-proxy-agent@6.2.1 extraneous ├── socks@2.7.0 extraneous ├── ssri@8.0.1 extraneous ├── unique-filename@1.1.1 extraneous ├── unique-slug@2.0.2 extraneous └── wide-align@1.1.5 extraneous
-
@anno171986 Wenn die package.json so sauber ist, das passt schon - dann mach das was unter 1. steht. Benenne oder lösche Dein komplettes node_modules Verzeichnis und lasse es mit npm install (cache, package-json.lock löschen) neu aufbauen.
Anschliessend alles updaten. Diese extraneous Dinger kommen auch, wenn da veraltete Bibliotheken geladen werden.
Mal nur zum Vergleich mein package.json schaut so aus.
{ "name": "iobroker.inst", "version": "3.0.0", "private": true, "description": "Automate your Life", "engines": { "node": ">=10.0.0" }, "dependencies": { "iobroker.admin": "6.2.23", "iobroker.backitup": "2.5.4", "iobroker.dwd": "2.8.3", "iobroker.flot": "1.11.0", "iobroker.info": "^1.9.19", "iobroker.javascript": "6.0.3", "iobroker.js-controller": "stable", "iobroker.linux-control": "1.1.3", "iobroker.mercedesme": "0.0.59", "iobroker.mqtt": "4.0.7", "iobroker.node-red": "github:ioBroker/ioBroker.node-red", "iobroker.pi-hole": "1.3.4", "iobroker.ping": "1.5.3", "iobroker.simple-api": "2.7.0", "iobroker.socketio": "4.2.0", "iobroker.sourceanalytix": "0.4.14", "iobroker.sql": "2.1.8", "iobroker.tr-064": "4.2.16", "iobroker.vis": "1.4.15", "iobroker.vis-hqwidgets": "1.3.0", "iobroker.web": "4.3.0", "iobroker.yahka": "0.13.1" } }
Theoretisch kannst ja auch die mal probieren und nur die dependencies section mit der Deinen austauschen.
-
@mickym DAnke, irgendwie hat sich aber leider nichts getan:
pi@raspberrypi:/opt/iobroker/node_modules$ cp -ar /opt/iobroker/node_modules /opt/iobroker/Backup_node_modules pi@raspberrypi:/opt/iobroker/Backup_node_modules$ cd /opt/iobroker pi@raspberrypi:/opt/iobroker$ sudo rm -rf node_modules pi@raspberrypi:/opt/iobroker$ cd node_modules -bash: cd: node_modules: Datei oder Verzeichnis nicht gefunden pi@raspberrypi:/opt/iobroker$ sudo rm package-lock.json pi@raspberrypi:/opt/iobroker$ ls Backup_node_modules INSTALLER_INFO.txt node_modules_ backups iob package.json CHANGELOG_FIXER_LINUX.md iobroker packagejson_backup CHANGELOG_INSTALLER_LINUX.md iobroker-data package-lockjson_backup fix_installation.sh lib README.md --force LICENSE reinstall.js install log pi@raspberrypi:/opt/iobroker$ npm cache clean --force npm WARN using --force Recommended protections disabled. pi@raspberrypi:/opt/iobroker$ cat package.json { "name": "iobroker.core", "version": "1.0.0", "private": true, "dependencies": { "iobroker.admin": "6.2.23", "iobroker.alexa2": "3.21.0", "iobroker.backitup": "2.5.4", "iobroker.daswetter": "3.1.4", "iobroker.device-reminder": "github:xenon-s/ioBroker.device-reminder", "iobroker.devices": "1.0.12", "iobroker.echarts": "1.0.12", "iobroker.fb-checkpresence": "1.1.20", "iobroker.feiertage": "^1.1.0", "iobroker.flot": "1.11.0", "iobroker.heatingcontrol": "2.9.3", "iobroker.ical": "1.13.1", "iobroker.info": "1.9.19", "iobroker.iot": "1.11.9", "iobroker.javascript": "6.0.3", "iobroker.js-controller": "4.0.23", "iobroker.lgtv": "^1.1.10", "iobroker.lupusec": "^1.3.6", "iobroker.mihome-vacuum": "3.8.6", "iobroker.mqtt": "4.0.7", "iobroker.octoprint": "4.0.0", "iobroker.simple-api": "2.7.0", "iobroker.socketio": "4.2.0", "iobroker.sourceanalytix": "github:DrozmotiX/ioBroker.sourceanalytix#583e582d5567addd67816fcf552ec11c50f43809", "iobroker.sql": "2.1.8", "iobroker.tankerkoenig": "^2.1.1", "iobroker.telegram": "1.14.1", "iobroker.vis": "1.4.15", "iobroker.vis-colorpicker": "^1.2.0", "iobroker.vis-jqui-mfd": "^1.0.12", "iobroker.web": "4.3.0", "iobroker.yamaha": "0.5.3", "iobroker.zigbee": "github:ioBroker/ioBroker.zigbee#ec2014313ef023590b911c7d8ee8843eeab3fcbf" } } pi@raspberrypi:/opt/iobroker$ npm install npm WARN skipping integrity check for git dependency ssh://git@github.com/ioBroker/ioBroker.zigbee.git npm WARN skipping integrity check for git dependency ssh://git@github.com/DrozmotiX/ioBroker.sourceanalytix.git npm WARN deprecated @npmcli/move-file@1.1.2: This functionality has been moved to @npmcli/fs npm WARN deprecated har-validator@5.1.5: this library is no longer supported npm WARN deprecated w3c-hr-time@1.0.2: Use your platform's native performance.now() and performance.timeOrigin. npm WARN deprecated request-promise@4.2.6: request-promise has been deprecated because it extends the now deprecated request package, see https://github.com/request/request/issues/3142 npm WARN deprecated node-inspect@2.0.0: This module is part of Node.js core and does not need to be installed separately. It is now unmaintained. npm WARN deprecated querystring@0.2.1: The querystring API is considered Legacy. new code should use the URLSearchParams API instead. npm WARN deprecated request@2.88.2: request has been deprecated, see https://github.com/request/request/issues/3142 npm WARN deprecated debug@4.1.1: Debug versions >=3.2.0 <3.2.7 || >=4 <4.3.1 have a low-severity ReDos regression when used in a Node.js environment. It is recommended you upgrade to 3.2.7 or 4.3.1. (https://github.com/visionmedia/debug/issues/797) npm WARN deprecated debug@4.1.1: Debug versions >=3.2.0 <3.2.7 || >=4 <4.3.1 have a low-severity ReDos regression when used in a Node.js environment. It is recommended you upgrade to 3.2.7 or 4.3.1. (https://github.com/visionmedia/debug/issues/797) npm WARN deprecated debug@4.1.1: Debug versions >=3.2.0 <3.2.7 || >=4 <4.3.1 have a low-severity ReDos regression when used in a Node.js environment. It is recommended you upgrade to 3.2.7 or 4.3.1. (https://github.com/visionmedia/debug/issues/797) npm WARN deprecated querystring@0.2.0: The querystring API is considered Legacy. new code should use the URLSearchParams API instead. npm WARN deprecated uuid@3.4.0: Please upgrade to version 7 or higher. Older versions may use Math.random() in certain circumstances, which is known to be problematic. See https://v8.dev/blog/math-random for details. npm WARN deprecated loadsh@0.0.4: This is a typosquat on the popular Lodash package. This is not maintained nor is the original Lodash package. added 992 packages in 5m 77 packages are looking for funding run `npm fund` for details pi@raspberrypi:/opt/iobroker$ npm list iobroker.core@1.0.0 /opt/iobroker ├── @gar/promisify@1.1.3 extraneous ├── @mapbox/node-pre-gyp@1.0.10 extraneous ├── @npmcli/fs@1.1.1 extraneous ├── @npmcli/move-file@1.1.2 extraneous ├── @types/caseless@0.12.2 extraneous ├── @types/request@2.48.8 extraneous ├── @types/tough-cookie@4.0.2 extraneous ├── abbrev@1.1.1 extraneous ├── agentkeepalive@4.2.1 extraneous ├── aggregate-error@3.1.0 extraneous ├── aproba@2.0.0 extraneous ├── are-we-there-yet@2.0.0 extraneous ├── cacache@15.3.0 extraneous ├── clean-stack@2.2.0 extraneous ├── coffeescript@1.12.7 extraneous ├── color-support@1.1.3 extraneous ├── console-control-strings@1.1.0 extraneous ├── delegates@1.0.0 extraneous ├── env-paths@2.2.1 extraneous ├── err-code@2.0.3 extraneous ├── gauge@3.0.2 extraneous ├── has-unicode@2.0.1 extraneous ├── http-cache-semantics@4.1.0 extraneous ├── humanize-ms@1.2.1 extraneous ├── imurmurhash@0.1.4 extraneous ├── indent-string@4.0.0 extraneous ├── infer-owner@1.0.4 extraneous ├── iobroker.admin@6.2.23 ├── iobroker.alexa2@3.21.0 ├── iobroker.backitup@2.5.4 ├── iobroker.daswetter@3.1.4 ├── iobroker.device-reminder@1.2.9 (git+ssh://git@github.com/xenon-s/ioBroker.device-reminder.git#fb44c4390139208538fa6af354ebdb2deb315300) ├── iobroker.devices@1.0.12 ├── iobroker.echarts@1.0.12 ├── iobroker.fb-checkpresence@1.1.20 ├── iobroker.feiertage@1.1.0 ├── iobroker.flot@1.11.0 ├── iobroker.heatingcontrol@2.9.3 ├── iobroker.ical@1.13.1 ├── iobroker.info@1.9.19 ├── iobroker.iot@1.11.9 ├── iobroker.javascript@6.0.3 ├── iobroker.js-controller@4.0.23 ├── iobroker.lgtv@1.1.10 ├── iobroker.lupusec@1.3.6 ├── iobroker.mihome-vacuum@3.8.6 ├── iobroker.mqtt@4.0.7 ├── iobroker.octoprint@4.0.0 ├── iobroker.simple-api@2.7.0 ├── iobroker.socketio@4.2.0 ├── iobroker.sourceanalytix@0.4.12 (git+ssh://git@github.com/DrozmotiX/ioBroker.sourceanalytix.git#583e582d5567addd67816fcf552ec11c50f43809) ├── iobroker.sql@2.1.8 ├── iobroker.tankerkoenig@2.1.1 ├── iobroker.telegram@1.14.1 ├── iobroker.vis-colorpicker@1.2.0 ├── iobroker.vis-jqui-mfd@1.0.12 ├── iobroker.vis@1.4.15 ├── iobroker.web@4.3.0 ├── iobroker.yamaha@0.5.3 ├── iobroker.zigbee@1.7.5 (git+ssh://git@github.com/ioBroker/ioBroker.zigbee.git#ec2014313ef023590b911c7d8ee8843eeab3fcbf) ├── ip@2.0.0 extraneous ├── is-lambda@1.0.1 extraneous ├── jsonata@1.8.6 extraneous ├── make-dir@3.1.0 extraneous ├── make-fetch-happen@9.1.0 extraneous ├── minipass-collect@1.0.2 extraneous ├── minipass-fetch@1.4.1 extraneous ├── minipass-flush@1.0.5 extraneous ├── minipass-pipeline@1.2.4 extraneous ├── minipass-sized@1.0.3 extraneous ├── node-gyp@8.4.1 extraneous ├── node-inspect@2.0.0 extraneous ├── nopt@5.0.0 extraneous ├── npmlog@5.0.1 extraneous ├── picocolors@1.0.0 extraneous ├── promise-inflight@1.0.1 extraneous ├── promise-retry@2.0.1 extraneous ├── rimraf@3.0.2 extraneous ├── set-blocking@2.0.0 extraneous ├── smart-buffer@4.2.0 extraneous ├── socks-proxy-agent@6.2.1 extraneous ├── socks@2.7.1 extraneous ├── ssri@8.0.1 extraneous ├── suncalc2@1.8.1 extraneous ├── unique-filename@1.1.1 extraneous ├── unique-slug@2.0.2 extraneous ├── virtual-tsc@0.6.2 extraneous ├── wake_on_lan@1.0.0 extraneous └── wide-align@1.1.5 extraneous pi@raspberrypi:/opt/iobroker$ cat package.json { "name": "iobroker.core", "version": "1.0.0", "private": true, "dependencies": { "iobroker.admin": "6.2.23", "iobroker.alexa2": "3.21.0", "iobroker.backitup": "2.5.4", "iobroker.daswetter": "3.1.4", "iobroker.device-reminder": "github:xenon-s/ioBroker.device-reminder", "iobroker.devices": "1.0.12", "iobroker.echarts": "1.0.12", "iobroker.fb-checkpresence": "1.1.20", "iobroker.feiertage": "^1.1.0", "iobroker.flot": "1.11.0", "iobroker.heatingcontrol": "2.9.3", "iobroker.ical": "1.13.1", "iobroker.info": "1.9.19", "iobroker.iot": "1.11.9", "iobroker.javascript": "6.0.3", "iobroker.js-controller": "4.0.23", "iobroker.lgtv": "^1.1.10", "iobroker.lupusec": "^1.3.6", "iobroker.mihome-vacuum": "3.8.6", "iobroker.mqtt": "4.0.7", "iobroker.octoprint": "4.0.0", "iobroker.simple-api": "2.7.0", "iobroker.socketio": "4.2.0", "iobroker.sourceanalytix": "github:DrozmotiX/ioBroker.sourceanalytix#583e582d5567addd67816fcf552ec11c50f43809", "iobroker.sql": "2.1.8", "iobroker.tankerkoenig": "^2.1.1", "iobroker.telegram": "1.14.1", "iobroker.vis": "1.4.15", "iobroker.vis-colorpicker": "^1.2.0", "iobroker.vis-jqui-mfd": "^1.0.12", "iobroker.web": "4.3.0", "iobroker.yamaha": "0.5.3", "iobroker.zigbee": "github:ioBroker/ioBroker.zigbee#ec2014313ef023590b911c7d8ee8843eeab3fcbf" } }
-
-
Nein
pi@raspberrypi:/opt/iobroker$ iob upgrade All adapters are up to date
Aber das Problem war ja kein Adapter sondern canvas. Das scheint jetzt ganz weg zu sein:
pi@raspberrypi:/opt/iobroker$ cd /opt/iobroker/node_modules pi@raspberrypi:/opt/iobroker/node_modules$ npm ls canvas iobroker.core@1.0.0 /opt/iobroker └── (empty)
Ich werde den den Rpi neustarten und gucken was der iobroker so sagt und was dann beim ausführen vom Skript passiert.
-
@anno171986 Also was ich bisschen eigenartig finde, ist
- das Dein header so komplett anders ist, als bei mir.
- das heißt, dass Du einfach keinen sauberen Baum hast. Letzter kann aber auch daher kommen, dass entweder ein Adapter oder Du selbst über den JS-Adapter alte nodejs Module installierst, die Dir dann so einen unsauberen Baum generieren. Ich habe das festgestellt, wenn man beispielsweise die moments Bibliothek im JS Adapter nachinstalliert.
Dieses canvas wird ja meines Erachtens nur zum Zeichnen von irgendwelchen Karten benötigt?
EDIT:
Ich würde halt auch mal die beiden github Versionen, vom zigbee und vom sourceanlytics Adapter gegen richtige Versionen tauschen. -
@mickym Ich weiß nicht, wo der unterschiedliche "name" in dem Header her kommt.
Gute NAchricht, iobroker scheint zu laufen, alle Adapter grün. Ja, ich möchte canvas benutzen um ein Bild aus einem eChart zu erstellen und mir das dann per Telegram zuschicken zu lassen.
Jetzt kommt folgender Fehler:
Cannot find required modules: Error: Cannot find module 'canvas'Require stack:- /opt/iobroker/node_modules/iobroker.echarts/main.js
canvas scheint als weg, schon mal nicht schlecht. Frage: Wie installiere ich es jetzt richtig?
-
@anno171986 Ich würde erstmal versuchen - den echarts Adapter nochmal zu installieren - weiss nicht ob Du schon daten hast.
-
So ging es schonmal nicht:
pi@raspberrypi:/opt/iobroker$ cd /opt/iobroker pi@raspberrypi:/opt/iobroker$ npm install canvas npm ERR! code 1 npm ERR! path /opt/iobroker/node_modules/canvas npm ERR! command failed npm ERR! command sh -c -- node-pre-gyp install --fallback-to-build --update-binary npm ERR! Failed to execute '/usr/bin/node /usr/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js clean' (1) npm ERR! node-pre-gyp info it worked if it ends with ok npm ERR! node-pre-gyp info using node-pre-gyp@1.0.10 npm ERR! node-pre-gyp info using node@16.18.1 | linux | arm npm ERR! node-pre-gyp http GET https://github.com/Automattic/node-canvas/releases/download/v2.10.2/canvas-v2.10.2-node-v93-linux-glibc-arm.tar.gz npm ERR! node-pre-gyp ERR! install response status 404 Not Found on https://github.com/Automattic/node-canvas/releases/download/v2.10.2/canvas-v2.10.2-node-v93-linux-glibc-arm.tar.gz npm ERR! node-pre-gyp WARN Pre-built binaries not installable for canvas@2.10.2 and node@16.18.1 (node-v93 ABI, glibc) (falling back to source compile with node-gyp) npm ERR! node-pre-gyp WARN Hit error response status 404 Not Found on https://github.com/Automattic/node-canvas/releases/download/v2.10.2/canvas-v2.10.2-node-v93-linux-glibc-arm.tar.gz npm ERR! node:internal/modules/cjs/loader:988 npm ERR! throw err; npm ERR! ^ npm ERR! npm ERR! Error: Cannot find module 'object-assign' npm ERR! Require stack: npm ERR! - /usr/lib/node_modules/npm/node_modules/node-gyp/node_modules/gauge/render-template.js npm ERR! - /usr/lib/node_modules/npm/node_modules/node-gyp/node_modules/gauge/plumbing.js npm ERR! - /usr/lib/node_modules/npm/node_modules/node-gyp/node_modules/gauge/index.js npm ERR! - /usr/lib/node_modules/npm/node_modules/node-gyp/node_modules/npmlog/log.js npm ERR! - /usr/lib/node_modules/npm/node_modules/node-gyp/lib/node-gyp.js npm ERR! - /usr/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js npm ERR! at Function.Module._resolveFilename (node:internal/modules/cjs/loader:985:15) npm ERR! at Function.Module._load (node:internal/modules/cjs/loader:833:27)npm ERR! at Module.require (node:internal/modules/cjs/loader:1057:19) npm ERR! at require (node:internal/modules/cjs/helpers:103:18) npm ERR! at Object.<anonymous> (/usr/lib/node_modules/npm/node_modules/node-gyp/node_modules/gauge/render-template.js:4:20) npm ERR! at Module._compile (node:internal/modules/cjs/loader:1155:14) npm ERR! at Object.Module._extensions..js (node:internal/modules/cjs/loader:1209:10) npm ERR! at Module.load (node:internal/modules/cjs/loader:1033:32) npm ERR! at Function.Module._load (node:internal/modules/cjs/loader:868:12)npm ERR! at Module.require (node:internal/modules/cjs/loader:1057:19) { npm ERR! code: 'MODULE_NOT_FOUND', npm ERR! requireStack: [ npm ERR! '/usr/lib/node_modules/npm/node_modules/node-gyp/node_modules/gauge/render-template.js', npm ERR! '/usr/lib/node_modules/npm/node_modules/node-gyp/node_modules/gauge/plumbing.js', npm ERR! '/usr/lib/node_modules/npm/node_modules/node-gyp/node_modules/gauge/index.js', npm ERR! '/usr/lib/node_modules/npm/node_modules/node-gyp/node_modules/npmlog/log.js', npm ERR! '/usr/lib/node_modules/npm/node_modules/node-gyp/lib/node-gyp.js',npm ERR! '/usr/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js' npm ERR! ] npm ERR! } npm ERR! node-pre-gyp ERR! build error npm ERR! node-pre-gyp ERR! stack Error: Failed to execute '/usr/bin/node /usr/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js clean' (1) npm ERR! node-pre-gyp ERR! stack at ChildProcess.<anonymous> (/opt/iobroker/node_modules/@mapbox/node-pre-gyp/lib/util/compile.js:89:23) npm ERR! node-pre-gyp ERR! stack at ChildProcess.emit (node:events:513:28) npm ERR! node-pre-gyp ERR! stack at maybeClose (node:internal/child_process:1100:16) npm ERR! node-pre-gyp ERR! stack at Process.ChildProcess._handle.onexit (node:internal/child_process:304:5) npm ERR! node-pre-gyp ERR! System Linux 5.10.103-v7l+ npm ERR! node-pre-gyp ERR! command "/usr/bin/node" "/opt/iobroker/node_modules/.bin/node-pre-gyp" "install" "--fallback-to-build" "--update-binary" npm ERR! node-pre-gyp ERR! cwd /opt/iobroker/node_modules/canvas npm ERR! node-pre-gyp ERR! node -v v16.18.1 npm ERR! node-pre-gyp ERR! node-pre-gyp -v v1.0.10 npm ERR! node-pre-gyp ERR! not ok npm ERR! A complete log of this run can be found in: npm ERR! /home/pi/.npm/_logs/2022-11-20T14_47_51_909Z-debug-0.log
Werde dann man den eCharts Adapter neu installieren
-
@mickym Auch nach der De- und Neuinstallation von eCahrts sieht es so aus:
pi@raspberrypi:/opt/iobroker$ npm list canvas iobroker.core@1.0.0 /opt/iobroker └── (empty) pi@raspberrypi:/opt/iobroker$ cd /opt/iobroker/node_modules pi@raspberrypi:/opt/iobroker/node_modules$ npm list canvas iobroker.core@1.0.0 /opt/iobroker └── (empty)
Skript gibt den selben Fehler aus:
Cannot find required modules: Error: Cannot find module 'canvas'Require stack:- /opt/iobroker/node_modules/iobroker.echarts/main.js
-
@anno171986 Na ich sehe Du bist auch noch auf buster und altem Betriebssystem. Man könnte nochmal versuchen, dass komplette nodejs runterzuschmeissen und neu zu installieren. Im Prinzip scheitert die Installation vom dem canvas ja an irgendeinem Module der node-js.
Wie gesagt - wenn Du eh nichts mehr zu verlieren hast, würde ich das noch versuchen.
Also iob stoppen - nodejs deinstallieren die ganzen npm Verzeichnisse manuell löschen und nodejs neu installieren.also
sudo apt remove nodejs
dann schauen, ob
nodejs -v npm -v
keine Ausgaben mehr liefert und unter /usr/lib keine node_modules Verzeichnis mehr gibt.
Wenn alles weg ist - dann mit
sudo apt install nodejs
wieder installieren
Ich habe den echarts Adapter auf meiner Testmaschine installiert ohne Probleme - das canvas Verzeichnis taucht dann auch auf. Also wie gesagt denke ich, dass da irgendwas uralt ist, deswegen bekommst Du da auch keinen schönen Baum hin. - Ab jetzt bin ich mit meiner Weisheit denke ich auch am Ende.
-
@mickym Hatte ein Systemupdate nach der Anleitungt versucht, klappt aber auch nicht
-
@anno171986 sagte in Canvas -> compiled against a different Node.js version:
@mickym Hatte ein Systemupdate nach der Anleitungt versucht, klappt aber auch nicht
Wie gesagt probier mal node-js neu zu installieren - iob stoppen.
Das gesamte Update von buster auf bullseye versuche lieber die Anleitung von @Thomas-Braun
https://forum.iobroker.net/topic/47213/upgrade-von-debian-10-buster-auf-11-bullseye
Ich hab zumindest auf meiner Testmaschine mal nodejs komplett runtergeschmissen und neu installiert und das hat funktioniert.
-
@mickym Das Update auf bullseye hat er jetzt nach der Anleitung von @Thomas-Braun thomas gemacht.
-
@anno171986 Na das ist doch schon mal gut - wie sieht die nodejs Version aus, hast Du die nodesource.list auch editiert
-
pi@raspberrypi:/opt/iobroker$ which nodejs && nodejs -v && which node && node -v && which npm && npm -v && apt policy nodejs /usr/bin/nodejs v16.18.1 /usr/bin/node v16.18.1 /usr/bin/npm 8.19.2 nodejs: Installiert: 16.18.1-deb-1nodesource1 Installationskandidat: 16.18.1-deb-1nodesource1 Versionstabelle: *** 16.18.1-deb-1nodesource1 500 500 https://deb.nodesource.com/node_16.x bullseye/main armhf Packages 100 /var/lib/dpkg/status 12.22.12~dfsg-1~deb11u1 500 500 http://raspbian.raspberrypi.org/raspbian bullseye/main armhf Packages
Das mit dem nodejs habe ich noch nicht gemacht. Habe jetzt öeider auch keine Zeit mehr. Muss dann morgen Abend weiter versuchen
-
@anno171986 Na vielleicht gehts ja auch so schon
-
@mickym Nein, leider nicht. Auch Neuinstallation von echarts ädnert nichts. Er scheint canvas nicht zu installieren und auch manuell geht es nicht.
Nach dem Update auf Bullseye geht mein SQl Adapter nicht mehr. Irgendwas ist mit der Datenbank "kaputt". Komme auch nicht mit HEidiSQL mehr drauf
-
@anno171986 Na dann musst erst mal schauen, ob die mysql Service läuft.
Schau mal
systemctl status mysql
-
@mickym said in Canvas -> compiled against a different Node.js version:
systemctl status mysql
pi@raspberrypi:~$ systemctl status mysql ● mariadb.service - MariaDB 10.5.15 database server Loaded: loaded (/lib/systemd/system/mariadb.service; enabled; vendor preset: enabled) Active: active (running) since Sun 2022-11-20 17:40:49 CET; 24min ago Docs: man:mariadbd(8) https://mariadb.com/kb/en/library/systemd/ Process: 545 ExecStartPre=/usr/bin/install -m 755 -o mysql -g root -d /var/run/mysqld (code=exited, status=0/SUCCESS) Process: 555 ExecStartPre=/bin/sh -c systemctl unset-environment _WSREP_START_POSITION (code=exited, status=0/SUCCESS) Process: 576 ExecStartPre=/bin/sh -c [ ! -e /usr/bin/galera_recovery ] && VAR= || VAR=`cd /usr/bin/..; /usr/bin/galera_recovery`; [ $? -eq 0 ] && systemctl set> Process: 685 ExecStartPost=/bin/sh -c systemctl unset-environment _WSREP_START_POSITION (code=exited, status=0/SUCCESS) Process: 688 ExecStartPost=/etc/mysql/debian-start (code=exited, status=0/SUCCESS) Main PID: 665 (mariadbd) Status: "Taking your SQL requests now..." Tasks: 8 (limit: 4915) CPU: 2.701s CGroup: /system.slice/mariadb.service └─665 /usr/sbin/mariadbd Nov 20 17:40:49 raspberrypi systemd[1]: Started MariaDB 10.5.15 database server. Nov 20 17:40:49 raspberrypi /etc/mysql/debian-start[690]: Upgrading MySQL tables if necessary. Nov 20 17:40:49 raspberrypi /etc/mysql/debian-start[693]: /usr/bin/mysql_upgrade: the '--basedir' option is always ignored Nov 20 17:40:49 raspberrypi /etc/mysql/debian-start[693]: Looking for 'mysql' as: /usr/bin/mysql Nov 20 17:40:49 raspberrypi /etc/mysql/debian-start[693]: Looking for 'mysqlcheck' as: /usr/bin/mysqlcheck Nov 20 17:40:49 raspberrypi /etc/mysql/debian-start[693]: This installation of MariaDB is already upgraded to 10.5.15-MariaDB. Nov 20 17:40:49 raspberrypi /etc/mysql/debian-start[693]: There is no need to run mysql_upgrade again for 10.5.15-MariaDB. Nov 20 17:40:49 raspberrypi /etc/mysql/debian-start[693]: You can use --force if you still want to run mysql_upgrade Nov 20 17:40:49 raspberrypi /etc/mysql/debian-start[701]: Checking for insecure root accounts. Nov 20 17:40:49 raspberrypi /etc/mysql/debian-start[705]: Triggering myisam-recover for all MyISAM tables and aria-recover for all Aria tables
Scheint zu laufen. Jetzt muss ich wirklich los