NEWS
Probleme beim der installation
-
Hallo Community,
Versuch jetzt schon länger Iobroker zu installieren, nach anderen fehlern im System bekomm ich beim ausführen des curl -sLf https://iobroker.net/install.sh | bash - immer wieder folgenden fehler:
Mein System ist Ubuntu Server 20.04
Vielen Dank für eure Hilfe schon mal
npm ERR! code 22 npm ERR! path /opt/iobroker/node_modules/iobroker.js-controller npm ERR! command failed npm ERR! command sh -c node iobroker.js setup first npm ERR! creating conf/iobroker.json npm ERR! Could not connect to states database at 127.0.0.1:9000 (invalid protocol). Please make sure the configured IP and port points to a host running JS-Controller >= 2.0. and that the port is not occupied by other software! npm ERR! Could not connect to states database at 127.0.0.1:9000 (invalid protocol). Please make sure the configured IP and port points to a host running JS-Controller >= 2.0. and that the port is not occupied by other software! npm ERR! Cannot read system.config: null (OK when migrating or restoring) npm ERR! No connection to databases possible ... npm ERR! A complete log of this run can be found in: npm ERR! /home/chris/.npm/_logs/2022-02-28T09_50_35_462Z-debug-0.log
MOD EDIT: Log in Code Tags gesetzt
-
@chris-schneidergruber sagte in Probleme beim der installation:
nach anderen fehlern im System
Das soll konkret was bedeuten?
-
könnte firewall / fritzbox problem sein ?
-
@chris-schneidergruber sagte in Probleme beim der installation:
Please make sure the configured IP and port points to a host running JS-Controller >= 2.0. and that the port is not occupied by other software!
Könnte auch sein, dass auf dem Port 9000 schon was anderes läuft.
Schau mitsudo ss -tulpn | grep LISTEN
-
hatte zu erst probleme g++ instaliert zu bekommen da es anscheinend eine bug in der benötigten libc6 gab die auf meinem System neuer war und ich eine ältere version installieren musste das ich g++ installiert bekomme.
-
Danke ja der Squeezbox server rennt anscheinend auf 9000 mal schauen das ich den auf einen anderen lege
-
@chris-schneidergruber sagte in Probleme beim der installation:
hatte zu erst probleme g++ instaliert zu bekommen da es anscheinend eine bug in der benötigten libc6 gab die auf meinem System neuer war und ich eine ältere version installieren musste das ich g++ installiert bekomme.
Das hört sich komplett schräg an. An glibc und Konsorten schraubt man tunlichst nicht herum.
-
ja das ist mir auch bewusst
-
Und warum tust du es dann?
gcc beinhaltet g++. -
danke läuft jetzt danke
-
Guten Morgen
nach der Erfolgreichen Installation bekoomm ich jetzt folgenden fehler:
$ iobroker add deconz --host homeserver NPM version: 8.5.2 Installing iobroker.deconz@1.3.19... (System call) host.homeserver Cannot install iobroker.deconz@1.3.19: 1 ERROR: Process exited with code 25
was bedeutet der error code 25?
Hab versucht den Adapter über dem Browser zu installieren.Mod EDIT: Log in Code Tags gesetzt
-
@chris-schneidergruber sagte in Probleme beim der installation:
NPM version: 8.5.2
Wieso diese Version?
Welche Node JS Version nutzt du?
Aktuell empfohlen ist Node 14 und NPM 6
-
Hallo Wendy.
Node ist v14.19.0.
Wieso die höhere version Installiert ist weis ich nicht, vlt bei nem update passiert.
Muss es zwingend die npm 6 sein?
-
@chris-schneidergruber NPM6 ist aktuell die empfohlene und kommt eigentlich auch passend zusammen mit deiner Node Version.
Vielleicht in einem ersten Schritt mal die Installation Node/NPM korrigieren:
https://forum.iobroker.net/topic/35090/howto-nodejs-installation-und-upgrades-unter-debian
-
$ iobroker add homeconnect --host homeserver NPM version: 6.14.16 Installing iobroker.homeconnect@0.0.37... (System call) host.homeserver Cannot install iobroker.homeconnect@0.0.37: 243 ERROR: Process exited with code 25
also mit npm 6 kommt der selbe Fehler
-
Was kommt denn jetzt bei
which nodejs node npm && nodejs -v && node -v && npm -v && whoami && pwd && sudo apt update &> /dev/null && sudo apt update && apt policy nodejs
iob stop iob fix iob start
-
chris@homeserver:~$ which nodejs node npm && nodejs -v && node -v && npm -v && whoami && pwd && sudo apt update &> /dev/null && sudo apt update && apt policy nodejs /usr/bin/nodejs /usr/bin/node /usr/bin/npm v14.19.0 v14.19.0 6.14.16 chris /home/chris [sudo] password for chris: Hit:1 http://at.archive.ubuntu.com/ubuntu focal InRelease Hit:2 http://phoscon.de/apt/deconz focal InRelease Hit:3 http://at.archive.ubuntu.com/ubuntu focal-updates InRelease Hit:4 http://ppa.launchpad.net/ubuntu-toolchain-r/test/ubuntu focal InRelease Hit:5 http://archive.canonical.com/ubuntu focal InRelease Hit:6 http://at.archive.ubuntu.com/ubuntu focal-backports InRelease Hit:7 http://at.archive.ubuntu.com/ubuntu focal-security InRelease Hit:8 https://deb.nodesource.com/node_14.x focal InRelease Ign:9 http://downloads.linux.hpe.com/SDR/repo/mcp focal/current InRelease Hit:10 http://downloads.linux.hpe.com/SDR/repo/mcp focal/current Release Reading package lists... Done Building dependency tree Reading state information... Done All packages are up to date. nodejs: Installed: 14.19.0-deb-1nodesource1 Candidate: 14.19.0-deb-1nodesource1 Version table: *** 14.19.0-deb-1nodesource1 500 500 https://deb.nodesource.com/node_14.x focal/main amd64 Packages 100 /var/lib/dpkg/status 10.19.0~dfsg-3ubuntu1 500 500 http://at.archive.ubuntu.com/ubuntu focal/universe amd64 Packages
-
@chris-schneidergruber Das sieht erstmal gut aus.
Was sagt der Fixer?
-
chris@homeserver:~$ iob fix library: loaded Library version=2022-02-10 ========================================================================== Welcome to the ioBroker installation fixer! Script version: 2022-02-13 You might need to enter your password a couple of times. ========================================================================== ========================================================================== Installing prerequisites (1/3) ========================================================================== Hit:1 http://phoscon.de/apt/deconz focal InRelease Hit:2 http://at.archive.ubuntu.com/ubuntu focal InRelease Hit:3 http://at.archive.ubuntu.com/ubuntu focal-updates InRelease Hit:4 http://ppa.launchpad.net/ubuntu-toolchain-r/test/ubuntu focal InRelease Hit:5 http://at.archive.ubuntu.com/ubuntu focal-backports InRelease Hit:6 https://deb.nodesource.com/node_14.x focal InRelease Hit:7 http://at.archive.ubuntu.com/ubuntu focal-security InRelease Hit:8 http://archive.canonical.com/ubuntu focal InRelease Ign:9 http://downloads.linux.hpe.com/SDR/repo/mcp focal/current InRelease Hit:10 http://downloads.linux.hpe.com/SDR/repo/mcp focal/current Release Reading package lists... Done Installed gcc-c++ Installed python-dev ========================================================================== Checking ioBroker user and directory permissions (2/3) ========================================================================== Created /etc/sudoers.d/iobroker Fixing directory permissions... ========================================================================== Checking autostart (3/3) ========================================================================== Enabling autostart... Autostart enabled! ========================================================================== Your installation was fixed successfully Run iobroker start to start ioBroker again! ========================================================================== schaut in Ordnung aus
-
dann
iob start
und mit
tail -f /opt/iobroker/logs/iobroker.current.log
mal das logfile beobachten