Navigation

    Logo
    • Register
    • Login
    • Search
    • Recent
    • Tags
    • Unread
    • Categories
    • Unreplied
    • Popular
    • GitHub
    • Docu
    • Hilfe
    1. Home
    2. Deutsch
    3. Error/Bug
    4. Probleme nach Stromausfall

    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

    Probleme nach Stromausfall

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

      @pbroker sagte in Probleme nach Stromausfall:

      /usr/bin/nodejs
      /usr/local/bin/node
      /usr/local/bin/npm
      v12.22.10
      v16.13.2
      

      nodeJS falsch installiert. In meiner Signatur findest du, wie man es richtig macht und korrigiert.

      Und bitte CodeTags für Texte verwenden.

      1 Reply Last reply Reply Quote 0
      • wendy2702
        wendy2702 @pbroker last edited by

        @pbroker @Thomas-Braun hat dir schon geschrieben wie es weiter geht bevor etwas anderes passiert und BITTE Benutze die Code Tags

        CodeTags.gif

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

          @pbroker sagte in Probleme nach Stromausfall:

          Doch scheint hierdurch nur in iobroker.data die objects.json und states.json gesichert zu werden.

          nein!
          auch alle Konfigurationen der Instanzen, alle Views, alle Skripte

          1 Reply Last reply Reply Quote 0
          • P
            pbroker @wendy2702 last edited by

            @wendy2702

            OK, danke Dir.

            Danke auch Dir @Thomas-Braun

            Mich irritiert zwar, dass das Problem erst nach dem Stromausfall auftrat, aber vielleicht übersehe ich etwas.
            Entsprechend der Anleitung habe ich die Prozessschritte durchlaufen.
            Leider startet der iobroker weiterhin nicht.

            Das Ergebnis der Abfrage schaut nun wie folgt aus.
            Mir fällt auf, dass node und nodejs eine unterschiedliche minor Version haben. Ist dass das Problem?

            pi@raspberrypi:~ $ 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/local/bin/node
            /usr/local/bin/npm
            v16.14.0
            v16.13.2
            8.5.2
            pi
            /home/pi
            OK:1 http://archive.raspberrypi.org/debian buster InRelease
            OK:2 http://raspbian.raspberrypi.org/raspbian buster InRelease
            OK:3 https://deb.nodesource.com/node_16.x buster InRelease
            Paketlisten werden gelesen... Fertig
            Abhängigkeitsbaum wird aufgebaut.
            Statusinformationen werden eingelesen.... Fertig
            Alle Pakete sind aktuell.
            nodejs:
              Installiert:           16.14.0-deb-1nodesource1
              Installationskandidat: 16.14.0-deb-1nodesource1
              Versionstabelle:
             *** 16.14.0-deb-1nodesource1 500
                    500 https://deb.nodesource.com/node_16.x buster/main armhf Packages
                    100 /var/lib/dpkg/status
                 10.24.0~dfsg-1~deb10u1 500
                    500 http://raspbian.raspberrypi.org/raspbian buster/main armhf Packages
            

            P.S. Ich muss selbst nun leider erstmal und kann auf den Dialog erst später wieder reagieren.

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

              @pbroker sagte in Probleme nach Stromausfall:

              Ist dass das Problem?

              Ja.
              Und die falschen Pfade (die ursächlich für die abweichenden Versionen sind).

              Und bitte die Ausgaben vollständig posten, da fehlt ein Teil.

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

                @pbroker sagte in Probleme nach Stromausfall:

                Mir fällt auf, dass node und nodejs eine unterschiedliche minor Version haben. Ist dass das Problem?

                ja, auch wenn jetzt die major Version gleich ist, hast du trotzdem zwei parallele node-Installationen laufen.
                Versuch bitte nicht beider Versionen anzugleichen, dann sieht man es nur nicht mehr, dass da zwei Installationen sind, es ändert aber nichts an der Fehlkonfiguration

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

                  @homoran sagte in Probleme nach Stromausfall:

                  dann sieht man es nur nicht mehr, dass da zwei Installationen sind

                  Würde man immer noch an den falschen Pfaden /usr/local/bin sehen.

                  1 Reply Last reply Reply Quote 0
                  • P
                    pbroker last edited by

                    @thomas-braun @Homoran @wendy2702

                    meine Rückmeldung hat leider etwas mehr Zeit in Anspruch genommen.
                    Erst heute konnte ich mich erneut an das Thema begeben.

                    Zuersteinmal vielen Dank Euch Dreien für die tolle Unterstützung.

                    Ich habe die Dokus von Thomas nochmal durchlaufen.

                    pi@raspberrypi:~ $ 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
                    v16.14.0
                    v16.14.0
                    8.3.1
                    pi
                    /home/pi
                    OK:1 http://raspbian.raspberrypi.org/raspbian buster InRelease
                    OK:2 http://archive.raspberrypi.org/debian buster InRelease
                    OK:3 https://deb.nodesource.com/node_16.x buster InRelease
                    Paketlisten werden gelesen... Fertig
                    Abhängigkeitsbaum wird aufgebaut.
                    Statusinformationen werden eingelesen.... Fertig
                    Alle Pakete sind aktuell.
                    nodejs:
                      Installiert:           16.14.0-deb-1nodesource1
                      Installationskandidat: 16.14.0-deb-1nodesource1
                      Versionstabelle:
                     *** 16.14.0-deb-1nodesource1 500
                            500 https://deb.nodesource.com/node_16.x buster/main armhf Packages
                            100 /var/lib/dpkg/status
                         10.24.0~dfsg-1~deb10u1 500
                            500 http://raspbian.raspberrypi.org/raspbian buster/main armhf Packages
                    

                    nun schaut es wie folgt bei mir aus.

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

                      @pbroker `
                      Ja, schaut jetzt konsistent aus.

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

                        @pbroker sagte in Probleme nach Stromausfall:

                        8.3.1

                        ist aber noch npm v8
                        sollte aber mit Controller v4 und node v16 klappen

                        P 1 Reply Last reply Reply Quote 0
                        • P
                          pbroker @Thomas Braun last edited by pbroker

                          @thomas-braun

                          🙂 Das ist lese ich gerne.
                          Leider sind alle anderen Ausgaben, die sich auf den ioBroker beziehen unverändert.

                          Und der iob startet, ohne sichtbare Fehlermeldung, nicht.

                          1 Reply Last reply Reply Quote 0
                          • P
                            pbroker @Homoran last edited by

                            @homoran

                            habe ich hier etwas übersehen. Ich gehe die Dokus nochmals durch

                            P 1 Reply Last reply Reply Quote 0
                            • P
                              pbroker @pbroker last edited by pbroker

                              @Homoran

                              ggf. besteht hier doch ein Problem mit der NPM Version.

                              Ich habe folgende Errormeldungen erhalten:

                              pi@raspberrypi:~ $ iobroker upgrade self
                              Update js-controller from @3.3.22 to @4.0.15
                              NPM version: 8.3.1
                              npm install iobroker.js-controller@4.0.15 --loglevel error --unsafe-perm --prefix "/opt/iobroker" (System call)
                              npm ERR! code 1
                              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! /opt/iobroker/node_modules/winston/node_modules/readable-stream/errors.js:44
                              npm ERR!  0  rel5r. `of $kthing} $sStrinf(expeb�ed)}`;
                              npm ERR!     ^^^^^
                              npm ERR!
                              npm ERR! SyntaxError: Unexpected identifier
                              npm ERR!     at Object.compileFunction (node:vm:352:18)
                              npm ERR!     at wrapSafe (node:internal/modules/cjs/loader:1032:15)
                              npm ERR!     at Module._compile (node:internal/modules/cjs/loader:1067:27)
                              npm ERR!     at Object.Module._extensions..js (node:internal/modules/cjs/loader:1155:10)
                              npm ERR!     at Module.load (node:internal/modules/cjs/loader:981:32)
                              npm ERR!     at Function.Module._load (node:internal/modules/cjs/loader:822:12)
                              npm ERR!     at Module.require (node:internal/modules/cjs/loader:1005:19)
                              npm ERR!     at require (node:internal/modules/cjs/helpers:102:18)
                              npm ERR!     at Object.<anonymous> (/opt/iobroker/node_modules/winston/node_modules/readable-stream/lib/internal/streams/state.js:3:29)
                              npm ERR!     at Module._compile (node:internal/modules/cjs/loader:1103:14)
                              
                              npm ERR! A complete log of this run can be found in:
                              npm ERR!     /home/iobroker/.npm/_logs/2022-03-11T13_10_22_035Z-debug-0.log
                              

                              mit der Anweisung "sh -c node iobroker.js setup first" laufe ich allerdings etwas ins leere.
                              Wie ist damit umzugehen?

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

                                @pbroker

                                Update js-controller from @3.3.22 to @4.0.15

                                Das kann nicht sein, denn:

                                github:	4.1.0
                                latest:	4.0.19 for 5 days
                                stable:	4.0.19 for 5 days
                                
                                iobroker update -u
                                

                                bringt?

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

                                  @pbroker

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

                                  versuchen.

                                  P 1 Reply Last reply Reply Quote 0
                                  • P
                                    pbroker @Thomas Braun last edited by

                                    @thomas-braun

                                    ja - das geht auch aus dem Aufruf bei mir hervor.

                                     iobroker update -u
                                    Used repository: Stable (default)
                                    hash changed or no sources cached => force download of new sources
                                    update done
                                    Controller "js-controller" : 4.0.19   , installed 3.3.22 [Updateable]
                                    
                                    P 1 Reply Last reply Reply Quote 0
                                    • P
                                      pbroker @Thomas Braun last edited by

                                      @thomas-braun

                                      führe ich gerade aus 🙂

                                      1 Reply Last reply Reply Quote 0
                                      • P
                                        pbroker @pbroker last edited by pbroker

                                        @pbroker

                                        OK es kommt trotz sudo ein permission error

                                        pi@raspberrypi:~ $ iobroker update -u
                                        Used repository: Stable (default)
                                        hash changed or no sources cached => force download of new sources
                                        update done
                                        Controller "js-controller" : 4.0.19   , installed 3.3.22 [Updateable]
                                        pi@raspberrypi:~ $ sudo -H -u iobroker npm install iobroker.js-controller
                                        npm ERR! code EACCES
                                        npm ERR! syscall mkdir
                                        npm ERR! path /home/pi/node_modules
                                        npm ERR! errno -13
                                        npm ERR! Error: EACCES: permission denied, mkdir '/home/pi/node_modules'
                                        npm ERR!  [Error: EACCES: permission denied, mkdir '/home/pi/node_modules'] {
                                        npm ERR!   errno: -13,
                                        npm ERR!   code: 'EACCES',
                                        npm ERR!   syscall: 'mkdir',
                                        npm ERR!   path: '/home/pi/node_modules'
                                        npm ERR! }
                                        npm ERR!
                                        npm ERR! The operation was rejected by your operating system.
                                        npm ERR! It is likely you do not have the permissions to access this file as the current user
                                        npm ERR!
                                        npm ERR! If you believe this might be a permissions issue, please double-check the
                                        npm ERR! permissions of the file and its containing directories, or try running
                                        npm ERR! the command again as root/Administrator.
                                        
                                        npm ERR! A complete log of this run can be found in:
                                        npm ERR!     /home/iobroker/.npm/_logs/2022-03-11T14_07_08_959Z-debug-0.log
                                        

                                        iobroker fix hat das Problem leider auch nicht gelöst

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

                                          @pbroker hast du mal als root gearbeitet?

                                          P 1 Reply Last reply Reply Quote 0
                                          • P
                                            pbroker @Homoran last edited by

                                            @homoran

                                            nicht bewusst. Ich vermeide es, mich zum root zu machen

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

                                            Support us

                                            ioBroker
                                            Community Adapters
                                            Donate

                                            841
                                            Online

                                            31.7k
                                            Users

                                            79.9k
                                            Topics

                                            1.3m
                                            Posts

                                            4
                                            51
                                            1675
                                            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