Navigation

    Logo
    • Register
    • Login
    • Search
    • Recent
    • Tags
    • Unread
    • Categories
    • Unreplied
    • Popular
    • GitHub
    • Docu
    • Hilfe
    1. Home
    2. Deutsch
    3. Error/Bug
    4. Ubuntu 19.04 Update - SQL Adapter geht nicht mehr

    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

    UNSOLVED Ubuntu 19.04 Update - SQL Adapter geht nicht mehr

    This topic has been deleted. Only users with topic management privileges can see it.
    • M
      mdsv last edited by Negalein

      Nach dem Update auf 19.04 geht der SQL Adapter nicht mehr.
      Hätte zu bieten .... Nodejs Version: 10.15.2 - NPM 5.8.0

      Caught	2019-04-23 17:39:28.012	error	by controller[0]: at Module.load (internal/modules/cjs/loader.js:599:32)
      Caught	2019-04-23 17:39:28.012	error	by controller[0]: at Object.Module._extensions..js (internal/modules/cjs/loader.js:700:10)
      Caught	2019-04-23 17:39:28.012	error	by controller[0]: at Module._compile (internal/modules/cjs/loader.js:689:30)
      Caught	2019-04-23 17:39:28.012	error	by controller[0]: at Object.<anonymous> (/opt/iobroker/node_modules/mmmagic/lib/index.js:1:75)
      Caught	2019-04-23 17:39:28.012	error	by controller[0]: at require (internal/modules/cjs/helpers.js:22:18)
      Caught	2019-04-23 17:39:28.012	error	by controller[0]: at Module.require (internal/modules/cjs/loader.js:637:17)
      Caught	2019-04-23 17:39:28.012	error	by controller[0]: at Function.Module._load (internal/modules/cjs/loader.js:530:3)
      Caught	2019-04-23 17:39:28.012	error	by controller[0]: at tryModuleLoad (internal/modules/cjs/loader.js:538:12)
      Caught	2019-04-23 17:39:28.012	error	by controller[0]: at Module.load (internal/modules/cjs/loader.js:599:32)
      Caught	2019-04-23 17:39:28.012	error	by controller[0]: at Object.Module._extensions..node (internal/modules/cjs/loader.js:718:18)
      Caught	2019-04-23 17:39:28.012	error	by controller[0]: the module (for instance, using `npm rebuild` or `npm install`).
      Caught	2019-04-23 17:39:28.012	error	by controller[0]: NODE_MODULE_VERSION 64. Please try re-compiling or re-installing
      Caught	2019-04-23 17:39:28.012	error	by controller[0]: NODE_MODULE_VERSION 57. This version of Node.js requires
      Caught	2019-04-23 17:39:28.012	error	by controller[0]: was compiled against a different Node.js version using
      Caught	2019-04-23 17:39:28.011	error	by controller[0]: Error: The module '/opt/iobroker/node_modules/mmmagic/build/Release/magic.node'
      Caught	2019-04-23 17:39:28.011	error	by controller[0]: ^
      Caught	2019-04-23 17:39:28.011	error	by controller[0]: return process.dlopen(module, path.toNamespacedPath(filename));
      Caught	2019-04-23 17:39:28.011	error	by controller[0]: internal/modules/cjs/loader.js:718
      
      M 1 Reply Last reply Reply Quote 0
      • M
        mdsv @mdsv last edited by

        @mdsv
        Hat sich erledigt, Lösung war:

        npm remove mmmagic
        npm install mmmagic

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

          Hm, irgendwie ist die Ubuntu NodeJs Version (10.15.2) neuer als iobroker verkraftet.

          Jetzt kommt beim Öffnen der Adminseite direkt ein Fenster: ioBroker unterstützt die LTS Versionen 6, 8, 10 oder neuer von Node.js. Bitte aktualisieren Sie die verwendete Node.js Version ("v9.3.0") auf dem Rechner "...." auf eine unterstützte Version. Wir empfehlen die Verwendung von Node.js 6.

          Der Work around beim SQL Adapter ging irgendwie leider doch nicht.
          Bin jetzt auf influxdb gewechselt, die ist robuster wohl als SQL. Sehr schade.

          Homoran Thisoft 2 Replies Last reply Reply Quote 0
          • Homoran
            Homoran Global Moderator Administrators @mdsv last edited by

            @mdsv sagte in Ubuntu 19.04 Update - SQL Adapter geht nicht mehr:

            Bitte aktualisieren Sie die verwendete Node.js Version ("v9.3.0") auf dem Rechner

            Dann gib Mal den Output von

            node -v
            nodejs -v
            

            Ich füchte du hast mit dem Upgrade auf die Entwickler Version von Ubuntu eine zweite node Version installiert

            1 Reply Last reply Reply Quote 0
            • Thisoft
              Thisoft @mdsv last edited by

              @mdsv

              Ich hatte ja nach dem Update des SQL-Adapters auch ein gravierendes Installationsproblem. Allerdings unter Windows, das lag an einem Versionsproblem der Windows-Build-Tool. Trifft bei dir ja schonmal nicht zu. Was aber auch bei mir der Auslöser war ist das mmmagic-Paket.

              Was wahrscheinlich nicht der Grund sein dürfte ist m.E. die Node-Version, ich hab seitdem auch die 10.15.3 drauf und es läuft damit. Was ich schon eher in Frage stellen würde ist deine 5er npm-Version - ich hab da schon seit Urzeiten die 6.4.1.

              Poste bitte mal noch den kompletten Output von "npm install mmmagic" - vielleicht sieht man ja noch was, ich hab da jetzt a bisserl Erfahrung damit 🙂

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

                @Homoran sagte in Ubuntu 19.04 Update - SQL Adapter geht nicht mehr:

                node -v

                node -v
                v9.3.0

                nodejs -v
                v10.15.2

                npm install mmmagic
                path /opt/iobroker/node_modules/mmmagic/package.json
                npm ERR! code ELOOP
                npm ERR! errno -40
                npm ERR! syscall open
                npm ERR! ELOOP: too many symbolic links encountered, open '/opt/iobroker/node_modules/mmmagic/package.json'
                npm ERR! A complete log of this run can be found in:
                npm ERR! /home/mdsv/.npm/_logs/2019-04-30T17_55_09_255Z-debug.log

                Daran liegt es sicher, schon klar.

                NPM ... jetzt zeigt er an:
                6.9.0

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

                  @mdsv
                  Wie befürchtet hast du zwei node Installationen parallel laufen.

                  Da musst du eine von deinstallieren.

                  Leider weiß ich nur, dass das schon öfter Thema war, aber leider nicht mehr wie es geht.

                  M 1 Reply Last reply Reply Quote 0
                  • M
                    mdsv @Homoran last edited by

                    Nach langen Hin- und Her habe ich nun:
                    $ npm -v
                    6.9.0
                    $ node -v
                    v10.15.3
                    $ nodejs -v
                    v10.15.2
                    Hatte auch gelesen, dass SQL mit 10er Versionen wohl nicht geht. Werde das Update mal abwarten.
                    Aber die Fehlermeldung: ioBroker unterstützt die LTS Versionen 6, 8, 10 oder neuer von Node.js. Bitte aktualisieren Sie die verwendete Node.js Version ("v9.3.0") auf dem Rechner "...." auf eine unterstützte Version. Wir empfehlen die Verwendung von Node.js 6. kommt nicht mehr.

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

                      @mdsv
                      Du hast aber immer och zwei versi4parallel, auch wenn du die 9er jetztcauf eine andere 10er upgedated hast.

                      M 1 Reply Last reply Reply Quote 0
                      • M
                        mdsv @Homoran last edited by

                        @Homoran
                        woran siehst du das? an den Unterschied. Versionen?

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

                          @mdsv sagte in Ubuntu 19.04 Update - SQL Adapter geht nicht mehr:

                          @Homoran
                          woran siehst du das? an den Unterschied. Versionen?

                          Ja!
                          Die Gefahr ist jetzt, dass du beide auf die gleiche Version bekommst, so dass es scheinbar gelöst ist.

                          Du musst unbedingt herausbekommen wo diese beiden Installationen sind (ich tippe nach wie vor, dass die ehemalige 9er mit dem Ubuntu Upgrade aus deren Repository kam), und beide entfernen und anschließend nach der Anleitung neu installieren.

                          M 1 Reply Last reply Reply Quote 0
                          • M
                            mdsv @Homoran last edited by

                            @Homoran

                            Ok, dachte bisher, das sind 2 unterschiedl. Programme, die miteinander nichts zu tun haben.

                            which node
                            /usr/local/bin/node

                            which nodejs
                            /usr/bin/nodejs

                            Welches Risiko gibt es denn?

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

                            Support us

                            ioBroker
                            Community Adapters
                            Donate

                            881
                            Online

                            31.8k
                            Users

                            80.0k
                            Topics

                            1.3m
                            Posts

                            sql-adapter ubuntu update
                            3
                            12
                            630
                            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