Navigation

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

    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

    [Hilfe] mit admin Adapter

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

      @thomas-braun
      Ok, habe ich getan. Und jetzt den admin neu installieren?

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

        @thomas-braun

        habe npm und nodejs neu installiert

        root@ioBrokerRaspi4:~# uname -m && type -P nodejs node npm && nodejs -v && node -v && npm -v && whoami && pwd && sudo apt update &> /dev/null && sudo apt update && apt policy nodejs
        armv7l
        /usr/bin/nodejs
        /usr/bin/node
        /usr/bin/npm
        v16.16.0
        v16.16.0
        8.11.0
        root
        /root
        Hit:1 http://raspbian.raspberrypi.org/raspbian buster InRelease
        Hit:2 http://archive.raspberrypi.org/debian buster InRelease
        Hit:3 https://deb.nodesource.com/node_16.x buster InRelease
        Reading package lists... Done
        Building dependency tree
        Reading state information... Done
        All packages are up to date.
        nodejs:
          Installed: 16.16.0-deb-1nodesource1
          Candidate: 16.16.0-deb-1nodesource1
          Version table:
         *** 16.16.0-deb-1nodesource1 500
                500 https://deb.nodesource.com/node_16.x buster/main armhf Packages
                100 /var/lib/dpkg/status
             10.24.0~dfsg-1~deb10u1 500
                500 http://raspbian.raspberrypi.org/raspbian buster/main armhf Packages
        
        

        Nach Neustart sind die Verzeichnisse nun ok. Admin läuft aber immer noch nicht. Fehlermeldung bei der Neuinstallation

        root@ioBrokerRaspi4:/opt/iobroker# iobroker stop admin
        root@ioBrokerRaspi4:/opt/iobroker# npm install iobroker.admin
        npm ERR! code ENOTEMPTY
        npm ERR! syscall rename
        npm ERR! path /opt/iobroker/node_modules/jsonwebtoken/node_modules/jwa
        npm ERR! dest /opt/iobroker/node_modules/jsonwebtoken/node_modules/.jwa-2afDFyYb
        npm ERR! errno -39
        npm ERR! ENOTEMPTY: directory not empty, rename '/opt/iobroker/node_modules/jsonwebtoken/node_modules/jwa' -> '/opt/iobroker/node_modules/jsonwebtoken/node_modules/.jwa-2afDFyYb'
        
        npm ERR! A complete log of this run can be found in:
        npm ERR!     /home/iobroker/.npm/_logs/2022-08-13T12_35_21_858Z-debug-0.log
        
        N Thomas Braun 2 Replies Last reply Reply Quote 0
        • N
          nathan1312 @nathan1312 last edited by

          @nathan1312 sagte in [Hilfe] mit admin Adapter:

          /opt/iobroker/node_modules/jsonwebtoken/node_modules/.jwa-2afDFyYb

          diesen pfad auch löschen?

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

            @nathan1312
            Nicht als root herumkaspern.
            Nicht direkt mit npm hantieren.
            Weitere angemerkte Verzeichnisse löschen.

            Wenn man es nicht so macht auch nicht wundern wenn alles falsch läuft...

            N 2 Replies Last reply Reply Quote 0
            • N
              nathan1312 @Thomas Braun last edited by

              @thomas-braun
              sorry, ich bin nur copy-paste-Kraft und suche mir meine Anleitungen aus dem Netz.

              Dort wird die Installation eines Adapters mit

              npm install iobroker.adapterName
              

              beschrieben.

              Wie mache ich das denn dann richtig?

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

                @nathan1312

                Dann erstmal die 'Anleitung' zum root Login schleunigst vergessen und als normaler User anmelden. Insbesondere als 'copy-paste-Kraft' hat da eine root shell noch weniger als ohnehin schon zu suchen.

                Adapter installiert man z.B. per

                iobroker add adaptername
                
                iobroker fix
                

                als Standarduser ausführen.

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

                  @thomas-braun

                  ok

                  ich weiß, dass das nervig ist, leuten zu helfen, die im Prinzip keine Ahnung haben. deswegen rechne ich dir das hoch an. Vielen Dank!

                  Habs jetzt hinbekommen. Nachdem ich alle diese komischen Verzeichnisse gelöscht hatte konnte ich den admin neu installieren. jetzt läuft es wieder.

                  Nochmals vielen Dank!

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

                    @nathan1312 sagte in [Hilfe] mit admin Adapter:

                    keine Ahnung haben

                    Die kann man sich ja aneignen.

                    Wie bist du denn da jetzt unterwegs?

                    copy-paste (als Standard-User natürlich):

                    sudo ln -s /usr/bin/node /usr/bin/nodejs
                    uname -m && type -P nodejs node npm && nodejs -v && node -v && npm -v && whoami && pwd && sudo apt update &> /dev/null && sudo apt update && apt policy nodejs
                    
                    1 Reply Last reply Reply Quote 0
                    • Homoran
                      Homoran Global Moderator Administrators @nathan1312 last edited by

                      @nathan1312 sagte in [Hilfe] mit admin Adapter:

                      Dort wird die Installation eines Adapters mit
                      npm install iobroker.adapterName

                      beschrieben.
                      Wie mache ich das denn dann richtig?

                      das kann man so machen, wenn man sich vorher ins richtige Verzeichnis bewegt.
                      die iobroker mach etwas Befehle wie @Thomas-Braun schreibt können überall ausgeführt werden.

                      1 Reply Last reply Reply Quote 0
                      • DJMarc75
                        DJMarc75 @nathan1312 last edited by

                        @nathan1312 sagte in [Hilfe] mit admin Adapter:

                        sorry, ich bin nur copy-paste-Kraft und suche mir meine Anleitungen aus dem Netz.
                        Dort wird die Installation eines Adapters mit
                        npm install iobroker.adapterName

                        beschrieben.

                        @Homoran .. vielleicht wieder ein Hinweis auf "furchtbare" Installationen ?!

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

                          @djmarc75 sagte in [Hilfe] mit admin Adapter:

                          vielleicht wieder ein Hinweis auf "furchtbare" Installationen ?!

                          diesmal nicht!
                          das könnte sogar in meiner Anleitung Anno 1832 stehen

                          DJMarc75 Thomas Braun 2 Replies Last reply Reply Quote 0
                          • DJMarc75
                            DJMarc75 @Homoran last edited by

                            @homoran sagte in [Hilfe] mit admin Adapter:

                            Anno 1832 stehen

                            ach die in Stein gemeiselte ? 😀

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

                              @homoran sagte in [Hilfe] mit admin Adapter:

                              das könnte sogar in meiner Anleitung Anno 1832 stehen

                              Ich hoffe aber, das in der nicht auch die root shell empfohlen wurde. Das war auch 1832 schon veralteter Kokolores.

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

                                @thomas-braun sagte in [Hilfe] mit admin Adapter:

                                @homoran sagte in [Hilfe] mit admin Adapter:

                                das könnte sogar in meiner Anleitung Anno 1832 stehen

                                Ich hoffe aber, das in der nicht auch die root shell empfohlen wurde. Das war auch 1832 schon veralteter Kokolores.

                                Da muss ich dich enttäuschen, die ersten ioBroker Installationen mussten sogar als root ausgeführt werden, da gab es neines Wissens noch keinen Systemuser iobroker mit angepassten Rechten.
                                Aus der Zeit stammen dann die auch heute noch unverändert existierenden Anleitungen mit den abenteuerlichen Rechtverbiegungen

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

                                  @homoran

                                  Aber auch da ging das mit 'sudo machwas' ohne root shell.

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

                                    @thomas-braun sagte in [Hilfe] mit admin Adapter:

                                    @homoran

                                    Aber auch da ging das mit 'sudo machwas' ohne root shell.

                                    frag mich nicht. 2013/14 war Tuxolinisch für mich auch Neuland.
                                    Außerdem verschwimmt inzwischen die Erinnerung daran

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

                                      @homoran @nathan1312

                                      ich weiß, dass das nervig ist, leuten zu helfen, die im Prinzip keine Ahnung haben

                                      Es ist auch nicht nervig Leuten zu helfen, die wenig Ahnung haben, es ist nervig das immer die Anleitungen von so ganz vorwitzigen Knallern gefunden werden, die ganz offensichtlich auch nicht mehr Ahnung haben, die dann aber (bevorzugt in youtube-Clips) meinen diese Halb-Ahnung raushauen zu müssen.

                                      DJMarc75 1 Reply Last reply Reply Quote 3
                                      • DJMarc75
                                        DJMarc75 @Thomas Braun last edited by

                                        @thomas-braun sagte in [Hilfe] mit admin Adapter:

                                        von so ganz vorwitzigen Knallern

                                        Bachforelle? 😂 🐟

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

                                          @nathan1312 sagte in [Hilfe] mit admin Adapter:

                                          ich weiß, dass das nervig ist, leuten zu helfen, die im Prinzip keine Ahnung haben

                                          das ist es überhaupt nicht per se!

                                          nervig wird es wenn diese Leute die Hilfe nicht annehmen wollen, weil sie meinen es besser zu wissen, entweder vorgeben Ahnung zu haben oder windige oder veraltete Anleitungen als Begründung für eine angeblich falsche Beratung unsererseits anführen.
                                          Ganz kurios wird es in nicht wenigen Fällen in denen dann argumentiert wird man sei schließlich Systemadministrator oder hätte einen anderen IT Background

                                          1 Reply Last reply Reply Quote 2
                                          • N
                                            nathan1312 @Thomas Braun last edited by

                                            @thomas-braun sagte in [Hilfe] mit admin Adapter:

                                            Nicht als root herumkaspern.
                                            Nicht direkt mit npm hantieren.
                                            Weitere angemerkte Verzeichnisse löschen.
                                            Wenn man es nicht so macht auch nicht wundern wenn alles falsch läuft...

                                            klang schon ein wenig genervt 😉

                                            @homoran sagte in [Hilfe] mit admin Adapter:

                                            ich weiß, dass das nervig ist, leuten zu helfen, die im Prinzip keine Ahnung haben

                                            das ist es überhaupt nicht per se!
                                            nervig wird es wenn diese Leute die Hilfe nicht annehmen wollen, weil sie meinen es besser zu wissen, entweder vorgeben Ahnung zu haben oder windige oder veraltete Anleitungen als Begründung für eine angeblich falsche Beratung unsererseits anführen.

                                            Ich nehme jede Hilfe dankend an! Versuche aber vorher schon meinen Sch... selbst auszubügeln. Konnte nach drei Stunden in der Hitze unterm Dach aber nicht mehr. Deswegen danke nochmal an Thomas!

                                            @homoran sagte in [Hilfe] mit admin Adapter:

                                            diesmal nicht!
                                            das könnte sogar in meiner Anleitung Anno 1832 stehen

                                            Ich habe mich hauptsächlich hieran orientiert https://www.iobroker.net/docu/index-26.htm?page_id=3928&lang=de

                                            @nathan1312 sagte in [Hilfe] mit admin Adapter:

                                            sorry, ich bin nur copy-paste-Kraft und suche mir meine Anleitungen aus dem Netz.

                                            Da habe ich mich ein klein wenig schlechter dargestellt, als vielleicht nötig war. Bin schon einige Jahre mit linux unterwegs und besitze immerhin Grundkenntnisse. Bei der Fehlersuche bin ich allerdings aufgeschmissen, dafür reicht es bei Weitem nicht...

                                            @thomas-braun sagte in [Hilfe] mit admin Adapter:

                                            Wie bist du denn da jetzt unterwegs?
                                            copy-paste (als Standard-User natürlich):

                                            pi@ioBrokerRaspi4:~ $ uname -m && type -P nodejs node npm && nodejs -v && node -v && npm -v && whoami && pwd && sudo apt update &> /dev/null && sudo apt update && apt policy nodejs
                                            armv7l
                                            /usr/bin/nodejs
                                            /usr/bin/node
                                            /usr/bin/npm
                                            v16.16.0
                                            v16.16.0
                                            8.11.0
                                            pi
                                            /home/pi
                                            Hit:1 http://archive.raspberrypi.org/debian buster InRelease
                                            Hit:2 http://raspbian.raspberrypi.org/raspbian buster InRelease
                                            Hit:3 https://deb.nodesource.com/node_16.x buster InRelease
                                            Reading package lists... Done
                                            Building dependency tree
                                            Reading state information... Done
                                            All packages are up to date.
                                            nodejs:
                                              Installed: 16.16.0-deb-1nodesource1
                                              Candidate: 16.16.0-deb-1nodesource1
                                              Version table:
                                             *** 16.16.0-deb-1nodesource1 500
                                                    500 https://deb.nodesource.com/node_16.x buster/main armhf Packages
                                                    100 /var/lib/dpkg/status
                                                 10.24.0~dfsg-1~deb10u1 500
                                                    500 http://raspbian.raspberrypi.org/raspbian buster/main armhf Packages
                                            

                                            Sollte hoffentlich jetzt wieder alles passen. Habe zumindest keine Probleme mehr. Allerdings ist der Shelly-Adapter wieder auf 5.3.2. Traue mich gar nicht das update nochmal zu probieren... 😕

                                            Thomas Braun 2 Replies 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

                                            696
                                            Online

                                            31.9k
                                            Users

                                            80.2k
                                            Topics

                                            1.3m
                                            Posts

                                            4
                                            27
                                            1693
                                            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