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
      Verstehe ich das richtig, ich soll alle Adapter löschen???

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

        @nathan1312
        Nein, die angezeigten Verzeichnisse löschen. Da das ggf. mehrere sein können am bequemsten mit der genannten for-Schleife.

        N 2 Replies Last reply Reply Quote 0
        • 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
                                            • First post
                                              Last post

                                            Support us

                                            ioBroker
                                            Community Adapters
                                            Donate
                                            FAQ Cloud / IOT
                                            HowTo: Node.js-Update
                                            HowTo: Backup/Restore
                                            Downloads
                                            BLOG

                                            875
                                            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