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.
    • Thomas Braun
      Thomas Braun Most Active last edited by

      @nwh

      Gut, schaut jetzt sauber aus.

      Warum die package.json und package-lock.json beim node-red nicht aktualisiert werden weiß ich jetzt aber immer noch nicht.

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

        @thomas-braun Was soll ich sagen, ausser mal Danke für die Hilfe.
        Wenn ich noch was für die Aufklärung beitragen kann, lass es mich wissen.

        1 Reply Last reply Reply Quote 0
        • S
          Sneak-L8 last edited by

          Ich würde mich hier leider auch einreihen.

          Beim Update von backitup von 2.4.10 auf 2.4.12 kommt bei mir auch der code 25...

          npm ls meldet beim SQL (ich glaube, den hab ich zuletzt aktualisiert - ohne Fehler):

          iobroker.sql@2.1.8 invalid: "2.1.7" from the root project
          

          npm update hab ich gemacht, npm upgrade all möchte ich noch nicht, da ich mich erst noch um die States vom netatmo-Adapter kümmern muss, um die History zu erhalten.

          Was kann ich am besten tun?

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

            @sneak-l8

            Mit npm direkt hantiert man am besten ohnehin nicht herum.

            cat /opt/iobroker/package-lock.json | grep iobroker.sql
            cat /opt/iobroker/package.json | grep iobroker.sql
            iobroker update
            

            Da dürfte dann 2.1.7 drin stehen, vermute ich.

            S 1 Reply Last reply Reply Quote 0
            • 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
                                            • First post
                                              Last post

                                            Support us

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

                                            837
                                            Online

                                            31.7k
                                            Users

                                            79.9k
                                            Topics

                                            1.3m
                                            Posts

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