Skip to content
  • Home
  • Aktuell
  • Tags
  • 0 Ungelesen 0
  • Kategorien
  • Unreplied
  • Beliebt
  • GitHub
  • Docu
  • Hilfe
Skins
  • Light
  • Brite
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Standard: (Kein Skin)
  • Kein Skin
Einklappen
ioBroker Logo

Community Forum

donate donate
  1. ioBroker Community Home
  2. Deutsch
  3. Einsteigerfragen
  4. Installation
  5. Raspi4 4GB --> Installation --> Cannot find module ...

NEWS

  • UPDATE 31.10.: Amazon Alexa - ioBroker Skill läuft aus ?
    apollon77A
    apollon77
    48
    3
    8.9k

  • Monatsrückblick – September 2025
    BluefoxB
    Bluefox
    13
    1
    2.3k

  • Neues Video "KI im Smart Home" - ioBroker plus n8n
    BluefoxB
    Bluefox
    16
    1
    3.4k

Raspi4 4GB --> Installation --> Cannot find module ...

Geplant Angeheftet Gesperrt Verschoben Installation
29 Beiträge 3 Kommentatoren 2.6k Aufrufe 2 Watching
  • Älteste zuerst
  • Neuste zuerst
  • Meiste Stimmen
Antworten
  • In einem neuen Thema antworten
Anmelden zum Antworten
Dieses Thema wurde gelöscht. Nur Nutzer mit entsprechenden Rechten können es sehen.
  • H Hape1

    @homoran

    naja, ich habe von der iobroker-Seite die Kommandozeile kopiert und ausgeführt:

    curl -sLf https://iobroker.net/install.sh | bash -
    

    Dann kam es zu Fehlermeldungen:

    e -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
    
    8.5.2
    
    pi
    
    /home/pi
    
    OK:1 http://raspbian.raspberrypi.org/raspbian bullseye InRelease
    
    OK:2 http://archive.raspberrypi.org/debian bullseye InRelease                  
    
    OK:3 https://download.docker.com/linux/raspbian bullseye InRelease             
    
    OK:4 https://repos.influxdata.com/debian bullseye InRelease                    
    
    OK:5 https://deb.nodesource.com/node_14.x bullseye InRelease                
    
    Paketlisten werden gelesen… Fertig
    
    Abhängigkeitsbaum wird aufgebaut… Fertig
    
    Statusinformationen werden eingelesen… Fertig
    
    Alle Pakete sind aktuell.
    
    nodejs:
    
      Installiert:           14.19.0-deb-1nodesource1
    
      Installationskandidat: 14.19.0-deb-1nodesource1
    
      Versionstabelle:
    
     *** 14.19.0-deb-1nodesource1 500
    
            500 https://deb.nodesource.com/node_14.x bullseye/main armhf Packages
    
            100 /var/lib/dpkg/status
    
         12.22.5~dfsg-2~11u1 500
    
            500 http://raspbian.raspberrypi.org/raspbian bullseye/main armhf Packages
    
    pi@raspberrypi4:~ $ cd /opt/iobroker
    
    pi@raspberrypi4:/opt/iobroker $ sudo -H -u iobroker npm install iobroker.js-controller
    
    npm ERR! code 24
    
    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! 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! Server Cannot start inMem-states on port 9000: Failed to lock DB file "/opt/iobroker/iobroker-data/states.jsonl"!
    
     
    
    npm ERR! A complete log of this run can be found in:
    
    npm ERR!     /home/iobroker/.npm/_logs/2022-02-27T12_21_20_675Z-debug-0.log
    
    pi@raspberrypi4:/opt/iobroker $ iobroker stop
    
    pi@raspberrypi4:/opt/iobroker $ iobroker fix
    
    library: loaded
    
    Library version=2022-02-10
    
    ioBroker is not installed in /opt/iobroker! Cannot fix anything...
    

    Es wäre mir auch egal alles auf dem System installierte wieder runterzuholen und neu zu installieren --> es ist ja noch gar nix in iobroker installiert --> wie auch, das Programm ist ja nicht über die ip:8081 erreichbar ...

    Es wäre nett, wenn ihr mir sagt, wie alles wieder komplett deinstalliert und dann neu aufgesetzt wird.

    Kann es vllt. auch damit zusammenhängen, das ja bereits auf der gleichen ip die Apps Portainer (Ports 9000 und 9443), AdGuard und Grafana mit telegraf auf dem Pi laufen ... ?

    Thomas BraunT Online
    Thomas BraunT Online
    Thomas Braun
    Most Active
    schrieb am zuletzt editiert von
    #20

    @hape1 sagte in Raspi4 4GB --> Installation --> Cannot find module ...:

    Apps Portainer (Ports 9000

    Auf dem Port 9000 läuft auch die Datenbank, die du da natürlich nicht erreichen kannst, weil da schon der Portainer läuft.

    Warum man auf den kleinen Pi auch noch einen Docker-Container knallt erschließt sich mir allerdings auch nicht.

    Linux-Werkzeugkasten:
    https://forum.iobroker.net/topic/42952/der-kleine-iobroker-linux-werkzeugkasten
    NodeJS Fixer Skript:
    https://forum.iobroker.net/topic/68035/iob-node-fix-skript
    iob_diag: curl -sLf -o diag.sh https://iobroker.net/diag.sh && bash diag.sh

    H 1 Antwort Letzte Antwort
    0
    • Thomas BraunT Thomas Braun

      @hape1 sagte in Raspi4 4GB --> Installation --> Cannot find module ...:

      Apps Portainer (Ports 9000

      Auf dem Port 9000 läuft auch die Datenbank, die du da natürlich nicht erreichen kannst, weil da schon der Portainer läuft.

      Warum man auf den kleinen Pi auch noch einen Docker-Container knallt erschließt sich mir allerdings auch nicht.

      H Offline
      H Offline
      Hape1
      schrieb am zuletzt editiert von
      #21

      @thomas-braun

      also, in meinem Eingangspost steht, welche Apps auf dem Pi laufen ... Kann man den Port für die Datenbank von iobroker denn ändern?

      HomoranH Thomas BraunT 2 Antworten Letzte Antwort
      0
      • H Hape1

        @thomas-braun

        also, in meinem Eingangspost steht, welche Apps auf dem Pi laufen ... Kann man den Port für die Datenbank von iobroker denn ändern?

        HomoranH Nicht stören
        HomoranH Nicht stören
        Homoran
        Global Moderator Administrators
        schrieb am zuletzt editiert von Homoran
        #22

        @hape1 sagte in Raspi4 4GB --> Installation --> Cannot find module ...:

        in meinem Eingangspost steht, welche Apps auf dem Pi laufen

        Hab ich zwar auch gelesen, aber nicht realisiert was eine "App Portainer" sein sollte . Vom Port stand da aber schon mal gar nichts

        Jetzt müsste ich den Thread aus den Einsteigerfragen verschieben, da so eine Konstellation nu wirklich keine Einsdeiger-Konfiguration ist.

        kein Support per PN! - Fragen im Forum stellen - es gibt fast nichts, was nicht auch für andere interessant ist.

        Benutzt das Voting rechts unten im Beitrag wenn er euch geholfen hat.

        der Installationsfixer: curl -fsL https://iobroker.net/fix.sh | bash -

        H 1 Antwort Letzte Antwort
        0
        • H Hape1

          @thomas-braun

          also, in meinem Eingangspost steht, welche Apps auf dem Pi laufen ... Kann man den Port für die Datenbank von iobroker denn ändern?

          Thomas BraunT Online
          Thomas BraunT Online
          Thomas Braun
          Most Active
          schrieb am zuletzt editiert von
          #23

          @hape1 Ja, geht soweit ich weiß natürlich irgendwie.
          Hab den Befehl aber nicht im Kopf.

          Weil ich neugierig bin: Was veranlasst einen auf dem Pi mit Docker herumzukutschieren?

          Linux-Werkzeugkasten:
          https://forum.iobroker.net/topic/42952/der-kleine-iobroker-linux-werkzeugkasten
          NodeJS Fixer Skript:
          https://forum.iobroker.net/topic/68035/iob-node-fix-skript
          iob_diag: curl -sLf -o diag.sh https://iobroker.net/diag.sh && bash diag.sh

          1 Antwort Letzte Antwort
          0
          • H Offline
            H Offline
            Hape1
            schrieb am zuletzt editiert von
            #24

            Das sollte auch nicht als Vorwurf rüberkommen, ich habe auch nicht realisiert, das iobroker auf Port 9000 horcht. Also, alles gut! Bliebe also die Frage, ob man den Port der ioBroker Datenbank ändern kann.

            1 Antwort Letzte Antwort
            0
            • HomoranH Homoran

              @hape1 sagte in Raspi4 4GB --> Installation --> Cannot find module ...:

              in meinem Eingangspost steht, welche Apps auf dem Pi laufen

              Hab ich zwar auch gelesen, aber nicht realisiert was eine "App Portainer" sein sollte . Vom Port stand da aber schon mal gar nichts

              Jetzt müsste ich den Thread aus den Einsteigerfragen verschieben, da so eine Konstellation nu wirklich keine Einsdeiger-Konfiguration ist.

              H Offline
              H Offline
              Hape1
              schrieb am zuletzt editiert von Hape1
              #25

              @homoran

              Ok, ich konnte den Port 9000 vom Portainer ausschalten. iobroker ist nun auch installiert, aber es fehlt etwas:

              Linux raspberrypi4 5.10.92-v7l+ #1514 SMP Mon Jan 17 17:38:03 GMT 2022 armv7l
              
              The programs included with the Debian GNU/Linux system are free software;
              the exact distribution terms for each program are described in the
              individual files in /usr/share/doc/*/copyright.
              
              Debian GNU/Linux comes with ABSOLUTELY NO WARRANTY, to the extent
              permitted by applicable law.
              Last login: Sun Feb 27 18:26:27 2022 from 192.168.1.161
              pi@raspberrypi4:~ $ iobroker start
              pi@raspberrypi4:~ $ cd /opt/iobroker
              pi@raspberrypi4:/opt/iobroker $ cd /opt/iobroker
              pi@raspberrypi4:/opt/iobroker $ sudo iobroker stop
              pi@raspberrypi4:/opt/iobroker $ sudo iobroker update
              internal/modules/cjs/loader.js:905
                throw err;
                ^
              
              Error: Cannot find module '/opt/iobroker/node_modules/iobroker.js-controller/iobroker.js'
                  at Function.Module._resolveFilename (internal/modules/cjs/loader.js:902:15)
                  at Function.Module._load (internal/modules/cjs/loader.js:746:27)
                  at Function.executeUserEntryPoint [as runMain] (internal/modules/run_main.js:75:12)
                  at internal/main/run_main_module.js:17:47 {
                code: 'MODULE_NOT_FOUND',
                requireStack: []
              
              

              Habe nun versucht, den fehlenden js-Controller nachzuinstallieren. Es wird aber immer noch angemeckert, das der Port 9000 von einem anderen Server (was wohl der 9000er-Port von Portainer ist) verwendet wird:

               The DB port  9000 is occupied by something that is not a Redis protocol server. Please check other software running on this port or, if you use iobroker, make sure to update to js-controller 2.0 or higher!
               The DB port  9000 is occupied by something that is not a Redis protocol server. Please check other software running on this port or, if you use iobroker, make sure to update to js-controller 2.0 or higher!
               The DB port  9000 is occupied by something that is not a Redis protocol server. Please check other software running on this port or, if you use iobroker, make sure to update to js-controller 2.0 or higher!
               The DB port  9000 is occupied by something that is not a Redis protocol server. Please check other software running on this port or, if you use iobroker, make sure to update to js-controller 2.0 or higher!
               The DB port  9000 is occupied by something that is not a Redis protocol server. Please check other software running on this port or, if you use iobroker, make sure to update to js-controller 2.0 or higher!
               The DB port  9000 is occupied by something that is not a Redis protocol server. Please check other software running on this port or, if you use iobroker, make sure to update to js-controller 2.0 or higher!
               The DB port  9000 is occupied by something that is not a Redis protocol server. Please check other software running on this port or, if you use iobroker, make sure to update to js-controller 2.0 or higher!
               The DB port  9000 is occupied by something that is not a Redis protocol server. Please check other software running on this port or, if you use iobroker, make sure to update to js-controller 2.0 or higher!
               The DB port  9000 is occupied by something that is not a Redis protocol server. Please check other software running on this port or, if you use iobroker, make sure to update to js-controller 2.0 or higher!
               The DB port  9000 is occupied by something that is not a Redis protocol server. Please check other software running on this port or, if you use iobroker, make sure to update to js-controller 2.0 or higher!
               The DB port  9000 is occupied by something that is not a Redis protocol server. Please check other software running on this port or, if you use iobroker, make sure to update to js-controller 2.0 or higher!
               The DB port  9000 is occupied by something that is not a Redis protocol server. Please check other software running on this port or, if you use iobroker, make sure to update to js-controller 2.0 or higher!
               The DB port  9000 is occupied by something that is not a Redis protocol server. Please check other software running on this port or, if you use iobroker, make sure to update to js-controller 2.0 or higher!
               The DB port  9000 is occupied by something that is not a Redis protocol server. Please check other software running on this port or, if you use iobroker, make sure to update to js-controller 2.0 or higher!
               The DB port  9000 is occupied by something that is not a Redis protocol server. Please check other software running on this port or, if you use iobroker, make sure to update to js-controller 2.0 or higher!
               The DB port  9000 is occupied by something that is not a Redis protocol server. Please check other software running on this port or, if you use iobroker, make sure to update to js-controller 2.0 or higher!
               The DB port  9000 is occupied by something that is not a Redis protocol server. Please check other software running on this port or, if you use iobroker, make sure to update to js-controller 2.0 or higher!
               Cannot read system.config: null (OK when migrating or restoring)
              
              
              1 Antwort Letzte Antwort
              0
              • H Offline
                H Offline
                Hape1
                schrieb am zuletzt editiert von
                #26

                Vielen Dank für Eure Hilfe --> ich habe mich entschlossen das Thema iobroker auf dem Pi erstmal zurückzustellen. Sollte ich das Thema wieder aufgreifen, melde ich mich wieder.

                Thomas BraunT 1 Antwort Letzte Antwort
                0
                • H Hape1

                  Vielen Dank für Eure Hilfe --> ich habe mich entschlossen das Thema iobroker auf dem Pi erstmal zurückzustellen. Sollte ich das Thema wieder aufgreifen, melde ich mich wieder.

                  Thomas BraunT Online
                  Thomas BraunT Online
                  Thomas Braun
                  Most Active
                  schrieb am zuletzt editiert von
                  #27

                  @hape1

                  Was läuft denn da eigentlich in dem Docker?

                  Linux-Werkzeugkasten:
                  https://forum.iobroker.net/topic/42952/der-kleine-iobroker-linux-werkzeugkasten
                  NodeJS Fixer Skript:
                  https://forum.iobroker.net/topic/68035/iob-node-fix-skript
                  iob_diag: curl -sLf -o diag.sh https://iobroker.net/diag.sh && bash diag.sh

                  H 1 Antwort Letzte Antwort
                  0
                  • Thomas BraunT Thomas Braun

                    @hape1

                    Was läuft denn da eigentlich in dem Docker?

                    H Offline
                    H Offline
                    Hape1
                    schrieb am zuletzt editiert von
                    #28

                    @thomas-braun

                    Um auf Deine Frage zu antworten: Zunächst Portainer, als umfangreiches Deployment-Tool für Container auf dem Docker, dann Grafana mit telegraf als Monitoring für den Pi und AdGuard als Nameserver um unerwünnschte Werbung zu blocken ... dat is et. :blush:

                    Thomas BraunT 1 Antwort Letzte Antwort
                    0
                    • H Hape1

                      @thomas-braun

                      Um auf Deine Frage zu antworten: Zunächst Portainer, als umfangreiches Deployment-Tool für Container auf dem Docker, dann Grafana mit telegraf als Monitoring für den Pi und AdGuard als Nameserver um unerwünnschte Werbung zu blocken ... dat is et. :blush:

                      Thomas BraunT Online
                      Thomas BraunT Online
                      Thomas Braun
                      Most Active
                      schrieb am zuletzt editiert von
                      #29

                      @hape1

                      Würde ich alles direkt auf dem Pi ausführen und mir die Zwischenebene Docker sparen.

                      Linux-Werkzeugkasten:
                      https://forum.iobroker.net/topic/42952/der-kleine-iobroker-linux-werkzeugkasten
                      NodeJS Fixer Skript:
                      https://forum.iobroker.net/topic/68035/iob-node-fix-skript
                      iob_diag: curl -sLf -o diag.sh https://iobroker.net/diag.sh && bash diag.sh

                      1 Antwort Letzte Antwort
                      0
                      Antworten
                      • In einem neuen Thema antworten
                      Anmelden zum Antworten
                      • Älteste zuerst
                      • Neuste zuerst
                      • Meiste Stimmen


                      Support us

                      ioBroker
                      Community Adapters
                      Donate

                      792

                      Online

                      32.4k

                      Benutzer

                      81.6k

                      Themen

                      1.3m

                      Beiträge
                      Community
                      Impressum | Datenschutz-Bestimmungen | Nutzungsbedingungen | Einwilligungseinstellungen
                      ioBroker Community 2014-2025
                      logo
                      • Anmelden

                      • Du hast noch kein Konto? Registrieren

                      • Anmelden oder registrieren, um zu suchen
                      • Erster Beitrag
                        Letzter Beitrag
                      0
                      • Home
                      • Aktuell
                      • Tags
                      • Ungelesen 0
                      • Kategorien
                      • Unreplied
                      • Beliebt
                      • GitHub
                      • Docu
                      • Hilfe