NEWS
Orange Pi 5 | Installation IOBroker schlägt fehl
-
Hallo,
ich habe mir mal den Orange PI 5 mit 8GB RAM und M.2 Schnittstelle raus gelassen. Mein jetziger SBC stößt mit 4GB RAM an seine Grenzen und von der M.2 Schnittstelle erhoffe ich mir noch einen Geschwindigkeitsgewinn. Auf dem Gerät habe ich die von Orange bereit gestellt Debian Version installiert. Anschließend habe ich versucht IOBroker über das Installationsskript zu installieren. Leider ohne Erfolg. Folgende Meldung wurde während der Installation ausgegeben:
========================================================================== Installing ioBroker (3/4) ========================================================================== npm ERR! code EBADENGINE npm ERR! engine Unsupported engine npm ERR! engine Not compatible with your version of node/npm: fs-extra@11.1.0 npm ERR! notsup Not compatible with your version of node/npm: fs-extra@11.1.0 npm ERR! notsup Required: {"node":">=14.14"} npm ERR! notsup Actual: {"npm":"7.5.2","node":"v12.22.12"} npm ERR! A complete log of this run can be found in: npm ERR! /root/.npm/_logs/2022-12-21T08_47_56_215Z-debug.log
Am Ende der Routine kommt noch die Meldung, dass IOBroker erfolgreich installiert wurde, aber er läuft nicht.
iobroker status liefert:internal/modules/cjs/loader.js:818 throw err; ^ Error: Cannot find module '/opt/iobroker/node_modules/iobroker.js-controller/iobroker.js' at Function.Module._resolveFilename (internal/modules/cjs/loader.js:815:15) at Function.Module._load (internal/modules/cjs/loader.js:667:27) at Function.executeUserEntryPoint [as runMain] (internal/modules/run_main.js:60:12) at internal/main/run_main_module.js:17:47 { code: 'MODULE_NOT_FOUND', requireStack: [] } root@orangepi5:/home/orangepi#
Ich gehe mal davon aus, dass die Installationsroutine bereits nodejs16 installiert. Node -v wirft aber Version 12 aus. Auch ein nachträgliches installieren von nodejs16 funktioniert nicht.
Hat hier jemand eine Idee, oder wird schlichtweg der Orange PI 5 noch nicht unterstützt?
Grüße
-
@laplaceii sagte in Orange Pi 5 | Installation IOBroker schlägt fehl:
node":"v12.22.12"
Zu alt. Installier da nodeJS@16.
Evtl. musst du das 'zu Fuß' machen. Siehe meine Signatur.Und hampel da NICHT als root herum!!!111!!!
-
@thomas-braun Danke für die schnelle Rückmeldung. Der manuelle Weg funktioniert nicht:
orangepi@orangepi5:~$ cd /opt/iobroker && npm prune npm ERR! code EBADENGINE npm ERR! engine Unsupported engine npm ERR! engine Not compatible with your version of node/npm: fs-extra@11.1.0 npm ERR! notsup Not compatible with your version of node/npm: fs-extra@11.1.0 npm ERR! notsup Required: {"node":">=14.14"} npm ERR! notsup Actual: {"npm":"7.5.2","node":"v12.22.12"} npm ERR! A complete log of this run can be found in: npm ERR! /home/orangepi/.npm/_logs/2022-12-21T09_55_14_784Z-debug.log orangepi@orangepi5:/opt/iobroker$ curl -sL https://deb.nodesource.com/setup_16.x | sudo -E bash [sudo] password for orangepi: ## Installing the NodeSource Node.js 16.x repo... ## Populating apt-get cache... + apt-get update Hit:1 https://repo.huaweicloud.com/debian bullseye InRelease Hit:2 https://repo.huaweicloud.com/debian bullseye-updates InRelease Hit:3 https://repo.huaweicloud.com/debian bullseye-backports InRelease Hit:4 https://repo.huaweicloud.com/debian-security bullseye-security InRelease Get:5 https://repo.huaweicloud.com/docker-ce/linux/debian bullseye InRelease [43.3 kB] Get:6 https://repo.huaweicloud.com/docker-ce/linux/debian bullseye/stable arm64 Packages [16.6 kB] Get:7 https://repo.huaweicloud.com/docker-ce/linux/debian bullseye/stable arm64 Contents (deb) [1,375 B] Err:7 https://repo.huaweicloud.com/docker-ce/linux/debian bullseye/stable arm64 Contents (deb) Hash Sum mismatch Hashes of expected file: - Filesize:1375 [weak] - SHA512:cb21325e11979c44e4dcf4d9932dd86bcdc87711ea58081e46dd0482875f5816f9ab411f156a6786ae2ad53d39d3126d2bdfd00c95ce5ecffcd6063bed886700 - SHA256:e28e16fb2a8521f8de3d1085cb35bc456b4286ccf8b516c7485347fbf2f5895f - SHA1:a038fc45299b05fa2b7d15fbc5d1fe5f80811627 [weak] - MD5Sum:086018c06f94126b2293ea617923ccd4 [weak] Hashes of received file: - SHA512:8ed8b58b0663e1fb87640077060bce0e5c2d247da20e02f4ff3e37649fae7aecd6df367a42f0be03e0453cc0a28b20918a2a58ad6df32ae862b540d93fa804da - SHA256:2d57ca917e5f742aa894464e7eff23652c2ed93740e90148a34f543c09a13828 - SHA1:82c78b8a6a4c9deecf6ae1523b2e31cf8cfeffb1 [weak] - MD5Sum:d43060e29468dfa49485ae2671fb2439 [weak] - Filesize:1375 [weak] Last modification reported: Fri, 25 Nov 2022 10:12:41 +0000 Release file created at: Mon, 19 Dec 2022 12:12:36 +0000 Fetched 1,375 B in 2s (696 B/s) Reading package lists... Done E: Failed to fetch https://repo.huaweicloud.com/docker-ce/linux/debian/dists/bullseye/stable/Contents-arm64.gz Hash Sum mismatch Hashes of expected file: - Filesize:1375 [weak] - SHA512:cb21325e11979c44e4dcf4d9932dd86bcdc87711ea58081e46dd0482875f5816f9ab411f156a6786ae2ad53d39d3126d2bdfd00c95ce5ecffcd6063bed886700 - SHA256:e28e16fb2a8521f8de3d1085cb35bc456b4286ccf8b516c7485347fbf2f5895f - SHA1:a038fc45299b05fa2b7d15fbc5d1fe5f80811627 [weak] - MD5Sum:086018c06f94126b2293ea617923ccd4 [weak] Hashes of received file: - SHA512:8ed8b58b0663e1fb87640077060bce0e5c2d247da20e02f4ff3e37649fae7aecd6df367a42f0be03e0453cc0a28b20918a2a58ad6df32ae862b540d93fa804da - SHA256:2d57ca917e5f742aa894464e7eff23652c2ed93740e90148a34f543c09a13828 - SHA1:82c78b8a6a4c9deecf6ae1523b2e31cf8cfeffb1 [weak] - MD5Sum:d43060e29468dfa49485ae2671fb2439 [weak] - Filesize:1375 [weak] Last modification reported: Fri, 25 Nov 2022 10:12:41 +0000 Release file created at: Mon, 19 Dec 2022 12:12:36 +0000 E: Some index files failed to download. They have been ignored, or old ones used instead. Error executing command, exiting orangepi@orangepi5:/opt/iobroker$ sudo apt install nodejs Reading package lists... Done Building dependency tree... Done Reading state information... Done nodejs is already the newest version (12.22.12~dfsg-1~deb11u1). 0 upgraded, 0 newly installed, 0 to remove and 5 not upgraded.
Es scheint so als wenn beim apt update Befehl schon was schief läuft...
Irgendeine Idee, um das fixen?Grüße
-
Ich meinte auch die Installation von nodejs, nicht vom ioBroker.
Und der Docker-Scheiß macht halt Ärger. Warum man das überhaupt verwendet ist mir immer noch ein Rätsel...
Failed to fetch https://repo.huaweicloud.com/docker-ce/linux/debian/dists/bullseye/stable/Contents-arm64.gz
-
@thomas-braun Die manuelle Installation von nodejs entlang der Anleitung funktioniert auch nicht. Oder muss ich hier warten bis das apt update funktioniert bzw. gibt es ggf. eine Möglichkeit das zu umgehen?
orangepi@orangepi5:~$ cd /opt/iobroker orangepi@orangepi5:/opt/iobroker$ curl -sL https://deb.nodesource.com/setup_16.x | sudo -E bash [sudo] password for orangepi: ## Installing the NodeSource Node.js 16.x repo... ## Populating apt-get cache... + apt-get update Get:1 https://deb.nodesource.com/node_16.x bullseye InRelease [4,586 B] Err:1 https://deb.nodesource.com/node_16.x bullseye InRelease The following signatures couldn't be verified because the public key is not available: NO_PUBKEY 1655A0AB68576280 Hit:2 https://repo.huaweicloud.com/debian bullseye InRelease Hit:3 https://repo.huaweicloud.com/debian bullseye-updates InRelease Hit:4 https://repo.huaweicloud.com/debian bullseye-backports InRelease Hit:5 https://repo.huaweicloud.com/debian-security bullseye-security InRelease Get:6 https://repo.huaweicloud.com/docker-ce/linux/debian bullseye InRelease [43.3 kB] Get:7 https://repo.huaweicloud.com/docker-ce/linux/debian bullseye/stable arm64 Packages [16.6 kB] Get:8 https://repo.huaweicloud.com/docker-ce/linux/debian bullseye/stable arm64 Contents (deb) [1,375 B] Err:8 https://repo.huaweicloud.com/docker-ce/linux/debian bullseye/stable arm64 Contents (deb) Hash Sum mismatch Hashes of expected file: - Filesize:1375 [weak] - SHA512:cb21325e11979c44e4dcf4d9932dd86bcdc87711ea58081e46dd0482875f5816f9ab411f156a6786ae2ad53d39d3126d2bdfd00c95ce5ecffcd6063bed886700 - SHA256:e28e16fb2a8521f8de3d1085cb35bc456b4286ccf8b516c7485347fbf2f5895f - SHA1:a038fc45299b05fa2b7d15fbc5d1fe5f80811627 [weak] - MD5Sum:086018c06f94126b2293ea617923ccd4 [weak] Hashes of received file: - SHA512:8ed8b58b0663e1fb87640077060bce0e5c2d247da20e02f4ff3e37649fae7aecd6df367a42f0be03e0453cc0a28b20918a2a58ad6df32ae862b540d93fa804da - SHA256:2d57ca917e5f742aa894464e7eff23652c2ed93740e90148a34f543c09a13828 - SHA1:82c78b8a6a4c9deecf6ae1523b2e31cf8cfeffb1 [weak] - MD5Sum:d43060e29468dfa49485ae2671fb2439 [weak] - Filesize:1375 [weak] Last modification reported: Fri, 25 Nov 2022 10:12:41 +0000 Release file created at: Mon, 19 Dec 2022 12:12:36 +0000 Reading package lists... Done W: GPG error: https://deb.nodesource.com/node_16.x bullseye InRelease: The following signatures couldn't be verified because the public key is not available: NO_PUBKEY 1655A0AB68576280 E: The repository 'https://deb.nodesource.com/node_16.x bullseye InRelease' is not signed. N: Updating from such a repository can't be done securely, and is therefore disabled by default. N: See apt-secure(8) manpage for repository creation and user configuration details. Error executing command, exiting orangepi@orangepi5:/opt/iobroker$ sudo apt install nodejs Reading package lists... Done Building dependency tree... Done Reading state information... Done nodejs is already the newest version (12.22.12~dfsg-1~deb11u1). 0 upgraded, 0 newly installed, 0 to remove and 5 not upgraded. orangepi@orangepi5:/opt/iobroker$ sudo ln -s /usr/bin/node /usr/bin/nodejs &> /dev/null orangepi@orangepi5:/opt/iobroker$
-
- Frage: Wozu brauchst du den Docker überhaupt?
Nicht benötigte Software schleppt man auch nicht durch.
-
@thomas-braun ich brauchs nicht. Das steckt in der apt update routine drin....kann ich das los werden?
-
Dann lösch die entsprechende .list-Datei. Dürfte sich in /etc/apt/sources.list.d/ finden. Wie die heißt weiß ich allerdings nicht.
ls -lA /etc/apt/sources.list.d/
sagt?
-
@thomas-braun perfekt das war die Ursache. Ich habe die docker.list gelöscht und danach ist alles durch gelaufen. Also issue solved! Vielen Dank und happy xmas
-
Gut. Was sagt jetzt
sudo ln -s /usr/bin/node /usr/bin/nodejs &> /dev/null uname -m && test -f /opt/scripts/.docker_config/.thisisdocker && echo "Docker-Installation" || echo "Kein Docker" && type -P nodejs node npm && nodejs -v && node -v && npm -v && iob -v && whoami && groups && echo $XDG_SESSION_TYPE && echo $DESKTOP_SESSION && pwd && sudo apt update &> /dev/null && sudo apt update && apt policy nodejs
-
@laplaceii sagte in Orange Pi 5 | Installation IOBroker schlägt fehl:
Das steckt in der apt update routine drin.
hä?
@laplaceii sagte in Orange Pi 5 | Installation IOBroker schlägt fehl:
https://repo.huaweicloud.com/docker-ce/linux/debian/dists/bullseye/s
Huaweicloud?
wo kommt die denn her?
Was machst du da überhaupt? -
@thomas-braun Hier das Ergebnis der Befehle:
orangepi@orangepi5:~$ sudo ln -s /usr/bin/node /usr/bin/nodejs &> /dev/null orangepi@orangepi5:~$ uname -m && test -f /opt/scripts/.docker_config/.thisisdocker && echo "Docker-Installation" || echo "Kein Docker" && type -P nodejs node npm && nodejs -v && node -v && npm -v && iob -v && whoami && groups && echo $XDG_SESSION_TYPE && echo $DESKTOP_SESSION && pwd && sudo apt update &> /dev/null && sudo apt update && apt policy nodejs aarch64 Kein Docker /usr/bin/nodejs /usr/bin/node /usr/bin/npm v16.19.0 v16.19.0 8.19.3 4.0.23 orangepi orangepi tty disk dialout sudo audio video plugdev games users systemd-journal input netdev ssh docker iobroker tty /home/orangepi Hit:1 https://deb.nodesource.com/node_16.x bullseye InRelease Hit:2 https://repo.huaweicloud.com/debian bullseye InRelease Hit:3 https://repo.huaweicloud.com/debian bullseye-updates InRelease Hit:4 https://repo.huaweicloud.com/debian bullseye-backports InRelease Hit:5 https://repo.huaweicloud.com/debian-security bullseye-security InRelease Reading package lists... Done Building dependency tree... Done Reading state information... Done All packages are up to date. 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 arm64 Packages 100 /var/lib/dpkg/status 12.22.12~dfsg-1~deb11u1 500 500 https://repo.huaweicloud.com/debian-security bullseye-security/main arm64 Packages 12.22.5~dfsg-2~11u1 500 500 https://repo.huaweicloud.com/debian bullseye/main arm64 Packages
-
Passt. Der huawei-Mirror irritiert mich immer noch. Sehr ungewöhnlich.
-
@homoran Die Verbindung zur Huaweicloud kommt aus der Debian Installation für den OrangePi5, welche ich von der Internetseite für den OrangePi5 heruntergeladen habe. Folgende Verbindungen werden dort aufgebaut:
+deb https://repo.huaweicloud.com/debian bullseye main contrib non-free #deb-src https://repo.huaweicloud.com/debian bullseye main contrib non-free deb https://repo.huaweicloud.com/debian bullseye-updates main contrib non-free #deb-src https://repo.huaweicloud.com/debian bullseye-updates main contrib non-free deb https://repo.huaweicloud.com/debian bullseye-backports main contrib non-free #deb-src https://repo.huaweicloud.com/debian bullseye-backports main contrib non-free deb https://repo.huaweicloud.com/debian-security bullseye-security main contrib non-free #deb-src https://repo.huaweicloud.com/debian-security bullseye-security main contrib non-free
Die Huaweicloud ist auch bei Debian als offizieller mirror geführt https://www.debian.org/mirror/list.de.html
Kann ich den Mirror einfach wechseln, indem ich repo.huaweicloud.com durch z.B. ftp-stud.hs-esslingen.de austausche? Bzw. welchen Mirror würdet Ihr empfehlen?
-
@thomas-braun mich auch...
-
apt sucht sich eigentlich von alleine den besten Mirror.
Jedenfalls wenn nicht ein fixer Mirror in die .list-Files hart eingetragen wurde.
Kann sein das für deinen Standort der Server der nächste ist. Häufiger sieht man halt Esslingen, Halifax oder Uni Graz usw. -
@thomas-braun Wohne am Bodensee. Esslingen sollte näher sein
In der sources.list sind die Huawaiserver eingetragen...Kann man das einfach rausnehmen oder besser ersetzen? -
Last login: Wed Dec 21 17:27:28 2022 from 100.75.198.95 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 deb http://deb.debian.org/debian bullseye-backports 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 #deb-src http://deb.debian.org/debian bullseye-backports main contrib non-free echad@chet:~ $
deb.debian.org wird dann entsprechend an den besten Mirror umgeleitet.