Skip to content
  • Home
  • Aktuell
  • Tags
  • 0 Ungelesen 0
  • Kategorien
  • Unreplied
  • Beliebt
  • 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

  • Standard: (Kein Skin)
  • Kein Skin
Einklappen
ioBroker Logo

Community Forum

donate donate
  1. ioBroker Community Home
  2. Deutsch
  3. ioBroker Allgemein
  4. js-controller 3.0/3.1 jetzt im Latest!

NEWS

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

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

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

js-controller 3.0/3.1 jetzt im Latest!

Geplant Angeheftet Gesperrt Verschoben ioBroker Allgemein
js-controller
1.3k Beiträge 127 Kommentatoren 495.3k Aufrufe 89 Watching
  • Älteste zuerst
  • Neuste zuerst
  • Meiste Stimmen
Antworten
  • In einem neuen Thema antworten
Anmelden zum Antworten
Dieses Thema wurde gelöscht. Nur Nutzer mit entsprechenden Rechten können es sehen.
  • O oFbEQnpoLKKl6mbY5e13

    @apollon77 sagte in js-controller 3.0/3.1 jetzt im Latest!:
    @oFbEQnpoLKKl6mbY5e13 sonst mir mit Verweis aufs GitHub issue an iobroker@fischer-ka.de schicken.

    Vielen Dank für den neuen HmIP-Adapter v1.0.0!

    Er stürzt nun nicht mehr ab, wenn sich der Schutz-Status ändert. Es kommen nun bei Änderung die folgenden Ausgaben im Log:

    warn: hmip.0 (29961) No home in SECURITY_JOURNAL_CHANGED: {"pushEventType":"SECURITY_JOURNAL_CHANGED"}
    warn: hmip.0 (29961) No home in SECURITY_JOURNAL_CHANGED: {"pushEventType":"SECURITY_JOURNAL_CHANGED"}
    
    apollon77A Online
    apollon77A Online
    apollon77
    schrieb am zuletzt editiert von
    #1005

    @oFbEQnpoLKKl6mbY5e13 Dazu bitte ein github issue anlegen - jetzt wissen wir wo die Struktur anders ist und man kann es im Code behandeln :-)

    Beitrag hat geholfen? Votet rechts unten im Beitrag :-) https://paypal.me/Apollon77 / https://github.com/sponsors/Apollon77

    • Debug-Log für Instanz einschalten? Admin -> Instanzen -> Expertenmodus -> Instanz aufklappen - Loglevel ändern
    • Logfiles auf Platte /opt/iobroker/log/… nutzen, Admin schneidet Zeilen ab
    O 1 Antwort Letzte Antwort
    0
    • K karlo enzo

      @bergjet

      Bei einer Standardinstallation unter:

      '/opt/iobroker/iobroker-data/files/'
      die Verzeichnisse anlegen, zu denen es im Logfile eine Warnmeldung gibt.
      Bei mir waren das die Verzeichnisse admin.0 , web.0 und 0_userdata.0
      Beim anschliessendem Backup über Backitup tauchen die Warnmeldungen nicht mehr auf.

      apollon77A Online
      apollon77A Online
      apollon77
      schrieb am zuletzt editiert von
      #1006

      @karlo-enzo magst Du mal (ich weiss ich faul :-)) ) die exakte Befehlsfolge sagen dann packe eich es ioben in die FAQ? :) Danke

      Beitrag hat geholfen? Votet rechts unten im Beitrag :-) https://paypal.me/Apollon77 / https://github.com/sponsors/Apollon77

      • Debug-Log für Instanz einschalten? Admin -> Instanzen -> Expertenmodus -> Instanz aufklappen - Loglevel ändern
      • Logfiles auf Platte /opt/iobroker/log/… nutzen, Admin schneidet Zeilen ab
      1 Antwort Letzte Antwort
      0
      • apollon77A apollon77

        @JB_Sullivan 3.1.20? 3.0.20 oder 3.1.4? :-) Welche Version war es vorher wo es schneller war? Sicher das es nicht nur ein Admin Anzeigeproblem ist? Mal per "iobroker state get mein.0.state.hier"ode rmit nem kleinen javascript was wertänderungen loggt oder statistik adapter geprüft ob der Wert wirklich verzögert kommt?

        JB_SullivanJ Offline
        JB_SullivanJ Offline
        JB_Sullivan
        schrieb am zuletzt editiert von
        #1007

        @apollon77

        Upps - sorry - habe die Versionen eine wenig durcheinander gewürfelt.

        Also ich kam von 3.0.20 und bin auf 3.1.4 gegangen.

        Sicher das es nicht nur ein Admin Anzeigeproblem ist? Mal per "iobroker state get mein.0.state.hier"ode rmit nem kleinen javascript was wertänderungen loggt oder statistik adapter geprüft ob der Wert wirklich verzögert kommt?
        

        Natürlich nicht :D

        ioBroker auf Intel Core i3-5005U NUC und Windwos10 Pro

        1 Antwort Letzte Antwort
        0
        • K Offline
          K Offline
          karlo enzo
          schrieb am zuletzt editiert von
          #1008

          @apollon77
          Ja, gerne.
          In das Verzeichnis : /opt/iobroker/iobroker-data/files/ wechseln.
          Hier die Verzeichnisse anlegen, die im Logfile mit einer warn-Meldung aufgelistet sind.
          Bei mir war das :
          mkdir admin.0 mkdir web.0 und mkdir 0_userdata.0

          Beim nächsten Backup über backitup tauchen diese Fehlermeldungen dann nicht mehr auf.

          SteffS 1 Antwort Letzte Antwort
          0
          • apollon77A apollon77

            @oFbEQnpoLKKl6mbY5e13 Dazu bitte ein github issue anlegen - jetzt wissen wir wo die Struktur anders ist und man kann es im Code behandeln :-)

            O Abwesend
            O Abwesend
            oFbEQnpoLKKl6mbY5e13
            schrieb am zuletzt editiert von oFbEQnpoLKKl6mbY5e13
            #1009

            @apollon77

            Dazu bitte ein github issue anlegen - jetzt wissen wir wo die Struktur anders ist und man kann > es im Code behandeln :-)

            Soll ich dazu noch mal ein Silly-Log anfertigen?

            apollon77A 1 Antwort Letzte Antwort
            0
            • O oFbEQnpoLKKl6mbY5e13

              @apollon77

              Dazu bitte ein github issue anlegen - jetzt wissen wir wo die Struktur anders ist und man kann > es im Code behandeln :-)

              Soll ich dazu noch mal ein Silly-Log anfertigen?

              apollon77A Online
              apollon77A Online
              apollon77
              schrieb am zuletzt editiert von
              #1010

              @oFbEQnpoLKKl6mbY5e13 Ne log reicht so denke ich

              Beitrag hat geholfen? Votet rechts unten im Beitrag :-) https://paypal.me/Apollon77 / https://github.com/sponsors/Apollon77

              • Debug-Log für Instanz einschalten? Admin -> Instanzen -> Expertenmodus -> Instanz aufklappen - Loglevel ändern
              • Logfiles auf Platte /opt/iobroker/log/… nutzen, Admin schneidet Zeilen ab
              O 1 Antwort Letzte Antwort
              0
              • bergjetB bergjet

                @karlo-enzo said in js-controller 3.0/3.1 jetzt im Latest!:

                Ich habe die Verzeichnisse ohne weitere Vorgabe von Berechtigungen nur angelegt.
                Das hat gereicht.

                Danke, hat geklappt.

                G Offline
                G Offline
                gifftstaub
                schrieb am zuletzt editiert von
                #1011

                @bergjet

                Zur not führe doch einfach nach dem Erstellen der neuen Ordner ein iobroker fix durch.

                Dann hat alles seine Richtigkeit.

                LG

                1 Antwort Letzte Antwort
                1
                • bergjetB Offline
                  bergjetB Offline
                  bergjet
                  schrieb am zuletzt editiert von
                  #1012

                  @gifftstaub said in js-controller 3.0/3.1 jetzt im Latest!:

                  ein iobroker fix

                  Was ist das?

                  homee, ioBroker, iMac, iPhone, Sonos, Alaxa

                  FeuersturmF 1 Antwort Letzte Antwort
                  0
                  • bergjetB bergjet

                    @gifftstaub said in js-controller 3.0/3.1 jetzt im Latest!:

                    ein iobroker fix

                    Was ist das?

                    FeuersturmF Online
                    FeuersturmF Online
                    Feuersturm
                    schrieb am zuletzt editiert von Feuersturm
                    #1013

                    @bergjet
                    @gifftstaub wird den ioBroker fixer (https://forum.iobroker.net/topic/20211/iobroker-installation-fixer-beta-verfügbar) meinen
                    Der Aufruf erfolgt mit

                    curl -sL https://iobroker.net/fix.sh | bash -
                    
                    foxriver76F 1 Antwort Letzte Antwort
                    0
                    • FeuersturmF Feuersturm

                      @bergjet
                      @gifftstaub wird den ioBroker fixer (https://forum.iobroker.net/topic/20211/iobroker-installation-fixer-beta-verfügbar) meinen
                      Der Aufruf erfolgt mit

                      curl -sL https://iobroker.net/fix.sh | bash -
                      
                      foxriver76F Offline
                      foxriver76F Offline
                      foxriver76
                      Developer
                      schrieb am zuletzt editiert von
                      #1014

                      @Feuersturm bei neueren Installationen reicht ein iob fix auf der Kommandozeile, deshalb schon korrekt, was geschrieben wurde.

                      Videotutorials & mehr

                      Hier könnt ihr mich unterstützen.

                      1 Antwort Letzte Antwort
                      1
                      • S Offline
                        S Offline
                        Svenson6
                        schrieb am zuletzt editiert von
                        #1015

                        Liebe Leute,
                        auch von mir nochmal ein herzliches Dankeschön für Eure Arbeit! ioBroker läuft bei mir seit einigen Wochen, und es hat viel Spaß gemacht, sich da reinzufuchsen.

                        Jetzt aber bin ich am Ende meiner ohnehin knapp bemessenen Weisheit angelangt. ioBroker teilt mir mit, dass ein neuer js-controller zur Verfügung steht, und ich scheitere am Update. Nebenbei bin ich nicht mehr in der Lage, Adapter-Updates durchzuführen, die tauchen ständig in der alten Version wieder auf. Ob das was miteinander zu tun hat, könnt Ihr vielleicht beurteilen. Jetzt aber erst einmal zum js-controller.

                        Was ich hier habe: Einen Raspberry Pi 4 mit Raspbian und ioBroker drauf. Unter „Hosts“ wird gemeldet:

                        raspberrypi4

                        • Typ: js-controller
                        • Titel: JS controller
                        • OS: linux
                        • Verfügbar: 3.1.4
                        • Installiert: 2.2.9
                        • Ereignisse: ↦28 / ↦13

                        Wie hier im Thread beschrieben, führe ich Folgendes aus:

                        pi@raspberrypi4:~ $ iobroker stop
                        pi@raspberrypi4:~ $ iobroker upgrade self
                        Update js-controller from @2.2.9 to @3.1.4
                        NPM version: 6.14.4
                        npm install iobroker.js-controller@3.1.4 --unsafe-perm --loglevel error --prefix "/opt/iobroker" (System call)
                        Package pangocairo was not found in the pkg-config search path.
                        Perhaps you should add the directory containing `pangocairo.pc'
                        to the PKG_CONFIG_PATH environment variable
                        No package 'pangocairo' found
                        gyp: Call to 'pkg-config pangocairo --libs' returned exit status 1 while in binding.gyp. while trying to load binding.gyp
                        gyp ERR! configure error 
                        gyp ERR! stack Error: `gyp` failed with exit code: 1
                        gyp ERR! stack     at ChildProcess.onCpExit (/usr/lib/node_modules/npm/node_modules/node-gyp/lib/configure.js:351:16)
                        gyp ERR! stack     at ChildProcess.emit (events.js:198:13)
                        gyp ERR! stack     at Process.ChildProcess._handle.onexit (internal/child_process.js:248:12)
                        gyp ERR! System Linux 4.19.97-v7l+
                        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=6" "--node_abi_napi=napi" "--napi_build_version=0" "--node_napi_label=node-v64"
                        gyp ERR! cwd /opt/iobroker/node_modules/canvas
                        gyp ERR! node -v v10.20.1
                        gyp ERR! node-gyp -v v5.1.0
                        gyp 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=6 --node_abi_napi=napi --napi_build_version=0 --node_napi_label=node-v64' (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 ChildProcess.emit (events.js:198:13)
                        node-pre-gyp ERR! stack     at maybeClose (internal/child_process.js:982:16)
                        node-pre-gyp ERR! stack     at Process.ChildProcess._handle.onexit (internal/child_process.js:259:5)
                        node-pre-gyp ERR! System Linux 4.19.97-v7l+
                        node-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/canvas
                        node-pre-gyp ERR! node -v v10.20.1
                        node-pre-gyp ERR! node-pre-gyp -v v0.11.0
                        node-pre-gyp ERR! not ok 
                        npm ERR! code ELIFECYCLE
                        npm ERR! errno 1
                        npm ERR! canvas@2.6.1 install: `node-pre-gyp install --fallback-to-build`
                        npm ERR! Exit status 1
                        npm ERR! 
                        npm ERR! Failed at the canvas@2.6.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!     /home/iobroker/.npm/_logs/2020-05-16T13_48_01_236Z-debug.log
                        Starting node restart.js
                        pi@raspberrypi4:~ $ iobroker start
                        pi@raspberrypi4:~ $
                        

                        „ERR!“ klingt schon mal nicht gut, aber ich kann mit den Meldungen, offen gestanden, nicht viel anfangen. Jedenfalls startet der ioBroker nun, ich bekomme eine Telegram-Nachricht, dass der Start erfolgt ist. Ich kann mich dann auch auf der Benutzeroberfläche anmelden, aber kurz danach ist Feierabend. Da dreht sich nur noch die „Sanduhr“, und nach einen Reload meldet der Browser:

                        Firefox kann keine Verbindung zu dem Server unter 192.168.178.100:8081 aufbauen.

                        Ich habe den Raspberry sicherheitshalber mal neu gestartet, aber nix geht mehr. Oben stand, man solle den Fixer mal laufen lassen:

                        pi@raspberrypi4:~ $ iobroker fix
                        library: loaded
                        Library version=2020-04-12
                        ioBroker is not installed in /opt/iobroker! Cannot fix anything...
                        pi@raspberrypi4:~ $
                        

                        Hört sich wieder nicht gut an, finde ich. Dann mal den Befehl von oben probiert:

                        pi@raspberrypi4:~ $ 
                        pi@raspberrypi4:~ $ sudo -H -u iobroker npm install iobroker.js-controller
                        npm WARN checkPermissions Missing write access to /home/pi/node_modules/@iobroker
                        npm WARN checkPermissions Missing write access to /home/pi/node_modules/@types
                        npm WARN checkPermissions Missing write access to /home/pi/node_modules
                        npm WARN optional SKIPPING OPTIONAL DEPENDENCY: fsevents@~2.1.2 (node_modules/chokidar/node_modules/fsevents):
                        npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for fsevents@2.1.3: wanted {"os":"darwin","arch":"any"} (current: {"os":"linux","arch":"arm"})
                        npm WARN enoent ENOENT: no such file or directory, open '/home/pi/package.json'
                        npm WARN pi No description
                        npm WARN pi No repository field.
                        npm WARN pi No README data
                        npm WARN pi No license field.
                        
                        npm ERR! code EACCES
                        npm ERR! syscall access
                        npm ERR! path /home/pi/node_modules/@iobroker
                        npm ERR! errno -13
                        npm ERR! Error: EACCES: permission denied, access '/home/pi/node_modules/@iobroker'
                        npm ERR!  { [Error: EACCES: permission denied, access '/home/pi/node_modules/@iobroker']
                        npm ERR!   stack:
                        npm ERR!    'Error: EACCES: permission denied, access \'/home/pi/node_modules/@iobroker\'',
                        npm ERR!   errno: -13,
                        npm ERR!   code: 'EACCES',
                        npm ERR!   syscall: 'access',
                        npm ERR!   path: '/home/pi/node_modules/@iobroker' }
                        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/2020-05-16T13_55_56_189Z-debug.log
                        pi@raspberrypi4:~ $ iobroker start
                        pi@raspberrypi4:~ $ iobroker fix
                        library: loaded
                        Library version=2020-04-12
                        ioBroker is not installed in /opt/iobroker! Cannot fix anything...
                        pi@raspberrypi4:~ $ sudo shutdown -r 0
                        Shutdown scheduled for Sat 2020-05-16 15:56:31 CEST, use 'shutdown -c' to cancel.
                        pi@raspberrypi4:~ $ Connection to 192.168.178.100 closed by remote host.
                        Connection to 192.168.178.100 closed.
                        Sven@Svens-iMac-361 ~ %
                        

                        Maschine kaputt. Jetzt ein paar Befehle, die ich unter [https://www.iobroker.net/docu/index-26.htm?page_id=3928&lang=de] gefunden habe:

                        pi@raspberrypi4:~ $ cd /opt/iobroker
                        pi@raspberrypi4:/opt/iobroker $ iobroker stop
                        pi@raspberrypi4:/opt/iobroker $ npm install iobroker.js-controller
                        
                        > iobroker.js-controller@2.2.9 preinstall /opt/iobroker/node_modules/iobroker.js-controller
                        > node lib/preinstallCheck.js
                        
                        NPM version: 6.14.4
                        
                        > canvas@2.6.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 Tried to download(404): https://github.com/node-gfx/node-canvas-prebuilt/releases/download/v2.6.1/canvas-v2.6.1-node-v64-linux-glibc-arm.tar.gz 
                        node-pre-gyp WARN Pre-built binaries not found for canvas@2.6.1 and node@10.20.1 (node-v64 ABI, glibc) (falling back to source compile with node-gyp) 
                        Package pangocairo was not found in the pkg-config search path.
                        Perhaps you should add the directory containing `pangocairo.pc'
                        to the PKG_CONFIG_PATH environment variable
                        No package 'pangocairo' found
                        gyp: Call to 'pkg-config pangocairo --libs' returned exit status 1 while in binding.gyp. while trying to load binding.gyp
                        gyp ERR! configure error 
                        gyp ERR! stack Error: `gyp` failed with exit code: 1
                        gyp ERR! stack     at ChildProcess.onCpExit (/usr/lib/node_modules/npm/node_modules/node-gyp/lib/configure.js:351:16)
                        gyp ERR! stack     at ChildProcess.emit (events.js:198:13)
                        gyp ERR! stack     at Process.ChildProcess._handle.onexit (internal/child_process.js:248:12)
                        gyp ERR! System Linux 4.19.97-v7l+
                        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=6" "--node_abi_napi=napi" "--napi_build_version=0" "--node_napi_label=node-v64"
                        gyp ERR! cwd /opt/iobroker/node_modules/canvas
                        gyp ERR! node -v v10.20.1
                        gyp ERR! node-gyp -v v5.1.0
                        gyp 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=6 --node_abi_napi=napi --napi_build_version=0 --node_napi_label=node-v64' (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 ChildProcess.emit (events.js:198:13)
                        node-pre-gyp ERR! stack     at maybeClose (internal/child_process.js:982:16)
                        node-pre-gyp ERR! stack     at Process.ChildProcess._handle.onexit (internal/child_process.js:259:5)
                        node-pre-gyp ERR! System Linux 4.19.97-v7l+
                        node-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/canvas
                        node-pre-gyp ERR! node -v v10.20.1
                        node-pre-gyp ERR! node-pre-gyp -v v0.11.0
                        node-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=6 --node_abi_napi=napi --napi_build_version=0 --node_napi_label=node-v64' (1)
                        npm WARN optional SKIPPING OPTIONAL DEPENDENCY: fsevents@~2.1.2 (node_modules/chokidar/node_modules/fsevents):
                        npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for fsevents@2.1.3: wanted {"os":"darwin","arch":"any"} (current: {"os":"linux","arch":"arm"})
                        npm WARN optional SKIPPING OPTIONAL DEPENDENCY: osx-temperature-sensor@1.0.5 (node_modules/osx-temperature-sensor):
                        npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for osx-temperature-sensor@1.0.5: wanted {"os":"darwin","arch":"any"} (current: {"os":"linux","arch":"arm"})
                        
                        npm ERR! code ELIFECYCLE
                        npm ERR! errno 1
                        npm ERR! canvas@2.6.1 install: `node-pre-gyp install --fallback-to-build`
                        npm ERR! Exit status 1
                        npm ERR! 
                        npm ERR! Failed at the canvas@2.6.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!     /home/iobroker/.npm/_logs/2020-05-16T13_59_27_777Z-debug.log
                        pi@raspberrypi4:/opt/iobroker $ iobroker start
                        pi@raspberrypi4:/opt/iobroker $
                        

                        Und siehe da: Da sind wir wieder. ioBroker startet, ich kann mich anmelden, es funktioniert wieder. Allerdings steht unter Host wieder:

                        raspberrypi4

                        • Typ: js-controller
                        • Titel: JS controller
                        • OS: linux
                        • Verfügbar: 3.1.4
                        • Installiert: 2.2.9
                        • Ereignisse: ↦28 / ↦13

                        Ich bin also wieder da, wo ich angefangen habe. Das kann ich beliebig oft wiederholen, bringen tut das alles nix. Bestimmt machen ich nur ein paar peinliche Anfängerfehler, aber … Könnte mir wohl jemand einen Tipp geben, wie ich das in den Griff bekomme?

                        Viele Grüße von
                        Sven

                        D BBTownB 2 Antworten Letzte Antwort
                        0
                        • S Svenson6

                          Liebe Leute,
                          auch von mir nochmal ein herzliches Dankeschön für Eure Arbeit! ioBroker läuft bei mir seit einigen Wochen, und es hat viel Spaß gemacht, sich da reinzufuchsen.

                          Jetzt aber bin ich am Ende meiner ohnehin knapp bemessenen Weisheit angelangt. ioBroker teilt mir mit, dass ein neuer js-controller zur Verfügung steht, und ich scheitere am Update. Nebenbei bin ich nicht mehr in der Lage, Adapter-Updates durchzuführen, die tauchen ständig in der alten Version wieder auf. Ob das was miteinander zu tun hat, könnt Ihr vielleicht beurteilen. Jetzt aber erst einmal zum js-controller.

                          Was ich hier habe: Einen Raspberry Pi 4 mit Raspbian und ioBroker drauf. Unter „Hosts“ wird gemeldet:

                          raspberrypi4

                          • Typ: js-controller
                          • Titel: JS controller
                          • OS: linux
                          • Verfügbar: 3.1.4
                          • Installiert: 2.2.9
                          • Ereignisse: ↦28 / ↦13

                          Wie hier im Thread beschrieben, führe ich Folgendes aus:

                          pi@raspberrypi4:~ $ iobroker stop
                          pi@raspberrypi4:~ $ iobroker upgrade self
                          Update js-controller from @2.2.9 to @3.1.4
                          NPM version: 6.14.4
                          npm install iobroker.js-controller@3.1.4 --unsafe-perm --loglevel error --prefix "/opt/iobroker" (System call)
                          Package pangocairo was not found in the pkg-config search path.
                          Perhaps you should add the directory containing `pangocairo.pc'
                          to the PKG_CONFIG_PATH environment variable
                          No package 'pangocairo' found
                          gyp: Call to 'pkg-config pangocairo --libs' returned exit status 1 while in binding.gyp. while trying to load binding.gyp
                          gyp ERR! configure error 
                          gyp ERR! stack Error: `gyp` failed with exit code: 1
                          gyp ERR! stack     at ChildProcess.onCpExit (/usr/lib/node_modules/npm/node_modules/node-gyp/lib/configure.js:351:16)
                          gyp ERR! stack     at ChildProcess.emit (events.js:198:13)
                          gyp ERR! stack     at Process.ChildProcess._handle.onexit (internal/child_process.js:248:12)
                          gyp ERR! System Linux 4.19.97-v7l+
                          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=6" "--node_abi_napi=napi" "--napi_build_version=0" "--node_napi_label=node-v64"
                          gyp ERR! cwd /opt/iobroker/node_modules/canvas
                          gyp ERR! node -v v10.20.1
                          gyp ERR! node-gyp -v v5.1.0
                          gyp 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=6 --node_abi_napi=napi --napi_build_version=0 --node_napi_label=node-v64' (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 ChildProcess.emit (events.js:198:13)
                          node-pre-gyp ERR! stack     at maybeClose (internal/child_process.js:982:16)
                          node-pre-gyp ERR! stack     at Process.ChildProcess._handle.onexit (internal/child_process.js:259:5)
                          node-pre-gyp ERR! System Linux 4.19.97-v7l+
                          node-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/canvas
                          node-pre-gyp ERR! node -v v10.20.1
                          node-pre-gyp ERR! node-pre-gyp -v v0.11.0
                          node-pre-gyp ERR! not ok 
                          npm ERR! code ELIFECYCLE
                          npm ERR! errno 1
                          npm ERR! canvas@2.6.1 install: `node-pre-gyp install --fallback-to-build`
                          npm ERR! Exit status 1
                          npm ERR! 
                          npm ERR! Failed at the canvas@2.6.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!     /home/iobroker/.npm/_logs/2020-05-16T13_48_01_236Z-debug.log
                          Starting node restart.js
                          pi@raspberrypi4:~ $ iobroker start
                          pi@raspberrypi4:~ $
                          

                          „ERR!“ klingt schon mal nicht gut, aber ich kann mit den Meldungen, offen gestanden, nicht viel anfangen. Jedenfalls startet der ioBroker nun, ich bekomme eine Telegram-Nachricht, dass der Start erfolgt ist. Ich kann mich dann auch auf der Benutzeroberfläche anmelden, aber kurz danach ist Feierabend. Da dreht sich nur noch die „Sanduhr“, und nach einen Reload meldet der Browser:

                          Firefox kann keine Verbindung zu dem Server unter 192.168.178.100:8081 aufbauen.

                          Ich habe den Raspberry sicherheitshalber mal neu gestartet, aber nix geht mehr. Oben stand, man solle den Fixer mal laufen lassen:

                          pi@raspberrypi4:~ $ iobroker fix
                          library: loaded
                          Library version=2020-04-12
                          ioBroker is not installed in /opt/iobroker! Cannot fix anything...
                          pi@raspberrypi4:~ $
                          

                          Hört sich wieder nicht gut an, finde ich. Dann mal den Befehl von oben probiert:

                          pi@raspberrypi4:~ $ 
                          pi@raspberrypi4:~ $ sudo -H -u iobroker npm install iobroker.js-controller
                          npm WARN checkPermissions Missing write access to /home/pi/node_modules/@iobroker
                          npm WARN checkPermissions Missing write access to /home/pi/node_modules/@types
                          npm WARN checkPermissions Missing write access to /home/pi/node_modules
                          npm WARN optional SKIPPING OPTIONAL DEPENDENCY: fsevents@~2.1.2 (node_modules/chokidar/node_modules/fsevents):
                          npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for fsevents@2.1.3: wanted {"os":"darwin","arch":"any"} (current: {"os":"linux","arch":"arm"})
                          npm WARN enoent ENOENT: no such file or directory, open '/home/pi/package.json'
                          npm WARN pi No description
                          npm WARN pi No repository field.
                          npm WARN pi No README data
                          npm WARN pi No license field.
                          
                          npm ERR! code EACCES
                          npm ERR! syscall access
                          npm ERR! path /home/pi/node_modules/@iobroker
                          npm ERR! errno -13
                          npm ERR! Error: EACCES: permission denied, access '/home/pi/node_modules/@iobroker'
                          npm ERR!  { [Error: EACCES: permission denied, access '/home/pi/node_modules/@iobroker']
                          npm ERR!   stack:
                          npm ERR!    'Error: EACCES: permission denied, access \'/home/pi/node_modules/@iobroker\'',
                          npm ERR!   errno: -13,
                          npm ERR!   code: 'EACCES',
                          npm ERR!   syscall: 'access',
                          npm ERR!   path: '/home/pi/node_modules/@iobroker' }
                          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/2020-05-16T13_55_56_189Z-debug.log
                          pi@raspberrypi4:~ $ iobroker start
                          pi@raspberrypi4:~ $ iobroker fix
                          library: loaded
                          Library version=2020-04-12
                          ioBroker is not installed in /opt/iobroker! Cannot fix anything...
                          pi@raspberrypi4:~ $ sudo shutdown -r 0
                          Shutdown scheduled for Sat 2020-05-16 15:56:31 CEST, use 'shutdown -c' to cancel.
                          pi@raspberrypi4:~ $ Connection to 192.168.178.100 closed by remote host.
                          Connection to 192.168.178.100 closed.
                          Sven@Svens-iMac-361 ~ %
                          

                          Maschine kaputt. Jetzt ein paar Befehle, die ich unter [https://www.iobroker.net/docu/index-26.htm?page_id=3928&lang=de] gefunden habe:

                          pi@raspberrypi4:~ $ cd /opt/iobroker
                          pi@raspberrypi4:/opt/iobroker $ iobroker stop
                          pi@raspberrypi4:/opt/iobroker $ npm install iobroker.js-controller
                          
                          > iobroker.js-controller@2.2.9 preinstall /opt/iobroker/node_modules/iobroker.js-controller
                          > node lib/preinstallCheck.js
                          
                          NPM version: 6.14.4
                          
                          > canvas@2.6.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 Tried to download(404): https://github.com/node-gfx/node-canvas-prebuilt/releases/download/v2.6.1/canvas-v2.6.1-node-v64-linux-glibc-arm.tar.gz 
                          node-pre-gyp WARN Pre-built binaries not found for canvas@2.6.1 and node@10.20.1 (node-v64 ABI, glibc) (falling back to source compile with node-gyp) 
                          Package pangocairo was not found in the pkg-config search path.
                          Perhaps you should add the directory containing `pangocairo.pc'
                          to the PKG_CONFIG_PATH environment variable
                          No package 'pangocairo' found
                          gyp: Call to 'pkg-config pangocairo --libs' returned exit status 1 while in binding.gyp. while trying to load binding.gyp
                          gyp ERR! configure error 
                          gyp ERR! stack Error: `gyp` failed with exit code: 1
                          gyp ERR! stack     at ChildProcess.onCpExit (/usr/lib/node_modules/npm/node_modules/node-gyp/lib/configure.js:351:16)
                          gyp ERR! stack     at ChildProcess.emit (events.js:198:13)
                          gyp ERR! stack     at Process.ChildProcess._handle.onexit (internal/child_process.js:248:12)
                          gyp ERR! System Linux 4.19.97-v7l+
                          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=6" "--node_abi_napi=napi" "--napi_build_version=0" "--node_napi_label=node-v64"
                          gyp ERR! cwd /opt/iobroker/node_modules/canvas
                          gyp ERR! node -v v10.20.1
                          gyp ERR! node-gyp -v v5.1.0
                          gyp 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=6 --node_abi_napi=napi --napi_build_version=0 --node_napi_label=node-v64' (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 ChildProcess.emit (events.js:198:13)
                          node-pre-gyp ERR! stack     at maybeClose (internal/child_process.js:982:16)
                          node-pre-gyp ERR! stack     at Process.ChildProcess._handle.onexit (internal/child_process.js:259:5)
                          node-pre-gyp ERR! System Linux 4.19.97-v7l+
                          node-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/canvas
                          node-pre-gyp ERR! node -v v10.20.1
                          node-pre-gyp ERR! node-pre-gyp -v v0.11.0
                          node-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=6 --node_abi_napi=napi --napi_build_version=0 --node_napi_label=node-v64' (1)
                          npm WARN optional SKIPPING OPTIONAL DEPENDENCY: fsevents@~2.1.2 (node_modules/chokidar/node_modules/fsevents):
                          npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for fsevents@2.1.3: wanted {"os":"darwin","arch":"any"} (current: {"os":"linux","arch":"arm"})
                          npm WARN optional SKIPPING OPTIONAL DEPENDENCY: osx-temperature-sensor@1.0.5 (node_modules/osx-temperature-sensor):
                          npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for osx-temperature-sensor@1.0.5: wanted {"os":"darwin","arch":"any"} (current: {"os":"linux","arch":"arm"})
                          
                          npm ERR! code ELIFECYCLE
                          npm ERR! errno 1
                          npm ERR! canvas@2.6.1 install: `node-pre-gyp install --fallback-to-build`
                          npm ERR! Exit status 1
                          npm ERR! 
                          npm ERR! Failed at the canvas@2.6.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!     /home/iobroker/.npm/_logs/2020-05-16T13_59_27_777Z-debug.log
                          pi@raspberrypi4:/opt/iobroker $ iobroker start
                          pi@raspberrypi4:/opt/iobroker $
                          

                          Und siehe da: Da sind wir wieder. ioBroker startet, ich kann mich anmelden, es funktioniert wieder. Allerdings steht unter Host wieder:

                          raspberrypi4

                          • Typ: js-controller
                          • Titel: JS controller
                          • OS: linux
                          • Verfügbar: 3.1.4
                          • Installiert: 2.2.9
                          • Ereignisse: ↦28 / ↦13

                          Ich bin also wieder da, wo ich angefangen habe. Das kann ich beliebig oft wiederholen, bringen tut das alles nix. Bestimmt machen ich nur ein paar peinliche Anfängerfehler, aber … Könnte mir wohl jemand einen Tipp geben, wie ich das in den Griff bekomme?

                          Viele Grüße von
                          Sven

                          D Offline
                          D Offline
                          deta
                          Most Active
                          schrieb am zuletzt editiert von
                          #1016

                          @Svenson6 so wie es aussieht hast du nicht iobroker da installiert wo es hin gehört.
                          iobroker gehört in /opt/iobroker und nicht wo anders.
                          Sonst funktionieren viele Skipts nicht.

                          Thomas BraunT 1 Antwort Letzte Antwort
                          0
                          • D deta

                            @Svenson6 so wie es aussieht hast du nicht iobroker da installiert wo es hin gehört.
                            iobroker gehört in /opt/iobroker und nicht wo anders.
                            Sonst funktionieren viele Skipts nicht.

                            Thomas BraunT Online
                            Thomas BraunT Online
                            Thomas Braun
                            Most Active
                            schrieb am zuletzt editiert von
                            #1017

                            @deta
                            Nee der ist offenbar in /home/pi geknallt worden.

                            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 Antwort Letzte Antwort
                            0
                            • S Svenson6

                              Liebe Leute,
                              auch von mir nochmal ein herzliches Dankeschön für Eure Arbeit! ioBroker läuft bei mir seit einigen Wochen, und es hat viel Spaß gemacht, sich da reinzufuchsen.

                              Jetzt aber bin ich am Ende meiner ohnehin knapp bemessenen Weisheit angelangt. ioBroker teilt mir mit, dass ein neuer js-controller zur Verfügung steht, und ich scheitere am Update. Nebenbei bin ich nicht mehr in der Lage, Adapter-Updates durchzuführen, die tauchen ständig in der alten Version wieder auf. Ob das was miteinander zu tun hat, könnt Ihr vielleicht beurteilen. Jetzt aber erst einmal zum js-controller.

                              Was ich hier habe: Einen Raspberry Pi 4 mit Raspbian und ioBroker drauf. Unter „Hosts“ wird gemeldet:

                              raspberrypi4

                              • Typ: js-controller
                              • Titel: JS controller
                              • OS: linux
                              • Verfügbar: 3.1.4
                              • Installiert: 2.2.9
                              • Ereignisse: ↦28 / ↦13

                              Wie hier im Thread beschrieben, führe ich Folgendes aus:

                              pi@raspberrypi4:~ $ iobroker stop
                              pi@raspberrypi4:~ $ iobroker upgrade self
                              Update js-controller from @2.2.9 to @3.1.4
                              NPM version: 6.14.4
                              npm install iobroker.js-controller@3.1.4 --unsafe-perm --loglevel error --prefix "/opt/iobroker" (System call)
                              Package pangocairo was not found in the pkg-config search path.
                              Perhaps you should add the directory containing `pangocairo.pc'
                              to the PKG_CONFIG_PATH environment variable
                              No package 'pangocairo' found
                              gyp: Call to 'pkg-config pangocairo --libs' returned exit status 1 while in binding.gyp. while trying to load binding.gyp
                              gyp ERR! configure error 
                              gyp ERR! stack Error: `gyp` failed with exit code: 1
                              gyp ERR! stack     at ChildProcess.onCpExit (/usr/lib/node_modules/npm/node_modules/node-gyp/lib/configure.js:351:16)
                              gyp ERR! stack     at ChildProcess.emit (events.js:198:13)
                              gyp ERR! stack     at Process.ChildProcess._handle.onexit (internal/child_process.js:248:12)
                              gyp ERR! System Linux 4.19.97-v7l+
                              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=6" "--node_abi_napi=napi" "--napi_build_version=0" "--node_napi_label=node-v64"
                              gyp ERR! cwd /opt/iobroker/node_modules/canvas
                              gyp ERR! node -v v10.20.1
                              gyp ERR! node-gyp -v v5.1.0
                              gyp 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=6 --node_abi_napi=napi --napi_build_version=0 --node_napi_label=node-v64' (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 ChildProcess.emit (events.js:198:13)
                              node-pre-gyp ERR! stack     at maybeClose (internal/child_process.js:982:16)
                              node-pre-gyp ERR! stack     at Process.ChildProcess._handle.onexit (internal/child_process.js:259:5)
                              node-pre-gyp ERR! System Linux 4.19.97-v7l+
                              node-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/canvas
                              node-pre-gyp ERR! node -v v10.20.1
                              node-pre-gyp ERR! node-pre-gyp -v v0.11.0
                              node-pre-gyp ERR! not ok 
                              npm ERR! code ELIFECYCLE
                              npm ERR! errno 1
                              npm ERR! canvas@2.6.1 install: `node-pre-gyp install --fallback-to-build`
                              npm ERR! Exit status 1
                              npm ERR! 
                              npm ERR! Failed at the canvas@2.6.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!     /home/iobroker/.npm/_logs/2020-05-16T13_48_01_236Z-debug.log
                              Starting node restart.js
                              pi@raspberrypi4:~ $ iobroker start
                              pi@raspberrypi4:~ $
                              

                              „ERR!“ klingt schon mal nicht gut, aber ich kann mit den Meldungen, offen gestanden, nicht viel anfangen. Jedenfalls startet der ioBroker nun, ich bekomme eine Telegram-Nachricht, dass der Start erfolgt ist. Ich kann mich dann auch auf der Benutzeroberfläche anmelden, aber kurz danach ist Feierabend. Da dreht sich nur noch die „Sanduhr“, und nach einen Reload meldet der Browser:

                              Firefox kann keine Verbindung zu dem Server unter 192.168.178.100:8081 aufbauen.

                              Ich habe den Raspberry sicherheitshalber mal neu gestartet, aber nix geht mehr. Oben stand, man solle den Fixer mal laufen lassen:

                              pi@raspberrypi4:~ $ iobroker fix
                              library: loaded
                              Library version=2020-04-12
                              ioBroker is not installed in /opt/iobroker! Cannot fix anything...
                              pi@raspberrypi4:~ $
                              

                              Hört sich wieder nicht gut an, finde ich. Dann mal den Befehl von oben probiert:

                              pi@raspberrypi4:~ $ 
                              pi@raspberrypi4:~ $ sudo -H -u iobroker npm install iobroker.js-controller
                              npm WARN checkPermissions Missing write access to /home/pi/node_modules/@iobroker
                              npm WARN checkPermissions Missing write access to /home/pi/node_modules/@types
                              npm WARN checkPermissions Missing write access to /home/pi/node_modules
                              npm WARN optional SKIPPING OPTIONAL DEPENDENCY: fsevents@~2.1.2 (node_modules/chokidar/node_modules/fsevents):
                              npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for fsevents@2.1.3: wanted {"os":"darwin","arch":"any"} (current: {"os":"linux","arch":"arm"})
                              npm WARN enoent ENOENT: no such file or directory, open '/home/pi/package.json'
                              npm WARN pi No description
                              npm WARN pi No repository field.
                              npm WARN pi No README data
                              npm WARN pi No license field.
                              
                              npm ERR! code EACCES
                              npm ERR! syscall access
                              npm ERR! path /home/pi/node_modules/@iobroker
                              npm ERR! errno -13
                              npm ERR! Error: EACCES: permission denied, access '/home/pi/node_modules/@iobroker'
                              npm ERR!  { [Error: EACCES: permission denied, access '/home/pi/node_modules/@iobroker']
                              npm ERR!   stack:
                              npm ERR!    'Error: EACCES: permission denied, access \'/home/pi/node_modules/@iobroker\'',
                              npm ERR!   errno: -13,
                              npm ERR!   code: 'EACCES',
                              npm ERR!   syscall: 'access',
                              npm ERR!   path: '/home/pi/node_modules/@iobroker' }
                              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/2020-05-16T13_55_56_189Z-debug.log
                              pi@raspberrypi4:~ $ iobroker start
                              pi@raspberrypi4:~ $ iobroker fix
                              library: loaded
                              Library version=2020-04-12
                              ioBroker is not installed in /opt/iobroker! Cannot fix anything...
                              pi@raspberrypi4:~ $ sudo shutdown -r 0
                              Shutdown scheduled for Sat 2020-05-16 15:56:31 CEST, use 'shutdown -c' to cancel.
                              pi@raspberrypi4:~ $ Connection to 192.168.178.100 closed by remote host.
                              Connection to 192.168.178.100 closed.
                              Sven@Svens-iMac-361 ~ %
                              

                              Maschine kaputt. Jetzt ein paar Befehle, die ich unter [https://www.iobroker.net/docu/index-26.htm?page_id=3928&lang=de] gefunden habe:

                              pi@raspberrypi4:~ $ cd /opt/iobroker
                              pi@raspberrypi4:/opt/iobroker $ iobroker stop
                              pi@raspberrypi4:/opt/iobroker $ npm install iobroker.js-controller
                              
                              > iobroker.js-controller@2.2.9 preinstall /opt/iobroker/node_modules/iobroker.js-controller
                              > node lib/preinstallCheck.js
                              
                              NPM version: 6.14.4
                              
                              > canvas@2.6.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 Tried to download(404): https://github.com/node-gfx/node-canvas-prebuilt/releases/download/v2.6.1/canvas-v2.6.1-node-v64-linux-glibc-arm.tar.gz 
                              node-pre-gyp WARN Pre-built binaries not found for canvas@2.6.1 and node@10.20.1 (node-v64 ABI, glibc) (falling back to source compile with node-gyp) 
                              Package pangocairo was not found in the pkg-config search path.
                              Perhaps you should add the directory containing `pangocairo.pc'
                              to the PKG_CONFIG_PATH environment variable
                              No package 'pangocairo' found
                              gyp: Call to 'pkg-config pangocairo --libs' returned exit status 1 while in binding.gyp. while trying to load binding.gyp
                              gyp ERR! configure error 
                              gyp ERR! stack Error: `gyp` failed with exit code: 1
                              gyp ERR! stack     at ChildProcess.onCpExit (/usr/lib/node_modules/npm/node_modules/node-gyp/lib/configure.js:351:16)
                              gyp ERR! stack     at ChildProcess.emit (events.js:198:13)
                              gyp ERR! stack     at Process.ChildProcess._handle.onexit (internal/child_process.js:248:12)
                              gyp ERR! System Linux 4.19.97-v7l+
                              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=6" "--node_abi_napi=napi" "--napi_build_version=0" "--node_napi_label=node-v64"
                              gyp ERR! cwd /opt/iobroker/node_modules/canvas
                              gyp ERR! node -v v10.20.1
                              gyp ERR! node-gyp -v v5.1.0
                              gyp 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=6 --node_abi_napi=napi --napi_build_version=0 --node_napi_label=node-v64' (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 ChildProcess.emit (events.js:198:13)
                              node-pre-gyp ERR! stack     at maybeClose (internal/child_process.js:982:16)
                              node-pre-gyp ERR! stack     at Process.ChildProcess._handle.onexit (internal/child_process.js:259:5)
                              node-pre-gyp ERR! System Linux 4.19.97-v7l+
                              node-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/canvas
                              node-pre-gyp ERR! node -v v10.20.1
                              node-pre-gyp ERR! node-pre-gyp -v v0.11.0
                              node-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=6 --node_abi_napi=napi --napi_build_version=0 --node_napi_label=node-v64' (1)
                              npm WARN optional SKIPPING OPTIONAL DEPENDENCY: fsevents@~2.1.2 (node_modules/chokidar/node_modules/fsevents):
                              npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for fsevents@2.1.3: wanted {"os":"darwin","arch":"any"} (current: {"os":"linux","arch":"arm"})
                              npm WARN optional SKIPPING OPTIONAL DEPENDENCY: osx-temperature-sensor@1.0.5 (node_modules/osx-temperature-sensor):
                              npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for osx-temperature-sensor@1.0.5: wanted {"os":"darwin","arch":"any"} (current: {"os":"linux","arch":"arm"})
                              
                              npm ERR! code ELIFECYCLE
                              npm ERR! errno 1
                              npm ERR! canvas@2.6.1 install: `node-pre-gyp install --fallback-to-build`
                              npm ERR! Exit status 1
                              npm ERR! 
                              npm ERR! Failed at the canvas@2.6.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!     /home/iobroker/.npm/_logs/2020-05-16T13_59_27_777Z-debug.log
                              pi@raspberrypi4:/opt/iobroker $ iobroker start
                              pi@raspberrypi4:/opt/iobroker $
                              

                              Und siehe da: Da sind wir wieder. ioBroker startet, ich kann mich anmelden, es funktioniert wieder. Allerdings steht unter Host wieder:

                              raspberrypi4

                              • Typ: js-controller
                              • Titel: JS controller
                              • OS: linux
                              • Verfügbar: 3.1.4
                              • Installiert: 2.2.9
                              • Ereignisse: ↦28 / ↦13

                              Ich bin also wieder da, wo ich angefangen habe. Das kann ich beliebig oft wiederholen, bringen tut das alles nix. Bestimmt machen ich nur ein paar peinliche Anfängerfehler, aber … Könnte mir wohl jemand einen Tipp geben, wie ich das in den Griff bekomme?

                              Viele Grüße von
                              Sven

                              BBTownB Offline
                              BBTownB Offline
                              BBTown
                              schrieb am zuletzt editiert von
                              #1018

                              @Svenson6
                              So wie ich das auf dem ersten Blick sehe hast Du den wichtigsten Schritt - der in absolut jeder Beschreibung auftaucht - nicht vollzogen ... das ganze auch im richtigen Verzeichnis auszuführen.

                              cd /opt/iobroker
                              

                              Um zu prüfen wie deine aktuelle Umgebung nun ausschaut benötigen wir die Ausgabe der folgenden Befehle

                              node -v && nodejs -v && npm -v
                              which node && which nodejs && which npm
                              

                              ioBroker auf NUC (VM debian v13 (Trixie ), node v22.21.0 npm v10.9.4, js-controller v7.0.7 jsonl/jsonl / HomeMatic CCU-2 (Wired und Funk) / Philips HUE / echo.DOT / Broadlink RM pro / SONOS

                              1 Antwort Letzte Antwort
                              0
                              • S Offline
                                S Offline
                                Svenson6
                                schrieb am zuletzt editiert von
                                #1019

                                Okay, das zum Thema Anfängerfehler. Dann werde ich das gleich nochmal probieren.

                                Hier auf jeden Fall schon mal die Ergebnisse der beiden Befehle:

                                pi@raspberrypi4:/opt/iobroker $ node -v && nodejs -v && npm -v
                                v10.20.1
                                v10.20.1
                                6.14.4
                                pi@raspberrypi4:/opt/iobroker $ which node && which nodejs && which npm
                                /usr/bin/node
                                /usr/bin/nodejs
                                /usr/bin/npm
                                pi@raspberrypi4:/opt/iobroker $
                                
                                Thomas BraunT 1 Antwort Letzte Antwort
                                0
                                • S Svenson6

                                  Okay, das zum Thema Anfängerfehler. Dann werde ich das gleich nochmal probieren.

                                  Hier auf jeden Fall schon mal die Ergebnisse der beiden Befehle:

                                  pi@raspberrypi4:/opt/iobroker $ node -v && nodejs -v && npm -v
                                  v10.20.1
                                  v10.20.1
                                  6.14.4
                                  pi@raspberrypi4:/opt/iobroker $ which node && which nodejs && which npm
                                  /usr/bin/node
                                  /usr/bin/nodejs
                                  /usr/bin/npm
                                  pi@raspberrypi4:/opt/iobroker $
                                  
                                  Thomas BraunT Online
                                  Thomas BraunT Online
                                  Thomas Braun
                                  Most Active
                                  schrieb am zuletzt editiert von Thomas Braun
                                  #1020

                                  @Svenson6

                                  ls -la /usr/bin/iobroker
                                  ls -la /opt/
                                  

                                  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 Antwort Letzte Antwort
                                  0
                                  • S Offline
                                    S Offline
                                    Svenson6
                                    schrieb am zuletzt editiert von
                                    #1021

                                    @Thomas-Braun said in js-controller 3.0/3.1 jetzt im Latest!:

                                    ls -la /opt/

                                    pi@raspberrypi4:/opt/iobroker $ ls -la /usr/bin/iobroker
                                    lrwxrwxrwx 1 root root 22 Mai 16 13:27 /usr/bin/iobroker -> /opt/iobroker/iobroker
                                    pi@raspberrypi4:/opt/iobroker $ ls -la /opt/
                                    insgesamt 20
                                    drwxr-xr-x   5 root     root     4096 Mär 20 10:28 .
                                    drwxr-xr-x  21 root     root     4096 Mär 18 20:51 ..
                                    drwxrwxr-x+  9 iobroker iobroker 4096 Mai 16 17:00 iobroker
                                    drwxr-xr-x   3 root     root     4096 Feb 13 17:01 pigpio
                                    drwxr-xr-x   6 root     root     4096 Feb 13 16:56 vc
                                    
                                    Thomas BraunT 1 Antwort Letzte Antwort
                                    0
                                    • S Svenson6

                                      @Thomas-Braun said in js-controller 3.0/3.1 jetzt im Latest!:

                                      ls -la /opt/

                                      pi@raspberrypi4:/opt/iobroker $ ls -la /usr/bin/iobroker
                                      lrwxrwxrwx 1 root root 22 Mai 16 13:27 /usr/bin/iobroker -> /opt/iobroker/iobroker
                                      pi@raspberrypi4:/opt/iobroker $ ls -la /opt/
                                      insgesamt 20
                                      drwxr-xr-x   5 root     root     4096 Mär 20 10:28 .
                                      drwxr-xr-x  21 root     root     4096 Mär 18 20:51 ..
                                      drwxrwxr-x+  9 iobroker iobroker 4096 Mai 16 17:00 iobroker
                                      drwxr-xr-x   3 root     root     4096 Feb 13 17:01 pigpio
                                      drwxr-xr-x   6 root     root     4096 Feb 13 16:56 vc
                                      
                                      Thomas BraunT Online
                                      Thomas BraunT Online
                                      Thomas Braun
                                      Most Active
                                      schrieb am zuletzt editiert von
                                      #1022

                                      @Svenson6 Das sieht auf den ersten Blick o.k. aus.

                                      ls -la ~
                                      

                                      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

                                      S 1 Antwort Letzte Antwort
                                      0
                                      • Thomas BraunT Thomas Braun

                                        @Svenson6 Das sieht auf den ersten Blick o.k. aus.

                                        ls -la ~
                                        
                                        S Offline
                                        S Offline
                                        Svenson6
                                        schrieb am zuletzt editiert von
                                        #1023

                                        @Thomas-Braun said in js-controller 3.0/3.1 jetzt im Latest!:

                                        ls -la ~

                                        pi@raspberrypi4:~ $ ls -la ~
                                        insgesamt 96948
                                        drwxr-xr-x  20 pi   pi       4096 Mai 16 15:56 .
                                        drwxr-xr-x   4 root root     4096 Mär 20 10:28 ..
                                        -rw-------   1 pi   pi       4696 Mai 16 17:02 .bash_history
                                        -rw-r--r--   1 pi   pi        220 Feb 13 16:55 .bash_logout
                                        -rw-r--r--   1 pi   pi       3633 Mai 16 13:27 .bashrc
                                        drwxr-xr-x   8 pi   pi       4096 Mär 20 10:29 .cache
                                        drwx------   9 pi   pi       4096 Mai  1 09:20 .config
                                        drwxr-xr-x   2 pi   pi       4096 Mär 18 18:22 Desktop
                                        drwxr-xr-x   2 pi   pi       4096 Mär 18 18:22 Documents
                                        drwxr-xr-x   2 pi   pi       4096 Mär 18 18:22 Downloads
                                        drwx------   3 pi   pi       4096 Feb 13 17:16 .gnupg
                                        -rw-r--r--   1 pi   pi   35583874 Mär 20 15:21 grafana_6.7.1_armhf.deb
                                        -rw-r--r--   1 pi   pi   63480656 Feb  7 08:29 influxdb_1.7.10_amd64.deb
                                        -rw-r--r--   1 pi   pi        169 Mär 22 16:01 .influx_history
                                        drwxr-xr-x   2 pi   pi       4096 Mär 20 10:30 .iobroker
                                        drwxr-xr-x   3 pi   pi       4096 Feb 13 17:03 .local
                                        drwxr-xr-x   2 pi   pi       4096 Feb 13 17:03 MagPi
                                        drwxr-xr-x   2 pi   pi       4096 Mär 18 18:22 Music
                                        drwxr-xr-x 144 pi   pi       4096 Mai  9 10:13 node_modules
                                        drwxr-xr-x   5 pi   pi       4096 Mai  9 10:13 .npm
                                        -rw-------   1 pi   pi         36 Mär 20 10:28 .npmrc
                                        -rw-r--r--   1 pi   pi      45978 Mai  9 10:13 package-lock.json
                                        drwxr-xr-x   2 pi   pi       4096 Mär 18 18:22 Pictures
                                        drwx------   3 pi   pi       4096 Mär 18 20:52 .pki
                                        -rw-r--r--   1 pi   pi        807 Feb 13 16:55 .profile
                                        drwxr-xr-x   2 pi   pi       4096 Mär 18 18:22 Public
                                        drwxr-xr-x   2 pi   pi       4096 Mär 18 18:22 Templates
                                        drwxr-xr-t   2 pi   pi       4096 Mär 18 18:22 thinclient_drives
                                        drwxr-xr-x   2 pi   pi       4096 Mär 18 18:22 Videos
                                        -rw-------   1 pi   pi        172 Mai  9 09:49 .Xauthority
                                        -rw-r--r--   1 pi   pi      15717 Mai  1 10:54 .xorgxrdp.10.log
                                        -rw-r--r--   1 pi   pi      15531 Mai  1 10:30 .xorgxrdp.10.log.old
                                        -rw-------   1 pi   pi       2499 Mai  1 11:46 .xsession-errors
                                        -rw-------   1 pi   pi       2499 Mai  1 11:07 .xsession-errors.old
                                        
                                        Thomas BraunT 1 Antwort Letzte Antwort
                                        0
                                        • S Offline
                                          S Offline
                                          Svenson6
                                          schrieb am zuletzt editiert von
                                          #1024

                                          Ich habe es jetzt nochmal aus dem Verzeichnis /opt/iobroker heraus versucht. So sieht's aus:

                                          pi@raspberrypi4:/opt/iobroker $ cd /opt/iobroker
                                          pi@raspberrypi4:/opt/iobroker $ iobroker stop
                                          pi@raspberrypi4:/opt/iobroker $ iobroker upgrade self
                                          Update js-controller from @2.2.9 to @3.1.4
                                          NPM version: 6.14.4
                                          npm install iobroker.js-controller@3.1.4 --unsafe-perm --loglevel error --prefix "/opt/iobroker" (System call)
                                          Package pangocairo was not found in the pkg-config search path.
                                          Perhaps you should add the directory containing `pangocairo.pc'
                                          to the PKG_CONFIG_PATH environment variable
                                          No package 'pangocairo' found
                                          gyp: Call to 'pkg-config pangocairo --libs' returned exit status 1 while in binding.gyp. while trying to load binding.gyp
                                          gyp ERR! configure error 
                                          gyp ERR! stack Error: `gyp` failed with exit code: 1
                                          gyp ERR! stack     at ChildProcess.onCpExit (/usr/lib/node_modules/npm/node_modules/node-gyp/lib/configure.js:351:16)
                                          gyp ERR! stack     at ChildProcess.emit (events.js:198:13)
                                          gyp ERR! stack     at Process.ChildProcess._handle.onexit (internal/child_process.js:248:12)
                                          gyp ERR! System Linux 4.19.97-v7l+
                                          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=6" "--node_abi_napi=napi" "--napi_build_version=0" "--node_napi_label=node-v64"
                                          gyp ERR! cwd /opt/iobroker/node_modules/canvas
                                          gyp ERR! node -v v10.20.1
                                          gyp ERR! node-gyp -v v5.1.0
                                          gyp 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=6 --node_abi_napi=napi --napi_build_version=0 --node_napi_label=node-v64' (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 ChildProcess.emit (events.js:198:13)
                                          node-pre-gyp ERR! stack     at maybeClose (internal/child_process.js:982:16)
                                          node-pre-gyp ERR! stack     at Process.ChildProcess._handle.onexit (internal/child_process.js:259:5)
                                          node-pre-gyp ERR! System Linux 4.19.97-v7l+
                                          node-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/canvas
                                          node-pre-gyp ERR! node -v v10.20.1
                                          node-pre-gyp ERR! node-pre-gyp -v v0.11.0
                                          node-pre-gyp ERR! not ok 
                                          npm ERR! code ELIFECYCLE
                                          npm ERR! errno 1
                                          npm ERR! canvas@2.6.1 install: `node-pre-gyp install --fallback-to-build`
                                          npm ERR! Exit status 1
                                          npm ERR! 
                                          npm ERR! Failed at the canvas@2.6.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!     /home/iobroker/.npm/_logs/2020-05-16T14_56_08_759Z-debug.log
                                          Starting node restart.js
                                          pi@raspberrypi4:/opt/iobroker $ iobroker start
                                          pi@raspberrypi4:/opt/iobroker $ sudo -H -u iobroker npm install iobroker.js-controller
                                          
                                          > iobroker.js-controller@2.2.9 preinstall /opt/iobroker/node_modules/iobroker.js-controller
                                          > node lib/preinstallCheck.js
                                          
                                          NPM version: 6.14.4
                                          
                                          > unix-dgram@2.0.3 install /opt/iobroker/node_modules/unix-dgram
                                          > node-gyp rebuild
                                          
                                          make: Verzeichnis „/opt/iobroker/node_modules/unix-dgram/build“ wird betreten
                                            CXX(target) Release/obj.target/unix_dgram/src/unix_dgram.o
                                          In file included from ../src/unix_dgram.cc:5:
                                          ../../nan/nan.h: In function ‘void Nan::AsyncQueueWorker(Nan::AsyncWorker*)’:
                                          ../../nan/nan.h:2298:62: warning: cast between incompatible function types from ‘void (*)(uv_work_t*)’ {aka ‘void (*)(uv_work_s*)’} to ‘uv_after_work_cb’ {aka ‘void (*)(uv_work_s*, int)’} [-Wcast-function-type]
                                               , reinterpret_cast<uv_after_work_cb>(AsyncExecuteComplete)
                                                                                                        ^
                                          In file included from ../../nan/nan.h:54,
                                                           from ../src/unix_dgram.cc:5:
                                          ../src/unix_dgram.cc: At global scope:
                                          /home/iobroker/.cache/node-gyp/10.20.1/include/node/node.h:573:43: warning: cast between incompatible function types from ‘void (*)(v8::Local<v8::Object>)’ to ‘node::addon_register_func’ {aka ‘void (*)(v8::Local<v8::Object>, v8::Local<v8::Value>, void*)’} [-Wcast-function-type]
                                                 (node::addon_register_func) (regfunc),                          \
                                                                                     ^
                                          /home/iobroker/.cache/node-gyp/10.20.1/include/node/node.h:607:3: note: in expansion of macro ‘NODE_MODULE_X’
                                             NODE_MODULE_X(modname, regfunc, NULL, 0)  // NOLINT (readability/null_usage)
                                             ^~~~~~~~~~~~~
                                          ../src/unix_dgram.cc:404:1: note: in expansion of macro ‘NODE_MODULE’
                                           NODE_MODULE(unix_dgram, Initialize)
                                           ^~~~~~~~~~~
                                          In file included from /home/iobroker/.cache/node-gyp/10.20.1/include/node/node.h:63,
                                                           from ../../nan/nan.h:54,
                                                           from ../src/unix_dgram.cc:5:
                                          /home/iobroker/.cache/node-gyp/10.20.1/include/node/v8.h: In instantiation of ‘void v8::PersistentBase<T>::SetWeak(P*, typename v8::WeakCallbackInfo<P>::Callback, v8::WeakCallbackType) [with P = node::ObjectWrap; T = v8::Object; typename v8::WeakCallbackInfo<P>::Callback = void (*)(const v8::WeakCallbackInfo<node::ObjectWrap>&)]’:
                                          /home/iobroker/.cache/node-gyp/10.20.1/include/node/node_object_wrap.h:84:78:   required from here
                                          /home/iobroker/.cache/node-gyp/10.20.1/include/node/v8.h:9502:16: warning: cast between incompatible function types from ‘v8::WeakCallbackInfo<node::ObjectWrap>::Callback’ {aka ‘void (*)(const v8::WeakCallbackInfo<node::ObjectWrap>&)’} to ‘Callback’ {aka ‘void (*)(const v8::WeakCallbackInfo<void>&)’} [-Wcast-function-type]
                                                          reinterpret_cast<Callback>(callback), type);
                                                          ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
                                          /home/iobroker/.cache/node-gyp/10.20.1/include/node/v8.h: In instantiation of ‘void v8::PersistentBase<T>::SetWeak(P*, typename v8::WeakCallbackInfo<P>::Callback, v8::WeakCallbackType) [with P = Nan::ObjectWrap; T = v8::Object; typename v8::WeakCallbackInfo<P>::Callback = void (*)(const v8::WeakCallbackInfo<Nan::ObjectWrap>&)]’:
                                          ../../nan/nan_object_wrap.h:65:61:   required from here
                                          /home/iobroker/.cache/node-gyp/10.20.1/include/node/v8.h:9502:16: warning: cast between incompatible function types from ‘v8::WeakCallbackInfo<Nan::ObjectWrap>::Callback’ {aka ‘void (*)(const v8::WeakCallbackInfo<Nan::ObjectWrap>&)’} to ‘Callback’ {aka ‘void (*)(const v8::WeakCallbackInfo<void>&)’} [-Wcast-function-type]
                                            SOLINK_MODULE(target) Release/obj.target/unix_dgram.node
                                            COPY Release/unix_dgram.node
                                          make: Verzeichnis „/opt/iobroker/node_modules/unix-dgram/build“ wird verlassen
                                          
                                          > ursa-optional@0.9.10 install /opt/iobroker/node_modules/ursa-optional
                                          > node rebuild.js
                                          
                                          
                                          > diskusage@1.1.3 install /opt/iobroker/node_modules/diskusage
                                          > node-gyp rebuild
                                          
                                          make: Verzeichnis „/opt/iobroker/node_modules/diskusage/build“ wird betreten
                                            CXX(target) Release/obj.target/diskusage/src/main.o
                                          In file included from ../src/main.cpp:3:
                                          ../../nan/nan.h: In function ‘void Nan::AsyncQueueWorker(Nan::AsyncWorker*)’:
                                          ../../nan/nan.h:2298:62: warning: cast between incompatible function types from ‘void (*)(uv_work_t*)’ {aka ‘void (*)(uv_work_s*)’} to ‘uv_after_work_cb’ {aka ‘void (*)(uv_work_s*, int)’} [-Wcast-function-type]
                                               , reinterpret_cast<uv_after_work_cb>(AsyncExecuteComplete)
                                                                                                        ^
                                          In file included from ../../nan/nan.h:54,
                                                           from ../src/main.cpp:3:
                                          ../src/main.cpp: At global scope:
                                          /home/iobroker/.cache/node-gyp/10.20.1/include/node/node.h:573:43: warning: cast between incompatible function types from ‘void (*)(v8::Local<v8::Object>)’ to ‘node::addon_register_func’ {aka ‘void (*)(v8::Local<v8::Object>, v8::Local<v8::Value>, void*)’} [-Wcast-function-type]
                                                 (node::addon_register_func) (regfunc),                          \
                                                                                     ^
                                          /home/iobroker/.cache/node-gyp/10.20.1/include/node/node.h:607:3: note: in expansion of macro ‘NODE_MODULE_X’
                                             NODE_MODULE_X(modname, regfunc, NULL, 0)  // NOLINT (readability/null_usage)
                                             ^~~~~~~~~~~~~
                                          ../src/main.cpp:42:1: note: in expansion of macro ‘NODE_MODULE’
                                           NODE_MODULE(diskusage, Init)
                                           ^~~~~~~~~~~
                                          In file included from /home/iobroker/.cache/node-gyp/10.20.1/include/node/node.h:63,
                                                           from ../../nan/nan.h:54,
                                                           from ../src/main.cpp:3:
                                          /home/iobroker/.cache/node-gyp/10.20.1/include/node/v8.h: In instantiation of ‘void v8::PersistentBase<T>::SetWeak(P*, typename v8::WeakCallbackInfo<P>::Callback, v8::WeakCallbackType) [with P = node::ObjectWrap; T = v8::Object; typename v8::WeakCallbackInfo<P>::Callback = void (*)(const v8::WeakCallbackInfo<node::ObjectWrap>&)]’:
                                          /home/iobroker/.cache/node-gyp/10.20.1/include/node/node_object_wrap.h:84:78:   required from here
                                          /home/iobroker/.cache/node-gyp/10.20.1/include/node/v8.h:9502:16: warning: cast between incompatible function types from ‘v8::WeakCallbackInfo<node::ObjectWrap>::Callback’ {aka ‘void (*)(const v8::WeakCallbackInfo<node::ObjectWrap>&)’} to ‘Callback’ {aka ‘void (*)(const v8::WeakCallbackInfo<void>&)’} [-Wcast-function-type]
                                                          reinterpret_cast<Callback>(callback), type);
                                                          ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
                                          /home/iobroker/.cache/node-gyp/10.20.1/include/node/v8.h: In instantiation of ‘void v8::PersistentBase<T>::SetWeak(P*, typename v8::WeakCallbackInfo<P>::Callback, v8::WeakCallbackType) [with P = Nan::ObjectWrap; T = v8::Object; typename v8::WeakCallbackInfo<P>::Callback = void (*)(const v8::WeakCallbackInfo<Nan::ObjectWrap>&)]’:
                                          ../../nan/nan_object_wrap.h:65:61:   required from here
                                          /home/iobroker/.cache/node-gyp/10.20.1/include/node/v8.h:9502:16: warning: cast between incompatible function types from ‘v8::WeakCallbackInfo<Nan::ObjectWrap>::Callback’ {aka ‘void (*)(const v8::WeakCallbackInfo<Nan::ObjectWrap>&)’} to ‘Callback’ {aka ‘void (*)(const v8::WeakCallbackInfo<void>&)’} [-Wcast-function-type]
                                            CXX(target) Release/obj.target/diskusage/src/diskusage_posix.o
                                            SOLINK_MODULE(target) Release/obj.target/diskusage.node
                                            COPY Release/diskusage.node
                                          make: Verzeichnis „/opt/iobroker/node_modules/diskusage/build“ wird verlassen
                                          
                                          > iobroker.js-controller@2.2.9 install /opt/iobroker/node_modules/iobroker.js-controller
                                          > node iobroker.js setup first
                                          
                                          object 0_userdata.0.example_state created
                                          
                                          The following notifications happened during sync: 
                                          - Ignoring Directory "bshb.admin" because officially not created as meta object. Please remove directory!
                                          - Ignoring Directory "fritzdect.admin" because officially not created as meta object. Please remove directory!
                                          - Ignoring Directory "sayit.0" because officially not created as meta object. Please remove directory!
                                          
                                          
                                          > acme-v2@1.8.6 postinstall /opt/iobroker/node_modules/acme-v2
                                          > node scripts/postinstall
                                          
                                          
                                          Greenlock and ACME.js v3 are on the way!
                                          Watch for updates at https://indiegogo.com/at/greenlock
                                          
                                          npm WARN optional SKIPPING OPTIONAL DEPENDENCY: fsevents@~2.1.2 (node_modules/chokidar/node_modules/fsevents):
                                          npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for fsevents@2.1.3: wanted {"os":"darwin","arch":"any"} (current: {"os":"linux","arch":"arm"})
                                          
                                          + iobroker.js-controller@2.2.9
                                          added 126 packages from 148 contributors and removed 1 package in 54.635s
                                          
                                          41 packages are looking for funding
                                            run `npm fund` for details
                                          
                                          pi@raspberrypi4:/opt/iobroker $ iobroker start
                                          

                                          Aber danach bin ich wieder auf Version 2.2.9.

                                          1 Antwort Letzte Antwort
                                          0
                                          Antworten
                                          • In einem neuen Thema antworten
                                          Anmelden zum Antworten
                                          • Älteste zuerst
                                          • Neuste zuerst
                                          • Meiste Stimmen


                                          Support us

                                          ioBroker
                                          Community Adapters
                                          Donate
                                          FAQ Cloud / IOT
                                          HowTo: Node.js-Update
                                          HowTo: Backup/Restore
                                          Downloads
                                          BLOG

                                          607

                                          Online

                                          32.4k

                                          Benutzer

                                          81.4k

                                          Themen

                                          1.3m

                                          Beiträge
                                          Community
                                          Impressum | Datenschutz-Bestimmungen | Nutzungsbedingungen | Einwilligungseinstellungen
                                          ioBroker Community 2014-2025
                                          logo
                                          • Anmelden

                                          • Du hast noch kein Konto? Registrieren

                                          • Anmelden oder registrieren, um zu suchen
                                          • Erster Beitrag
                                            Letzter Beitrag
                                          0
                                          • Home
                                          • Aktuell
                                          • Tags
                                          • Ungelesen 0
                                          • Kategorien
                                          • Unreplied
                                          • Beliebt
                                          • GitHub
                                          • Docu
                                          • Hilfe