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

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

                  @pbroker

                  als "pi" kann ich die mkdir befehle manuell an der Stelle ausführen

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

                    @pbroker sagte in Probleme nach Stromausfall:

                    path /home/pi/node_modules

                    aber du hast mal node im falschen Verzeichnis installiert?
                    einen npm Befehl im home des pi statt unter /opt/iobroker aufgerufen?

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

                      @homoran

                      nach einem Neustart und dem erneuten ausführen der Befehle inkl. Ordnerwechsel hat es funktioniert.

                      ich denke, dass ich unbemerkt das Verzeichnis gewechselt habe.

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

                        @pbroker sagte in Probleme nach Stromausfall:

                        OK es kommt trotz sudo ein permission error

                        Du stehst im falschen Verzeichnis.

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

                        Das cd ist wichtig!

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

                          @thomas-braun ja - ich vermute, dass ich mit Pfeil hoch in der Historie unbemerkt aus dem Verzeichnis gesprungen bin. Ich stand zuvor in /opt/iobroker und hatte es daher nicht ausgeführt

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

                            @pbroker sagte in Probleme nach Stromausfall:

                            OK es kommt trotz sudo ein permission error

                            Nein, es kommt WEGEN des sudo -u iobroker zum permission error.
                            Der user iobroker darf nicht im Home des users pi herumschreiben. Zu recht.

                            In allen Postings zuvor stehst du immer in

                            pi@raspberrypi:~
                            

                            Deswegen hatte ich den cd /opt/iobroker mitgegeben.

                            P 2 Replies Last reply Reply Quote 0
                            • 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
                                            • First post
                                              Last post

                                            Support us

                                            ioBroker
                                            Community Adapters
                                            Donate

                                            960
                                            Online

                                            31.9k
                                            Users

                                            80.1k
                                            Topics

                                            1.3m
                                            Posts

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