Navigation

    Logo
    • Register
    • Login
    • Search
    • Recent
    • Tags
    • Unread
    • Categories
    • Unreplied
    • Popular
    • GitHub
    • Docu
    • Hilfe
    1. Home
    2. Deutsch
    3. ioBroker Allgemein
    4. Keine Unterstützung mehr für node.js 0.10 und 0.12

    NEWS

    • Neues Video "KI im Smart Home" - ioBroker plus n8n

    • Neues Video über Aliase, virtuelle Geräte und Kategorien

    • Wir empfehlen: Node.js 22.x

    Keine Unterstützung mehr für node.js 0.10 und 0.12

    This topic has been deleted. Only users with topic management privileges can see it.
    • Homoran
      Homoran Global Moderator Administrators last edited by

      @RappiRN:

      Segmentation fault `
      SD-Karte hinüber?

      Gruß

      Rainer

      1 Reply Last reply Reply Quote 0
      • R
        RappiRN Most Active last edited by

        Das wäre ne Möglichkeit, muss ich mal ausprobieren, bislang hatte ich keine Probleme, ist ja auch nur ein Slave.

        Enrico

        1 Reply Last reply Reply Quote 0
        • M
          mctom last edited by

          Hallo zusammen,

          wollte gerade auch das Update auf die aktuelle Node-Version durchführen.

          Allerdings funktioniert das Thema reinstall nicht.

          root@ioBrokerBETRIEB:~# iobroker stop
          Stopping iobroker controller daemon...
          iobroker controller daemon stopped.
          Exit code for "killall.sh": 0
          root@ioBrokerBETRIEB:~# cd /opt/iobroker
          root@ioBrokerBETRIEB:/opt/iobroker# sudo reinstall.sh
          sudo: reinstall.sh: Kommando nicht gefunden
          root@ioBrokerBETRIEB:/opt/iobroker#
          
          

          Woran kann dies liegen?

          Die Datei ist auf jeden Fall vorhanden.

          Gruß

          MIchael

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

            Siehe 6 Beiträge weiter oben.

            sudo ./reinstall.sh
            
            1 Reply Last reply Reply Quote 0
            • L
              looxer01 last edited by

              Hi,

              etwas OT zum Thema.

              Ich habe versucht von Node 4.8.1 auf 6.3.11 ein update zu machen.

              mit:

              sudo npm cache clean -f
              sudo npm install -g n
              sudo n lts
              
              

              klappt das auch gut. Lediglich SQL Lite macht probleme:

              sql.0	2017-10-03 12:39:11.379	error	TypeError: Cannot read property 'borrow' of undefined
              sql.0	2017-10-03 12:39:11.379	error	Selected SQL DB was not installed properly: "sqlite". SQLite requires build tools on system. See README.md
              
              Caught	2017-10-03 12:53:41.815	error	by controller[2]: 2017-10-03 12:53:25.134 - sql.0 TypeError: Cannot read property 'borrow' of undefined
              Caught	2017-10-03 12:53:41.815	error	by controller[1]: 2017-10-03 12:53:25.134 - sql.0 Selected SQL DB was not installed properly: "sqlite". SQLite requires build tools on system. See README.md
              
              

              Build essentials sind installiert. Auch habe ich den Adapter entsprechend readme.md erneut zu installieren. Das brachte aber nichts.

              Das gleich übrigens unter Node 8.x

              Hat jemand eine Idee ?

              vG Looxer

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

                Wenn ich das richtig sehe ist die Meldung von sql-lite-server selber, nicht vom sql Adapter.

                Der server benötigt augenscheinlich build-tools um sich an die neue nodejs-version anzupassen.

                Welche das sind sollen in einer readme.md stehen, wahrscheinlich von dem sql-lite server paket.

                Gruß

                Rainer

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

                  Denke es ist das gleiche: nach Node Update müssen Pakete neu installiert werden die Dinge kompilieren … wie SQLite oder serialport.

                  1 Reply Last reply Reply Quote 0
                  • L
                    looxer01 last edited by

                    @apollon77:

                    Denke es ist das gleiche: nach Node Update müssen Pakete neu installiert werden die Dinge kompilieren … wie SQLite oder serialport. `
                    also sollte eine Neuinstallation mit:

                    sudo apt-get install sqlite3

                    genuegen ? - oder gibt es da noch mehr ?

                    vG Looxer

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

                      Das hätte ich so gemacht, wobei es mir immer egal ist ob die DB dabei in die Knie geht.

                      Da ich nicht weiß, was du da alles drauf hast, habe ich mich nicht getraut dies zu empfehlen.

                      Gruß

                      Rainer

                      1 Reply Last reply Reply Quote 0
                      • L
                        looxer01 last edited by

                        @Homoran:

                        Das hätte ich so gemacht, wobei es mir immer egal ist ob die DB dabei in die Knie geht. `

                        Danke Rainer, Ich probiers mal. Dank ESXI und Rückholfunktion kann ich erstmal testen.

                        vG Looxer

                        1 Reply Last reply Reply Quote 0
                        • L
                          looxer01 last edited by

                          …leider kein Erfolg. Die Meldung ist die gleiche.

                          Ich versuche es nochmal mit dem weiter oben beschriebenen Weg. (zuerst remove, dann neuinstall von node)

                          Da hatte ich vorher allerdings auch Probleme mit Fehlermeldungen bei der Installation von node.

                          vG Looxer

                          1 Reply Last reply Reply Quote 0
                          • L
                            looxer01 last edited by

                            ich bekomme diesen Fehler mit der Standard installation von Node.js

                            apt-get install -y build-essential libavahi-compat-libdnssd-dev libudev-dev nodejs
                            Reading package lists... Done
                            Building dependency tree
                            Reading state information... Done
                            build-essential is already the newest version.
                            The following extra packages will be installed:
                              libavahi-client-dev libavahi-common-dev libavahi-compat-libdnssd1
                              libdbus-1-dev libudev1 pkg-config rlwrap udev
                            The following NEW packages will be installed:
                              libavahi-client-dev libavahi-common-dev libavahi-compat-libdnssd-dev
                              libavahi-compat-libdnssd1 libdbus-1-dev libudev-dev nodejs pkg-config rlwrap
                            The following packages will be upgraded:
                              libudev1 udev
                            2 upgraded, 9 newly installed, 0 to remove and 111 not upgraded.
                            Need to get 1468 kB/10.1 MB of archives.
                            After this operation, 43.2 MB of additional disk space will be used.
                            WARNING: The following packages cannot be authenticated!
                              nodejs
                            E: There are problems and -y was used without --force-yes
                            
                            

                            da muesste noch irgendwo ein force rein - oder ?

                            vG Looxer

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

                              Aus welcher repository wird denn nodejs installiert? Der Fehler könnte heißen das du den authentication key nicht installiert hast.

                              1 Reply Last reply Reply Quote 0
                              • L
                                looxer01 last edited by

                                @apollon77:

                                Aus welcher repository wird denn nodejs installiert? Der Fehler könnte heißen das du den authentication key nicht installiert hast. `

                                ich bin so vorgegangen:

                                iobroker stop
                                sudo apt-get --purge remove node
                                sudo apt-get --purge remove nodejs
                                sudo apt-get autoremove
                                curl -sL https://deb.nodesource.com/setup_6.x | sudo -E bash -
                                sudo apt-get update && sudo apt-get upgrade
                                sudo apt-get install -y build-essential libavahi-compat-libdnssd-dev libudev-dev nodejs
                                cd /opt/iobroker
                                sudo ./reinstall.sh
                                iobroker start
                                
                                

                                beim authentication key stehe ich gerade auf dem Schlauch

                                Wo sollte der den bezogen und abgelegt werden ?

                                vG Looxer

                                1 Reply Last reply Reply Quote 0
                                • S
                                  sunnylaila last edited by

                                  hallo ich bin etwas am verzweifeln und weiß nicht weiter

                                  versuche die Version up zu daten geht aber leider nicht siehe spoiler

                                  ! pi@raspberrypi:~ $ iobroker stop
                                  ! iobroker controller daemon is not running
                                  ! pi@raspberrypi:~ $ sudo apt-get –purge remove node
                                  ! Reading package lists... Done
                                  ! Building dependency tree
                                  ! Reading state information... Done
                                  ! Package 'node' is not installed, so not removed
                                  ! 0 upgraded, 0 newly installed, 0 to remove and 1 not upgraded.
                                  ! pi@raspberrypi:~ $ sudo apt-get --purge remove nodejs
                                  ! Reading package lists... Done
                                  ! Building dependency tree
                                  ! Reading state information... Done
                                  ! The following packages will be REMOVED:
                                  ! nodejs*
                                  ! 0 upgraded, 0 newly installed, 1 to remove and 1 not upgraded.
                                  ! After this operation, 40.7 MB disk space will be freed.
                                  ! Do you want to continue? [Y/n] y
                                  ! (Reading database … 118946 files and directories currently installed.)
                                  ! Removing nodejs (6.11.3-1nodesource1) ...
                                  ! Processing triggers for man-db (2.7.6.1-2) ...
                                  ! pi@raspberrypi:~ $ sudo apt-get autoremove
                                  ! Reading package lists... Done
                                  ! Building dependency tree
                                  ! Reading state information... Done
                                  ! 0 upgraded, 0 newly installed, 0 to remove and 1 not upgraded.
                                  ! pi@raspberrypi:~ $ curl -sL https://deb.nodesource.com/setup_6.x | sudo -E bash -
                                  ! ## Installing the NodeSource Node.js v6.x repo...
                                  ! ## Populating apt-get cache...
                                  ! + apt-get update
                                  ! Hit:1 http://mirrordirector.raspbian.org/raspbian stretch InRelease
                                  ! Hit:2 http://archive.raspberrypi.org/debian stretch InRelease
                                  ! Hit:3 https://deb.nodesource.com/node_6.x stretch InRelease
                                  ! Reading package lists... Done
                                  ! ## Confirming "stretch" is supported...
                                  ! + curl -sLf -o /dev/null 'https://deb.nodesource.com/node_6.x/dis ... ch/Release'
                                  ! ## Adding the NodeSource signing key to your keyring...
                                  ! + curl -s https://deb.nodesource.com/gpgkey/nodesource.gpg.key | apt-key add -
                                  ! OK
                                  ! ## Creating apt sources list file for the NodeSource Node.js v6.x repo...
                                  ! + echo 'deb https://deb.nodesource.com/node_6.x stretch main' > /etc/apt/sources.list.d/nodesource.list
                                  ! + echo 'deb-src https://deb.nodesource.com/node_6.x stretch main' >> /etc/apt/sources.list.d/nodesource.list
                                  ! ## Running apt-get update for you...
                                  ! + apt-get update
                                  ! Hit:1 http://mirrordirector.raspbian.org/raspbian stretch InRelease
                                  ! Hit:2 https://deb.nodesource.com/node_6.x stretch InRelease
                                  ! Hit:3 http://archive.raspberrypi.org/debian stretch InRelease
                                  ! Reading package lists... Done
                                  ! ## Run apt-get install nodejs (as root) to install Node.js v6.x and npm
                                  ! pi@raspberrypi:~ $ apt-get install nodejs
                                  ! E: Could not open lock file /var/lib/dpkg/lock - open (13: Permission denied)
                                  ! E: Unable to lock the administration directory (/var/lib/dpkg/), are you root?
                                  ! pi@raspberrypi:~ $ sudo apt-get update && sudo apt-get upgrade
                                  ! Hit:1 http://mirrordirector.raspbian.org/raspbian stretch InRelease
                                  ! Hit:2 https://deb.nodesource.com/node_6.x stretch InRelease
                                  ! Hit:3 http://archive.raspberrypi.org/debian stretch InRelease
                                  ! Reading package lists... Done
                                  ! Reading package lists... Done
                                  ! Building dependency tree
                                  ! Reading state information... Done
                                  ! Calculating upgrade... Done
                                  ! The following packages have been kept back:
                                  ! gstreamer1.0-omx
                                  ! 0 upgraded, 0 newly installed, 0 to remove and 1 not upgraded.
                                  ! pi@raspberrypi:~ $ sudo apt-get install -y build-essential libavahi-compat-libdnssd-dev libudev-dev nodejs
                                  ! Reading package lists... Done
                                  ! Building dependency tree
                                  ! Reading state information... Done
                                  ! build-essential is already the newest version (12.3).
                                  ! libavahi-compat-libdnssd-dev is already the newest version (0.6.32-2).
                                  ! libudev-dev is already the newest version (232-25+deb9u1).
                                  ! The following NEW packages will be installed:
                                  ! nodejs
                                  ! 0 upgraded, 1 newly installed, 0 to remove and 1 not upgraded.
                                  ! Need to get 0 B/8,740 kB of archives.
                                  ! After this operation, 40.7 MB of additional disk space will be used.
                                  ! Selecting previously unselected package nodejs.
                                  ! (Reading database ... 115955 files and directories currently installed.)
                                  ! Preparing to unpack .../nodejs_6.11.3-1nodesource1_armhf.deb ...
                                  ! Unpacking nodejs (6.11.3-1nodesource1) ...
                                  ! Setting up nodejs (6.11.3-1nodesource1) ...
                                  ! Processing triggers for man-db (2.7.6.1-2) ...
                                  ! pi@raspberrypi:~ $ cd /opt/iobroker
                                  ! pi@raspberrypi:/opt/iobroker $ sudo ./reinstall.sh
                                  ! sudo: ./reinstall.sh: command not found
                                  ! pi@raspberrypi:/opt/iobroker $ iobroker start
                                  ! Starting iobroker controller daemon...
                                  ! iobroker controller daemon failed to start: Failed to write pidfile (EACCES)
                                  ! Error: Failed to write pidfile (EACCES)
                                  ! pi@raspberrypi:/opt/iobroker $

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

                                    @sunnylaila:

                                    geht aber leider nicht `
                                    wenn du als user pi angemeldet bist musst du vor (nahezu) jeden Befehl sudo setzen.

                                    @sunnylaila:

                                    Run apt-get install nodejs (as root) to install Node.js v6.x and npm `
                                    bis hierhin lief noch alles richtig.

                                    statt
                                    @sunnylaila:

                                    pi@raspberrypi:~ $ apt-get install nodejs `
                                    hätte es heißen müssen

                                    sudo apt-get install nodejs
                                    

                                    Dadurch war dann node nicht installiert und alle anderen Updates brachten nichts.

                                    fehlende sudo gab es später noch mehr.

                                    Gruß

                                    Rainer

                                    1 Reply Last reply Reply Quote 0
                                    • S
                                      sunnylaila last edited by

                                      irgendwie will er das aber trotz sudo nicht installieren oder upgraden

                                      pi@raspberrypi:/opt/iobroker $ sudo apt-get install nodejs

                                      Reading package lists… Done

                                      Building dependency tree

                                      Reading state information... Done

                                      nodejs is already the newest version (6.11.3-1nodesource1).

                                      0 upgraded, 0 newly installed, 0 to remove and 1 not upgraded.

                                      Gruß Sunny

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

                                        @looxer01:

                                        habe noch nie mit 'n' gearbeitet aber weiß dass einige Module bei Wechsel von x auf 6 oder 8 neu geladen werden müssen.

                                        SQL light ist ein solches da es am Raspi kompiliert.

                                        Wird ein SQL welches mit node <6 sind die bindings von der alten Version im binary die nicht zur neuen Version passen!

                                        Ich installiere deshalb nach einen Upgrade von 4>6>8 oder sonstwas immer auch 'sudo npm install -g node-gyp' und dann die Adapter mit den zu kompilierenden codes neu (KM200, node-red, radar, sql, …), also alle Adapter die node-gyp verwenden.

                                        Ach übrigens, da sich die npm-Version auch dramatisch ändert mach ich auch ein 'sudo npm cache clean -f' bevor ich mit dem neuen npm zu arbeiten beginne.

                                        p.s.: das ganze gilt auch wenn ihr (so wie ich schon) wieder zurück-steigt, z.B. von 8 auf 6!

                                        Ich würde nie ungerade Zahlen verwenden, die sind nur 'developer' und haben machen für ioBroker keinen Sinn. LTE-versionen gibts nur mit geraden Zahlen, bald auch für 8!

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

                                          Du hast ja jetzt nodejs 6.11 drauf.

                                          Was willst du mehr?

                                          Gruß

                                          Rainer

                                          1 Reply Last reply Reply Quote 0
                                          • S
                                            Sprite01 last edited by

                                            Ich bin nach der Anleitung im ersten Thread vorgegangen.

                                            Bei sudo ./reinstall.sh erhalte ich die Fehlermeldung No such file or directory

                                            Die Datei reinstall.sh ist allerdings in dem Pfad vorhanden.

                                            Was kann/muss ich da tun ?
                                            137_reinstall.jpg

                                            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

                                            979
                                            Online

                                            32.1k
                                            Users

                                            80.7k
                                            Topics

                                            1.3m
                                            Posts

                                            13
                                            51
                                            8877
                                            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