Navigation

    Logo
    • Register
    • Login
    • Search
    • Recent
    • Tags
    • Unread
    • Categories
    • Unreplied
    • Popular
    • GitHub
    • Docu
    • Hilfe
    1. Home
    2. Deutsch
    3. ioBroker Allgemein
    4. Untersuchung: code 25 fehlerlösung

    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

    Untersuchung: code 25 fehlerlösung

    This topic has been deleted. Only users with topic management privileges can see it.
    • S
      Sneak-L8 @Thomas Braun last edited by

      @thomas-braun

      pi@raspberrypi:~ $ cat /opt/iobroker/package-lock.json | grep iobroker.sql
              "iobroker.sql": "2.1.7",
          "node_modules/iobroker.sql": {
            "resolved": "https://registry.npmjs.org/iobroker.sql/-/iobroker.sql-2.1.7.tgz",
          "iobroker.sql": {
            "resolved": "https://registry.npmjs.org/iobroker.sql/-/iobroker.sql-2.1.7.tgz",
      pi@raspberrypi:~ $ cat /opt/iobroker/package.json | grep iobroker.sql
      {"name":"iobroker.inst","version":"3.0.0","private":true,"description":"Automate your Life","engines":{"node":">=10.0.0"},"dependencies":{"iobroker.admin":"6.2.22","iobroker.backitup":"2.4.10","iobroker.discovery":"3.0.5","iobroker.email":"1.1.3","iobroker.feiertage":"1.1.0","iobroker.flot":"1.11.0","iobroker.history":"2.2.0","iobroker.icons-addictive-flavour-png":"0.1.0","iobroker.info":"1.9.19","iobroker.javascript":"6.0.3","iobroker.js-controller":"stable","iobroker.kecontact":"github:iobroker-community-adapters/ioBroker.kecontact","iobroker.mobile":"1.0.1","iobroker.modbus":"5.0.5","iobroker.musiccast":"0.1.5","iobroker.netatmo":"1.7.1","iobroker.ping":"1.5.3","iobroker.pioneer_sc_vsx":"github:Sneak-L8/ioBroker.pioneer_sc_vsx#37cb50cf74d3e7117ffcd31557b8977edfd2b19d","iobroker.rpi2":"1.3.2","iobroker.simple-api":"2.7.0","iobroker.sma-em":"github:iobroker-community-adapters/ioBroker.sma-em#55ef1a101f7f3920a6b1a5b2b2ab0501aea2be5c","iobroker.sma-speedwire":"github:Apollon77/iobroker.sma-speedwire#3dce8e5d3fb9112502ba697a0f41ec0ab0aa90f4","iobroker.socketio":"4.2.0","iobroker.sonos":"2.2.3","iobroker.sql":"2.1.7","iobroker.tr-064":"4.2.16","iobroker.vis":"1.4.15","iobroker.vis-icontwo":"0.89.0","iobroker.vis-inventwo":"3.3.1","iobroker.vw-connect":"0.0.51","iobroker.web":"4.3.0","iobroker.whatsapp-cmb":"0.2.2","iobroker.ws":"1.3.0","iobroker.yamaha":"0.5.3"}}
      pi@raspberrypi:~ $ iobroker update
      Used repository: stable
      Adapter    "admin"        : 6.2.22   , installed 6.2.22
      Adapter    "backitup"     : 2.4.12   , installed 2.4.10 [Updatable]
      Adapter    "discovery"    : 3.0.5    , installed 3.0.5
      Adapter    "email"        : 1.1.3    , installed 1.1.3
      Adapter    "feiertage"    : 1.1.0    , installed 1.1.0
      Adapter    "flot"         : 1.11.0   , installed 1.11.0
      Adapter    "history"      : 2.2.0    , installed 2.2.0
      Adapter    "icons-addictive-flavour-png": 0.1.0, installed 0.1.0
      Adapter    "info"         : 1.9.19   , installed 1.9.19
      Adapter    "javascript"   : 6.0.3    , installed 6.0.3
      Controller "js-controller": 4.0.23   , installed 4.0.23
      Adapter    "kecontact"    : 1.4.1    , installed 1.4.1
      Adapter    "mobile"       : 1.0.1    , installed 1.0.1
      Adapter    "modbus"       : 5.0.5    , installed 5.0.5
      Adapter    "musiccast"    : 0.1.5    , installed 0.1.5
      Adapter    "netatmo"      : 2.0.5    , installed 1.7.1  [Updatable]
      Adapter    "ping"         : 1.5.3    , installed 1.5.3
      Adapter    "rpi2"         : 1.3.2    , installed 1.3.2
      Adapter    "simple-api"   : 2.7.0    , installed 2.7.0
      Adapter    "socketio"     : 4.2.0    , installed 4.2.0
      Adapter    "sonos"        : 2.2.3    , installed 2.2.3
      Adapter    "sql"          : 2.1.8    , installed 2.1.8
      Adapter    "tr-064"       : 4.2.16   , installed 4.2.16
      Adapter    "vis"          : 1.4.15   , installed 1.4.15
      Adapter    "vis-icontwo"  : 0.89.0   , installed 0.89.0
      Adapter    "vis-inventwo" : 3.3.1    , installed 3.3.1
      Adapter    "vw-connect"   : 0.0.51   , installed 0.0.51
      Adapter    "web"          : 4.3.0    , installed 4.3.0
      Adapter    "whatsapp-cmb" : 0.2.2    , installed 0.2.2
      Adapter    "ws"           : 1.3.0    , installed 1.3.0
      Adapter    "yamaha"       : 0.5.3    , installed 0.5.3
      

      Korrekt

      Thomas Braun 1 Reply Last reply Reply Quote 0
      • Thomas Braun
        Thomas Braun Most Active @Sneak-L8 last edited by

        @sneak-l8

        for i in $(find /opt/iobroker/node_modules -type d -iname ".*-????????" ! -iname ".local-chromium"); do rm -rf ${i%%/}; done 
        
        iobroker upgrade sql@2.1.8
        
        1 Reply Last reply Reply Quote 0
        • S
          Sneak-L8 last edited by

          @thomas-braun sagte in Untersuchung: code 25 fehlerlösung:

          for i in $(find /opt/iobroker/node_modules -type d -iname ".*-????????" ! -iname ".local-chromium"); do rm -rf ${i%%/}; done

          Hatte ich schon gemacht, ohne Ergebnis. Es werden ein paar Fehler geworfen:

          rm: cannot remove '/opt/iobroker/node_modules/.sqlite3-8qPhwEH9/build-tmp-napi-v6/Release/obj/gen/sqlite-autoconf-3390200/tea/configure.ac': Permission denied
          

          aber das dürften icht relevant sein.

          iobroker upgrade sql@2.1.8

          ergibt leider:

          Would you like to reinstall version 2.1.8 of sql now? [(y)es, (n)o]: y
          Update sql from @2.1.8 to @2.1.8
          host.raspberrypi Adapter "system.adapter.sql.0" is stopped.
          NPM version: 8.11.0
          Installing iobroker.sql@2.1.8... (System call)
          host.raspberrypi Cannot install iobroker.sql@2.1.8: 217
          

          Die 217 kam auch bei backitup.

          Thomas Braun 1 Reply Last reply Reply Quote 0
          • Thomas Braun
            Thomas Braun Most Active @Sneak-L8 last edited by

            @sneak-l8 sagte in Untersuchung: code 25 fehlerlösung:

            aber das dürften icht relevant sein.

            Das ist sogar SEHR relevant, das zeigt mir nämlich, dass da mal mit den falschen Rechten/Usern herumgefahren worden ist.

            iobroker stop
            iobroker fix
            for i in $(find /opt/iobroker/node_modules -type d -iname ".*-????????" ! -iname ".local-chromium"); do rm -rf ${i%%/}; done 
            iobroker upgrade sql@2.1.8
            
            S 1 Reply Last reply Reply Quote 0
            • S
              Sneak-L8 @Thomas Braun last edited by

              @thomas-braun
              Den fix rufe ich immer wieder auf und bin eigentlich immer nur als User "pi" unterwegs. sudo mache ich nur wo angegegen.

              Ergebnis ist das gleiche (nachdme ich den ioBroekr wieder gestartet hatte):

              pi@raspberrypi:/opt/iobroker/node_modules $ iobroker upgrade sql@2.1.8
              No connection to databases possible ...
              pi@raspberrypi:/opt/iobroker/node_modules $ iob start
              pi@raspberrypi:/opt/iobroker/node_modules $ iobroker upgrade sql@2.1.8
              Would you like to reinstall version 2.1.8 of sql now? [(y)es, (n)o]: y
              Update sql from @2.1.8 to @2.1.8
              NPM version: 8.11.0
              Installing iobroker.sql@2.1.8... (System call)
              host.raspberrypi Cannot install iobroker.sql@2.1.8: 217
              

              Beim "for..." nur die o.g. sqlite-Meldungen.

              Thomas Braun 1 Reply Last reply Reply Quote 0
              • Thomas Braun
                Thomas Braun Most Active @Sneak-L8 last edited by Thomas Braun

                @sneak-l8

                Dann die Version 'Extra Stark':

                for i in $(find /opt/iobroker/node_modules -type d -iname ".*-????????" ! -iname ".local-chromium"); do sudo rm -rf ${i%%/}; done
                
                S 1 Reply Last reply Reply Quote 0
                • S
                  Sneak-L8 @Thomas Braun last edited by

                  @thomas-braun sagte in Untersuchung: code 25 fehlerlösung:

                  for i in $(find /opt/iobroker/node_modules -type d -iname ".*-????????" ! -iname ".local-chromium"); do sudo rm -rf ${i%%/}; done

                  Super, damit ist er jetzt durchgelaufen (kein Output) und der upgrade von sql war erfolgreich.
                  Jetzt hat auch das Updates von Backitup (direkt in der GUI) funktioniert.

                  Danke!!

                  1 Reply Last reply Reply Quote 0
                  • J
                    jupzup last edited by

                    @mickym sagte in Untersuchung: code 25 fehlerlösung:

                    Ich kanns immer wieder betonen - haut halt den alten Mist raus und macht das neu, wenn ihr keine Lust habt ewig zu suchen. Macht vorher eine Imagesicherung - dann kommt ihr wieder dahin zurück oder nennt das node_modules Verzeichnis um - und macht es neu:

                    https://forum.iobroker.net/topic/56543/nach-nodejs-update-kein-adapter-mehr-updatebar/23?_=1658914381795

                    Diese Diskussionen sind doch unsinnig . Jemand der NodeRed nutzen will, wird das tun - egal ob das binär im node_modules Verzeichnis rumliegt. Das Hauptproblem ist npm mit seinen geänderten Formaten.

                    Dem kann ich zustimmen bzw. hat bei mir nichts wirklich dauerhaft den Fehler behoben bis ich letztlich das komplette node_modules Verzeichnis gelöscht und neu aufbauen lies anhand der Anleitung von mickym

                    Besten Dank dafür aber natürlich auch an alle anderen Beteiligten !!

                    hoepps2802 0 1 Reply Last reply Reply Quote 0
                    • hoepps2802 0
                      hoepps2802 0 @jupzup last edited by

                      @jupzup ist die Anleitung im Form zu finden ?
                      habe das gleiche Problem und bekomme es durch löschen der Temp Ordner nicht hin.

                      Gruß
                      Matthias

                      apollon77 1 Reply Last reply Reply Quote 0
                      • apollon77
                        apollon77 @hoepps2802 0 last edited by

                        @hoepps2802-0 Dann poste mal genau deine Logs ... hast Du dann vllt ein anderes problem?

                        hoepps2802 0 1 Reply Last reply Reply Quote 0
                        • hoepps2802 0
                          hoepps2802 0 @apollon77 last edited by

                          @apollon77 das kann ich nachher mal machen, muss dafür aber erst wieder versuchen node red auf 4.0.0 upzudaten
                          bis jetzt hab ich einfach nur immer den Befehl
                          for i in $(find /opt/iobroker/node_modules -type d -iname ".*-????????" ! -iname ".local-chromium"); do rm -rf ${i%%/}; done
                          ausgeführt - alle anderen Adapter gingen dann wieder aber sobald ich Node Red versuche bricht die Installation ab und die anderen gehen auch nicht mehr zu upddaten

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

                            @apollon77 beim Versuch node-red zu installieren bekommen ich

                            iobroker host.raspberrypi Cannot install iobroker.node-red@4.0.0: 217
                            

                            und

                            for i in $(find /opt/iobroker/node_modules -type d -iname ".*-????????" ! -iname ".local-chromium"); do echo ${i%}; done
                            
                            /opt/iobroker/node_modules/.node-red-node-feedparser-BvY866YR
                            /opt/iobroker/node_modules/.multer-zsSYw8fD
                            /opt/iobroker/node_modules/.argparse-S5zfMSQi
                            /opt/iobroker/node_modules/.js-yaml-mxBLENxb
                            /opt/iobroker/node_modules/.socks-Ly3eN6mV
                            /opt/iobroker/node_modules/.esprima-TKIwiasy
                            /opt/iobroker/node_modules/.i18next-VFNyugyK
                            /opt/iobroker/node_modules/.moment-YVTvHlwl
                            /opt/iobroker/node_modules/.uglify-js-UrZ3Klfa
                            /opt/iobroker/node_modules/@babel/.runtime-cSN2FFol
                            /opt/iobroker/node_modules/@node-red/.registry-ccnbcuRd
                            /opt/iobroker/node_modules/@node-red/.util-sbKUIGKV
                            /opt/iobroker/node_modules/@node-red/.runtime-1jQRdxlO
                            /opt/iobroker/node_modules/@node-red/.nodes-oC2yqxJN
                            /opt/iobroker/node_modules/@node-red/.editor-client-FpqhSpDH
                            /opt/iobroker/node_modules/@node-red/.editor-api-Xk7v1FU7
                            /opt/iobroker/node_modules/.node-red-node-email-1lk8B7Gi
                            /opt/iobroker/node_modules/@types/.webidl-conversions-sTwlFPEN
                            /opt/iobroker/node_modules/.node-red-admin-97cICUzY
                            /opt/iobroker/node_modules/.hpagent-PUXuWBzq
                            /opt/iobroker/node_modules/.sprintf-js-NEkm8GpH
                            /opt/iobroker/node_modules/iobroker.worx/node_modules/.ms-gKD4yxG7
                            /opt/iobroker/node_modules/iobroker.worx/node_modules/.string_decoder-7WG8ZZzJ
                            /opt/iobroker/node_modules/iobroker.worx/node_modules/.debug-g1vdTaRH
                            /opt/iobroker/node_modules/iobroker.worx/node_modules/.readable-stream-Qsfpwrzm
                            /opt/iobroker/node_modules/iobroker.worx/node_modules/.ws-14EKPmTY
                            /opt/iobroker/node_modules/iobroker.worx/node_modules/.mqtt-UaPggZUW
                            /opt/iobroker/node_modules/iobroker.worx/node_modules/.safe-buffer-Es0FmdFm
                            /opt/iobroker/node_modules/.mongodb-9LMcV19S
                            /opt/iobroker/node_modules/.bson-a4WfR2fa
                            /opt/iobroker/node_modules/.mqtt-uuzoX3iL
                            /opt/iobroker/node_modules/.node-red-Kvc6EPdV
                            /opt/iobroker/node_modules/.mongodb-connection-string-url-iEu3f9Lf
                            /opt/iobroker/node_modules/.iobroker.node-red-lv0iVi6J
                            /opt/iobroker/node_modules/.dicer-vvDk7wqs
                            

                            jetzt kann ich keine Adapter mehr updaten

                            Und bei Node-Red steht:

                            Installierte Instanzen:
                            1
                            Verfügbare Version:
                            4.0.0
                            Installierte Version:
                            4.0.0

                            Ist es aber nicht

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

                              @hoepps2802-0 sagte in Untersuchung: code 25 fehlerlösung:

                              Ist es aber nicht

                              Sondern?

                              hoepps2802 0 1 Reply Last reply Reply Quote 0
                              • apollon77
                                apollon77 @hoepps2802 0 last edited by

                                @hoepps2802-0 Ok Du hast nur das Skript hier gezeigt was die ausgiubt welche komischen verzeichnisse da sind. Hast Du auch die "Lösch" Variante aus dem ersten Post mal genutzt? Gehts dann?

                                Wenn nicht starte den upgrade Befehl mit --debug

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

                                  @thomas-braun

                                  nachdem ich die Löschvariante nutze und IOB neustarte ist es wieder 3.3.1

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

                                    @hoepps2802-0

                                    iobroker stop
                                    iobroker fix
                                    for i in $(find /opt/iobroker/node_modules -type d -iname ".*-????????" ! -iname ".local-chromium"); do echo ${i%}; done 
                                    iobroker update
                                    iobroker upgrade
                                    iobroker start
                                    
                                    1 Reply Last reply Reply Quote 0
                                    • hoepps2802 0
                                      hoepps2802 0 @apollon77 last edited by

                                      @apollon77

                                      Installing iobroker.node-red@4.0.0... (System call)
                                      npm ERR! code ENOTEMPTY
                                      npm ERR! syscall rename
                                      npm ERR! path /opt/iobroker/node_modules/node-red-node-email/node_modules/encoding-japanese/src
                                      npm ERR! dest /opt/iobroker/node_modules/.node-red-node-email-1lk8B7Gi/node_modules/encoding-japanese/src
                                      npm ERR! errno -39
                                      npm ERR! ENOTEMPTY: directory not empty, rename '/opt/iobroker/node_modules/node-red-node-email/node_modules/encoding-japanese/src' -> '/opt/iobroker/node_modules/.node-red-node-email-1lk8B7Gi/node_modules/encoding-japanese/src'
                                      
                                      npm ERR! A complete log of this run can be found in:
                                      npm ERR!     /home/iobroker/.npm/_logs/2022-10-13T10_52_26_189Z-debug-0.log
                                      host.raspberrypi Cannot install iobroker.node-red@4.0.0: 217
                                      

                                      hier das Log
                                      2022-10-13T10_52_26_189Z-debug-0.log

                                      hoepps2802 0 1 Reply Last reply Reply Quote 0
                                      • hoepps2802 0
                                        hoepps2802 0 @hoepps2802 0 last edited by

                                        @apollon77 @Thomas-Braun
                                        keine Ahnung warum aber nachdem Node-Red im Debug installiert habe und das Log abgezogen habe,
                                        habe ich das Löschskript nochmal ausgeführt .

                                        Dann habeich mit der Anleitung von Thomas begonnen.

                                        bei Iobroker update sagte er mir das alle Adapter aktuell sind.

                                        Es ist kein Fehler mehr zu sehen und auch Node-Red ist als 4.0.0 vorhanden.
                                        Wenn ich es öffne steht dort auch 3.0.2: Maintenance Release

                                        Neue Adapter lassen sich auch installieren. Scheint also alles zu laufen.

                                        Danke

                                        hoepps2802 0 1 Reply Last reply Reply Quote 0
                                        • hoepps2802 0
                                          hoepps2802 0 @hoepps2802 0 last edited by hoepps2802 0

                                          @apollon77 @Thomas-Braun
                                          Leider doch nicht, nachdem ich einen Adapter installiert und wieder deinstalliert habe steht Node-Red wieder als 3.3.1 da

                                          Installation schlägt fehl:

                                          This upgrade of "node-red" will introduce the following changes:
                                          ==========================================================================
                                          -> 4.0.0:
                                          IMPORTANT: Node.js 14.x now needed at least
                                          Upgrade to node-red 3.0.2, enable runtime-state features and switch editor to monaco-editor
                                          Correctly escape backslashes when writing setting file on Windows
                                          ==========================================================================
                                          
                                          BE CAREFUL: THIS IS A MAJOR UPGRADE, WHICH WILL MOST LIKELY INTRODUCE BREAKING CHANGES!
                                          Would you like to upgrade node-red from @3.3.1 to @4.0.0 now? [(y)es, (n)o]: y
                                          Update node-red from @3.3.1 to @4.0.0
                                          host.raspberrypi Adapter "system.adapter.node-red.0" is stopped.
                                          NPM version: 8.15.0
                                          Installing iobroker.node-red@4.0.0... (System call)
                                          host.raspberrypi Cannot install iobroker.node-red@4.0.0: 217
                                          mickym 1 Reply Last reply Reply Quote 0
                                          • mickym
                                            mickym Most Active @hoepps2802 0 last edited by mickym

                                            @hoepps2802-0 https://forum.iobroker.net/topic/57353/untersuchung-code-25-fehlerlösung/49

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

                                            Support us

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

                                            936
                                            Online

                                            31.9k
                                            Users

                                            80.1k
                                            Topics

                                            1.3m
                                            Posts

                                            34
                                            255
                                            33698
                                            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