Navigation

    Logo
    • Register
    • Login
    • Search
    • Recent
    • Tags
    • Unread
    • Categories
    • Unreplied
    • Popular
    • GitHub
    • Docu
    • Hilfe
    1. Home
    2. Deutsch
    3. Error/Bug
    4. [solved] MQTT adapter update problems V2.1.14->2.3.4->2.3.5

    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

    [solved] MQTT adapter update problems V2.1.14->2.3.4->2.3.5

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

      @thomas-braun
      OK, danke für die Info - ich bin über diese message Box gestolpert und hab's brav gemacht.😂 🙄
      Aber bevor ich noch tiefer in die Materie (und mögliche Fallen) einsteige - ich habe ja Gottseidank noch ein Backup des Images von heute Mittag 😊

      Trotzdem vielen Dank nochmal.

      Grüße

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

        @willyiobrok
        Mach doch einfach ein reinstall von nodejs. Das ist 1000x fixer als da jetzt ein Backup reinzuknallen.

        W 1 Reply Last reply Reply Quote 0
        • W
          WillyIobrok @Thomas Braun last edited by

          @thomas-braun
          cool - hat geklappt 👍

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

            @willyiobrok
            Was gibt denn

            which nodejs && nodejs -v && which node && node -v && which npm && npm -v && apt policy nodejs
            

            jetzt aus?

            W 1 Reply Last reply Reply Quote 0
            • W
              WillyIobrok @Thomas Braun last edited by

              @thomas-braun
              npm_update2.jpg

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

                @willyiobrok
                Bitte Konsolenoutput künftig als Text in CodeTags einbetten.

                Passt jetzt wieder, ich würde aber in Kürze auf node12 oder 14 upgraden, 10 wird in wenigen Wochen angekündigt.

                W 1 Reply Last reply Reply Quote 0
                • W
                  WillyIobrok @Thomas Braun last edited by

                  @thomas-braun
                  ok, alles klar !
                  Danke

                  W 1 Reply Last reply Reply Quote 0
                  • W
                    WillyIobrok @WillyIobrok last edited by

                    Hallo zusammen,
                    jetzt muß ich mich leider wieder zu diesem Thema melden - jetzt geht das Update von mqtt 2.3.4 auf 2.3.5 nicht!

                    Das Mittel von Thoms Braun:

                    cd /opt/iobroker 
                    npm cache clear --force
                    

                    hat zwar letztes Mal gut geholfen, dieses Mal aber leider nicht ...

                    Fehlermeldung im Log:

                    host.ioBroker-4	2021-04-02 12:56:49.848	info	iobroker exit 0
                    host.ioBroker-4	2021-04-02 12:56:48.836	info	iobroker Adapter "mqtt" updated
                    host.ioBroker-4	2021-04-02 12:56:48.780	info	iobroker upload [0] mqtt.admin /opt/iobroker/node_modules/iobroker.mqtt/admin/index.html index.html text/html
                    host.ioBroker-4	2021-04-02 12:56:48.724	info	iobroker upload [1] mqtt.admin /opt/iobroker/node_modules/iobroker.mqtt/admin/index_m.html index_m.html text/html
                    host.ioBroker-4	2021-04-02 12:56:48.667	info	iobroker upload [2] mqtt.admin /opt/iobroker/node_modules/iobroker.mqtt/admin/mqtt.png mqtt.png image/png
                    host.ioBroker-4	2021-04-02 12:56:48.477	info	iobroker upload [3] mqtt.admin /opt/iobroker/node_modules/iobroker.mqtt/admin/words.js words.js application/javascript
                    host.ioBroker-4	2021-04-02 12:56:48.366	info	iobroker npm ERR! A complete log of this run can be found in:npm ERR! /home/iobroker/.npm/_logs/2021-04-02T10_56_48_211Z-debug.log
                    host.ioBroker-4	2021-04-02 12:56:48.199	info	iobroker npm ERR! Invalid response body while trying to fetch https://registry.npmjs.org/buffer: Integrity verification failed for sha512-LU3E2pFIyHqdtYjAKQPbxFParK1I5edDjpMuKevSgQOJlsdppHAx+zlGObr+r
                    host.ioBroker-4	2021-04-02 12:56:48.193	info	iobroker npm ERR! code EINTEGRITYnpm ERR! errno EINTEGRITY
                    host.ioBroker-4	2021-04-02 12:56:32.782	info	iobroker npm install iobroker.mqtt@2.3.5 --loglevel error --prefix "/opt/iobroker" (System call)
                    host.ioBroker-4	2021-04-02 12:56:32.781	info	iobroker NPM version: 6.11.3
                    host.ioBroker-4	2021-04-02 12:56:32.184	info	iobroker Update mqtt from @2.3.4 to @2.3.5
                    host.ioBroker-4	2021-04-02 12:56:30.051	info	iobroker upgrade mqtt
                    

                    Das passiert ausschliesslich beim mqtt-Adapter - Update, alle anderen Adapter lassen sich reibungslos und ohne Probleme updaten.

                    Was könnte hier helfen ?

                    Grüße,

                    WillyIoBrok

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

                      @willyiobrok sagte in MQTT adapter Update von Version 2.1.14 auf 2.3.4 geht nicht:

                      iobroker NPM version: 6.11.3

                      Ziemlich alt.
                      node sauber installiert?

                      which nodejs && nodejs -v && which node && node -v && which npm && npm -v && apt policy nodejs
                      

                      Aktualisier das mal auf node12 oder node14.

                      W 1 Reply Last reply Reply Quote 0
                      • W
                        WillyIobrok @Thomas Braun last edited by

                        @thomas-braun said in MQTT adapter Update von Version 2.1.14 auf 2.3.4 geht nicht:

                        which nodejs && nodejs -v && which node && node -v && which npm && npm -v && apt policy nodejs

                        which nodejs && nodejs -v && which node && node -v && which npm && npm -v && apt policy nodejs
                        /usr/bin/nodejs
                        v10.17.0
                        /usr/bin/node
                        v10.17.0
                        /usr/bin/npm
                        6.11.3
                        nodejs:
                          Installiert:           10.17.0-1nodesource1
                          Installationskandidat: 10.17.0-1nodesource1
                          Versionstabelle:
                         *** 10.17.0-1nodesource1 500
                                500 https://deb.nodesource.com/node_10.x buster/main armhf Packages
                                100 /var/lib/dpkg/status
                             10.15.2~dfsg-2+rpi1 500
                                500 http://raspbian.raspberrypi.org/raspbian buster/main armhf Packages
                        pi@ioBroker-4:/home/iobroker/.npm/_logs $
                        

                        OK, dann werde ich mich mal an das Update von nodejs wagen 🙂

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

                          @willyiobrok

                          https://forum.iobroker.net/topic/35090/howto-nodejs-installation-und-upgrades-unter-debian

                          W 1 Reply Last reply Reply Quote 0
                          • W
                            WillyIobrok @Thomas Braun last edited by

                            @thomas-braun
                            so, update auf Nodejs 14.16.0 durchgeführt 🙂
                            lief reibungslos durch - danke für die super Anleitung !

                             which nodejs && nodejs -v && which node && node -v && which npm && npm -v && apt policy nodejs
                            /usr/bin/nodejs
                            v14.16.0
                            /usr/bin/node
                            v14.16.0
                            /usr/bin/npm
                            6.14.11
                            nodejs:
                              Installiert:           14.16.0-1nodesource1
                              Installationskandidat: 14.16.0-1nodesource1
                              Versionstabelle:
                             *** 14.16.0-1nodesource1 500
                                    500 https://deb.nodesource.com/node_14.x buster/main armhf Packages
                                    100 /var/lib/dpkg/status
                                 12.22.0-1nodesource1 500
                                    500 https://deb.nodesource.com/node_12.x buster/main armhf Packages
                                 10.24.0-1nodesource1 500
                                    500 https://deb.nodesource.com/node_10.x buster/main armhf Packages
                                 10.24.0~dfsg-1~deb10u1 500
                                    500 http://raspbian.raspberrypi.org/raspbian buster/main armhf Packages
                            

                            Leider geht der mqtt -Adapter-Update immer noch nicht (auch nach "npm cache clear --force" gehts nicht)

                            host.ioBroker-4	2021-04-02 14:06:55.934	info	iobroker exit 0
                            host.ioBroker-4	2021-04-02 14:06:54.911	info	iobroker Adapter "mqtt" updated
                            host.ioBroker-4	2021-04-02 14:06:54.854	info	iobroker upload [0] mqtt.admin /opt/iobroker/node_modules/iobroker.mqtt/admin/index.html index.html text/html
                            host.ioBroker-4	2021-04-02 14:06:54.797	info	iobroker upload [1] mqtt.admin /opt/iobroker/node_modules/iobroker.mqtt/admin/index_m.html index_m.html text/html
                            host.ioBroker-4	2021-04-02 14:06:54.739	info	iobroker upload [2] mqtt.admin /opt/iobroker/node_modules/iobroker.mqtt/admin/mqtt.png mqtt.png image/png
                            host.ioBroker-4	2021-04-02 14:06:54.559	info	iobroker upload [3] mqtt.admin /opt/iobroker/node_modules/iobroker.mqtt/admin/words.js words.js application/javascript
                            host.ioBroker-4	2021-04-02 14:06:54.509	info	iobroker npm ERR! A complete log of this run can be found in:npm ERR! /home/iobroker/.npm/_logs/2021-04-02T12_06_54_481Z-debug.log
                            host.ioBroker-4	2021-04-02 14:06:54.476	info	iobroker npm ERR! Invalid response body while trying to fetch https://registry.npmjs.org/buffer: Integrity verification failed for sha512-LU3E2pFIyHqdtYjAKQPbxFParK1I5edDjpMuKevSgQOJlsdppHAx+zlGObr+r
                            host.ioBroker-4	2021-04-02 14:06:54.450	info	iobroker ERR! code EINTEGRITYnpm ERR! errno EINTEGRITY
                            host.ioBroker-4	2021-04-02 14:06:54.447	info	iobroker npm
                            host.ioBroker-4	2021-04-02 14:06:39.594	info	iobroker npm install iobroker.mqtt@2.3.5 --loglevel error --prefix "/opt/iobroker" (System call)
                            host.ioBroker-4	2021-04-02 14:06:39.591	info	iobroker NPM version: 6.14.11
                            host.ioBroker-4	2021-04-02 14:06:38.909	info	iobroker Update mqtt from @2.3.4 to @2.3.5
                            host.ioBroker-4	2021-04-02 14:06:36.846	info	iobroker upgrade mqtt
                            host.ioBroker-4	2021-04-02 14:01:57.894	info	iobroker exit 0
                            

                            was nun ? 🤔

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

                              @willyiobrok

                              iobroker update
                              iobroker upgrade
                              

                              Wenn es danach auch nicht läuft: Abwarten.

                              W 1 Reply Last reply Reply Quote 0
                              • W
                                WillyIobrok @Thomas Braun last edited by

                                @thomas-braun
                                OK, also abwarten - 😏
                                Es lief auch nach dem letzten Versuch nicht durch.
                                Ich wundere mich jetzt schon, daß nur dieser!!! - mqtt-Adapter solche Zicken beim Update macht.
                                Es kann deshalb ja wohl kaum am Gesamtsystem ioBroker liegen, die anderen Adapter lassen sich ja auch problemlos updaten, oder ?
                                Na gut, ich bin nicht auf die neue Version angewiesen, die alte Version läuft für meine Zwecke auch sehr gut.
                                Vielen Dank für die Hilfe, Frohe Ostern.

                                WillyIoBrok

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

                                  @willyiobrok

                                  Gerade mal in meinem System probiert.
                                  Läuft:

                                  pi@raspberrypi:/opt/iobroker $ iobroker update
                                  pi@raspberrypi:/opt/iobroker $ iobroker add mqtt
                                  NPM version: 6.14.12
                                  npm install iobroker.mqtt@2.3.5 --loglevel error --prefix "/opt/iobroker" (System call)
                                  host.raspberrypi install adapter mqtt
                                  upload [3] mqtt.admin /opt/iobroker/node_modules/iobroker.mqtt/admin/words.js words.js application/javascript
                                  upload [2] mqtt.admin /opt/iobroker/node_modules/iobroker.mqtt/admin/mqtt.png mqtt.png image/png
                                  upload [1] mqtt.admin /opt/iobroker/node_modules/iobroker.mqtt/admin/index_m.html index_m.html text/html
                                  upload [0] mqtt.admin /opt/iobroker/node_modules/iobroker.mqtt/admin/index.html index.html text/html
                                  host.raspberrypi object system.adapter.mqtt created/updated
                                  host.raspberrypi create instance mqtt
                                  host.raspberrypi object mqtt.0.info created
                                  host.raspberrypi object system.adapter.mqtt.0.logLevel created
                                  host.raspberrypi object system.adapter.mqtt.0.sigKill created
                                  host.raspberrypi object system.adapter.mqtt.0.eventLoopLag created
                                  host.raspberrypi object system.adapter.mqtt.0.outputCount created
                                  host.raspberrypi object system.adapter.mqtt.0.inputCount created
                                  host.raspberrypi object system.adapter.mqtt.0.uptime created
                                  host.raspberrypi object system.adapter.mqtt.0.memRss created
                                  host.raspberrypi object system.adapter.mqtt.0.memHeapTotal created
                                  host.raspberrypi object system.adapter.mqtt.0.memHeapUsed created
                                  host.raspberrypi object system.adapter.mqtt.0.cputime created
                                  host.raspberrypi object system.adapter.mqtt.0.cpu created
                                  host.raspberrypi object system.adapter.mqtt.0.compactMode created
                                  host.raspberrypi object system.adapter.mqtt.0.connected created
                                  host.raspberrypi object system.adapter.mqtt.0.alive created
                                  host.raspberrypi object system.adapter.mqtt.0 created
                                  
                                  W 1 Reply Last reply Reply Quote 0
                                  • W
                                    WillyIobrok @Thomas Braun last edited by

                                    @thomas-braun
                                    Oh - vielen Dank für's ausprobieren !

                                    Der Unterschied zwischen beiden Tests ist : Bei mir ist's ein update von der Version 2.3.4 ( die schon beim Update von 2.1.14 Schwierigkeiten gemacht hat) auf 2.3.5 - bei Dir war's eine Neu-Installation der 2.3.5, wenn ich das log richtig lese ...
                                    Wie kriege ich jetzt die installierte Version 2.3.4 aus meinem System so komplett raus, daß es auch bei mir eine Neu-Installation wird?
                                    Die Instanz löschen reicht wohl nicht ... habe ich ausprobiert ... glaube ich ? ...
                                    Könnte es sein, daß ein Fehler im Filesystem meiner SD-card irgendetwas "corrupted" hat, das ich später zumindest im Filesystem wieder repariert habe?

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

                                      @willyiobrok

                                      Integrity verification failed for sha512
                                      

                                      deutet eigentlich darauf hin, dass dein Download des Updates nicht i. O. war/ist.
                                      Normalerweise leert man dann den cache und lädt nochmal. Wie oben schon mal gemacht.

                                      W 1 Reply Last reply Reply Quote 0
                                      • W
                                        WillyIobrok @Thomas Braun last edited by

                                        @thomas-braun
                                        moin moin. Habe gestern noch ein issue bei mqtt gesetzt und auch prompt (wie erwartet) die Antwort bekommen, daß das nichts mit dem Adapter zu tun hat.
                                        Ich soll das Cache leeren oder warten bis sich das Problem einfach von selbst löst...

                                        Deshalb habe ich das jetzt nochmal probiert und prompt unerwartete Fehlermeldungen bekommen:

                                        pi@ioBroker-4:/opt/iobroker $ iobroker stop
                                        pi@ioBroker-4:/opt/iobroker $ npm cache clear --force
                                        npm WARN using --force I sure hope you know what you are doing. (weiss ich leider nicht so genau hihihi)
                                        npm ERR! code ENOTEMPTY
                                        npm ERR! syscall rmdir
                                        npm ERR! path /home/iobroker/.npm/_cacache/index-v5/14/72
                                        npm ERR! errno -39
                                        npm ERR! ENOTEMPTY: directory not empty, rmdir '/home/iobroker/.npm/_cacache/index-v5/14/72'
                                        
                                        npm ERR! A complete log of this run can be found in:
                                        npm ERR!     /home/iobroker/.npm/_logs/2021-04-03T07_07_40_405Z-debug.log
                                        pi@ioBroker-4:/opt/iobroker $ 
                                        

                                        vielleicht hilft das ein wenig weiter? Ich schau mir jetzt mal das nicht leere cache-dir an...

                                        Muß man das cache leeren eigentlich bei aktivem oder bei gestoppten ioBroker ausführen ? Ich habe beide Fälle probiert - mit dem gleichen Resultat ...

                                        W 1 Reply Last reply Reply Quote 0
                                        • W
                                          WillyIobrok @WillyIobrok last edited by

                                          @willyiobrok
                                          so, habe in dem o.g. Directory eine Datei mit dem Namen '018e044851804'$'\261''c89a4f39fb29f<592695e73668ea09e1b3f2a10v74d1'$'\341''7'
                                          gefunden und das Ding - was auch immer es ist - mit sudo-Berechtigung gelöscht (durfte ich das? -> auf eigenes Risiko!)
                                          Nachfolgende Installation des mqtt Adapters hat zwar einige Fehlermeldungen geworfen (siehe unten), aber die Installation der mqtt-Version 2.3.5 scheint geklappt zu haben (?). Auf jeden Fall funktioniert der mqtt Adapter V2.3.5 - zmindest auf den ersten Blick. Irgendwelche Kollateralschäden habe ich auch (noch) nicht beobachtet. 😊

                                          Vielen Dank für die Hilfe !

                                          Frohe Ostern,

                                          WillyIoBrok

                                          mqtt.0	2021-04-03 09:49:43.181	info	(8886) Starting MQTT server on 192.168.27.147:1883
                                          mqtt.0	2021-04-03 09:49:41.651	info	(8886) starting. Version 2.3.5 in /opt/iobroker/node_modules/iobroker.mqtt, node: v14.16.0, js-controller: 3.1.6
                                          host.ioBroker-4	2021-04-03 09:49:38.972	info	instance system.adapter.mqtt.0 started with pid 8886
                                          host.ioBroker-4	2021-04-03 09:49:37.583	info	iobroker exit 0
                                          host.ioBroker-4	2021-04-03 09:49:36.970	info	instance system.adapter.mqtt.0 terminated with code 11 (ADAPTER_REQUESTED_TERMINATION)
                                          host.ioBroker-4	2021-04-03 09:49:36.933	info	stopInstance system.adapter.mqtt.0 killing pid 8824
                                          host.ioBroker-4	2021-04-03 09:49:36.562	info	iobroker Adapter "mqtt" updated
                                          mqtt.0	2021-04-03 09:49:36.439	info	(8824) Terminated (ADAPTER_REQUESTED_TERMINATION): Without reason
                                          mqtt.0	2021-04-03 09:49:36.437	info	(8824) terminating
                                          host.ioBroker-4	2021-04-03 09:49:36.360	info	iobroker upload [0] mqtt.admin /opt/iobroker/node_modules/iobroker.mqtt/admin/index.html index.html text/html
                                          host.ioBroker-4	2021-04-03 09:49:36.215	info	iobroker upload [1] mqtt.admin /opt/iobroker/node_modules/iobroker.mqtt/admin/index_m.html index_m.html text/html
                                          host.ioBroker-4	2021-04-03 09:49:36.035	info	iobroker upload [2] mqtt.admin /opt/iobroker/node_modules/iobroker.mqtt/admin/mqtt.png mqtt.png image/png
                                          mqtt.0	2021-04-03 09:49:35.935	info	(8824) Got terminate signal TERMINATE_YOURSELF
                                          host.ioBroker-4	2021-04-03 09:49:35.929	info	stopInstance system.adapter.mqtt.0 send kill signal
                                          host.ioBroker-4	2021-04-03 09:49:35.848	info	stopInstance system.adapter.mqtt.0 (force=false, process=true)
                                          host.ioBroker-4	2021-04-03 09:49:35.798	info	iobroker Update "system.adapter.mqtt.0"
                                          host.ioBroker-4	2021-04-03 09:49:35.676	info	iobroker upload [3] mqtt.admin /opt/iobroker/node_modules/iobroker.mqtt/admin/words.js words.js application/javascript
                                          host.ioBroker-4	2021-04-03 09:49:31.386	info	iobroker Please submit a full bug report,with preprocessed source if appropriate.See <file:///usr/share/doc/gcc-8/README.Bugs> for instructions.make: *** [bindings.target.mk:112: Release/obj.target/b
                                          host.ioBroker-4	2021-04-03 09:49:31.376	info	iobroker g++: internal compiler error: Speicherzugriffsfehler signal terminated program cc1plus
                                          
                                          
                                          Thomas Braun 1 Reply Last reply Reply Quote 0
                                          • Thomas Braun
                                            Thomas Braun Most Active @WillyIobrok last edited by

                                            @willyiobrok

                                            Hätte ich wohl auch so gemacht. Aber beim kompilieren ist der Compiler ausgestiegen. Musst du Mal beobachten was bei anderen Updates passiert

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

                                            Support us

                                            ioBroker
                                            Community Adapters
                                            Donate

                                            924
                                            Online

                                            31.9k
                                            Users

                                            80.1k
                                            Topics

                                            1.3m
                                            Posts

                                            2
                                            45
                                            2448
                                            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