Navigation

    Logo
    • Register
    • Login
    • Search
    • Recent
    • Tags
    • Unread
    • Categories
    • Unreplied
    • Popular
    • GitHub
    • Docu
    • Hilfe
    1. Home
    2. Deutsch
    3. Einsteigerfragen
    4. Installation
    5. Raspi4 4GB --> Installation --> Cannot find module ...

    NEWS

    • ioBroker@Smart Living Forum Solingen, 14.06. - Agenda added

    • ioBroker goes Matter ... Matter Adapter in Stable

    • Monatsrückblick - April 2025

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

    This topic has been deleted. Only users with topic management privileges can see it.
    • H
      Hape1 last edited by

      @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 ... ?

      Homoran Thomas Braun 2 Replies Last reply Reply Quote 0
      • Homoran
        Homoran Global Moderator Administrators @Hape1 last edited by Homoran

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

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

        war denn vorher schon eine nodejs Version drauf?
        Der "Einzeiler" hätte sonst node v14 mit npm v6 installiert

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

        das ja bereits auf der gleichen ip die Apps Portainer (Ports 9000 und 9443), AdGuard und Grafana mit telegraf auf dem Pi laufen ... ?

        Das dürfte man im log sehen.
        Aber wenn der port 9000 vergeben ist kann die interne datenbank diesen nicht nutzen

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

        Apps Portainer

        hab ich das irgendwo überlesen, dass hier mit Containern gearbeitet wird?

        1 Reply Last reply Reply Quote 0
        • Thomas Braun
          Thomas Braun Most Active @Hape1 last edited by

          @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 1 Reply Last reply Reply Quote 0
          • H
            Hape1 @Thomas Braun last edited by

            @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?

            Homoran Thomas Braun 2 Replies Last reply Reply Quote 0
            • Homoran
              Homoran Global Moderator Administrators @Hape1 last edited by 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 1 Reply Last reply Reply Quote 0
              • Thomas Braun
                Thomas Braun Most Active @Hape1 last edited by

                @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?

                1 Reply Last reply Reply Quote 0
                • H
                  Hape1 last edited by

                  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 Reply Last reply Reply Quote 0
                  • H
                    Hape1 @Homoran last edited by Hape1

                    @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 Reply Last reply Reply Quote 0
                    • H
                      Hape1 last edited by

                      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 Braun 1 Reply Last reply Reply Quote 0
                      • Thomas Braun
                        Thomas Braun Most Active @Hape1 last edited by

                        @hape1

                        Was läuft denn da eigentlich in dem Docker?

                        H 1 Reply Last reply Reply Quote 0
                        • H
                          Hape1 @Thomas Braun last edited by

                          @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. 😊

                          Thomas Braun 1 Reply Last reply Reply Quote 0
                          • Thomas Braun
                            Thomas Braun Most Active @Hape1 last edited by

                            @hape1

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

                            1 Reply Last reply Reply Quote 0
                            • First post
                              Last post

                            Support us

                            ioBroker
                            Community Adapters
                            Donate

                            767
                            Online

                            31.7k
                            Users

                            79.7k
                            Topics

                            1.3m
                            Posts

                            3
                            29
                            1778
                            Loading More Posts
                            • Oldest to Newest
                            • Newest to Oldest
                            • Most Votes
                            Reply
                            • Reply as topic
                            Log in to reply
                            Community
                            Impressum | Datenschutz-Bestimmungen | Nutzungsbedingungen
                            The ioBroker Community 2014-2023
                            logo