NEWS
Telegram und Mqtt starten nicht.
-
@glasfaser said in Telegram und Mqtt starten nicht.:
iobroker stop rm /opt/iobroker/package* iobroker start
Hat leider nicht geholfen.
-
iobroker upgrade admin@6.2.20 sudo reboot
-
@glasfaser jetzt startet iobroker nicht mehr.
-
iobroker list instances
-
-
@glasfaser said in Telegram und Mqtt starten nicht.:
iobroker start admin
iobroker start admin node:internal/modules/cjs/loader:959 throw err; ^ Error: Cannot find module '/opt/iobroker/node_modules/iobroker.js-controller/iobroker.js' at Function.Module._resolveFilename (node:internal/modules/cjs/loader:956:15) at Function.Module._load (node:internal/modules/cjs/loader:804:27) at Function.executeUserEntryPoint [as runMain] (node:internal/modules/run_main:81:12) at node:internal/main/run_main_module:17:47 { code: 'MODULE_NOT_FOUND', requireStack: [] }
liquid@raspberry:~$ iobroker list instances node:internal/modules/cjs/loader:959 throw err; ^ Error: Cannot find module '/opt/iobroker/node_modules/iobroker.js-controller/iobroker.js' at Function.Module._resolveFilename (node:internal/modules/cjs/loader:956:15) at Function.Module._load (node:internal/modules/cjs/loader:804:27) at Function.executeUserEntryPoint [as runMain] (node:internal/modules/run_main:81:12) at node:internal/main/run_main_module:17:47 { code: 'MODULE_NOT_FOUND', requireStack: [] }
-
cd /opt/iobroker sudo -H -u iobroker npm install iobroker.js-controller
-
@thomas-braun said in Telegram und Mqtt starten nicht.:
sudo -H -u iobroker npm install iobroker.js-controller
liquid@raspberry:/opt/iobroker$ sudo -H -u iobroker npm install iobroker.js-controller [sudo] password for liquid: npm WARN deprecated har-validator@5.1.5: this library is no longer supported 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 request@2.88.2: request has been deprecated, see https://github.com/request/request/issues/3142 npm ERR! code 6 npm ERR! path /opt/iobroker/node_modules/iobroker.js-controller npm ERR! command failed npm ERR! command sh /tmp/install-ff6dd1c3.sh npm ERR! Uncaught Rejection: Error: Cannot find module '@iobroker/db-states-jsonl' npm ERR! Require stack: npm ERR! - /opt/iobroker/node_modules/iobroker.js-controller/lib/setup.js npm ERR! - /opt/iobroker/node_modules/iobroker.js-controller/iobroker.js npm ERR! at Function.Module._resolveFilename (node:internal/modules/cjs/loader:956:15) npm ERR! at Function.Module._load (node:internal/modules/cjs/loader:804:27) npm ERR! at Module.require (node:internal/modules/cjs/loader:1028:19) npm ERR! at require (node:internal/modules/cjs/helpers:102:18) npm ERR! at Timeout._onTimeout (/opt/iobroker/node_modules/iobroker.js-controller/lib/setup.js:3165:26) npm ERR! A complete log of this run can be found in: npm ERR! /home/iobroker/.npm/_logs/2022-09-03T13_48_21_323Z-debug-0.log
-
@glasfaser Hallo Helfer in der Not,
ich hänge mich hier mal an, da ich scheinbar ebenfalls dieses Problem habe.Die ersten Schritte bin ich schon mal durchlaufen:
pi@raspberrypi:~ $ cd /opt/iobroker pi@raspberrypi:/opt/iobroker $ npm ls | grep -E 'github.com|ERR' npm ERR! peer dep missing: chai@>= 2.1.2 < 5, required by chai-as-promised@7.1.1 npm ERR! peer dep missing: chai@^4.0.0, required by sinon-chai@3.7.0 npm ERR! peer dep missing: sinon@>=4.0.0, required by sinon-chai@3.7.0 pi@raspberrypi:/opt/iobroker $ ^C pi@raspberrypi:/opt/iobroker $ iobroker update -i Used repository: stable Adapter "accuweather" : 1.2.1 , installed 1.2.1 Adapter "admin" : 6.2.20 , installed 5.3.8 [Updatable] Adapter "alexa2" : 3.11.2 , installed 3.11.2 Adapter "backitup" : 2.4.10 , installed 2.4.10 Adapter "cloud" : 4.2.2 , installed 4.2.2 Adapter "coronavirus-statistics": 0.8.7, installed 0.8.7 Adapter "cul" : 2.0.2 , installed 2.0.2 Adapter "daswetter" : 3.1.2 , installed 3.1.2 Adapter "devices" : 1.0.12 , installed 1.0.12 Adapter "discovery" : 3.0.5 , installed 3.0.5 Adapter "ds18b20" : 1.6.0 , installed 1.6.0 Adapter "dwd" : 2.8.3 , installed 2.8.3 Adapter "email" : 1.1.3 , installed 1.1.3 Adapter "fahrplan" : 1.2.2 , installed 1.2.2 Adapter "feiertage" : 1.1.0 , installed 1.1.0 Adapter "fhem" : 1.6.3 , installed 1.6.3 Adapter "firetv" : 1.0.0 , installed 1.0.0 Adapter "flot" : 1.11.0 , installed 1.11.0 Adapter "followthesun" : 0.3.9 , installed 0.3.9 Adapter "fritzbox" : 0.2.1 , installed 0.2.1 Adapter "frontier_silicon": 0.0.10, installed 0.0.10 Adapter "history" : 2.2.0 , installed 2.2.0 Adapter "hm-rega" : 3.0.40 , installed 3.0.40 Adapter "hm-rpc" : 1.15.12 , installed 1.15.12 Adapter "homekit-controller": 0.5.1, installed 0.5.1 Adapter "ical" : 1.13.1 , installed 1.13.1 Adapter "icons-fatcow-hosting": 0.1.0, installed 0.1.0 Adapter "icons-icons8" : 0.0.1 , installed 0.0.1 Adapter "icons-mfd-png": 1.1.0 , installed 1.1.0 Adapter "icons-mfd-svg": 1.1.0 , installed 1.1.0 Adapter "icons-open-icon-library-png": 0.1.2, installed 0.1.2 Adapter "icons-ultimate-png": 1.0.1, installed 1.0.1 Adapter "influxdb" : 3.1.7 , installed 3.1.7 Adapter "info" : 1.9.19 , installed 1.9.19 Adapter "iot" : 1.11.8 , installed 1.11.8 Adapter "jarvis" : 3.0.11 , installed 3.0.11 Adapter "javascript" : 6.0.0 , installed 6.0.0 Controller "js-controller": 4.0.23 , installed 4.0.23 Adapter "luftdaten" : 2.2.4 , installed 2.2.4 Adapter "meteoalarm" : 2.1.3 , installed 2.1.3 Adapter "mqtt" : 4.0.7 , installed 4.0.7 Adapter "net-tools" : 0.2.0 , installed 0.2.0 Adapter "netatmo" : 1.7.1 , installed 1.7.1 Adapter "netatmo-crawler": 0.8.1 , installed 0.8.1 Adapter "nina" : 0.0.25 , installed 0.0.25 Adapter "openweathermap": 0.3.0 , installed 0.3.0 Adapter "pegelalarm" : 1.2.8 , installed 1.2.8 Adapter "ping" : 1.5.3 , installed 1.5.3 Adapter "rpi2" : 1.3.2 , installed 1.3.2 Adapter "sayit" : 1.12.3 , installed 1.12.3 Adapter "scenes" : 2.3.9 , installed 2.3.9 Adapter "schoolfree" : 1.0.1 , installed 1.0.1 Adapter "shuttercontrol": 1.4.14 , installed 1.4.14 Adapter "signal-cmb" : 0.1.7 , installed 0.1.7 Adapter "simple-api" : 2.7.0 , installed 2.7.0 Adapter "socketio" : 4.2.0 , installed 4.2.0 Adapter "sonoff" : 2.5.1 , installed 2.5.1 Adapter "spotify-premium": 1.2.1 , installed 1.2.1 Adapter "sql" : 2.1.7 , installed 2.1.7 Adapter "tankerkoenig" : 2.1.1 , installed 2.1.1 Adapter "telegram" : 1.14.1 , installed 1.14.1 Adapter "terminal" : 0.2.6 , installed 0.2.6 Adapter "text2command" : 2.2.2 , installed 2.2.2 Adapter "tr-064" : 4.2.16 , installed 4.2.16 Adapter "trashschedule": 2.0.3 , installed 2.0.3 Adapter "vis" : 1.4.15 , installed 1.4.15 Adapter "vis-bars" : 0.1.4 , installed 0.1.4 Adapter "vis-colorpicker": 1.2.0 , installed 1.2.0 Adapter "vis-fancyswitch": 1.1.0 , installed 1.1.0 Adapter "vis-google-fonts": 1.0.3 , installed 1.0.3 Adapter "vis-history" : 1.0.0 , installed 1.0.0 Adapter "vis-hqwidgets": 1.2.0 , installed 1.2.0 Adapter "vis-icontwo" : 0.89.0 , installed 0.89.0 Adapter "vis-inventwo" : 3.3.1 , installed 3.3.1 Adapter "vis-jqui-mfd" : 1.0.12 , installed 1.0.12 Adapter "vis-keyboard" : 0.0.2 , installed 0.0.2 Adapter "vis-map" : 1.0.4 , installed 1.0.4 Adapter "vis-metro" : 1.2.0 , installed 1.2.0 Adapter "vis-players" : 0.1.6 , installed 0.1.6 Adapter "vis-rgraph" : 0.0.2 , installed 0.0.2 Adapter "vis-timeandweather": 1.2.2, installed 1.2.2 Adapter "vis-weather" : 2.5.5 , installed 2.5.5 Adapter "weatherunderground": 3.4.2, installed 3.4.2 Adapter "web" : 4.3.0 , installed 4.3.0 Adapter "whatsapp-cmb" : 0.2.2 , installed 0.2.2 Adapter "ws" : 1.3.0 , installed 1.3.0 Adapter "yr" : 5.3.0 , installed 5.3.0 Adapter "zigbee" : 1.7.5 , installed 1.7.5 pi@raspberrypi:/opt/iobroker $ sudo ln -s /usr/bin/node /usr/bin/nodejs ln: die symbolische Verknüpfung '/usr/bin/nodejs' konnte nicht angelegt werden: Die Datei existiert bereits pi@raspberrypi:/opt/iobroker $ uname -m && type -P nodejs node npm && nodejs -v && node -v && npm -v && whoami && pwd && sudo apt update &> /dev/null && sudo apt update && apt policy nodejs armv7l /usr/bin/nodejs /usr/bin/node /usr/bin/npm v14.20.0 v14.20.0 6.14.17 pi /opt/iobroker OK:1 http://raspbian.raspberrypi.org/raspbian bullseye InRelease OK:2 http://repo.feed.flightradar24.com flightradar24 InRelease Paketlisten werden gelesen… Fertig Abhängigkeitsbaum wird aufgebaut… Fertig Statusinformationen werden eingelesen… Fertig Alle Pakete sind aktuell. nodejs: Installiert: 14.20.0-deb-1nodesource1 Installationskandidat: 14.20.0-deb-1nodesource1 Versionstabelle: *** 14.20.0-deb-1nodesource1 100 100 /var/lib/dpkg/status 12.22.12~dfsg-1~deb11u1 500 500 http://raspbian.raspberrypi.org/raspbian bullseye/main armhf Packages
-
Da fehlen dir Quellen, direkt vom OS.
Und die Quelle für nodejs (nodesource.list) fehlt auch. -
@thomas-braun said in Telegram und Mqtt starten nicht.:
Da fehlen dir Quellen, direkt vom OS.
Meinst Du diese hier?
deb http://deb.debian.org/debian bullseye main contrib non-free deb http://deb.debian.org/debian bullseye-updates main contrib non-free deb http://security.debian.org/debian-security bullseye-security main contrib non-free
@thomas-braun said in Telegram und Mqtt starten nicht.:
Und die Quelle für nodejs (nodesource.list) fehlt auch.
und diesen Befehl:
curl -fsSL https://deb.nodesource.com/setup_current.x | sudo -E bash -
-
@martin-72
Möglich. Kann gerade nicht nachschauen.
Der Befehl für nodejs ist aber falsch, der würde dir nodejs18 aufs System knallen. Das willst du nicht. -
Ich hab mein Problem behoben. Bei mir ist ausser dem Host noch ein Slave installiert und der war noch nicht upgedatet. Anscheinend kennen Mqtt, Telegram und der Info Adapter nicht, das der Master Admin aktuell ist, sondern nehmen den Slave Admin als "Quelle".
Ganz klar aber ein Fehler beim Updaten meinerseits, da ich den Slave noch nicht aktualisiert hatte. -
Ja, die Versionen sollte übereinstimmen.
-
Die drei relevanten Dateien sehen so aus:
echad@chet:~ $ cat /etc/apt/sources.list deb http://deb.debian.org/debian bullseye main contrib non-free deb http://security.debian.org/debian-security bullseye-security main contrib non-free deb http://deb.debian.org/debian bullseye-updates main contrib non-free # Uncomment deb-src lines below then 'apt-get update' to enable 'apt-get source' #deb-src http://deb.debian.org/debian bullseye main contrib non-free #deb-src http://security.debian.org/debian-security bullseye-security main contrib non-free #deb-src http://deb.debian.org/debian bullseye-updates main contrib non-free
echad@chet:~ $ cat /etc/apt/sources.list.d/raspi.list deb http://archive.raspberrypi.org/debian/ bullseye main # Uncomment line below then 'apt-get update' to enable 'apt-get source' #deb-src http://archive.raspberrypi.org/debian/ bullseye main
echad@chet:~ $ cat /etc/apt/sources.list.d/nodesource.list deb [signed-by=/usr/share/keyrings/nodesource.gpg] https://deb.nodesource.com/node_16.x bullseye main deb-src [signed-by=/usr/share/keyrings/nodesource.gpg] https://deb.nodesource.com/node_16.x bullseye main