Navigation

    Logo
    • Register
    • Login
    • Search
    • Recent
    • Tags
    • Unread
    • Categories
    • Unreplied
    • Popular
    • GitHub
    • Docu
    • Hilfe
    1. Home
    2. Deutsch
    3. ioBroker Allgemein
    4. Adapter "smartmeter"

    NEWS

    • ioBroker@Smart Living Forum Solingen, 14.06. - Agenda added

    • ioBroker goes Matter ... Matter Adapter in Stable

    • Monatsrückblick - April 2025

    Adapter "smartmeter"

    This topic has been deleted. Only users with topic management privileges can see it.
    • Thomas Braun
      Thomas Braun Most Active @AndieKiste last edited by Thomas Braun

      @andiekiste sagte in Adapter "smartmeter":

      Error: libnode.so.72: cannot open shared object file: No such file or directory

      Das irritiert mich. Diese Datei kommt eigentlich aus der Debian-Ecke, also deren hauseigener Version von nodejs:

      apt policy libnode72
      libnode72:
        Installed: (none)
        Candidate: 12.22.5~dfsg-2~11u1
        Version table:
           12.22.5~dfsg-2~11u1 500
              500 http://deb.debian.org/debian bullseye/main arm64 Packages
              500 http://security.debian.org/debian-security bullseye-security/main arm64 Packages
      

      Die ist aber in der Form bei einer nodesource-Installation nicht vorhanden. Und auch nicht erforderlich, denn:

      2022-01-06 21:53:22.784  - info: smartmeter.0 (137513) starting. Version 3.2.1 in /opt/iobroker/node_modules/iobroker.smartmeter, node: v17.3.0, js-controller: 3.3.22
      2022-01-06 21:53:22.819  - error: smartmeter.0 (137513) Serial port device is undefined, check your configuration!
      

      Startet bei mir auch ohne libnode.so.72

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

        @andiekiste
        Was sagt:

        which nodejs node npm && nodejs -v && node -v && npm -v && whoami && sudo apt update &> /dev/null && sudo apt update && apt policy nodejs
        
        A 1 Reply Last reply Reply Quote 1
        • A
          AndieKiste @Homoran last edited by

          @homoran
          3829b485-ccfb-47fa-b721-1854e5b38724-image.png

          Eigentlich schon, ja, es wird mir zumindest so angezeigt. Ich bin aber selbst gerade maximal verwirrt, weil wenn ich in der Konsole nodejs -v eingebe, sagt er mir dass nodejs nicht vorhanden ist und ich es installieren soll. Bin leider kein Linux-Fachmann aber werde es jetzt mal installieren.

          Thomas Braun Homoran 3 Replies Last reply Reply Quote 0
          • Thomas Braun
            Thomas Braun Most Active @AndieKiste last edited by Thomas Braun

            @andiekiste NEIN!
            Das Kommando nodejs ist in aktuellen Versionen nicht mehr drin. Das ist also i. O.

            Du kannst es aber mit

            sudo ln -s /usr/bin/node /usr/bin/nodejs
            

            'nachbauen'.

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

              @andiekiste
              Was liefert

              which nodejs node npm && nodejs -v && node -v && npm -v && whoami && sudo apt update &> /dev/null && sudo apt update && apt policy nodejs
              

              denn nu?

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

                @andiekiste sagte in Adapter "smartmeter":

                es wird mir zumindest so angezeigt

                dann wären zwei Szenarien denkbar (oder mehr)

                • es kam später in eine höhere 14.x mit rein
                • du hattest zwischendrin mal eine höhere node-Version als 14 installiert und wieder downgegradet
                A 1 Reply Last reply Reply Quote 0
                • A
                  AndieKiste @Thomas Braun last edited by

                  @thomas-braun
                  0641f1d1-cc76-4131-8e71-06f6599c54cb-image.png

                  Ich bin maximal verwirrt. Wenn ich richtig verstehe was du gerne hättest sind das ja verschiedene Befehle hintereinander. Einzeln nacheinander sieht es so aus:

                  root@iobroker:~# which nodejs node npm
                  /usr/bin/node
                  /usr/bin/npm
                  root@iobroker:~# nodejs -v                                                                  
                  Command 'nodejs' not found, but can be installed with:
                  apt install nodejs                                                               
                  root@iobroker:~# node -v
                  v14.18.2
                  root@iobroker:~# npm -v
                  6.14.15
                  root@iobroker:~# whoami
                  root
                  root@iobroker:~# apt update &> /dev/null      "Der Befehl gibt garnichts zurück bei mir"
                  root@iobroker:~# apt update
                  Hit:1 http://archive.ubuntu.com/ubuntu hirsute InRelease
                  Hit:2 http://archive.ubuntu.com/ubuntu hirsute-updates InRelease          
                  Hit:3 http://archive.ubuntu.com/ubuntu hirsute-security InRelease         
                  Hit:4 https://deb.nodesource.com/node_14.x groovy InRelease               
                  Reading package lists... Done                       
                  Building dependency tree... Done
                  Reading state information... Done
                  3 packages can be upgraded. Run 'apt list --upgradable' to see them.
                  root@iobroker:~# apt policy nodejs
                  nodejs:
                    Installed: 14.18.2-deb-1nodesource1
                    Candidate: 14.18.2-deb-1nodesource1
                    Version table:
                   *** 14.18.2-deb-1nodesource1 500
                          500 https://deb.nodesource.com/node_14.x groovy/main amd64 Packages
                          100 /var/lib/dpkg/status
                       12.21.0~dfsg-3ubuntu1 500
                          500 http://archive.ubuntu.com/ubuntu hirsute/universe amd64 Packages
                  

                  Was ich auch nicht verstehe, er zeigt mir ja von nodejs was an. Umgekehrt über die Konsole dachte ich mir, wenn er nodejs installiert haben will, versuche ich es einfach, aber dann kommt folgendes:

                  root@iobroker:~# apt install nodejs
                  Reading package lists... Done
                  Building dependency tree... Done
                  Reading state information... Done
                  nodejs is already the newest version (14.18.2-deb-1nodesource1).
                  0 upgraded, 0 newly installed, 0 to remove and 3 not upgraded.
                  

                  Ich weiß leider dass ich als root angemeldet bin, was nicht gut ist. aber als iobroker kann ich mich nicht einloggen, dann sagt er mir "User account currently not available."

                  Erkennst du da was?

                  Danke und Gruß
                  Andi

                  Homoran Thomas Braun 4 Replies Last reply Reply Quote 0
                  • Homoran
                    Homoran Global Moderator Administrators @AndieKiste last edited by

                    @andiekiste sagte in Adapter "smartmeter":

                    wenn er nodejs installiert haben will, versuche ich es einfach, aber dann kommt folgendes:

                    nodejs ist node
                    Hieß früher nur auch nodejs. Uralte Programme erwarten das noch. Dafür wurde früher einfach ein Link gesetzt, der bei Aufruf von nodejs auf node verlinkt hatte.
                    Das kann man immer noch machen, ist aber standardmäßig nur noch selten der Fall

                    Nix neu installieren!
                    Das geht dann wieder schief

                    A 1 Reply Last reply Reply Quote 0
                    • A
                      AndieKiste @Homoran last edited by

                      @homoran Bei node Updates halte ich mich meist an Anleitungen sobald sie verfügbar sind und an die Versionen, wie sie hier im Forum vorgeschlagen werden, da ich wie gesagt nicht der Linux-Fachmann bin. Ich möchte es natürlich nicht ausschließen, aber "aus Versehen" ein Up- und wieder Downgrade zu machen würde mich selbst überraschen. 🙂

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

                        @andiekiste

                        sudo ln -s /usr/bin/node /usr/bin/nodejs
                        

                        Und dann in einer Tour durch:

                        which nodejs node npm && nodejs -v && node -v && npm -v && whoami && sudo apt update &> /dev/null && sudo apt update && apt policy nodejs
                        

                        Nix rauspflücken, alles so in die Konsole klatschen.

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

                          @andiekiste sagte in Adapter "smartmeter":

                          aber als iobroker kann ich mich nicht einloggen, dann sagt er mir "User account currently not available."

                          das ist auch richtig so, aber du solltest einen normalen user, z.B. andi haben unter dem du arbeitest

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

                            @andiekiste sagte in Adapter "smartmeter":

                            Ich weiß leider dass ich als root angemeldet bin, was nicht gut ist.

                            Dann leg dir einen andi user an.

                            A 1 Reply Last reply Reply Quote 1
                            • A
                              AndieKiste @Homoran last edited by

                              @homoran ahh oke, danke. Dann bleibt nur leider die Frage warum der Adapter nicht will.

                              Macht es Sinn, unter Proxmox einfach mal eine neue VM anzulegen, iobroker neu zu installieren und dort ein Backup zu laden? Oder sind da andere Probleme zu erwarten?

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

                                @andiekiste sagte in Adapter "smartmeter":

                                Oder sind da andere Probleme zu erwarten?

                                nur die Üblichen 😉
                                anderer Hostname und andere IP

                                ersteres sollte eigentlich mit dem Restore über Backitup geregelt sein, bei manuellem Restore geht das über 'iobroker host this' bevor iobroker wieder gestartet wird
                                Letzteres ist nicht unbedingt wild, nur die IPs in diversen Adaptern müssten angepasst werden

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

                                  @thomas-braun

                                  root@iobroker:~# which nodejs node npm && nodejs -v && node -v && npm -v && whoami && sudo apt update &> /dev/null && sudo apt update && apt policy nodejs& sudo apt update && apt policy nodejsv && npm -v && whoami && sudo apt
                                  /usr/bin/nodejs
                                  /usr/bin/node
                                  /usr/bin/npm
                                  v14.18.2
                                  v14.18.2
                                  6.14.15
                                  root
                                  Hit:1 http://archive.ubuntu.com/ubuntu hirsute InRelease
                                  Get:2 http://archive.ubuntu.com/ubuntu hirsute-updates InRelease [115 kB] 
                                  Hit:3 https://deb.nodesource.com/node_14.x groovy InRelease                          
                                  Get:4 http://archive.ubuntu.com/ubuntu hirsute-security InRelease [110 kB]           
                                  Fetched 225 kB in 1s (249 kB/s)    
                                  Reading package lists... Done
                                  Building dependency tree... Done
                                  Reading state information... Done
                                  3 packages can be upgraded. Run 'apt list --upgradable' to see them.
                                  nodejs:
                                    Installed: 14.18.2-deb-1nodesource1
                                    Candidate: 14.18.2-deb-1nodesource1
                                    Version table:
                                   *** 14.18.2-deb-1nodesource1 500
                                          500 https://deb.nodesource.com/node_14.x groovy/main amd64 Packages
                                          100 /var/lib/dpkg/status
                                  
                                  1 Reply Last reply Reply Quote 0
                                  • A
                                    AndieKiste @Thomas Braun last edited by

                                    @thomas-braun @Homoran
                                    Also wenn zwei exakt das gleiche in einer Minute empfehlen, dann war der User andi jetzt gerade als allererstes erstellt 😄

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

                                      @andiekiste sagte in Adapter "smartmeter":

                                      @thomas-braun @Homoran
                                      Also wenn zwei exakt das gleiche in einer Minute empfehlen, dann war der User andi jetzt gerade als allererstes erstellt 😄

                                      Super!
                                      Auch in die Sudoers eingetragen?

                                      A 1 Reply Last reply Reply Quote 1
                                      • A
                                        AndieKiste @Homoran last edited by

                                        @homoran
                                        Jep, wieder ne gute kurze Forumanleitung inkl. Test gefunden. 🙂

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

                                          @andiekiste sagte in Adapter "smartmeter":

                                          ne gute kurze Forumanleitung inkl. Test gefunden

                                          Wo?

                                          A 1 Reply Last reply Reply Quote 0
                                          • A
                                            AndieKiste @Homoran last edited by

                                            @homoran
                                            meistens im wiki.ubuntuusers.de, aber es gab dann noch ne gute Ergänzung hier.

                                            Homoran 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

                                            758
                                            Online

                                            31.7k
                                            Users

                                            79.6k
                                            Topics

                                            1.3m
                                            Posts

                                            279
                                            3620
                                            1835819
                                            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