Navigation

    Logo
    • Register
    • Login
    • Search
    • Recent
    • Tags
    • Unread
    • Categories
    • Unreplied
    • Popular
    • GitHub
    • Docu
    • Hilfe
    1. Home
    2. Deutsch
    3. ioBroker Allgemein
    4. Node.js für ioBroker update klappt nicht

    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.js für ioBroker update klappt nicht

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

      @thomas-braun
      Im ioborker steht aber das hier.....
      Screenshot 2022-11-05 011914.png

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

        @willi-wunder

        Hatte ich schon mal erwähnt, das GUIs notorische Lügner sind?
        Lad die Seite mal neu (F5), oder lösche den Browser Cache.

        W 1 Reply Last reply Reply Quote 0
        • W
          Willi-Wunder @Thomas Braun last edited by

          @thomas-braun
          Herrje, das Leben kann so einfach sein, lach. Du bist mein Held, vielen Dank. 👍 👍

          1 Reply Last reply Reply Quote 0
          • H
            hotspot_2 last edited by

            Hallo zusammen,

            ich bin im Info Adapter darauf gestoßen das nodejs nicht ganz aktuell ist und habe dann versucht von 16.17.0 auf 16.19.0 upzudaten. Debian macht das auch ganz richtig (meiner Meinung) nach zeigt die 16.19.0 als installiert an, aber node -v gibt immer 16.17.0 aus und iobroker Info auch.

            Was mache ich da denn falsch?

            Danke schon mal für eine Rückinfo dazu.

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

              @hotspot_2 was sagt iob diag?

              H 1 Reply Last reply Reply Quote 0
              • H
                hotspot_2 @Homoran last edited by

                @homoran

                Nodejs-Installation:    /usr/bin/nodejs         v16.19.0
                                        /usr/local/bin/node             v16.17.0
                                        /usr/local/bin/npm              8.15.0
                
                
                Homoran 1 Reply Last reply Reply Quote 0
                • Homoran
                  Homoran Global Moderator Administrators @hotspot_2 last edited by

                  @hotspot_2 das ist nicht die ganze Ausgabe von iob diag!

                  kannst aber dort schonmal deine Hausaufgaben machen.
                  https://forum.iobroker.net/post/460759

                  H 2 Replies Last reply Reply Quote 0
                  • H
                    hotspot_2 @Homoran last edited by

                    @homoran

                    Ok, Sorry.

                    ======================= SUMMARY =======================
                                         v.2023-01-01
                    
                    
                    Operatingsystem:        Debian GNU/Linux 11 (bullseye)
                    Installation:           Native
                    Timezone:               Europe/Berlin
                    User-ID:                0
                    X-Server:               false
                    Boot Target:            graphical.target
                    
                    Pending OS-Updates:     0
                    
                    Nodejs-Installation:    /usr/bin/nodejs         v16.19.0
                                            /usr/local/bin/node             v16.17.0
                                            /usr/local/bin/npm              8.15.0
                    
                    ioBroker Core:          js-controller           4.0.24
                                            admin                   6.3.5
                    
                    ioBroker Status:        iobroker is running on this host.
                    
                    
                    Objects type: jsonl
                    States  type: jsonl
                    
                    Status admin:
                    + system.adapter.admin.0                  : admin                 : iobroker                                 -  enabled, port: 8081, bind: 0.0.0.0, run as: admin
                    
                    Pending iob updates:    0
                    
                    Active repo(s): stable
                    
                    Objects:                7155
                    States:                 5977
                    
                    Size of iob-Database:
                    
                    21M     /opt/iobroker/iobroker-data/objects.jsonl
                    7.6M    /opt/iobroker/iobroker-data/states.jsonl
                    
                    
                    =================== END OF SUMMARY ====================
                    
                    
                    1 Reply Last reply Reply Quote 0
                    • H
                      hotspot_2 @Homoran last edited by

                      @homoran Da bräuchte ich noch etwas Hilfe. Was müsste ich konkret machen? Verzeichnisse löschen mit dem Skript? Szenario 1 / 2? Alles?

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

                        @hotspot_2

                        Das ist das Szenario 'Falsche Pfade'.
                        Siehe im zweiten Posting wie man das fixt.

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

                          @thomas-braun Ok.

                          Das heisst ich lösche diese Verzeichnisse (rot markiert) und gehe dann weiter nach der Anleitung in Szenario 1 vor. Ich bin gerade noch etwas irritiert weil da von "Dateien" und nicht von "Ordnern" gesprochen wird in diesem Beitrag.

                          45dc0157-589f-458b-8487-46f07fc7a33a-image.png

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

                            @hotspot_2

                            Keine Screenshots. Kann ich am Handy nicht lesen. Und auch sonst ist das Krampf.

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

                              @thomas-braun

                              root@iobroker:/opt/iobroker# uname -m && type -P nodejs node npm && nodejs -v && node -v && npm -v && iob -v && whoami && groups && echo $XDG_SESSION_TYPE && pwd && sudo apt-get update &> /dev/null && sudo apt-get update && apt-cache policy nodejs
                              x86_64
                              /usr/bin/nodejs
                              /usr/local/bin/node  (löschen?)
                              /usr/local/bin/npm (löschen?)
                              v16.19.0
                              v16.17.0
                              8.15.0
                              4.0.24
                              root
                              root
                              tty
                              /opt/iobroker
                              OK:1 http://deb.debian.org/debian bullseye InRelease
                              OK:2 http://security.debian.org/debian-security bullseye-security InRelease
                              OK:3 http://deb.debian.org/debian bullseye-updates InRelease
                              OK:4 https://repos.influxdata.com/debian stretch InRelease
                              OK:5 https://packages.grafana.com/oss/deb stable InRelease
                              OK:6 https://deb.nodesource.com/node_14.x bullseye InRelease
                              Paketlisten werden gelesen… Fertig
                              nodejs:
                                Installiert:           16.19.0-deb-1nodesource1
                                Installationskandidat: 16.19.0-deb-1nodesource1
                                Versionstabelle:
                               *** 16.19.0-deb-1nodesource1 100
                                      100 /var/lib/dpkg/status
                                   14.21.1-deb-1nodesource1 500
                                      500 https://deb.nodesource.com/node_14.x bullseye/main amd64 Packages
                                   12.22.12~dfsg-1~deb11u1 500
                                      500 http://security.debian.org/debian-security bullseye-security/main amd64 Packages
                                   12.22.5~dfsg-2~11u1 500
                                      500 http://deb.debian.org/debian bullseye/main amd64 Packages
                              root@iobroker:/opt/iobroker#
                              
                              
                              Thomas Braun 1 Reply Last reply Reply Quote 0
                              • Thomas Braun
                                Thomas Braun Most Active @hotspot_2 last edited by Thomas Braun

                                @hotspot_2

                                Ja, die Dateien löschen.
                                Und nicht als root herumkaspern.
                                Und die Quellen konsistent halten. Bei dir spukt da noch was von Stretch herum.

                                Und nodejs16 auch richtig in der nodesource.list eintragen.

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

                                  @thomas-braun sagte in Node.js für ioBroker update klappt nicht:

                                  @hotspot_2

                                  Ja, die Dateien löschen.

                                  Ok, lösche die beiden die ich oben markiert habe.

                                  Und nicht als root herumkaspern.

                                  Und die Quellen konsistent halten. Bei dir spukt da noch was von Stretch herum.

                                  Da fehlt mir noch einiges an Linux Kenntnissen. Kleiner Tipp wie ich das machen kann?

                                  Und nodejs16 auch richtig in der nodesource.list eintragen.

                                  Das ist auch ausserhalb von meinem sehr kleinen Linux-Kenntnisuniversums ;).

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

                                    @hotspot_2

                                    Steht soweit alles in meiner Signatur drin.

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

                                      @thomas-braun Alles klar, dann lese ich mich da mal rein.

                                      root@iobroker:/opt/iobroker# uname -m && type -P nodejs node npm && nodejs -v && node -v && npm -v && iob -v && whoami && groups && echo $XDG_SESSION_TYPE && pwd && sudo apt-get update &> /dev/null && sudo apt-get update && apt-cache policy nodejs
                                      x86_64
                                      /usr/bin/nodejs
                                      /usr/local/bin/node
                                      /usr/bin/npm
                                      v16.19.0
                                      bash: /usr/local/bin/node: Datei oder Verzeichnis nicht gefunden
                                      root@iobroker:/opt/iobroker#
                                      
                                      

                                      Ausgabe sieht jetzt so aus. Jetzt installiere ich nochmal mit apt --reinstall und dann sollte es ja passen.

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

                                        @hotspot_2

                                        Nee, passt nicht. Du musst schon beide Dateien löschen.

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

                                          @thomas-braun Hatte ich gemacht. Im Verzeichnis /usr/local/bin gibt es jetzt nur noch "corepack" und "npx"

                                          Sieht man oben was ich noch zu löschen habe?

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

                                            @hotspot_2

                                            npx und corepack auch löschen.

                                            H 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

                                            488
                                            Online

                                            31.9k
                                            Users

                                            80.1k
                                            Topics

                                            1.3m
                                            Posts

                                            13
                                            92
                                            19191
                                            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