Navigation

    Logo
    • Register
    • Login
    • Search
    • Recent
    • Tags
    • Unread
    • Categories
    • Unreplied
    • Popular
    • GitHub
    • Docu
    • Hilfe
    1. Home
    2. Deutsch
    3. ioBroker Allgemein
    4. Neuinstallation auf Ubuntu 20.04.6 Fehler

    NEWS

    • Neuer Blog: Fotos und Eindrücke aus Solingen

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

    • ioBroker goes Matter ... Matter Adapter in Stable

    Neuinstallation auf Ubuntu 20.04.6 Fehler

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

      Ähem, ich habe hier in der Bude einen alten REchner mit Ubuntu 20.04.6 LTS Headless am laufen. Da läuft im Moment Plex und Squeezebox drauf und er dient als Fileserver.
      Updates sind so weit durchgelaufen. Curl und Bash funktioniert soweit auch.
      Nur bei curl -sLf https://iobroker.net/install.sh | bash - bietet sich dann folgendes Bild:
      670b93ab-7e9a-4cd0-a240-37ad3aeca93f-grafik.png
      Jetzt steh ich ein bisschen Dumm da.
      8fd57c37-2bcf-4743-9942-759d3f85983d-grafik.png

      Tja, und jetzt?

      Gruß Jürgen

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

        @smigl sagte in Neuinstallation auf Ubuntu 20.04.6 Fehler:

        Tja, und jetzt?

        Jetzt postest du das bitte als Text in CodeTags eingebettet nochmal und nicht als buntes Bildchen.

        S 1 Reply Last reply Reply Quote 0
        • wendy2702
          wendy2702 last edited by

          Ist der Port 9000 vielleicht schon belegt?

          Mehr gibt es auf den Briefmarken ja nicht zu sehen 😁

          1 Reply Last reply Reply Quote 0
          • S
            Smigl @Thomas Braun last edited by

            smigl@server1:~$ iobroker start admin
            node:internal/modules/cjs/loader:1143
              throw err;
              ^
            
            Error: Cannot find module '/opt/iobroker/node_modules/iobroker.js-controller/iobroker.js'
                at Module._resolveFilename (node:internal/modules/cjs/loader:1140:15)
                at Module._load (node:internal/modules/cjs/loader:981:27)
                at Function.executeUserEntryPoint [as runMain] (node:internal/modules/run_main:128:12)
                at node:internal/main/run_main_module:28:49 {
              code: 'MODULE_NOT_FOUND',
              requireStack: []
            }
            
            Node.js v18.20.2
            
            Den Rest muss ich erst noch nachstellen...
            
            S Thomas Braun 2 Replies Last reply Reply Quote 0
            • S
              Smigl @Smigl last edited by

              smigl@server1:~$ curl -sLf https://iobroker.net/install.sh | bash -
              library: loaded
              Library version=2024-01-04
              
              ==========================================================================
              
                  Welcome to the ioBroker installer!
                  Installer version: 2024-01-04
              
                  You might need to enter your password a couple of times.
              
              ==========================================================================
              
              
              ==========================================================================
                  Installing prerequisites (1/4)
              ==========================================================================
              
              [sudo] password for smigl:
              Err:1 http://debian.slimdevices.com stable InRelease
                Could not resolve 'debian.slimdevices.com'
              Hit:2 http://de.archive.ubuntu.com/ubuntu focal InRelease
              Hit:3 https://deb.nodesource.com/node_18.x nodistro InRelease
              Get:4 http://de.archive.ubuntu.com/ubuntu focal-updates InRelease [114 kB]
              Hit:5 http://de.archive.ubuntu.com/ubuntu focal-backports InRelease
              Hit:6 http://de.archive.ubuntu.com/ubuntu focal-security InRelease
              Fetched 114 kB in 1s (154 kB/s)
              Reading package lists... Done
              W: Failed to fetch http://debian.slimdevices.com/dists/stable/InRelease  Could not resolve 'debian.slimdevices.com'
              W: Some index files failed to download. They have been ignored, or old ones used instead.
              
              ==========================================================================
                  Creating ioBroker user and directory (2/4)
              ==========================================================================
              
              Created /etc/sudoers.d/iobroker
              Directory /opt/iobroker created
              
              ==========================================================================
                  Installing ioBroker (3/4)
              ==========================================================================
              
              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: /home/smigl/.npm/_logs/2024-04-13T16_46_44_923Z-debug-0.log
              
              ==========================================================================
                  Finalizing installation (4/4)
              ==========================================================================
              
              Enabling autostart...
              Autostart enabled!
              Fixing directory permissions...
              
              ==========================================================================
              
                  ioBroker was installed successfully
                  Open http://192.168.2.190:8081 in a browser and start configuring!
              
              ==========================================================================
              
              
              You need to re-login before doing anything else on the console!
              
              
              

              OK, das mit Slimdivices ist ein anderes Problem...

              Homoran 1 Reply Last reply Reply Quote 0
              • Homoran
                Homoran Global Moderator Administrators @Smigl last edited by

                @smigl sagte in Neuinstallation auf Ubuntu 20.04.6 Fehler:

                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!

                da ist wohl port 9000 anders belegt

                Marc Berg S 2 Replies Last reply Reply Quote 0
                • Thomas Braun
                  Thomas Braun Most Active @Smigl last edited by

                  @smigl

                  Schau dir die Langfassung von

                  iob diag
                  

                  an.

                  1 Reply Last reply Reply Quote 0
                  • Marc Berg
                    Marc Berg Most Active @Homoran last edited by

                    @homoran sagte in Neuinstallation auf Ubuntu 20.04.6 Fehler:

                    da ist wohl port 9000 anders belegt

                    Wenn ich da "debian.slimdevices.com" sehe wird es wohl squeezebox / Logitech Media Server sein, der den Port 9000 belegt.

                    1 Reply Last reply Reply Quote 0
                    • S
                      Smigl @Homoran last edited by

                      @homoran 😱 Oh shit, da läuft der Squeezeboxserver....
                      Verdammt... jetzt wird mir einiges klar...
                      Hm, mal schauen, wie ich das Problem hinkriege.

                      S 1 Reply Last reply Reply Quote 0
                      • S
                        Smigl @Smigl last edited by

                        OK... Squeezebox auf 9100 umgestellt.

                        npm ERR! Server Cannot start inMem-objects on port 9001: Failed to lock DB file "/opt/iobroker/iobroker-data/objects.jsonl"!
                        
                        npm ERR! A complete log of this run can be found in: /home/smigl/.npm/_logs/2024-04-13T17_04_19_886Z-debug-0.log
                        
                        

                        IP:9001 bringt Fehler Verbindung fehlgeschlagen im Firefox

                        und nu...

                        Thomas Braun Homoran 2 Replies Last reply Reply Quote 0
                        • Thomas Braun
                          Thomas Braun Most Active @Smigl last edited by

                          @smigl sagte in Neuinstallation auf Ubuntu 20.04.6 Fehler:

                          und nu...

                          iobroker mal neugestartet?

                          S 1 Reply Last reply Reply Quote 0
                          • S
                            Smigl @Thomas Braun last edited by Smigl

                            @thomas-braun
                            Hm, Serverneustart
                            htop bringt mit filter iobroker, npm und node jeweils keine Prozesse.

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

                              @smigl sagte in Neuinstallation auf Ubuntu 20.04.6 Fehler:

                              Squeezebox auf 9100 umgestellt.

                              und iobroker auch neu installiert?

                              Homoran 1 Reply Last reply Reply Quote 0
                              • S
                                Smigl @Smigl last edited by

                                smigl@server1:~$ iobroker status
                                node:internal/modules/cjs/loader:1143
                                throw err;
                                ^

                                Error: Cannot find module '/opt/iobroker/node_modules/iobroker.js-controller/iobroker.js'
                                at Module._resolveFilename (node:internal/modules/cjs/loader:1140:15)
                                at Module._load (node:internal/modules/cjs/loader:981:27)
                                at Function.executeUserEntryPoint [as runMain] (node:internal/modules/run_main:128:12)
                                at node:internal/main/run_main_module:28:49 {
                                code: 'MODULE_NOT_FOUND',
                                requireStack: []
                                }

                                Node.js v18.20.2

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

                                  @smigl sagte in Neuinstallation auf Ubuntu 20.04.6 Fehler:

                                  htop bringt mit filter iobroker, npm und node jeweils keine Prozesse.

                                  Und was bringt

                                  iob diag
                                  

                                  so an Erkenntnisgewinn?

                                  S 1 Reply Last reply Reply Quote 0
                                  • S
                                    Smigl @Thomas Braun last edited by Homoran

                                    @thomas-braun
                                    Ähhhhh:

                                    Copy text starting here:

                                    ======================= SUMMARY =======================
                                                            v.2023-10-10
                                    
                                    
                                       Static hostname: server1
                                             Icon name: computer-desktop
                                               Chassis: desktop
                                      Operating System: Ubuntu 20.04.6 LTS
                                                Kernel: Linux 5.4.0-176-generic
                                          Architecture: x86-64
                                    
                                    Installation:           native
                                    Kernel:                 x86_64
                                    Userland:               amd64
                                    Timezone:               Europe/Berlin (CEST, +0200)
                                    User-ID:                1000
                                    X-Server:               false
                                    Boot Target:            graphical.target
                                    
                                    Pending OS-Updates:     0
                                    node:internal/modules/cjs/loader:1143
                                      throw err;
                                      ^
                                    
                                    Error: Cannot find module '/opt/iobroker/node_modules/iobroker.js-controller/iobroker.js'
                                        at Module._resolveFilename (node:internal/modules/cjs/loader:1140:15)
                                        at Module._load (node:internal/modules/cjs/loader:981:27)
                                        at Function.executeUserEntryPoint [as runMain] (node:internal/modules/run_main:128:12)
                                        at node:internal/main/run_main_module:28:49 {
                                      code: 'MODULE_NOT_FOUND',
                                      requireStack: []
                                    }
                                    
                                    Node.js v18.20.2
                                    Pending iob updates:    0
                                    
                                    Nodejs-Installation:    /usr/bin/nodejs         v18.20.2
                                                            /usr/bin/node           v18.20.2
                                                            /usr/bin/npm            10.5.0
                                                            /usr/bin/npx            10.5.0
                                                            /usr/bin/corepack       0.25.2
                                    
                                    Recommended versions are nodejs  and npm
                                    Your nodejs installation is correct
                                    
                                    MEMORY:
                                                  total        used        free      shared  buff/cache   available
                                    Mem:           7.9G        662M        5.8G        3.0M        1.4G        6.8G
                                    Swap:          4.1G          0B        4.1G
                                    Total:          12G        662M        9.9G
                                    
                                    node:internal/modules/cjs/loader:1143
                                      throw err;
                                      ^
                                    
                                    Error: Cannot find module '/opt/iobroker/node_modules/iobroker.js-controller/iobroker.js'
                                        at Module._resolveFilename (node:internal/modules/cjs/loader:1140:15)
                                        at Module._load (node:internal/modules/cjs/loader:981:27)
                                        at Function.executeUserEntryPoint [as runMain] (node:internal/modules/run_main:128:12)
                                        at node:internal/main/run_main_module:28:49 {
                                      code: 'MODULE_NOT_FOUND',
                                      requireStack: []
                                    }
                                    
                                    Node.js v18.20.2
                                    Active iob-Instances:   0
                                    node:internal/modules/cjs/loader:1143
                                      throw err;
                                      ^
                                    
                                    Error: Cannot find module '/opt/iobroker/node_modules/iobroker.js-controller/iobroker.js'
                                        at Module._resolveFilename (node:internal/modules/cjs/loader:1140:15)
                                        at Module._load (node:internal/modules/cjs/loader:981:27)
                                        at Function.executeUserEntryPoint [as runMain] (node:internal/modules/run_main:128:12)
                                        at node:internal/main/run_main_module:28:49 {
                                      code: 'MODULE_NOT_FOUND',
                                      requireStack: []
                                    }
                                    
                                    Node.js v18.20.2
                                    
                                    node:internal/modules/cjs/loader:1143
                                      throw err;
                                      ^
                                    
                                    Error: Cannot find module '/opt/iobroker/node_modules/iobroker.js-controller/iobroker.js'
                                        at Module._resolveFilename (node:internal/modules/cjs/loader:1140:15)
                                        at Module._load (node:internal/modules/cjs/loader:981:27)
                                        at Function.executeUserEntryPoint [as runMain] (node:internal/modules/run_main:128:12)
                                        at node:internal/main/run_main_module:28:49 {
                                      code: 'MODULE_NOT_FOUND',
                                      requireStack: []
                                    }
                                    
                                    Node.js v18.20.2
                                    ioBroker Core:          js-controller
                                    node:internal/modules/cjs/loader:1143
                                      throw err;
                                      ^
                                    
                                    Error: Cannot find module '/opt/iobroker/node_modules/iobroker.js-controller/iobroker.js'
                                        at Module._resolveFilename (node:internal/modules/cjs/loader:1140:15)
                                        at Module._load (node:internal/modules/cjs/loader:981:27)
                                        at Function.executeUserEntryPoint [as runMain] (node:internal/modules/run_main:128:12)
                                        at node:internal/main/run_main_module:28:49 {
                                      code: 'MODULE_NOT_FOUND',
                                      requireStack: []
                                    }
                                    
                                    Node.js v18.20.2
                                                            admin
                                    
                                    node:internal/modules/cjs/loader:1143
                                      throw err;
                                      ^
                                    
                                    Error: Cannot find module '/opt/iobroker/node_modules/iobroker.js-controller/iobroker.js'
                                        at Module._resolveFilename (node:internal/modules/cjs/loader:1140:15)
                                        at Module._load (node:internal/modules/cjs/loader:981:27)
                                        at Function.executeUserEntryPoint [as runMain] (node:internal/modules/run_main:128:12)
                                        at node:internal/main/run_main_module:28:49 {
                                      code: 'MODULE_NOT_FOUND',
                                      requireStack: []
                                    }
                                    
                                    Node.js v18.20.2
                                    ioBroker Status:
                                    
                                    Status admin and web instance:
                                    node:internal/modules/cjs/loader:1143
                                      throw err;
                                      ^
                                    
                                    Error: Cannot find module '/opt/iobroker/node_modules/iobroker.js-controller/iobroker.js'
                                        at Module._resolveFilename (node:internal/modules/cjs/loader:1140:15)
                                        at Module._load (node:internal/modules/cjs/loader:981:27)
                                        at Function.executeUserEntryPoint [as runMain] (node:internal/modules/run_main:128:12)
                                        at node:internal/main/run_main_module:28:49 {
                                      code: 'MODULE_NOT_FOUND',
                                      requireStack: []
                                    }
                                    
                                    Node.js v18.20.2
                                    
                                    Objects:                0
                                    States:                 0
                                    
                                    Size of iob-Database:
                                    
                                    24K     /opt/iobroker/iobroker-data/objects.jsonl
                                    44K     /opt/iobroker/iobroker-data/states.jsonl
                                    
                                    
                                    
                                    =================== END OF SUMMARY ====================
                                    

                                    === Mark text until here for copying ===

                                    ... das muss ich erst mal verdauen...
                                    ... mir anschauen...

                                    ... OK, ich glaube, ich muss erst mal alles löschen/ deinstallieren.
                                    Das sind zu viele Fehler.

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

                                      @smigl

                                      Versuch mal

                                      cd /opt/iobroker
                                      sudo -H -u iobroker npm install iobroker.js-controller
                                      

                                      Und in nächster Zeit steht da ein Upgrade des Servers ins Haus. Schnubbibuntu 20.04 befindet sich im letzten Lebensjahr.

                                      Das sind zu viele Fehler.

                                      Nee, das ist immer nur ein Fehler.

                                      S 1 Reply Last reply Reply Quote 0
                                      • S
                                        Smigl @Thomas Braun last edited by

                                        OK, was sagt uns "Cannot read system.config" wenn ich iob diag eingebe?
                                        Ich bekomme über Port 8081 immer noch keinen Zugriff.

                                        S Thomas Braun 2 Replies Last reply Reply Quote 0
                                        • S
                                          Smigl @Smigl last edited by

                                          Ich glaube ich gebe das auf und mache erst mal mit meinem Raspberry weiter...
                                          Da läuft zumindest meine erste Installation.

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

                                            @smigl sagte in Neuinstallation auf Ubuntu 20.04.6 Fehler:

                                            OK, was sagt uns "Cannot read system.config" wenn ich iob diag eingebe?

                                            Das der ioBroker nicht richtig installier ist.

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

                                            Support us

                                            ioBroker
                                            Community Adapters
                                            Donate
                                            FAQ Cloud / IOT
                                            HowTo: Node.js-Update
                                            HowTo: Backup/Restore
                                            Downloads
                                            BLOG

                                            594
                                            Online

                                            31.9k
                                            Users

                                            80.2k
                                            Topics

                                            1.3m
                                            Posts

                                            5
                                            21
                                            672
                                            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