NEWS
Javascript Adapter rot
-
pi@ioBrokerVM:/opt/iobroker$ iobroker upgrade iobroker.javascript@latest Uncaught Rejection: SyntaxError: /opt/iobroker/node_modules/iobroker.javascript/io-package.json: Unexpected end of JSON input at parse (<anonymous>) at Object.Module._extensions..json (internal/modules/cjs/loader.js:1128:22) at Module.load (internal/modules/cjs/loader.js:950:32) at Function.Module._load (internal/modules/cjs/loader.js:790:12) at Module.require (internal/modules/cjs/loader.js:974:19) at require (internal/modules/cjs/helpers.js:93:18) at Upgrade.upgradeAdapter (/opt/iobroker/node_modules/iobroker.js-controller/lib/setup/setupUpgrade.js:368:27) at /opt/iobroker/node_modules/iobroker.js-controller/lib/setup/setupUpgrade.js:276:26 at Immediate.<anonymous> (/opt/iobroker/node_modules/iobroker.js-controller/lib/setup.js:2623:45) at processImmediate (internal/timers.js:466:21) pi@ioBrokerVM:/opt/iobroker$ iob update -i Used repository: beta hash unchanged, use cached sources update done Cannot read or parse /opt/iobroker/node_modules/iobroker.js-controller/lib/../node_modules/iobroker.javascript/io-package.json: /opt/iobroker/node_modules/iobroker.javascript/io-package.json: Unexpected end of JSON input Cannot read or parse /opt/iobroker/node_modules/iobroker.js-controller/lib/../node_modules/iobroker.javascript/io-package.json: /opt/iobroker/node_modules/iobroker.javascript/io-package.json: Unexpected end of JSON input Adapter "admin" : 5.2.3 , installed 5.2.3 Adapter "alexa2" : 3.12.0 , installed 3.12.0 Adapter "backitup" : 2.2.3 , installed 2.2.3 Adapter "cloud" : 4.1.0 , installed 4.1.0 Adapter "deconz" : 1.3.19 , installed 1.3.19 Adapter "discovery" : 2.7.5 , installed 2.7.5 Adapter "email" : 1.0.10 , installed 1.0.10 Adapter "find-my-iphone": 0.2.17 , installed 0.2.17 Adapter "flot" : 1.10.7 , installed 1.10.7 Adapter "geofency" : 1.0.3 , installed 1.0.3 Adapter "habpanel" : 0.4.3 , installed 0.4.3 Adapter "history" : 1.10.5 , installed 1.10.5 Adapter "icons-material-png": 0.1.0 , installed 0.1.0 Adapter "icons-material-svg": 0.1.0 , installed 0.1.0 Adapter "icons-ultimate-png": 1.0.1 , installed 1.0.1 Adapter "influxdb" : 2.4.0 , installed 2.4.0 Adapter "info" : 1.9.16 , installed 1.9.16 Adapter "iot" : 1.8.25 , installed 1.8.25 Adapter "iqontrol" : 1.11.0 , installed 1.11.0 Adapter "jarvis" : 3.0.7 , installed 3.0.7 Controller "js-controller" : 3.3.22 , installed 3.3.22 Adapter "lifx" : 0.1.1 , installed 0.1.1 Adapter "linkeddevices" : 1.4.3 , installed 1.4.3 Adapter "material" : 1.1.2 , installed 1.1.2 Adapter "mihome-vacuum" : 3.3.1 , installed 3.3.1 Adapter "mobile" : 1.0.1 , installed 1.0.1 Adapter "modbus" : 3.4.17 , installed 3.4.17 Adapter "mqtt" : 2.4.1 , installed 2.4.1 Adapter "node-red" : 2.4.1 , installed 2.4.1 Adapter "octoprint" : 2.1.1 , installed 2.1.1 Adapter "onvif" : 0.4.4 , installed 0.4.4 Adapter "ping" : 1.5.0 , installed 1.5.0 Adapter "proxy" : 1.2.2 , installed 1.2.2 Adapter "rickshaw" : 1.0.0 , installed 1.0.0 Adapter "rpi2" : 1.3.1 , installed 1.3.1 Adapter "samsung" : 0.2.9 , installed 0.2.9 Adapter "scenes" : 2.3.8 , installed 2.3.8 Adapter "shelly" : 5.0.0 , installed 5.0.0 Adapter "simple-api" : 2.6.2 , installed 2.6.2 Adapter "smartcontrol" : 1.2.1 , installed 1.2.1 Adapter "socketio" : 3.1.5 , installed 3.1.5 Adapter "sonoff" : 2.4.7 , installed 2.4.7 Adapter "statistics" : 1.0.10 , installed 1.0.10 Adapter "stockmarket" : 0.0.2 , installed 0.0.2 Adapter "sureflap" : 1.0.9 , installed 1.0.9 Adapter "swiss-weather-api": 1.0.2 , installed 1.0.2 Adapter "telegram" : 1.10.0 , installed 1.10.0 Adapter "tesla-motors" : 1.0.7 , installed 1.0.7 Adapter "tileboard" : 0.3.1 , installed 0.3.1 Adapter "tr-064" : 4.2.15 , installed 4.2.15 Adapter "unifi" : 0.5.10 , installed 0.5.10 Adapter "vis" : 1.4.6 , installed 1.4.7 Adapter "vis-bars" : 0.1.4 , installed 0.1.4 Adapter "vis-canvas-gauges": 0.1.5 , installed 0.1.5 Adapter "vis-colorpicker": 1.2.0 , installed 1.2.0 Adapter "vis-fancyswitch": 1.1.0 , installed 1.1.0 Adapter "vis-history" : 1.0.0 , installed 1.0.0 Adapter "vis-hqwidgets" : 1.1.9 , installed 1.1.9 Adapter "vis-inventwo" : 3.2.5 , installed 3.2.5 Adapter "vis-jqui-mfd" : 1.0.12 , installed 1.0.12 Adapter "vis-justgage" : 1.0.2 , installed 1.0.2 Adapter "vis-lcars" : 1.0.4 , installed 1.0.4 Adapter "vis-map" : 1.0.4 , installed 1.0.4 Adapter "vis-material" : 0.1.3 , installed 0.1.3 Adapter "vis-materialdesign": 0.5.9 , installed 0.5.9 Adapter "vis-metro" : 1.1.2 , installed 1.1.2 Adapter "vis-rgraph" : 0.0.2 , installed 0.0.2 Adapter "vis-timeandweather": 1.1.7 , installed 1.1.7 Adapter "weatherunderground": 3.3.1 , installed 3.3.1 Adapter "web" : 3.4.16 , installed 3.4.16 Adapter "windows-control": 0.1.5 , installed 0.1.5 Adapter "yahka" : 0.13.1 , installed 0.13.1 Adapter "zigbee" : 1.6.12 , installed 1.6.12 pi@ioBrokerVM:/opt/iobroker$
-
@chrisprefect sagte in Javascript Adapter rot:
Habs nochmals mit einem User ausgeführt
Dann warst du zuvor da als root unterwegs?
-
@thomas-braun ja. Als user bekomme ich sonst zu oft Fehlermeldungen wenn wieder irgend was root Berechtigungen braucht. Das stresst mich dann zu oft.
-
-
@chrisprefect sagte in Javascript Adapter rot:
Das stresst mich dann zu oft.
und jetzt hast du das System zu sehr gestresst
Wahrscheinlich sind die Rechte durch die nutzung von root verbogeniobroker stop iobroker fix iobroker start
als USER
-
@chrisprefect sagte in Javascript Adapter rot:
Das stresst mich dann zu oft.
Und mich stressen Systeme, die von Leuten, die selbst ernannt 'keine Ahnung haben' mit dem root kaputt gefummelt werden.
Ich bin dann raus.
-
@thomas-braun Ich musste erst rumfummeln nachdem das System nicht mehr ging.
-
@homoran Also das Cache-Löschen geht beim zweiten Mal sehr schnell, das heisst beim ersten Mal wurde viel gelöscht.
Habe nochmals rebootet, den Fixer laufen lassen und nochmals update gemacht.
Der Javascript-Adapter ist aber noch immer auf der Version .18 und rot.
-
@chrisprefect
NEIN. mit dem root muss man nie rumfummenln. Gerade nicht ohne Ahnung was man da überhaupt fummelt. -
@thomas-braun Kann sein. Das ist aber nicht das Problem.
-
@chrisprefect sagte in Javascript Adapter rot:
Das ist aber nicht das Problem.
Ich behaupte das Gegenteil.
-
@chrisprefect sagte in Javascript Adapter rot:
Das ist aber nicht das Problem.
woher weisst du das?
Arbeiten mit dem Root verbiegt Rechte, mit denen der user iobroker dann nicht mehr arbeiten darf
-
@chrisprefect sagte in Javascript Adapter rot:
Das ist aber nicht das Problem.
was sagt denn jetzt
iob update -i
??
und vorher nichts anderes!!! -
@homoran weil das System nach dem Update von ioBroker nicht mehr ging und ich mich erst dann per ssh eingeloggt habe.
-
pi@ioBrokerVM:/opt/iobroker$ iob update -i Used repository: beta hash unchanged, use cached sources update done Cannot read or parse /opt/iobroker/node_modules/iobroker.js-controller/lib/../node_modules/iobroker.javascript/io-package.json: /opt/iobroker/node_modules/iobroker.javascript/io-package.json: Unexpected end of JSON input Cannot read or parse /opt/iobroker/node_modules/iobroker.js-controller/lib/../node_modules/iobroker.javascript/io-package.json: /opt/iobroker/node_modules/iobroker.javascript/io-package.json: Unexpected end of JSON input Adapter "admin" : 5.2.3 , installed 5.2.3 Adapter "alexa2" : 3.12.0 , installed 3.12.0 Adapter "backitup" : 2.2.3 , installed 2.2.3 Adapter "cloud" : 4.1.0 , installed 4.1.0 Adapter "deconz" : 1.3.19 , installed 1.3.19 Adapter "discovery" : 2.7.5 , installed 2.7.5 Adapter "email" : 1.0.10 , installed 1.0.10 Adapter "find-my-iphone": 0.2.17 , installed 0.2.17 Adapter "flot" : 1.10.7 , installed 1.10.7 Adapter "geofency" : 1.0.3 , installed 1.0.3 Adapter "habpanel" : 0.4.3 , installed 0.4.3 Adapter "history" : 1.10.5 , installed 1.10.5 Adapter "icons-material-png": 0.1.0 , installed 0.1.0 Adapter "icons-material-svg": 0.1.0 , installed 0.1.0 Adapter "icons-ultimate-png": 1.0.1 , installed 1.0.1 Adapter "influxdb" : 2.4.0 , installed 2.4.0 Adapter "info" : 1.9.16 , installed 1.9.16 Adapter "iot" : 1.8.25 , installed 1.8.25 Adapter "iqontrol" : 1.11.0 , installed 1.11.0 Adapter "jarvis" : 3.0.7 , installed 3.0.7 Controller "js-controller" : 3.3.22 , installed 3.3.22 Adapter "lifx" : 0.1.1 , installed 0.1.1 Adapter "linkeddevices" : 1.4.3 , installed 1.4.3 Adapter "material" : 1.1.2 , installed 1.1.2 Adapter "mihome-vacuum" : 3.3.1 , installed 3.3.1 Adapter "mobile" : 1.0.1 , installed 1.0.1 Adapter "modbus" : 3.4.17 , installed 3.4.17 Adapter "mqtt" : 2.4.1 , installed 2.4.1 Adapter "node-red" : 2.4.1 , installed 2.4.1 Adapter "octoprint" : 2.1.1 , installed 2.1.1 Adapter "onvif" : 0.4.4 , installed 0.4.4 Adapter "ping" : 1.5.0 , installed 1.5.0 Adapter "proxy" : 1.2.2 , installed 1.2.2 Adapter "rickshaw" : 1.0.0 , installed 1.0.0 Adapter "rpi2" : 1.3.1 , installed 1.3.1 Adapter "samsung" : 0.2.9 , installed 0.2.9 Adapter "scenes" : 2.3.8 , installed 2.3.8 Adapter "shelly" : 5.0.0 , installed 5.0.0 Adapter "simple-api" : 2.6.2 , installed 2.6.2 Adapter "smartcontrol" : 1.2.1 , installed 1.2.1 Adapter "socketio" : 3.1.5 , installed 3.1.5 Adapter "sonoff" : 2.4.7 , installed 2.4.7 Adapter "statistics" : 1.0.10 , installed 1.0.10 Adapter "stockmarket" : 0.0.2 , installed 0.0.2 Adapter "sureflap" : 1.0.9 , installed 1.0.9 Adapter "swiss-weather-api": 1.0.2 , installed 1.0.2 Adapter "telegram" : 1.10.0 , installed 1.10.0 Adapter "tesla-motors" : 1.0.7 , installed 1.0.7 Adapter "tileboard" : 0.3.1 , installed 0.3.1 Adapter "tr-064" : 4.2.15 , installed 4.2.15 Adapter "unifi" : 0.5.10 , installed 0.5.10 Adapter "vis" : 1.4.6 , installed 1.4.7 Adapter "vis-bars" : 0.1.4 , installed 0.1.4 Adapter "vis-canvas-gauges": 0.1.5 , installed 0.1.5 Adapter "vis-colorpicker": 1.2.0 , installed 1.2.0 Adapter "vis-fancyswitch": 1.1.0 , installed 1.1.0 Adapter "vis-history" : 1.0.0 , installed 1.0.0 Adapter "vis-hqwidgets" : 1.1.9 , installed 1.1.9 Adapter "vis-inventwo" : 3.2.5 , installed 3.2.5 Adapter "vis-jqui-mfd" : 1.0.12 , installed 1.0.12 Adapter "vis-justgage" : 1.0.2 , installed 1.0.2 Adapter "vis-lcars" : 1.0.4 , installed 1.0.4 Adapter "vis-map" : 1.0.4 , installed 1.0.4 Adapter "vis-material" : 0.1.3 , installed 0.1.3 Adapter "vis-materialdesign": 0.5.9 , installed 0.5.9 Adapter "vis-metro" : 1.1.2 , installed 1.1.2 Adapter "vis-rgraph" : 0.0.2 , installed 0.0.2 Adapter "vis-timeandweather": 1.1.7 , installed 1.1.7 Adapter "weatherunderground": 3.3.1 , installed 3.3.1 Adapter "web" : 3.4.16 , installed 3.4.16 Adapter "windows-control": 0.1.5 , installed 0.1.5 Adapter "yahka" : 0.13.1 , installed 0.13.1 Adapter "zigbee" : 1.6.12 , installed 1.6.12
-
@chrisprefect sagte in Javascript Adapter rot:
ich mich erst dann per ssh eingeloggt habe.
und vorher noch nie???
-
immer noch cached sources - die müssten weg sein!!
dann stell mal das Repo auf stable und mach den Befehl nochmal -
pi@ioBrokerVM:/opt/iobroker$ cd /opt/iobroker pi@ioBrokerVM:/opt/iobroker$ sudo -H -u iobroker npm cache clean --force npm WARN using --force I sure hope you know what you are doing. pi@ioBrokerVM:/opt/iobroker$ iob update -i Used repository: stable hash changed or no sources cached => force download of new sources update done Cannot read or parse /opt/iobroker/node_modules/iobroker.js-controller/lib/../node_modules/iobroker.javascript/io-package.json: /opt/iobroker/node_modules/iobroker.javascript/io-package.json: Unexpected end of JSON input Cannot read or parse /opt/iobroker/node_modules/iobroker.js-controller/lib/../node_modules/iobroker.javascript/io-package.json: /opt/iobroker/node_modules/iobroker.javascript/io-package.json: Unexpected end of JSON input Adapter "admin" : 5.2.3 , installed 5.2.3 Adapter "alexa2" : 3.11.2 , installed 3.12.0 Adapter "backitup" : 2.2.2 , installed 2.2.3 Adapter "cloud" : 4.1.0 , installed 4.1.0 Adapter "deconz" : 1.3.19 , installed 1.3.19 Adapter "discovery" : 2.7.3 , installed 2.7.5 Adapter "email" : 1.0.10 , installed 1.0.10 Adapter "flot" : 1.10.7 , installed 1.10.7 Adapter "geofency" : 1.0.3 , installed 1.0.3 Adapter "habpanel" : 0.4.3 , installed 0.4.3 Adapter "history" : 1.9.14 , installed 1.10.5 Adapter "icons-material-png": 0.1.0 , installed 0.1.0 Adapter "icons-material-svg": 0.1.0 , installed 0.1.0 Adapter "icons-ultimate-png": 1.0.1 , installed 1.0.1 Adapter "influxdb" : 1.9.5 , installed 2.4.0 Adapter "info" : 1.9.8 , installed 1.9.16 Adapter "iot" : 1.8.24 , installed 1.8.25 Adapter "iqontrol" : 1.8.2 , installed 1.11.0 Adapter "jarvis" : 2.2.1 , installed 3.0.7 Controller "js-controller" : 3.3.22 , installed 3.3.22 Adapter "lifx" : 0.1.1 , installed 0.1.1 Adapter "linkeddevices" : 1.4.3 , installed 1.4.3 Adapter "material" : 1.0.4 , installed 1.1.2 Adapter "mihome-vacuum" : 3.3.1 , installed 3.3.1 Adapter "mobile" : 1.0.1 , installed 1.0.1 Adapter "modbus" : 3.4.14 , installed 3.4.17 Adapter "mqtt" : 2.4.0 , installed 2.4.1 Adapter "node-red" : 2.4.1 , installed 2.4.1 Adapter "octoprint" : 2.1.0 , installed 2.1.1 Adapter "onvif" : 0.4.4 , installed 0.4.4 Adapter "ping" : 1.5.0 , installed 1.5.0 Adapter "proxy" : 1.2.2 , installed 1.2.2 Adapter "rickshaw" : 1.0.0 , installed 1.0.0 Adapter "rpi2" : 1.3.1 , installed 1.3.1 Adapter "samsung" : 0.2.9 , installed 0.2.9 Adapter "scenes" : 2.3.8 , installed 2.3.8 Adapter "shelly" : 4.0.7 , installed 5.0.0 Adapter "simple-api" : 2.6.1 , installed 2.6.2 Adapter "smartcontrol" : 1.2.1 , installed 1.2.1 Adapter "socketio" : 3.1.4 , installed 3.1.5 Adapter "sonoff" : 2.4.5 , installed 2.4.7 Adapter "statistics" : 1.0.9 , installed 1.0.10 Adapter "swiss-weather-api": 1.0.2 , installed 1.0.2 Adapter "telegram" : 1.10.0 , installed 1.10.0 Adapter "tesla-motors" : 0.5.2 , installed 1.0.7 Adapter "tr-064" : 4.2.14 , installed 4.2.15 Adapter "unifi" : 0.5.10 , installed 0.5.10 Adapter "vis" : 1.4.5 , installed 1.4.7 Adapter "vis-bars" : 0.1.4 , installed 0.1.4 Adapter "vis-canvas-gauges": 0.1.5 , installed 0.1.5 Adapter "vis-colorpicker": 1.2.0 , installed 1.2.0 Adapter "vis-fancyswitch": 1.1.0 , installed 1.1.0 Adapter "vis-history" : 1.0.0 , installed 1.0.0 Adapter "vis-hqwidgets" : 1.1.7 , installed 1.1.9 Adapter "vis-inventwo" : 3.2.5 , installed 3.2.5 Adapter "vis-jqui-mfd" : 1.0.12 , installed 1.0.12 Adapter "vis-justgage" : 1.0.2 , installed 1.0.2 Adapter "vis-lcars" : 1.0.4 , installed 1.0.4 Adapter "vis-map" : 1.0.4 , installed 1.0.4 Adapter "vis-metro" : 1.1.2 , installed 1.1.2 Adapter "vis-rgraph" : 0.0.2 , installed 0.0.2 Adapter "vis-timeandweather": 1.1.7 , installed 1.1.7 Adapter "weatherunderground": 3.3.1 , installed 3.3.1 Adapter "web" : 3.4.9 , installed 3.4.16 Adapter "windows-control": 0.1.5 , installed 0.1.5 Adapter "yahka" : 0.13.1 , installed 0.13.1 Adapter "zigbee" : 1.6.6 , installed 1.6.12 pi@ioBrokerVM:/opt/iobroker$
-
@chrisprefect schon besser.
Aber
Hast du mal npm-Befehle außerhalb von /opt/iobroker ausgeführt?
zum Beispiel im home vom Root? -
@homoran Ich habe Node 14 installiert heute. Hat das war mit npm zu tun?