Navigation

    Logo
    • Register
    • Login
    • Search
    • Recent
    • Tags
    • Unread
    • Categories
    • Unreplied
    • Popular
    • GitHub
    • Docu
    • Hilfe
    1. Home
    2. Deutsch
    3. ioBroker Allgemein
    4. iobroker startet nicht mehr

    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

    iobroker startet nicht mehr

    This topic has been deleted. Only users with topic management privileges can see it.
    • M
      manrum1 @Thomas Braun last edited by

      @thomas-braun Danke für deine schnelle Antwort. Das ist de rOutput:

      iobroker@iob2:~ $ cd /opt/iobroker
      iobroker@iob2:/opt/iobroker $ sudo -H -u iobroker npm install iobroker.js-controller
      npm error code 1
      npm error path /opt/iobroker/node_modules/iobroker.js-controller
      npm error command failed
      npm error command sh -c node iobroker.js setup first
      npm error node:internal/modules/cjs/loader:1143
      npm error   throw err;
      npm error   ^
      npm error
      npm error Error: Cannot find module '../path-exists'
      npm error Require stack:
      npm error - /opt/iobroker/node_modules/fs-extra/lib/copy/copy.js
      npm error - /opt/iobroker/node_modules/fs-extra/lib/copy/index.js
      npm error - /opt/iobroker/node_modules/fs-extra/lib/index.js
      npm error - /opt/iobroker/node_modules/@iobroker/js-controller-cli/build/lib/setup.js
      npm error - /opt/iobroker/node_modules/@iobroker/js-controller-cli/build/index.js
      npm error - /opt/iobroker/node_modules/iobroker.js-controller/iobroker.js
      npm error     at Module._resolveFilename (node:internal/modules/cjs/loader:1140:15)
      npm error     at Module._load (node:internal/modules/cjs/loader:981:27)
      npm error     at Module.require (node:internal/modules/cjs/loader:1231:19)
      npm error     at require (node:internal/modules/helpers:177:18)
      npm error     at Object.<anonymous> (/opt/iobroker/node_modules/fs-extra/lib/copy/copy.js:6:24)
      npm error     at Module._compile (node:internal/modules/cjs/loader:1364:14)
      npm error     at Module._extensions..js (node:internal/modules/cjs/loader:1422:10)
      npm error     at Module.load (node:internal/modules/cjs/loader:1203:32)
      npm error     at Module._load (node:internal/modules/cjs/loader:1019:12)
      npm error     at Module.require (node:internal/modules/cjs/loader:1231:19) {
      npm error   code: 'MODULE_NOT_FOUND',
      npm error   requireStack: [
      npm error     '/opt/iobroker/node_modules/fs-extra/lib/copy/copy.js',
      npm error     '/opt/iobroker/node_modules/fs-extra/lib/copy/index.js',
      npm error     '/opt/iobroker/node_modules/fs-extra/lib/index.js',
      npm error     '/opt/iobroker/node_modules/@iobroker/js-controller-cli/build/lib/setup.js',
      npm error     '/opt/iobroker/node_modules/@iobroker/js-controller-cli/build/index.js',
      npm error     '/opt/iobroker/node_modules/iobroker.js-controller/iobroker.js'
      npm error   ]
      npm error }
      npm error
      npm error Node.js v18.20.3
      
      npm error A complete log of this run can be found in: /home/iobroker/.npm/_logs/2024-06-23T10_25_13_196Z-debug-0.log
      iobroker@iob2:/opt/iobroker $
      
      
      Thomas Braun 1 Reply Last reply Reply Quote 0
      • Thomas Braun
        Thomas Braun Most Active @manrum1 last edited by

        @manrum1

        Versuch mal den fixer.

        iob stop
        iob fix
        iob start
        
        M 1 Reply Last reply Reply Quote 0
        • M
          manrum1 @Thomas Braun last edited by

          @thomas-braun Habe ich vor her schon mal versucht. Jetzt noch mal ohne Erfolg.

           iob fix
          library: loaded
          Library version=2024-05-24
          
          ==========================================================================
          
              Welcome to the ioBroker installation fixer!
              Script version: 2024-01-04
          
              You might need to enter your password a couple of times.
          
          ==========================================================================
          
          
          ==========================================================================
              Installing prerequisites (1/5)
          ==========================================================================
          
          OK:1 http://deb.debian.org/debian bullseye InRelease
          OK:2 http://deb.debian.org/debian bullseye-updates InRelease
          OK:3 http://security.debian.org/debian-security bullseye-security InRelease
          OK:4 http://archive.raspberrypi.org/debian bullseye InRelease
          OK:5 https://repos.influxdata.com/debian bullseye InRelease
          OK:6 https://apt.grafana.com stable InRelease
          OK:7 https://deb.nodesource.com/node_18.x nodistro InRelease
          Paketlisten werden gelesen... Fertig
          
          ==========================================================================
              Checking ioBroker user and directory permissions (2/5)
          ==========================================================================
          
          [sudo] Passwort f▒r iobroker:
          Fixing directory permissions...
          
          ==========================================================================
              Check and cleanup npm temporary directories (3/5)
          ==========================================================================
          
          Done.
          
          ==========================================================================
              Database maintenance (4/5)
          ==========================================================================
          
          Checking for uncompressed JSONL databases... This might take a while!
          
          Compressing /opt/iobroker/iobroker-data/states.jsonl
          Compressing /opt/iobroker/iobroker-data/objects.jsonl
          Compressed 2 JSONL files. Done
          
          ==========================================================================
              Checking autostart (5/5)
          ==========================================================================
          
          Enabling autostart...
          Autostart enabled!
          
          ==========================================================================
          
              Your installation was fixed successfully
              Run iobroker start to start ioBroker again!
          
          ==========================================================================
          
          
          Homoran Thomas Braun 2 Replies Last reply Reply Quote 0
          • Homoran
            Homoran Global Moderator Administrators @manrum1 last edited by

            @manrum1 sagte in iobroker startet nicht mehr:

            ohne Erfolg.

            woran siehst du das?

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

              @manrum1

              [sudo] Passwort für iobroker:

              Du bist da noch mit dem falschen user bzw. einem falschen Setup unterwegs.
              An der Stelle dürfte eigentlich das Passwort nicht für den iobroker angefragt werden.

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

                @thomas-braun sagte in iobroker startet nicht mehr:

                nicht für den iobroker angefragt werden.

                hab immer noch nicht erkennen können, wer da gerade wo jnterwegs ist 1000 oder 1001?
                iobroker oder iobroker 😡

                M 1 Reply Last reply Reply Quote 0
                • M
                  manrum1 @Homoran last edited by

                  @homoran Sorry, war unterwegs. Der User heißt iobroker und hat die UID 1001:
                  iobroker❌1001:1001::/home/iobroker:/bin/bash

                  DJMarc75 1 Reply Last reply Reply Quote 0
                  • M
                    manrum1 @Homoran last edited by

                    @homoran Woran sehe ich das?

                    1. ich komme nicht per WEB drauf.
                    2. ich habe immer noch die npm errors
                    1 Reply Last reply Reply Quote 0
                    • DJMarc75
                      DJMarc75 @manrum1 last edited by

                      @manrum1 sagte in iobroker startet nicht mehr:

                      Der User heißt iobroker

                      dann mach halt nen anderen User ... z.B. Dein Vorname damit der User sich von dem Systemuser auch unterscheidet 😉

                      M 1 Reply Last reply Reply Quote 0
                      • M
                        manrum1 @DJMarc75 last edited by

                        @djmarc75 Mir war nicht bewusst, dass der user nicht iobroker heißen darf. Lief bisher und die directory permissions stehen alle ebenfalls auf iobroker. Aber sicher, wenn es Sinn macht ändere ich das. Nur wie?

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

                          @manrum1 sagte in iobroker startet nicht mehr:

                          Nur wie?

                          Es muss aber auch bereits einen User mit der uid 1000 geben.

                          grep 1000 /etc/passwd
                          

                          sagt?

                          M 1 Reply Last reply Reply Quote 0
                          • M
                            manrum1 @Thomas Braun last edited by

                            @thomas-braun Ja, gibt es. Was soll ich tun?

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

                              @manrum1

                              Dich mit diesem user einloggen und NICHT mit dem 'iobroker' Der ist dafür nicht gedacht.

                              M 1 Reply Last reply Reply Quote 0
                              • M
                                manrum1 @Thomas Braun last edited by

                                @thomas-braun Ja, habe ich genacht. Deshalb läuft aber mein iobroker immer noch nicht.

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

                                  @manrum1

                                  Das vielleicht nicht unmittelbar, aber ordentlicher Umgang mit Usern und deren Rechte ist die Grundlage für ein sauber laufendes System.

                                  iob diag
                                  

                                  sagt nun?

                                  M 1 Reply Last reply Reply Quote 0
                                  • M
                                    manrum1 @Thomas Braun last edited by manrum1

                                    @thomas-braun So, habs jetzt hinbekommen.

                                    1. Verzeichnis /opt/iobroker/node_modules gelöscht
                                    2. Mit " npm clean --force" npm cache gelöscht
                                    3. Mit "sudo -H -u iobroker npm install iobroker.js-controller" installiert

                                    Vielen Dank für Deine/Eure Hilfe!!!

                                    Als Warnung an Nachahmer sei gesagt: Das hat bei mir so funktioniert und soll keine Anleitung für ähnliche Probleme sein.

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

                                      @manrum1 sagte in iobroker startet nicht mehr:

                                      So, habs jetzt hinbekommen.

                                      eher nicht
                                      mit der nachfolgenden "Anleitung" wahrscheinlich mehr Schaden angerichtet.

                                      M 1 Reply Last reply Reply Quote 0
                                      • M
                                        manrum1 @Homoran last edited by

                                        @homoran Kann ja nur sagen, was ich gemacht habe.

                                        ======================= SUMMARY =======================
                                                                v.2024-05-22
                                        
                                        
                                           Static hostname: iob2
                                                 Icon name: computer
                                          Operating System: Debian GNU/Linux 11 (bullseye)
                                                    Kernel: Linux 6.1.21-v8+
                                              Architecture: arm64
                                        
                                        Installation:           native
                                        Kernel:                 aarch64
                                        Userland:               64 bit
                                        Timezone:               Europe/Berlin (CEST, +0200)
                                        User-ID:                1000
                                        Display-Server:         false
                                        Boot Target:            multi-user.target
                                        
                                        Pending OS-Updates:     0
                                        Pending iob updates:    2
                                        
                                        Nodejs-Installation:
                                        /usr/bin/nodejs         v18.20.3
                                        /usr/bin/node           v18.20.3
                                        /usr/bin/npm            10.7.0
                                        /usr/bin/npx            10.7.0
                                        /usr/bin/corepack       0.28.0
                                        
                                        Recommended versions are nodejs 18.20.3 and npm 10.7.0
                                        Your nodejs installation is correct
                                        
                                        MEMORY:
                                                       total        used        free      shared  buff/cache   available
                                        Mem:            1.8G        313M        824M        0.0K        711M        1.5G
                                        Swap:            99M         64M         35M
                                        Total:          1.9G        378M        859M
                                        
                                        Active iob-Instances:   1
                                        Active repo(s): stable
                                        
                                        ioBroker Core:          js-controller           5.0.19
                                                                admin                   6.13.16
                                        
                                        ioBroker Status:        iobroker is not running on this host.
                                        
                                        
                                        Objects type: jsonl
                                        States  type: jsonl
                                        
                                        Status admin and web instance:
                                          system.adapter.admin.0                  : admin                 : iob2                                     -  enabled, port: 8081, bind: 0.0.0.0, run as: admin
                                          system.adapter.web.0                    : web                   : iob2                                     -  enabled, port: 8082, bind: 0.0.0.0, run as: admin
                                        
                                        Objects:                6693
                                        States:                 5242
                                        
                                        Size of iob-Database:
                                        
                                        7.9M    /opt/iobroker/iobroker-data/objects.jsonl
                                        1.3M    /opt/iobroker/iobroker-data/states.jsonl
                                        
                                        
                                        
                                        =================== END OF SUMMARY ====================
                                        
                                        Homoran 1 Reply Last reply Reply Quote 0
                                        • Homoran
                                          Homoran Global Moderator Administrators @manrum1 last edited by

                                          @manrum1 sagte in iobroker startet nicht mehr:

                                          Active iob-Instances: 1

                                          du hast alle Informationen gelöscht.
                                          da läuft nur noch eine Instanz

                                          M 1 Reply Last reply Reply Quote 0
                                          • M
                                            manrum1 @Homoran last edited by

                                            @homoran Soweit ich sehe läuft alles. Daten sind bis zum Ausfall alle da.

                                            Homoran 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

                                            752
                                            Online

                                            31.9k
                                            Users

                                            80.3k
                                            Topics

                                            1.3m
                                            Posts

                                            4
                                            29
                                            934
                                            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