Navigation

    Logo
    • Register
    • Login
    • Search
    • Recent
    • Tags
    • Unread
    • Categories
    • Unreplied
    • Popular
    • GitHub
    • Docu
    • Hilfe
    1. Home
    2. Deutsch
    3. ioBroker Allgemein
    4. Problem bei ioBroker Installation-> iobroker.js-controller

    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

    Problem bei ioBroker Installation-> iobroker.js-controller

    This topic has been deleted. Only users with topic management privileges can see it.
    • D
      darulor @Homoran last edited by darulor

      @homoran das ist richtig ich kann aber mit der Info nichts anfangen, sieht für mich als Neuling nahezu identisch mit der Fehlerausgabe bei der Installation aus.

      Ich habe heute im Ordner /opt/iobroker verscht den jscontroller zu installieren.
      Der Befehl npm install iobroker.js-controller@3.3.18 brachte mir folgende Fehlermeldung:

      root@pi4:/opt/iobroker# npm install iobroker.js-controller@3.3.18
      npm ERR! code EACCES
      npm ERR! syscall mkdir
      npm ERR! path /home/iobroker
      npm ERR! errno -13
      npm ERR! Error: EACCES: permission denied, mkdir '/home/iobroker'
      npm ERR!  [OperationalError: EACCES: permission denied, mkdir '/home/iobroker'] {
      npm ERR!   cause: [Error: EACCES: permission denied, mkdir '/home/iobroker'] {
      npm ERR!     errno: -13,
      npm ERR!     code: 'EACCES',
      npm ERR!     syscall: 'mkdir',
      npm ERR!     path: '/home/iobroker'
      npm ERR!   },
      npm ERR!   isOperational: true,
      npm ERR!   errno: -13,
      npm ERR!   code: 'EACCES',
      npm ERR!   syscall: 'mkdir',
      npm ERR!   path: '/home/iobroker'
      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.
      
      

      Ich habe doch den Befehl als root ausgeführt...
      Kann es sein als ich meinen User pi in markus umbenannt habe Rechte "verloren" gegangen sind?

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

        @darulor sagte in Problem bei ioBroker Installation-> iobroker.js-controller:

        Ich habe doch den Befehl als root ausgeführt...

        Falsch. Man meldet sich nie als root an.

        Kann es sein als ich meinen User pi in markus umbenannt habe Rechte "verloren" gegangen sind?

        Auch falsch. Man nennt User (insbesondere den Pi nicht) nicht einfach um.

        Am besten fängst du nochmal bei Null an. Das hört sich alles total verfummelt an.

        D 1 Reply Last reply Reply Quote 0
        • D
          darulor @Thomas Braun last edited by

          @thomas-braun ich habe heute bei null angefangen, mir mit dem Pi Imager, Pi OS Lite auf eine nagelneue SD-Karte gespielt und die Iobroker Installation nochmals durchgeführt. Die Fehlermeldung ist identisch ebenso so das Log-File, lag leider nicht am verfummelten PI.
          Fehlermeldung sieht identisch aus:

          npm ERR! code ELIFECYCLE
          npm ERR! errno 22
          npm ERR! iobroker.js-controller@3.3.18 install: `node iobroker.js setup first`
          npm ERR! Exit status 22
          npm ERR!
          npm ERR! Failed at the iobroker.js-controller@3.3.18 install script.
          npm ERR! This is probably not a problem with npm. There is likely additional logging output above.
          
          npm ERR! A complete log of this run can be found in:
          npm ERR!     /home/pi/.npm/_logs/2021-10-30T19_05_28_576Z-debug.log
          
          

          Log-File ebenfalls (Auszug am Ende)

          5267 warn optional SKIPPING OPTIONAL DEPENDENCY: fsevents@~2.3.2 (node_modules/chokidar/node_modules/fsevents):
          5268 warn notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for fsevents@2.3.2: wanted {"os":"darwin","arch":"any"} (current: {"os":"linux","arch":"arm"})
          5269 verbose notsup SKIPPING OPTIONAL DEPENDENCY: Valid OS:    darwin
          5269 verbose notsup SKIPPING OPTIONAL DEPENDENCY: Valid Arch:  any
          5269 verbose notsup SKIPPING OPTIONAL DEPENDENCY: Actual OS:   linux
          5269 verbose notsup SKIPPING OPTIONAL DEPENDENCY: Actual Arch: arm
          5270 verbose stack Error: iobroker.js-controller@3.3.18 install: `node iobroker.js setup first`
          5270 verbose stack Exit status 22
          5270 verbose stack     at EventEmitter.<anonymous> (/usr/lib/node_modules/npm/node_modules/npm-lifecycle/index.js:332:16)
          5270 verbose stack     at EventEmitter.emit (events.js:314:20)
          5270 verbose stack     at ChildProcess.<anonymous> (/usr/lib/node_modules/npm/node_modules/npm-lifecycle/lib/spawn.js:55:14)
          5270 verbose stack     at ChildProcess.emit (events.js:314:20)
          5270 verbose stack     at maybeClose (internal/child_process.js:1022:16)
          5270 verbose stack     at Process.ChildProcess._handle.onexit (internal/child_process.js:287:5)
          5271 verbose pkgid iobroker.js-controller@3.3.18
          5272 verbose cwd /opt/iobroker
          5273 verbose Linux 5.10.76-v7l+
          5274 verbose argv "/usr/bin/node" "/usr/bin/npm" "i" "--production" "--loglevel" "error" "--unsafe-perm"
          5275 verbose node v12.22.7
          5276 verbose npm  v6.14.15
          5277 error code ELIFECYCLE
          5278 error errno 22
          5279 error iobroker.js-controller@3.3.18 install: `node iobroker.js setup first`
          5279 error Exit status 22
          5280 error Failed at the iobroker.js-controller@3.3.18 install script.
          5280 error This is probably not a problem with npm. There is likely additional logging output above.
          5281 verbose exit [ 22, true ]
          
          Homoran 1 Reply Last reply Reply Quote 0
          • Homoran
            Homoran Global Moderator Administrators @darulor last edited by

            @darulor sagte in Problem bei ioBroker Installation-> iobroker.js-controller:

            und die Iobroker Installation nochmals durchgeführt.

            wie genau hast du das gemacht?

            D 1 Reply Last reply Reply Quote 0
            • D
              darulor @Homoran last edited by

              @homoran gem. der Anleitung hier aus dem Forum „Neue Installationroutine unter Linux“

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

                @darulor

                Ich weiß nicht genau was du da treibst, die Installation geht per Einzeiler.

                D 1 Reply Last reply Reply Quote 0
                • D
                  darulor @Thomas Braun last edited by Homoran

                  @thomas-braun meine Befehle für die Installation waren wie folgt:

                  sudo apt-get update && sudo apt-get upgrade
                  
                  curl -sL https://deb.nodesource.com/setup_12.x | sudo -E bash -
                  sudo apt install -y nodejs
                  Sudo reboot 
                  
                  sudo ln -s /usr/bin/node /usr/bin/nodejs
                  
                  curl -sLf https://iobroker.net/install.sh | bash -
                  

                  MOD-EDIT: Code in code-tags gesetzt!

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

                    @darulor

                    Sieht gar nicht verkehrt aus.

                    Lass die manuelle Installation von nodeJS mal weg.

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

                      @darulor sagte in Problem bei ioBroker Installation-> iobroker.js-controller:

                      Neue Installationroutine unter Linux

                      muss ich mal suchen.
                      Denke aber, dass die wohl schon was älter ist.

                      mit dem aktuellen Installer von ioBroker (siehe unten) wird auf einem System ohne node.js automatisch die aktuell empfohlene Version von node.js mit installiert! Eine vorherige separate Installation von node.js ist somit nicht mehr nötig.

                      Quelle: https://www.iobroker.net/#de/documentation/install/linux.md

                      Edit:
                      solltest du dies meinen:
                      "Neue Installationsroutine (für Linux)"

                      dann ist das von 2018!
                      das ist nicht gerade aktuell.

                      1 Reply Last reply Reply Quote 0
                      • D
                        darulor last edited by

                        @thomas-braun

                        Lass die manuelle Installation von nodeJS mal weg.

                        -> Das war es! Vielen Dank für den Hinweis!!!

                        Ich habe diese Punkt in der Installation "übersprungen"
                        In neueren Installationen kann es sein, dass der Befehl nodejs -v eine Fehlermeldung wie “nicht gefunden” erzeugt. Dies ist prinzipiell unbedenklich, da der Befehl nodejs schon länger nicht mehr verwendet wird, kann aber über einen Symlink mit dem Befehl sudo ln -s /usr/bin/node /usr/bin/nodejs "repariert" werden.

                        Jetzt bekam ich keine Fehlermeldung mehr bei der Installation und Iobroker startet 🙂

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

                          @darulor sagte in Problem bei ioBroker Installation-> iobroker.js-controller:

                          Vielen Dank für den Hinweis!!!

                          steht über dem von dir zitierten in der Anleitung:

                          mit dem aktuellen Installer von ioBroker (siehe unten) wird auf einem System ohne node.js automatisch die aktuell empfohlene Version von node.js mit installiert! Eine vorherige separate Installation von node.js ist somit nicht mehr nötig.

                          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

                          841
                          Online

                          31.9k
                          Users

                          80.1k
                          Topics

                          1.3m
                          Posts

                          3
                          16
                          989
                          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