NEWS
Iobroker startet nicht mehr
-
sudo ln -s /usr/bin/node /usr/bin/nodejs &> /dev/null uname -m && type -P nodejs node npm npx && nodejs -v && node -v && npm -v && npx -v && iob -v && whoami && groups && echo $XDG_SESSION_TYPE && pwd && sudo apt-get update &> /dev/null && sudo apt-get update && apt-cache policy nodejs
sagt?
-
pi@raspberrypi:~ $ sudo ln -s /usr/bin/node /usr/bin/nodejs &> /dev/null pi@raspberrypi:~ $ uname -m &&type -P nodejs node npm npx && nodejs -v && node -v && npm -v && npx -v && iob -v && whoami && groups && echo $XDG_SESSION_TYPE && pwd && sudo apt-get update &> /dev/null && sudo apt-get update && apt-cache policy nodejs armv7l /usr/bin/nodejs /usr/bin/node /usr/bin/npm /usr/bin/npx v14.18.3 v14.18.3 6.14.15 6.14.15 4.0.23 pi pi adm dialout cdrom sudo audio video plugdev games users input netdev lpadmin gpio i2c spi iobroker tty /home/pi Hit:1 http://raspbian.raspberrypi.org/raspbian bullseye InRelease Hit:2 http://archive.raspberrypi.org/debian bullseye InRelease Hit:3 https://deb.nodesource.com/node_14.x bullseye InRelease Reading package lists... Done nodejs: Installed: 14.18.3-deb-1nodesource1 Candidate: 14.21.2-deb-1nodesource1 Version table: 14.21.2-deb-1nodesource1 500 500 https://deb.nodesource.com/node_14.x bullseye/main armhf Packages *** 14.18.3-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
-
Bring das erstmal auf nodeJS@16.
Siehe meine Signatur. -
Das sieht hier schon sehr komisch aus.
pi@raspberrypi:~ $ cd /opt/iobroker pi@raspberrypi:/opt/iobroker $ npm ls | grep -E 'github|ERR' │ │ │ ├── github-from-package@0.0.0 │ ├── github-url-from-git@1.5.0 │ ├─┬ new-github-release-url@1.0.0 npm ERR! peer dep missing: @types/express@^4.17.13, required by http-proxy-middleware@2.0.2 npm ERR! peer dep missing: buffer@>=6.0.3, required by crc@4.1.1
-
Nö, alles i. O.
-
So habe es installiert.
pi@raspberrypi:~ $ sudo ln -s /usr/bin/node /usr/bin/nodejs &> /dev/null pi@raspberrypi:~ $ uname -m && type -P nodejs node npm npx && nodejs -v && node -v && npm -v && npx -v && iob -v && whoami && groups && echo $XDG_SESSION_TYPE && pwd && sudo apt-get update &> /dev/null && sudo apt-get update && apt-cache policy nodejs armv7l /usr/bin/nodejs /usr/bin/node /usr/bin/npm /usr/bin/npx v16.19.0 v16.19.0 8.19.3 8.19.3 4.0.23 pi pi adm dialout cdrom sudo audio video plugdev games users input netdev lpadmin gpio i2c spi iobroker tty /home/pi Hit:1 http://raspbian.raspberrypi.org/raspbian bullseye InRelease Hit:2 http://archive.raspberrypi.org/debian bullseye InRelease Hit:3 https://deb.nodesource.com/node_16.x bullseye InRelease Reading package lists... Done nodejs: Installed: 16.19.0-deb-1nodesource1 Candidate: 16.19.0-deb-1nodesource1 Version table: *** 16.19.0-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
Fehler besteht aber weiterhin:
pi@raspberrypi:~ $ iob start admin Objects database error: connect ECONNREFUSED 127.0.0.1:9001 Uncaught Rejection: /opt/iobroker/node_modules/source-map/lib/base64-vlq.js:91 0 var di'it; ^^^ SyntaxError: Unexpected token 'var' at Object.compileFunction (node:vm:360:18) at wrapSafe (node:internal/modules/cjs/loader:1094:15) at Module._compile (node:internal/modules/cjs/loader:1129:27) at Object.Module._extensions..js (node:internal/modules/cjs/loader:1219:10) at Module.load (node:internal/modules/cjs/loader:1043:32) at Function.Module._load (node:internal/modules/cjs/loader:878:12) at Module.require (node:internal/modules/cjs/loader:1067:19) at require (node:internal/modules/cjs/helpers:103:18) at Object.<anonymous> (/opt/iobroker/node_modules/source-map/lib/source-map-generator.js:8:17) at Module._compile (node:internal/modules/cjs/loader:1165:14)
-
cd /opt/iobroker npm ls source-map
-
pi@raspberrypi:~ $ cd /opt/iobroker pi@raspberrypi:/opt/iobroker $ npm ls source-map iobroker.inst@3.0.0 /opt/iobroker ├─┬ iobroker.alexa2@3.12.0 │ └─┬ source-map-support@0.5.21 │ └── source-map@0.6.1 └─┬ iobroker.iot@1.11.5 └─┬ jsdom@19.0.0 └─┬ escodegen@2.0.0 └── source-map@0.6.1 deduped
-
-
pi@raspberrypi:~ $ iob stop pi@raspberrypi:~ $ iob fix library: loaded Library version=2022-12-09 ========================================================================== Welcome to the ioBroker installation fixer! Script version: 2022-12-22 You might need to enter your password a couple of times. ========================================================================== ========================================================================== Installing prerequisites (1/4) ========================================================================== Hit:1 http://archive.raspberrypi.org/debian bullseye InRelease Hit:2 http://raspbian.raspberrypi.org/raspbian bullseye InRelease Hit:3 https://deb.nodesource.com/node_16.x bullseye InRelease Reading package lists... Done Installed gcc-c++ ========================================================================== Checking ioBroker user and directory permissions (2/4) ========================================================================== Created /etc/sudoers.d/iobroker Fixing directory permissions... ========================================================================== Database maintenance (3/4) ========================================================================== Checking for uncompressed JSONL databases... This might take a while! Compressing /opt/iobroker/iobroker-data/states.jsonl Compressing /opt/iobroker/iobroker-data/objects.jsonl Compressed 2 JSONL files. Done ========================================================================== Checking autostart (4/4) ========================================================================== Enabling autostart... Autostart enabled! ========================================================================== Your installation was fixed successfully Run iobroker start to start ioBroker again! ========================================================================== pi@raspberrypi:~ $ iob restart
-
iobroker status
-
pi@raspberrypi:~ $ iobroker status Objects database error: connect ECONNREFUSED 127.0.0.1:9001 Objects database error: read ECONNRESET Objects database error: connect ECONNREFUSED 127.0.0.1:9001 Objects database error: connect ECONNREFUSED 127.0.0.1:9001 Objects database error: connect ECONNREFUSED 127.0.0.1:9001 Objects database error: connect ECONNREFUSED 127.0.0.1:9001 Uncaught Rejection: /opt/iobroker/node_modules/source-map/lib/base64-vlq.js:91 0 var di'it; ^^^ SyntaxError: Unexpected token 'var' at Object.compileFunction (node:vm:360:18) at wrapSafe (node:internal/modules/cjs/loader:1094:15) at Module._compile (node:internal/modules/cjs/loader:1129:27) at Object.Module._extensions..js (node:internal/modules/cjs/loader:1219:10) at Module.load (node:internal/modules/cjs/loader:1043:32) at Function.Module._load (node:internal/modules/cjs/loader:878:12) at Module.require (node:internal/modules/cjs/loader:1067:19) at require (node:internal/modules/cjs/helpers:103:18) at Object.<anonymous> (/opt/iobroker/node_modules/source-map/lib/source-map-generator.js:8:17) at Module._compile (node:internal/modules/cjs/loader:1165:14)
-
-
Ne das gleiche.
pi@raspberrypi:~ $ iob update Objects database error: connect ECONNREFUSED 127.0.0.1:9001 Objects database error: read ECONNRESET Objects database error: connect ECONNREFUSED 127.0.0.1:9001 Objects database error: connect ECONNREFUSED 127.0.0.1:9001 Objects database error: connect ECONNREFUSED 127.0.0.1:9001 Objects database error: connect ECONNREFUSED 127.0.0.1:9001 Uncaught Rejection: /opt/iobroker/node_modules/source-map/lib/base64-vlq.js:91 0 var di'it; ^^^ SyntaxError: Unexpected token 'var' at Object.compileFunction (node:vm:360:18) at wrapSafe (node:internal/modules/cjs/loader:1094:15) at Module._compile (node:internal/modules/cjs/loader:1129:27) at Object.Module._extensions..js (node:internal/modules/cjs/loader:1219:10) at Module.load (node:internal/modules/cjs/loader:1043:32) at Function.Module._load (node:internal/modules/cjs/loader:878:12) at Module.require (node:internal/modules/cjs/loader:1067:19) at require (node:internal/modules/cjs/helpers:103:18) at Object.<anonymous> (/opt/iobroker/node_modules/source-map/lib/source-map-generator.js:8:17) at Module._compile (node:internal/modules/cjs/loader:1165:14)
-
cd /opt/iobroker sudo -H -u iobroker npm install iobroker.alexa2 sudo -H -u iobroker npm install iobroker.iot
-
pi@raspberrypi:/opt/iobroker $ sudo -H -u iobroker npm install iobroker.alexa2 npm WARN old lockfile npm WARN old lockfile The package-lock.json file was created with an old version of npm, npm WARN old lockfile so supplemental metadata must be fetched from the registry. npm WARN old lockfile npm WARN old lockfile This is a one-time fix-up, please be patient... npm WARN old lockfile added 12 packages, removed 121 packages, and changed 31 packages in 1m 137 packages are looking for funding run `npm fund` for details pi@raspberrypi:/opt/iobroker $ sudo -H -u iobroker npm install iobroker.iot added 2 packages, removed 1 package, and changed 1 package in 13s 138 packages are looking for funding run `npm fund` for details
Blöde Frage: Wie bekomme ich beim nächsten Befehl das "/opt/iobroker $" wieder weg?
-
iob status
-
Wie bekomme ich beim nächsten Befehl das "/opt/iobroker $" wieder weg?
pi@raspberrypi:/opt/iobroker $ iob status Objects database error: connect ECONNREFUSED 127.0.0.1:9001 States database error: connect ECONNREFUSED 127.0.0.1:9000 Objects database error: connect ECONNREFUSED 127.0.0.1:9001 States database error: connect ECONNREFUSED 127.0.0.1:9000 Objects database error: connect ECONNREFUSED 127.0.0.1:9001 States database error: connect ECONNREFUSED 127.0.0.1:9000 Objects database error: connect ECONNREFUSED 127.0.0.1:9001 States database error: connect ECONNREFUSED 127.0.0.1:9000 Objects database error: connect ECONNREFUSED 127.0.0.1:9001 States database error: connect ECONNREFUSED 127.0.0.1:9000 Objects database error: connect ECONNREFUSED 127.0.0.1:9001 States database error: connect ECONNREFUSED 127.0.0.1:9000 Objects database error: connect ECONNREFUSED 127.0.0.1:9001 States database error: connect ECONNREFUSED 127.0.0.1:9000 Objects database error: connect ECONNREFUSED 127.0.0.1:9001 States database error: connect ECONNREFUSED 127.0.0.1:9000 Objects database error: connect ECONNREFUSED 127.0.0.1:9001 States database error: connect ECONNREFUSED 127.0.0.1:9000 Objects database error: connect ECONNREFUSED 127.0.0.1:9001 States database error: connect ECONNREFUSED 127.0.0.1:9000 Objects database error: connect ECONNREFUSED 127.0.0.1:9001 States database error: connect ECONNREFUSED 127.0.0.1:9000 Objects database error: connect ECONNREFUSED 127.0.0.1:9001 States database error: connect ECONNREFUSED 127.0.0.1:9000 States database error: connect ECONNREFUSED 127.0.0.1:9000 States database error: connect ECONNREFUSED 127.0.0.1:9000 Objects database error: connect ECONNREFUSED 127.0.0.1:9001 States database error: connect ECONNREFUSED 127.0.0.1:9000 Objects database error: connect ECONNREFUSED 127.0.0.1:9001 States database error: connect ECONNREFUSED 127.0.0.1:9000 Objects database error: connect ECONNREFUSED 127.0.0.1:9001 States database error: connect ECONNREFUSED 127.0.0.1:9000 Objects database error: connect ECONNREFUSED 127.0.0.1:9001 States database error: connect ECONNREFUSED 127.0.0.1:9000 redis get system.host.raspberrypi.alive, error - Connection is closed. Objects database error: connect ECONNREFUSED 127.0.0.1:9001 Objects database error: connect ECONNREFUSED 127.0.0.1:9001 Objects database error: connect ECONNREFUSED 127.0.0.1:9001 Objects database error: connect ECONNREFUSED 127.0.0.1:9001 Objects database error: connect ECONNREFUSED 127.0.0.1:9001 Objects database error: connect ECONNREFUSED 127.0.0.1:9001 Objects database error: connect ECONNREFUSED 127.0.0.1:9001 Objects database error: connect ECONNREFUSED 127.0.0.1:9001 Objects database error: connect ECONNREFUSED 127.0.0.1:9001 Objects database error: connect ECONNREFUSED 127.0.0.1:9001 Objects database error: connect ECONNREFUSED 127.0.0.1:9001 Objects database error: connect ECONNREFUSED 127.0.0.1:9001 redis get system.host.raspberrypi.plugins.sentry.enabled, error - Connection is closed. Uncaught Rejection: /opt/iobroker/node_modules/source-map/lib/base64-vlq.js:91 0 var di'it; ^^^ SyntaxError: Unexpected token 'var' at Object.compileFunction (node:vm:360:18) at wrapSafe (node:internal/modules/cjs/loader:1094:15) at Module._compile (node:internal/modules/cjs/loader:1129:27) at Object.Module._extensions..js (node:internal/modules/cjs/loader:1219:10) at Module.load (node:internal/modules/cjs/loader:1043:32) at Function.Module._load (node:internal/modules/cjs/loader:878:12) at Module.require (node:internal/modules/cjs/loader:1067:19) at require (node:internal/modules/cjs/helpers:103:18) at Object.<anonymous> (/opt/iobroker/node_modules/source-map/lib/source-map-generator.js:8:17) at Module._compile (node:internal/modules/cjs/loader:1165:14)
-
@sr277 sagte in Iobroker startet nicht mehr:
Wie bekomme ich beim nächsten Befehl das "/opt/iobroker $" wieder weg?
warum?
da bist du richtig!
-
ls -lAh /opt/iobroker/iobroker-data/
Im Prompt steht der Verzeichnispfad, in dem du dich gerade befindest. Vollkommen korrekt für den Moment.