Skip to content
  • Home
  • Recent
  • Tags
  • 0 Unread 0
  • Categories
  • Unreplied
  • Popular
  • GitHub
  • Docu
  • Hilfe
Skins
  • Light
  • Brite
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
ioBroker Logo

Community Forum

donate donate
  1. ioBroker Community Home
  2. Deutsch
  3. Error/Bug
  4. Probleme nach Stromausfall

NEWS

  • UPDATE 31.10.: Amazon Alexa - ioBroker Skill läuft aus ?
    apollon77A
    apollon77
    48
    3
    8.9k

  • Monatsrückblick – September 2025
    BluefoxB
    Bluefox
    13
    1
    2.2k

  • Neues Video "KI im Smart Home" - ioBroker plus n8n
    BluefoxB
    Bluefox
    16
    1
    3.4k

Probleme nach Stromausfall

Scheduled Pinned Locked Moved Error/Bug
51 Posts 4 Posters 3.1k Views 3 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • HomoranH Homoran

    @pbroker hast du mal als root gearbeitet?

    P Offline
    P Offline
    pbroker
    wrote on last edited by
    #30

    @homoran

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

    P 1 Reply Last reply
    0
    • P pbroker

      @homoran

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

      P Offline
      P Offline
      pbroker
      wrote on last edited by
      #31

      @pbroker

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

      1 Reply Last reply
      0
      • P 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

        HomoranH Do not disturb
        HomoranH Do not disturb
        Homoran
        Global Moderator Administrators
        wrote on last edited by
        #32

        @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?

        kein Support per PN! - Fragen im Forum stellen - es gibt fast nichts, was nicht auch für andere interessant ist.

        Benutzt das Voting rechts unten im Beitrag wenn er euch geholfen hat.

        der Installationsfixer: curl -fsL https://iobroker.net/fix.sh | bash -

        P 1 Reply Last reply
        0
        • HomoranH Homoran

          @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 Offline
          P Offline
          pbroker
          wrote on last edited by
          #33

          @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
          0
          • P 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

            Thomas BraunT Online
            Thomas BraunT Online
            Thomas Braun
            Most Active
            wrote on last edited by
            #34

            @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!

            Linux-Werkzeugkasten:
            https://forum.iobroker.net/topic/42952/der-kleine-iobroker-linux-werkzeugkasten
            NodeJS Fixer Skript:
            https://forum.iobroker.net/topic/68035/iob-node-fix-skript
            iob_diag: curl -sLf -o diag.sh https://iobroker.net/diag.sh && bash diag.sh

            P 1 Reply Last reply
            0
            • Thomas BraunT Thomas Braun

              @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 Offline
              P Offline
              pbroker
              wrote on last edited by pbroker
              #35

              @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
              0
              • P 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

                Thomas BraunT Online
                Thomas BraunT Online
                Thomas Braun
                Most Active
                wrote on last edited by Thomas Braun
                #36

                @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.

                Linux-Werkzeugkasten:
                https://forum.iobroker.net/topic/42952/der-kleine-iobroker-linux-werkzeugkasten
                NodeJS Fixer Skript:
                https://forum.iobroker.net/topic/68035/iob-node-fix-skript
                iob_diag: curl -sLf -o diag.sh https://iobroker.net/diag.sh && bash diag.sh

                P 2 Replies Last reply
                0
                • Thomas BraunT 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 Offline
                  P Offline
                  pbroker
                  wrote on last edited by
                  #37

                  @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
                  
                  HomoranH 1 Reply Last reply
                  0
                  • Thomas BraunT 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 Offline
                    P Offline
                    pbroker
                    wrote on last edited by
                    #38

                    @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
                    0
                    • P pbroker

                      @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
                      
                      HomoranH Do not disturb
                      HomoranH Do not disturb
                      Homoran
                      Global Moderator Administrators
                      wrote on last edited by Homoran
                      #39

                      @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

                      kein Support per PN! - Fragen im Forum stellen - es gibt fast nichts, was nicht auch für andere interessant ist.

                      Benutzt das Voting rechts unten im Beitrag wenn er euch geholfen hat.

                      der Installationsfixer: curl -fsL https://iobroker.net/fix.sh | bash -

                      P 1 Reply Last reply
                      0
                      • HomoranH 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 Offline
                        P Offline
                        pbroker
                        wrote on last edited by
                        #40

                        @homoran

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

                        Thomas BraunT 1 Reply Last reply
                        0
                        • P pbroker

                          @homoran

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

                          Thomas BraunT Online
                          Thomas BraunT Online
                          Thomas Braun
                          Most Active
                          wrote on last edited by
                          #41

                          @pbroker

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

                          Linux-Werkzeugkasten:
                          https://forum.iobroker.net/topic/42952/der-kleine-iobroker-linux-werkzeugkasten
                          NodeJS Fixer Skript:
                          https://forum.iobroker.net/topic/68035/iob-node-fix-skript
                          iob_diag: curl -sLf -o diag.sh https://iobroker.net/diag.sh && bash diag.sh

                          P 1 Reply Last reply
                          0
                          • Thomas BraunT Thomas Braun

                            @pbroker

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

                            P Offline
                            P Offline
                            pbroker
                            wrote on last edited by
                            #42

                            @thomas-braun

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

                            Thomas BraunT 1 Reply Last reply
                            0
                            • P pbroker

                              @thomas-braun

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

                              Thomas BraunT Online
                              Thomas BraunT Online
                              Thomas Braun
                              Most Active
                              wrote on last edited by
                              #43

                              @pbroker

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

                              Linux-Werkzeugkasten:
                              https://forum.iobroker.net/topic/42952/der-kleine-iobroker-linux-werkzeugkasten
                              NodeJS Fixer Skript:
                              https://forum.iobroker.net/topic/68035/iob-node-fix-skript
                              iob_diag: curl -sLf -o diag.sh https://iobroker.net/diag.sh && bash diag.sh

                              P 1 Reply Last reply
                              0
                              • Thomas BraunT Thomas Braun

                                @pbroker

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

                                P Offline
                                P Offline
                                pbroker
                                wrote on last edited by
                                #44

                                @thomas-braun
                                ok - muss ich kommende Woche machen

                                schade. Danke Euch

                                Thomas BraunT 1 Reply Last reply
                                0
                                • P pbroker

                                  @thomas-braun
                                  ok - muss ich kommende Woche machen

                                  schade. Danke Euch

                                  Thomas BraunT Online
                                  Thomas BraunT Online
                                  Thomas Braun
                                  Most Active
                                  wrote on last edited by
                                  #45

                                  @pbroker

                                  Ist doch eine Sache von zwei Minuten.

                                  Linux-Werkzeugkasten:
                                  https://forum.iobroker.net/topic/42952/der-kleine-iobroker-linux-werkzeugkasten
                                  NodeJS Fixer Skript:
                                  https://forum.iobroker.net/topic/68035/iob-node-fix-skript
                                  iob_diag: curl -sLf -o diag.sh https://iobroker.net/diag.sh && bash diag.sh

                                  1 Reply Last reply
                                  0
                                  • P Offline
                                    P Offline
                                    pbroker
                                    wrote on last edited by
                                    #46

                                    @thomas-braun

                                    Du meinst hiermit:

                                    sudo apt install nodejs=VERSIONSNUMMER-deb-1nodesource1

                                    Thomas BraunT 1 Reply Last reply
                                    0
                                    • P pbroker

                                      @thomas-braun

                                      Du meinst hiermit:

                                      sudo apt install nodejs=VERSIONSNUMMER-deb-1nodesource1

                                      Thomas BraunT Online
                                      Thomas BraunT Online
                                      Thomas Braun
                                      Most Active
                                      wrote on last edited by
                                      #47

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

                                      Linux-Werkzeugkasten:
                                      https://forum.iobroker.net/topic/42952/der-kleine-iobroker-linux-werkzeugkasten
                                      NodeJS Fixer Skript:
                                      https://forum.iobroker.net/topic/68035/iob-node-fix-skript
                                      iob_diag: curl -sLf -o diag.sh https://iobroker.net/diag.sh && bash diag.sh

                                      P 1 Reply Last reply
                                      0
                                      • Thomas BraunT Thomas Braun

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

                                        P Offline
                                        P Offline
                                        pbroker
                                        wrote on last edited by
                                        #48

                                        @thomas-braun

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

                                        Danke Dir.

                                        Thomas BraunT 1 Reply Last reply
                                        0
                                        • P pbroker

                                          @thomas-braun

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

                                          Danke Dir.

                                          Thomas BraunT Online
                                          Thomas BraunT Online
                                          Thomas Braun
                                          Most Active
                                          wrote on last edited by
                                          #49

                                          @pbroker

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

                                          Linux-Werkzeugkasten:
                                          https://forum.iobroker.net/topic/42952/der-kleine-iobroker-linux-werkzeugkasten
                                          NodeJS Fixer Skript:
                                          https://forum.iobroker.net/topic/68035/iob-node-fix-skript
                                          iob_diag: curl -sLf -o diag.sh https://iobroker.net/diag.sh && bash diag.sh

                                          P 1 Reply Last reply
                                          0
                                          Reply
                                          • Reply as topic
                                          Log in to reply
                                          • Oldest to Newest
                                          • Newest to Oldest
                                          • Most Votes


                                          Support us

                                          ioBroker
                                          Community Adapters
                                          Donate

                                          717

                                          Online

                                          32.4k

                                          Users

                                          81.5k

                                          Topics

                                          1.3m

                                          Posts
                                          Community
                                          Impressum | Datenschutz-Bestimmungen | Nutzungsbedingungen | Einwilligungseinstellungen
                                          ioBroker Community 2014-2025
                                          logo
                                          • Login

                                          • Don't have an account? Register

                                          • Login or register to search.
                                          • First post
                                            Last post
                                          0
                                          • Home
                                          • Recent
                                          • Tags
                                          • Unread 0
                                          • Categories
                                          • Unreplied
                                          • Popular
                                          • GitHub
                                          • Docu
                                          • Hilfe