Navigation

    Logo
    • Register
    • Login
    • Search
    • Recent
    • Tags
    • Unread
    • Categories
    • Unreplied
    • Popular
    • GitHub
    • Docu
    • Hilfe
    1. Home
    2. Deutsch
    3. ioBroker Allgemein
    4. [gelöst] IRobot Roomba Adapter Installation

    NEWS

    • Neues Video "KI im Smart Home" - ioBroker plus n8n

    • Neues Video über Aliase, virtuelle Geräte und Kategorien

    • Wir empfehlen: Node.js 22.x

    [gelöst] IRobot Roomba Adapter Installation

    This topic has been deleted. Only users with topic management privileges can see it.
    • A
      adlerauge1980 last edited by

      hallo Zefau

      Ich war nicht sicher ob ich dies genau mit diesem Befehl ausgeführt hatte, deshalb habe ich dies nochmals gemacht:

      sudo apt-get install build-essential libcairo2-dev libpango1.0-dev libjpeg-dev libgif-dev librsvg2-dev
      

      Meldung:
      17008_14-01-2019_12-43-10.jpg
      .

      Anschliessend nochmals versucht über IO-Broker zu Installieren, gleiche Meldung wie im vorherigen Post.

      Betreffend Nodes und co:
      17008_14-01-2019_12-47-39.jpg
      .

      Sieht meiner Meinung nach auch gut aus.

      Ich habe folgende Installation, Installationsablauf:

      -Raspbian Stretch Lite (Images auf SD Karte geschrieben) Auf einem Raspberry Pi 3

      • install node /nodejs

      • ioBroker installiert mit dem Nachfolgenden Befehl aus der IoBroker Installationsanleitung (Zitat Anleitung; Die Installation kann mit dem User pi aber auch mit dem User root erfolgen -> Ich habe dies mit dem User Pi gemacht):

      curl -sL https://raw.githubusercontent.com/ioBroker/ioBroker/stable-installer/installer.sh | bash -
      

      Ich habe eine Vermutung, weiss aber nicht wie prüfen:

      über Konsole bin ich mit pi angemeldet. Canvas habe also unter Pi mit sudo installiert. ioBroker scheint aber einen User ioBroker zu nuten. Kann er deshalb evt. Canvas nicht finden?

      Ich kommen auf diese Vermutung, wegen der "Datenstruktur" die ich hier gepostet habe:
      @adlerauge1980: `

      1 Reply Last reply Reply Quote 0
      • Zefau
        Zefau last edited by

        Hast du den Fehler beheben können?

        Alternativ

        sudo iobroker url https://github.com/Zefau/ioBroker.roomba
        

        bzw. inzwischen ist der Adapter auch in npm aktualisiert, also sollte folgendes klappen

        iobroker update
        iobroker upgrade
        

        Sollte alles nicht funktionieren, dann ggf. mit chown den Besitzer für das Verzeichnis /opt/iobroker wechseln?

        1 Reply Last reply Reply Quote 0
        • A
          adlerauge1980 last edited by

          hallo Zefau

          Danke der Nachfrage. Ich kämpfe noch damit. Aber grundsätzlich wäre es gegangen…. Was heisst das...

          Nach dem ich das Thema Roomba zur Seite gelegt hatte weil es nicht ging. hatte ich meine Vis ausgebaut und da plötzlich Probleme (Widget auf verschiedenen Vis seiten anzuzeigen scheint noch nicht ganz ausgereift zu sein) ich dachte e seien Performance Probleme des Raspi 3. wieder gegooglet und ne Anleitung gefunden ioBroker direkt auf meinem e immer laufendem Syno NAS zu installieren. also nicht lang gefackelt doker rauf und dann ioBroker neu drauf. -> Perfekt läuft, alles von vorne am Installieren, und die VIS Seite über export / Import rübergezogen. Und wieder die gleichen Probleme mit den Widgets (Konnte das Problem dann mit View in view lösen). Die Woche wollte ich nun einen andern gitub adappter installieren. Zuerst habe ich gedacht scheisse geht auch nicht.... aber dann hab ich gefunden was ich nirgends in einer offiziellen Anleitung beschrieben gefunden habe; "Grundprinzip Adapter".

          Im Expertenmodus finde ich nun den Roomba Adapter auf meinen Raspi auf der Syno habe ich es noch nicht geschaft, dazu weiter unten. Mein Problem war ein Verständnissproblem ein Github adapter erscheint nach der installation im Expertenmodus unter adapter und nicht wie von mir angenommen unter Instanzen! Und unter Adapter mit dem + kann man dann auch Instanzen hinzufügen (Hatte das System nicht verstanden) Sorry!! (Würde ich gerne Dokumentieren weiss aber noch nicht wo.... (Damit andere nicht das gleiche Problem haben)...

          Nun jetzt läuft also ioBroker unterdessen auf meiner Syno NAS habe dann die Cannvans Installation erfolgreich abgeschlossen:

          apt-get install build-essential libcairo2-dev libpango1.0-dev libjpeg-dev libgif-dev librsvg2-dev
          ````(Ohne sudo da bei einer Doker Syno Installation direkt mit dem Superuser gearbeitet wird, falls das hier mal jemand gleich machen möchte)
          
          Fehlermeldung habe ich keine erhalten jupee….. :)
          
          Dann den Adapter versucht zu installieren da gibts jetzt aber nochmals fehlermeldungen:
          

          $ ./iobroker url "https://github.com/Zefau/ioBroker.roomba" --debug
          install https://github.com/Zefau/ioBroker.roomba/tarball/master
          npm install https://github.com/Zefau/ioBroker.roomba/tarball/master --production --save --prefix "/opt/iobroker" (System call)

          authenticate-pam@1.0.2 install /opt/iobroker/node_modules/authenticate-pam
          node-gyp rebuild

          gyp
          ERR! clean error
          gyp
          ERR! stack Error: EACCES: permission denied, rmdir 'build'
          gyp ERR! System Linux 3.10.105gyp ERR! command "/usr/bin/node" "/usr/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js" "rebuild"

          gyp ERR! cwd /opt/iobroker/node_modules/authenticate-pamgyp ERR! node -v v8.15.0

          gyp ERR! node-gyp -v v3.8.0gyp ERR!
          not ok

          epoll@0.1.22 install /opt/iobroker/node_modules/epoll
          node-gyp rebuild

          gyp
          WARN EACCES user "undefined" does not have permission to access the dev dir "/root/.node-gyp/8.15.0"gyp WARN EACCES attempting to reinstall using temporary dev dir "/opt/iobroker/node_modules/epoll/.node-gyp"

          gyp

          WARN

          install got an error, rolling back install
          gyp WARN install got an error, rolling back install
          gyp ERR! configure error gyp ERR! stack Error: EACCES: permission denied, mkdir '/opt/iobroker/node_modules/epoll/.node-gyp'

          gyp ERR! System Linux 3.10.105gyp ERR! command
          "/usr/bin/node" "/usr/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js" "rebuild"gyp ERR! cwd /opt/iobroker/node_modules/epoll
          gyp ERR!
          node -v v8.15.0gyp ERR! node-gyp -v v3.8.0
          gyp ERR! not ok

          node-aead-crypto@2.1.4 install /opt/iobroker/node_modules/node-aead-crypto
          node lib/install.js

          running default installation script
          npm

          ERR! path /root/.npm/_logs
          npm ERR! code EACCES
          npm ERR! errno -13npm
          ERR! syscall scandir
          npm
          ERR! Error: EACCES: permission denied, scandir '/root/.npm/_logs'npm ERR! { Error: EACCES: permission denied, scandir '/root/.npm/_logs'
          npm ERR! stack: 'Error: EACCES: permission denied, scandir '/root/.npm/_logs'',
          npm ERR!
          errno: -13,npm ERR! code: 'EACCES',
          npm ERR! syscall: 'scandir',
          npm
          ERR! path: '/root/.npm/_logs' }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 thenpm ERR! permissions of the file and its containing directories, or try running

          npm ERR! the command again as root/Administrator (though this is not recommended).
          glob error { Error: EACCES: permission denied, scandir '/root/.npm/_logs' stack: 'Error: EACCES: permission denied, scandir '/root/.npm/_logs'',
          errno: -13,
          code: 'EACCES',
          syscall: 'scandir',
          path: '/root/.npm/_logs' }

          node-aead-crypto@2.1.4 install:default /opt/iobroker/node_modules/node-aead-crypto
          prebuild-install || node-gyp rebuild

          prebuild-install

          WARN install EACCES: permission denied, access '/root/.npm'
          gyp
          WARN EACCES user "undefined" does not have permission to access the dev dir "/root/.node-gyp/8.15.0"gyp WARN EACCES attempting to reinstall using temporary dev dir "/opt/iobroker/node_modules/node-aead-crypto/.node-gyp"

          gyp WARN install got an error, rolling back install
          gyp
          WARN install got an error, rolling back install
          gyp ERR! configure error
          gyp ERR! stack Error: EACCES: permission denied, mkdir '/opt/iobroker/node_modules/node-aead-crypto/.node-gyp'
          gyp ERR! System Linux 3.10.105
          gyp ERR! command "/usr/bin/node" "/usr/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js" "rebuild"gyp ERR! cwd /opt/iobroker/node_modules/node-aead-crypto

          gyp ERR!
          node -v v8.15.0gyp ERR! node-gyp -v v3.8.0
          gyp ERR! not ok

          npm ERR! code ELIFECYCLEnpm ERR! errno
          1npm ERR! node-aead-crypto@2.1.4 install:default: prebuild-install || node-gyp rebuild
          npm ERR! Exit status 1

          npm ERR! npm ERR! Failed at the node-aead-crypto@2.1.4 install:default script.

          npm ERR! This is probably not a problem with npm. There is likely additional logging output above.
          child_process.js:650 throw err;
          ^

          Error: Command failed: npm run install:default
          at checkExecSyncError (child_process.js:607:13)
          at execSync (child_process.js:647:13)
          at Object. <anonymous>(/opt/iobroker/node_modules/node-aead-crypto/lib/install.js:29:1)
          at Module._compile (module.js:653:30)
          at Object.Module._extensions..js (module.js:664:10)
          at Module.load (module.js:566:32)
          at tryModuleLoad (module.js:506:12)
          at Function.Module._load (module.js:498:3)
          at Function.Module.runMain (module.js:694:10)
          at startup (bootstrap_node.js:204:16)

          canvas@2.3.1 install /opt/iobroker/node_modules/canvas
          node-pre-gyp install --fallback-to-build

          node-pre-gyp

          WARN Using request for node-pre-gyp https download
          node-pre-gyp
          WARN Pre-built binaries not installable for canvas@2.3.1 and node@8.15.0 (node-v57 ABI, glibc) (falling back to source compile with node-gyp) node-pre-gyp WARN Hit error EACCES: permission denied, mkdir '/opt/iobroker/node_modules/canvas/build'

          gyp
          WARN
          EACCES user "undefined" does not have permission to access the dev dir "/root/.node-gyp/8.15.0"
          gyp WARN EACCES attempting to reinstall using temporary dev dir "/opt/iobroker/node_modules/canvas/.node-gyp"
          gyp
          WARN install got an error, rolling back install
          gyp
          WARN install got an error, rolling back install
          gyp
          ERR! configure error gyp ERR! stack Error: EACCES: permission denied, mkdir '/opt/iobroker/node_modules/canvas/.node-gyp'

          gyp ERR! System Linux 3.10.105
          gyp ERR! command "/usr/bin/node" "/usr/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js" "configure" "--fallback-to-build" "--module=/opt/iobroker/node_modules/canvas/build/Release/canvas.node" "--module_name=canvas" "--module_path=/opt/iobroker/node_modules/canvas/build/Release" "--napi_version=3" "--node_abi_napi=napi" "--napi_build_version=0" "--node_napi_label=node-v57"gyp ERR! cwd /opt/iobroker/node_modules/canvas
          gyp ERR!
          node -v v8.15.0gyp ERR!
          node-gyp -v v3.8.0gyp ERR! not ok

          node-pre-gyp
          ERR! build error
          node-pre-gyp
          ERR! stack Error: Failed to execute '/usr/bin/node /usr/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js configure --fallback-to-build --module=/opt/iobroker/node_modules/canvas/build/Release/canvas.node --module_name=canvas --module_path=/opt/iobroker/node_modules/canvas/build/Release --napi_version=3 --node_abi_napi=napi --napi_build_version=0 --node_napi_label=node-v57' (1)node-pre-gyp ERR! stack
          at ChildProcess. <anonymous>(/opt/iobroker/node_modules/node-pre-gyp/lib/util/compile.js:83:29)node-pre-gyp ERR! stack at emitTwo (events.js:126:13)
          node-pre-gyp ERR! stack at ChildProcess.emit (events.js:214:7)

          node-pre-gyp ERR! stack at maybeClose (internal/child_process.js:915:16)node-pre-gyp ERR! stack at Process.ChildProcess._handle.onexit (internal/child_process.js:209:5)

          node-pre-gyp
          ERR! System Linux 3.10.105node-pre-gyp ERR! command "/usr/bin/node" "/opt/iobroker/node_modules/.bin/node-pre-gyp" "install" "--fallback-to-build"
          node-pre-gyp ERR! cwd
          /opt/iobroker/node_modules/canvasnode-pre-gyp ERR! node -v v8.15.0

          node-pre-gyp ERR! node-pre-gyp -v v0.11.0node-pre-gyp ERR! not ok

          Failed to execute '/usr/bin/node /usr/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js configure --fallback-to-build --module=/opt/iobroker/node_modules/canvas/build/Release/canvas.node --module_name=canvas --module_path=/opt/iobroker/node_modules/canvas/build/Release --napi_version=3 --node_abi_napi=napi --napi_build_version=0 --node_napi_label=node-v57' (1)
          npm
          WARN optional SKIPPING OPTIONAL DEPENDENCY: authenticate-pam@1.0.2 (node_modules/authenticate-pam):npm WARN optional SKIPPING OPTIONAL DEPENDENCY: authenticate-pam@1.0.2 install: node-gyp rebuild
          npm WARN optional SKIPPING OPTIONAL DEPENDENCY: Exit status 1

          npm WARN optional SKIPPING OPTIONAL DEPENDENCY: epoll@0.1.22 (node_modules/epoll):npm WARN optional SKIPPING OPTIONAL DEPENDENCY: epoll@0.1.22 install: node-gyp rebuild
          npm WARN optional SKIPPING OPTIONAL DEPENDENCY: Exit status 1
          npm WARN optional SKIPPING OPTIONAL DEPENDENCY: node-aead-crypto@2.1.4 (node_modules/node-aead-crypto):
          npm WARN optional SKIPPING OPTIONAL DEPENDENCY: node-aead-crypto@2.1.4 install: node lib/install.js
          npm WARN optional SKIPPING OPTIONAL DEPENDENCY: Exit status 1

          npm
          ERR! code ELIFECYCLEnpm ERR! errno 1

          npm ERR! canvas@2.3.1 install: node-pre-gyp install --fallback-to-buildnpm ERR! Exit status 1
          npm ERR!
          npm ERR! Failed at the canvas@2.3.1 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! /root/.npm/_logs/2019-01-26T10_54_16_724Z-debug.log

          process exited with code 0</anonymous></anonymous>

          
          Ausgabe aber gibt "Erfolgreich" an.
          
          Zurück auf der Adapterseite "unter Expertenmodus" unter iRo gesucht aber nichts vorhanden.
          
          Eigentlich wollte ich noch nun noch den Befehl:
          

          npm install canvas --unsafe-perm=true

          Ausführen. bin aber nicht sicher in welchem verzeichnis ich den Ausführen muss. ein iobroker.roomba verzeichnis gibt es unter opt/iobroker/node-modul noch nicht. oder kann ich den Befehl auch unter /node-modul ausführen?
          
          Ps. Deine Nachfrage hat mich sehr gefreut! Nicht selbstverständlich für ein Forum! DANKE!!
          1 Reply Last reply Reply Quote 0
          • Zefau
            Zefau last edited by

            @adlerauge1980:

            Dann den Adapter versucht zu installieren da gibts jetzt aber nochmals fehlermeldungen `

            Hast du das von der GUI versucht? In dem Fehlerprotokoll steht, dass die Berechtigungen auf die Ordner fehlen:

            @adlerauge1980:

            gyp

            WARN EACCES user "undefined" does not have permission to access the dev dir "/root/.node-gyp/8.15.0"gyp WARN EACCES attempting to reinstall using temporary dev dir "/opt/iobroker/node_modules/epoll/.node-gyp" `

            Versuch mal mit sudo zu installieren.

            Wenn das nicht geht (oder du schon mit root drin bist), dann guck mal, wem der Ordner node_modules gehört (ls -al) und ändere ggf. die Berechtigungen (chmod).

            Viele Grüße

            Zefau

            1 Reply Last reply Reply Quote 0
            • A
              adlerauge1980 last edited by

              Hallo Zefau

              Ich habe ioBroker auf meinem Synology NAS (Docker) installiert gemäss einer Anleitung hier im Forum. Wenn ich mit der Konsole arbeite bin ich bereits als Root angemeldet. Ich denke jedoch nicht, wenn ich mit aus ioBroker heraus installiere (Vermutlich ist dies dann der User iobroker wobei so wirklich sicher bin ich mir da nicht.

              17008_bildschirmfoto_2019-02-04_um_19.13.09.png

              1 Reply Last reply Reply Quote 0
              • Zefau
                Zefau last edited by

                Wenn du von der GUI installierst, dann installiert er mit dem Benutzer "iobroker".

                Prüfe mal im Ordner /opt/iobroker mit "ls -al", wie die Besitzer der Ordner "iobroker.xxxx" sind. Du kannst den Besitzer mit "chown" ändern, z. B. "chown -R iobroker:iobroker /opt/iobroker/node_modules/iobroker.roomba".

                Danach solltest du normal von der GUI aus installieren können.

                A 1 Reply Last reply Reply Quote 0
                • A
                  adlerauge1980 @Zefau last edited by

                  @Zefau Hallo Zefau

                  Sorry das ich so lange nicht geantwortet habe, ich hatte das Thema ioBroker etwas auf die Seite gelegt, weil andere Projekte Vorrang hatten.
                  Ich habe mich heute nochmal dahinter gesetzt. und endlich auch den Adapter zum laufen bekommen.
                  ich musste mir den Ordner iobroker.roomba in /opt/iobroker/node_modules/ manuell mit mkdir anlegen (über die Konsole vom Doker) anschliessend habe ich den Befehl: npm install canvas --unsafe-perm=true in diesem Ordner ausgeführt. und dann konnte ich den Adapter normal installieren! (Manchmal bringt es etwas, solche Dinge auf die Seite zu legen und später wieder hervor zu nehmen).

                  1 Reply Last reply Reply Quote 0
                  • A
                    adlerauge1980 last edited by

                    wie kann ich im neuen Forum einen Thred als gelöst markieren?

                    BBTown 1 Reply Last reply Reply Quote 0
                    • BBTown
                      BBTown @adlerauge1980 last edited by BBTown

                      @adlerauge1980 indem Du in deinem ersten Beitrag in der Überschrift das [gelöst] vorne hin schreibst 😉

                      A 1 Reply Last reply Reply Quote 0
                      • A
                        adlerauge1980 @BBTown last edited by

                        @BBTown Danke.... für den Tipp / Info

                        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

                        863
                        Online

                        32.0k
                        Users

                        80.6k
                        Topics

                        1.3m
                        Posts

                        roomba
                        4
                        20
                        2772
                        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