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.
    • P
      pbroker @Thomas Braun last edited by

      @thomas-braun

      pi@raspberrypi:/opt/iobroker $ sudo -H -u iobroker npm install iobroker.js-controller
      
      removed 4 packages in 10s
      
      35 packages are looking for funding
        run `npm fund` for details
      

      der Befehl wurde nun erfolgreich ausgeführt.

      dieser Befehl schlägt dennoch fehl.

      pi@raspberrypi:/opt/iobroker $ iobroker upgrade self
      Update js-controller from @3.3.22 to @4.0.19
      NPM version: 8.3.1
      npm install iobroker.js-controller@4.0.19 --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-11T14_19_35_681Z-debug-0.log
      
      Homoran 1 Reply Last reply Reply Quote 0
      • P
        pbroker @Thomas Braun last edited by

        @thomas-braun

        ja - jetzt sehe ich es auch. Ich habe nicht bemerkt, dass ich aus /opt/iobroker gerutscht bin. Das hatte ich nach dem CLI login direkt ausgeführt.

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

          @pbroker sagte in Probleme nach Stromausfall:

          Update js-controller from @3.3.22 to @4.0.19 NPM version: 8.3.1

          npm v8 und controller v3 vertragen sich nicht!
          hatte ich vorhin schon geschrieben. Da dachte ich du seiest schon auf controller v4

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

            @homoran

            mit den Update Befehlen komme ich hier ja nicht weiter.
            Sehe aktuell nicht, wie ich auf 4.0.19 hochziehen kann

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

              @pbroker

              Geh mal mit nodeJS auf Version 14 inkl. npm@6 runter.

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

                @thomas-braun

                gibt es keine Möglichkeit den controller anderweitig auf 4.0.19 hoch zu ziehen?

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

                  @pbroker

                  node14 inkl. npm6 ist eh die zur Zeit empfohlene Version.

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

                    @thomas-braun
                    ok - muss ich kommende Woche machen

                    schade. Danke Euch

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

                      @pbroker

                      Ist doch eine Sache von zwei Minuten.

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

                        @thomas-braun

                        Du meinst hiermit:

                        sudo apt install nodejs=VERSIONSNUMMER-deb-1nodesource1

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

                          @pbroker
                          Ja, wenn das nodejs14-Repo aktiv ist z. B.

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

                            @thomas-braun

                            ne, ist es nicht. Muss ich kommende Woche machen.

                            Danke Dir.

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

                              @pbroker

                              Dann flugs eine passende Zeile in die /etc/apt/sources.list.d/nodesource.list
                              einfügen.

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

                                @thomas-braun

                                Ich bin leider erst heute wieder dazu gekommen.

                                Ich habe die nodesource.list angepasst, einen downgrade durchgeführt, alles nochmals ausgeführt und wollte dann den controller updaten.
                                Das schlug leider fehl.
                                Ich habe dann nochmals die 16er nodejs Version eingesetzt und erneut alles upgedated. Im Anschluss ließ sich der Controller updaten.
                                Nun startet ioBroker wieder und ich verifiziere gerade die Adapter.

                                Es schaut soweit gut aus.
                                Ich bin heilfroh.

                                Ganz lieben Dank Euch dreien. Ihr seid SUPER!

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

                                  @pbroker sagte in Probleme nach Stromausfall:

                                  Es schaut soweit gut aus.

                                  Schau mal

                                  sudo ln -s /usr/bin/node /usr/bin/nodejs
                                  which nodejs node npm && nodejs -v && node -v && npm -v && whoami && pwd && sudo apt update &> /dev/null && sudo apt update && apt policy nodejs
                                  

                                  an. Und auch mal

                                  iobroker update -i
                                  
                                  1 Reply Last reply Reply Quote 0
                                  • First post
                                    Last post

                                  Support us

                                  ioBroker
                                  Community Adapters
                                  Donate

                                  947
                                  Online

                                  31.9k
                                  Users

                                  80.1k
                                  Topics

                                  1.3m
                                  Posts

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