Navigation

    Logo
    • Register
    • Login
    • Search
    • Recent
    • Tags
    • Unread
    • Categories
    • Unreplied
    • Popular
    • GitHub
    • Docu
    • Hilfe
    1. Home
    2. Deutsch
    3. Error/Bug
    4. node-red fenster nach update auf 2.4.0

    NEWS

    • Neuer Blog: Fotos und Eindrücke aus Solingen

    • ioBroker@Smart Living Forum Solingen, 14.06. - Agenda added

    • ioBroker goes Matter ... Matter Adapter in Stable

    node-red fenster nach update auf 2.4.0

    This topic has been deleted. Only users with topic management privileges can see it.
    • mickym
      mickym Most Active @Thomas Braun last edited by mickym

      @thomas-braun Na nur weil ich mal eine Fehlerkorrektur mit eingebracht habe, muss man ja nicht gleich von ganz "krummen" Betaversionen sprechen. 😉

      9177a8f0-877a-4a13-bca0-6d436dadb260-image.png

      @fournierrf5

      Und wenn es halt gar nicht mehr tut und Dein System sich nur noch merkwürdig verhält - dann mach halt via backitup Adapter ein Backup und mach ein neues OS Image mit bullseye und Node 14 - installiere iobroker neu - das funktioniert bei mir tadellos. Ich mach allerdings auch keine Spielereien mit Anmeldung etc - im internen Netz.

      Thomas Braun 1 Reply Last reply Reply Quote 0
      • J
        Jan1 @Thomas Braun last edited by

        @thomas-braun sagte in node-red fenster nach update auf 2.4.0:

        NPM version: 8.1.0

        Ich glaube er meint die NPM Version 🙂

        mickym 1 Reply Last reply Reply Quote 0
        • mickym
          mickym Most Active @Jan1 last edited by

          @jan1 Ach so - Danke 🙂

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

            @thomas-braun bei mir kommen immerhin die serialport Meldungen 😉

            Ebenfalls aus dem Installationsfenster kopiert

            $ iobroker add node-red --host raspberrypi
            
            NPM version: 6.14.15
            
            npm install iobroker.node-red@2.4.0 --loglevel error --unsafe-perm --prefix "/opt/iobroker" (System call)
            
            node-aead-crypto not needed on this system, since all ciphers are natively supported
            
            ../src/linux/BluetoothSerialPort.cc:18:14: error: variable or field ‘InitAll’ declared void
            
            void InitAll(Handle<Object> exports) { ^~~~~~../src/linux/BluetoothSerialPort.cc:18:14: error: ‘Handle’ was not declared in this scope
            
            ../src/linux/BluetoothSerialPort.cc:18:14: note: suggested alternative: ‘rand_r’
            
            void InitAll(Handle<Object> exports) { ^~~~~~ rand_r../src/linux/BluetoothSerialPort.cc:18:27: error: expected primary-expression before ‘>’ token void InitAll(Handle<Object> exports) { ^../src/linux/BluetoothSerialPort.cc:18:29: error: ‘exports’ was not declared in this scope void InitAll(Handle<Object> exports) { ^~~~~~~
            
            In file included from ../src/linux/BluetoothSerialPort.cc:12:../src/linux/BluetoothSerialPort.cc:23:34: error: ‘InitAll’ was not declared in this scope NODE_MODULE(BluetoothSerialPort, InitAll) ^~~~~~~
            
            /home/iobroker/.cache/node-gyp/12.22.7/include/node/node.h:736:36: note: in definition of macro ‘NODE_MODULE_X’ (node::addon_register_func) (regfunc), \ ^~~~~~~../src/linux/BluetoothSerialPort.cc:23:1: note: in expansion of macro ‘NODE_MODULE’ NODE_MODULE(BluetoothSerialPort, InitAll) ^~~~~~~~~~~
            
            make: *** [BluetoothSerialPort.target.mk:115: Release/obj.target/BluetoothSerialPort/src/linux/BluetoothSerialPort.o] Fehler 1
            
            gyp ERR! build error
            
            gyp ERR! stack Error: `make` failed with exit code: 2gyp ERR! stack at ChildProcess.onExit (/usr/lib/node_modules/npm/node_modules/node-gyp/lib/build.js:194:23)gyp ERR! stack at ChildProcess.emit (events.js:314:20)gyp ERR! stack at Process.ChildProcess._handle.onexit (internal/child_process.js:276:12)
            
            gyp ERR! System Linux 5.10.63-v7l+gyp ERR! command "/usr/bin/node" "/usr/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js" "configure" "build"gyp ERR! cwd /opt/iobroker/node_modules/node-bluetoothgyp ERR! node -v v12.22.7
            
            gyp ERR! node-gyp -v v5.1.0gyp ERR! not ok
            
            In file included from ../src/bcrypt_node.cc:1:
            
            ../node_modules/nan/nan.h: In function ‘void Nan::AsyncQueueWorker(Nan::AsyncWorker*)’:../node_modules/nan/nan.h:2232: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 ../node_modules/nan/nan.h:53,
            
            from ../src/bcrypt_node.cc:1:../src/bcrypt_node.cc: At global scope:/home/iobroker/.cache/node-gyp/12.22.7/include/node/node.h:736:43: warning: cast between incompatible function types from ‘void (*)(Nan::ADDON_REGISTER_FUNCTION_ARGS_TYPE)’ {aka ‘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/12.22.7/include/node/node.h:770:3: note: in expansion of macro ‘NODE_MODULE_X’ NODE_MODULE_X(modname, regfunc, NULL, 0) // NOLINT (readability/null_usage) ^~~~~~~~~~~~~../src/bcrypt_node.cc:378:1: note: in expansion of macro ‘NODE_MODULE’ NODE_MODULE(bcrypt_lib, init); ^~~~~~~~~~~
            
            In file included from ../src/bcrypt_node.cc:1:
            
            ../../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/bcrypt_node.cc:1:../src/bcrypt_node.cc: At global scope:/home/iobroker/.cache/node-gyp/12.22.7/include/node/node.h:736:43: warning: cast between incompatible function types from ‘void (*)(Nan::ADDON_REGISTER_FUNCTION_ARGS_TYPE)’ {aka ‘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/12.22.7/include/node/node.h:770:3: note: in expansion of macro ‘NODE_MODULE_X’ NODE_MODULE_X(modname, regfunc, NULL, 0) // NOLINT (readability/null_usage) ^~~~~~~~~~~~~../src/bcrypt_node.cc:359:1: note: in expansion of macro ‘NODE_MODULE’ NODE_MODULE(bcrypt_lib, init); ^~~~~~~~~~~
            
            host.raspberrypi install adapter node-red
            
            upload [14] node-red.admin /opt/iobroker/node_modules/iobroker.node-red/admin/words.js words.js application/javascript
            
            upload [13] node-red.admin /opt/iobroker/node_modules/iobroker.node-red/admin/node-red.png node-red.png image/png
            
            upload [12] node-red.admin /opt/iobroker/node_modules/iobroker.node-red/admin/index_m.html index_m.html text/html
            
            upload [11] node-red.admin /opt/iobroker/node_modules/iobroker.node-red/admin/index.html index.html text/html
            
            upload [10] node-red.admin /opt/iobroker/node_modules/iobroker.node-red/admin/i18n/zh-cn/translations.json i18n/zh-cn/translations.json application/json
            
            upload [9] node-red.admin /opt/iobroker/node_modules/iobroker.node-red/admin/i18n/ru/translations.json i18n/ru/translations.json application/json
            
            upload [8] node-red.admin /opt/iobroker/node_modules/iobroker.node-red/admin/i18n/pt/translations.json i18n/pt/translations.json application/json
            
            upload [7] node-red.admin /opt/iobroker/node_modules/iobroker.node-red/admin/i18n/pl/translations.json i18n/pl/translations.json application/json
            
            upload [6] node-red.admin /opt/iobroker/node_modules/iobroker.node-red/admin/i18n/nl/translations.json i18n/nl/translations.json application/json
            
            upload [5] node-red.admin /opt/iobroker/node_modules/iobroker.node-red/admin/i18n/it/translations.json i18n/it/translations.json application/json
            
            upload [4] node-red.admin /opt/iobroker/node_modules/iobroker.node-red/admin/i18n/fr/translations.json i18n/fr/translations.json application/json
            
            upload [3] node-red.admin /opt/iobroker/node_modules/iobroker.node-red/admin/i18n/es/translations.json i18n/es/translations.json application/json
            
            upload [2] node-red.admin /opt/iobroker/node_modules/iobroker.node-red/admin/i18n/en/translations.json i18n/en/translations.json application/json
            
            upload [1] node-red.admin /opt/iobroker/node_modules/iobroker.node-red/admin/i18n/de/translations.json i18n/de/translations.json application/json
            
            upload [0] node-red.admin /opt/iobroker/node_modules/iobroker.node-red/admin/bcrypt.min.js bcrypt.min.js application/javascript
            
            host.raspberrypi object system.adapter.node-red created/updated
            
            host.raspberrypi create instance node-red
            
            host.raspberrypi object node-red.0 created
            
            host.raspberrypi object system.adapter.node-red.0.logLevel created
            
            host.raspberrypi object system.adapter.node-red.0.sigKill created
            
            host.raspberrypi object system.adapter.node-red.0.eventLoopLag created
            
            host.raspberrypi object system.adapter.node-red.0.outputCount created
            
            host.raspberrypi object system.adapter.node-red.0.inputCount created
            
            host.raspberrypi object system.adapter.node-red.0.uptime created
            
            host.raspberrypi object system.adapter.node-red.0.memRss created
            
            host.raspberrypi object system.adapter.node-red.0.memHeapTotal created
            
            host.raspberrypi object system.adapter.node-red.0.memHeapUsed created
            
            host.raspberrypi object system.adapter.node-red.0.cputime created
            
            host.raspberrypi object system.adapter.node-red.0.cpu created
            
            host.raspberrypi object system.adapter.node-red.0.compactMode created
            
            host.raspberrypi object system.adapter.node-red.0.connected created
            
            host.raspberrypi object system.adapter.node-red.0.alive created
            
            host.raspberrypi object system.adapter.node-red.0 created
            
            Process exited with code 0
            

            und dann auch die Meldung wie bei @fournierrf5

            Das passt dann auch!
            also fehlte bei @fournierrf5 doch eine ganze Menge


            Die Installation ist also nicht das Problem.
            Die ist vollständig installiert

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

              @mickym sagte in node-red fenster nach update auf 2.4.0:

              Na nur weil ich mal eine Fehlerkorrektur mit eingebracht habe, muss man ja nicht gleich von ganz "krummen" Betaversionen sprechen.

              Sorry, das meinte ich nicht. Damit war mein eigenes System gemeint, das im Moment mit nodeJS@17 und npm@8.1.0 läuft.

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

                @homoran sagte in node-red fenster nach update auf 2.4.0:

                und dann auch die Meldung wie bei @fournierrf5
                Das passt dann auch!
                also fehlte bei @fournierrf5 doch eine ganze Menge

                Vielleicht mal node@14 probieren? Weiter raus würde ich aber nicht rudern.

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

                  @thomas-braun sagte in node-red fenster nach update auf 2.4.0:

                  Vielleicht mal node@14 probieren? Weiter raus würde ich aber nicht rudern.

                  Das sollte nicht das Problem sein.
                  ich tippe inzwischen wie @mickym darauf, dass etwas mit seinen Flows nicht stimmt.

                  Da @fournierrf5 aber zum Glück alle Flows (einzeln???) gesichert hat, wäre es IMHO im Moment das sinnvollste den Rat von @mickym zu befolgen und alle zugehörigen Dateien zu löschen, dann den Adapter neu zu installieren und danach die Flows einzeln nacheinander zu importieren, bzw. externe nodes ebenfalls einzeln zu installieren.
                  Sobald dann das Problem wieder auftritt weiß man ja an welchem Flow / node es lag.

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

                    @homoran sagte in node-red fenster nach update auf 2.4.0:

                    Das sollte nicht das Problem sein.
                    ich tippe inzwischen wie @mickym darauf, dass etwas mit seinen Flows nicht stimmt.

                    Da hab ich keine Ahnung von.

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

                      @thomas-braun sagte in node-red fenster nach update auf 2.4.0:

                      Da hab ich keine Ahnung von.

                      ich auch nicht so wirklich, ist aber so wie wenn bei vis ein View, oder gar nur ein Widget, krumm ist, dann kann man gar nichts mehr aufrufen

                      mickym 1 Reply Last reply Reply Quote 0
                      • mickym
                        mickym Most Active @Homoran last edited by mickym

                        @homoran Auch wenn er die Flows nicht einzeln hat - Probleme machen ja dann oft auch die nachinstallierten NOdes.

                        Deshalb war mein Vorschlag - neben dem kompletten neu aufsetzen des Systems und zurückspielen eines Backups - den Adapter erst mal so zu installieren, dass man wenigstens wieder einen funktionierenden Adapter mit einem leeren Flow Fenster hat.

                        Dann kann man über Node-Red auch die letztes flows.json importieren.

                        Bei der Wiederinstallation hat man auch die neuesten Nodes. Das Problem was ich allerdings sehe, wenn man nicht den Palettenmanager im Node-Red nutzt (früher war das zwingend) - ab der Version 2 des Adapter kann man es über die Adapterkonfig machen. Dann hat man allerdings den Nachteil, dass man nicht sieht ob neue Versionen der Nodes exisitieren.

                        Und der apt-Manager erkennt keine Updates für Node-Red Nodes. Ich hab mal gerade bei mir geschaut und gesehen, dass wieder ein paar Updates verfügbar sind, die einem aber so im iobroker nicht angezeigt werden, da dieser die Nodes ja nicht kennt - keine Ahnung ob er die Updates kennt, wenn man nicht den Palettenmanager nutzt.

                        08d5d3fa-89e3-4cb4-93bc-14ef716ea7a5-image.png

                        Deswegen sollte man da auch hin und wieder mal reinschauen, damit einem die Systemumgebung nicht wegläuft und man völlig veraltete Nodes verwendet.

                        @fournierrf5

                        Das wäre übrigens überhaupt eine Idee. Du sagst ja unter Node.js 10 funktioniert alles. Dann schau mal, im Palettenmanager ob Du Nodes updaten kannst bevor Du auf Node.js 12 oder 14 gehst.

                        Ich mache das gerade und im Palettenmanager halt dann auf

                        72e49b59-25da-44b6-853c-3e0fa0ed027a-image.png

                        Zeige Protokoll klicken, dann siehst Du ob der npm richtig arbeitet:

                        -----------------------------------------------------------
                        2021-11-06T17:41:08.905Z Installieren : node-red-contrib-ui-time-scheduler 1.16.1
                        
                        2021-11-06T17:41:08.720Z npm install --no-audit --no-update-notifier --no-fund --save --save-prefix=~ --production node-red-contrib-ui-time-scheduler@1.16.1
                        2021-11-06T17:41:21.407Z [err] npm
                        2021-11-06T17:41:21.407Z [err]  WARN optional SKIPPING OPTIONAL DEPENDENCY: fsevents@1.2.13 (node_modules/fsevents):
                        2021-11-06T17:41:21.407Z [err] npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for fsevents@1.2.13: wanted {"os":"darwin","arch":"any"} (current: {"os":"linux","arch":"arm"})
                        2021-11-06T17:41:21.408Z [err] 
                        2021-11-06T17:41:21.410Z [out] + node-red-contrib-ui-time-scheduler@1.16.1
                        2021-11-06T17:41:21.410Z [out] updated 1 package in 10.665s
                        2021-11-06T17:41:21.443Z rc=0
                        
                        -----------------------------------------------------------
                        2021-11-06T17:41:45.659Z Installieren : node-red-contrib-buffer-parser 3.1.7
                        
                        2021-11-06T17:41:45.403Z npm install --no-audit --no-update-notifier --no-fund --save --save-prefix=~ --production node-red-contrib-buffer-parser@3.1.7
                        2021-11-06T17:41:56.922Z [err] npm
                        2021-11-06T17:41:56.923Z [err]  WARN optional SKIPPING OPTIONAL DEPENDENCY: fsevents@1.2.13 (node_modules/fsevents):
                        2021-11-06T17:41:56.923Z [err] npm 
                        2021-11-06T17:41:56.923Z [err] WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for fsevents@1.2.13: wanted {"os":"darwin","arch":"any"} (current: {"os":"linux","arch":"arm"})
                        2021-11-06T17:41:56.924Z [err] 
                        2021-11-06T17:41:56.926Z [out] + node-red-contrib-buffer-parser@3.1.7
                        2021-11-06T17:41:56.926Z [out] updated 1 package in 9.965s
                        2021-11-06T17:41:56.961Z rc=0
                        
                        -----------------------------------------------------------
                        2021-11-06T17:42:17.690Z Installieren : node-red-contrib-homekit-bridged 1.4.3
                        
                        2021-11-06T17:42:17.428Z npm install --no-audit --no-update-notifier --no-fund --save --save-prefix=~ --production node-red-contrib-homekit-bridged@1.4.3
                        2021-11-06T17:42:43.436Z [err] npm
                        2021-11-06T17:42:43.436Z [err]  WARN optional SKIPPING OPTIONAL DEPENDENCY: fsevents@1.2.13 (node_modules/fsevents):
                        2021-11-06T17:42:43.437Z [err] npm 
                        2021-11-06T17:42:43.437Z [err] WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for fsevents@1.2.13: wanted {"os":"darwin","arch":"any"} (current: {"os":"linux","arch":"arm"})
                        2021-11-06T17:42:43.438Z [err] 
                        2021-11-06T17:42:43.440Z [out] + node-red-contrib-homekit-bridged@1.4.3
                        2021-11-06T17:42:43.440Z [out] added 7 packages from 3 contributors, updated 24 packages and moved 3 packages in 24.557s
                        2021-11-06T17:42:43.476Z rc=0
                        
                        -----------------------------------------------------------
                        2021-11-06T17:43:39.503Z Installieren : node-red-contrib-light-scheduler 0.0.18
                        
                        2021-11-06T17:43:39.231Z npm install --no-audit --no-update-notifier --no-fund --save --save-prefix=~ --production node-red-contrib-light-scheduler@0.0.18
                        2021-11-06T17:43:52.379Z [err] npm
                        2021-11-06T17:43:52.379Z [err]  WARN optional SKIPPING OPTIONAL DEPENDENCY: fsevents@1.2.13 (node_modules/fsevents):
                        2021-11-06T17:43:52.379Z [err] npm 
                        2021-11-06T17:43:52.379Z [err] WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for fsevents@1.2.13: wanted {"os":"darwin","arch":"any"} (current: {"os":"linux","arch":"arm"})
                        2021-11-06T17:43:52.380Z [err] 
                        2021-11-06T17:43:52.382Z [out] + node-red-contrib-light-scheduler@0.0.18
                        2021-11-06T17:43:52.382Z [out] removed 2 packages and updated 3 packages in 11.708s
                        2021-11-06T17:43:52.417Z rc=0
                        
                        -----------------------------------------------------------
                        2021-11-06T17:44:33.101Z Installieren : node-red-dashboard 3.1.1
                        
                        2021-11-06T17:44:32.826Z npm install --no-audit --no-update-notifier --no-fund --save --save-prefix=~ --production node-red-dashboard@3.1.1
                        2021-11-06T17:44:50.500Z [err] npm
                        2021-11-06T17:44:50.500Z [err]  WARN optional SKIPPING OPTIONAL DEPENDENCY: fsevents@1.2.13 (node_modules/fsevents):
                        2021-11-06T17:44:50.500Z [err] npm 
                        2021-11-06T17:44:50.500Z [err] WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for fsevents@1.2.13: wanted {"os":"darwin","arch":"any"} (current: {"os":"linux","arch":"arm"})
                        2021-11-06T17:44:50.501Z [err] 
                        2021-11-06T17:44:50.504Z [out] + node-red-dashboard@3.1.1
                        2021-11-06T17:44:50.504Z [out] added 6 packages from 8 contributors, removed 23 packages and updated 14 packages in 15.968s
                        2021-11-06T17:44:50.537Z rc=0
                        

                        Wenn dann alles aktualisiert ist:

                        707a6f29-b270-4d45-88c4-0b49ce605b61-image.png

                        muss Du den Adapter eh einmal neu starten.

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

                          @mickym sagte in node-red fenster nach update auf 2.4.0:

                          Und der apt-Manager erkennt keine Updates für Node-Red Nodes.

                          Ja, das ist klar. Das sind ja auch keine deb-Pakete direkt vom OS. Das wird dann offenbar über eine Entsprechung (paletten-Manager?) von node-red gemacht. nodeJS-Module kommen ja auch nicht über apt sondern über den npm (node package manager) rein.

                          1 Reply Last reply Reply Quote 0
                          • F
                            fournierrf5 @Homoran last edited by

                            @homoran

                            Das Problem existiert bereits ohne flows, sobald der adapter installiert wird.

                            node.js 14.xx hat selben erfolg gebraucht.

                            Zuletzt hat sich nodered nicht mal mehr deinstallieren lassen, jetzt das ist das backup image neu geflasht und alles läuft wieder wie zu beginn

                            1 Reply Last reply Reply Quote 0
                            • F
                              fournierrf5 @mickym last edited by

                              @mickym

                              ich benutze ausschliesslich den palettenmanager. es ist und war auch alles aktuell!

                              1 Reply Last reply Reply Quote 0
                              • First post
                                Last post

                              Support us

                              ioBroker
                              Community Adapters
                              Donate

                              555
                              Online

                              31.9k
                              Users

                              80.1k
                              Topics

                              1.3m
                              Posts

                              5
                              85
                              2127
                              Loading More Posts
                              • Oldest to Newest
                              • Newest to Oldest
                              • Most Votes
                              Reply
                              • Reply as topic
                              Log in to reply
                              Community
                              Impressum | Datenschutz-Bestimmungen | Nutzungsbedingungen
                              The ioBroker Community 2014-2023
                              logo