Navigation

    Logo
    • Register
    • Login
    • Search
    • Recent
    • Tags
    • Unread
    • Categories
    • Unreplied
    • Popular
    • GitHub
    • Docu
    • Hilfe
    1. Home
    2. Deutsch
    3. Einsteigerfragen
    4. Problem mit Admin und so

    NEWS

    • Wir empfehlen: Node.js 22.x

    • Neuer Blog: Fotos und Eindrücke aus Solingen

    • ioBroker goes Matter ... Matter Adapter in Stable

    Problem mit Admin und so

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

      @thomas-braun nein das ging eben nicht und bei rename passiert nichts.

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

        @marcus-hamburg sagte in Problem mit Admin und so:

        bei rename passiert nichts.

        Was genau passiert denn bei 'passiert nichts'?
        Ich kann die Konsolenausgaben nicht sehen, die musst du schon hier reinkopieren.

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

          @marcus-hamburg

          Jetzt schauen wir erstmal ob die Basis sauber ist:

          sudo ln -s /usr/bin/node /usr/bin/nodejs
          which nodejs node npm && nodejs -v && node -v && npm -v && whoami && pwd && sudo apt update &> /dev/null && sudo apt update && apt policy nodejs
          
          Marcus Hamburg 1 Reply Last reply Reply Quote 0
          • Marcus Hamburg
            Marcus Hamburg @Thomas Braun last edited by

            @thomas-braun

            pi@raspberrypi:~ $ sudo ln -s /usr/bin/node /usr/bin/nodejs
            ln: die symbolische Verknüpfung '/usr/bin/nodejs' konnte nicht angelegt werden: Die Datei existiert bereits
            pi@raspberrypi:~ $
            pi@raspberrypi:~ $
            pi@raspberrypi:~ $ which nodejs node npm && nodejs -v && node -v && npm -v && whoami && pwd && sudo apt update &> /dev/null && sudo apt update && apt policy nodejs
            /usr/bin/nodejs
            /home/pi/.config/nvm/versions/node/v17.1.0/bin/node
            /home/pi/.config/nvm/versions/node/v17.1.0/bin/npm
            v16.14.0
            v17.1.0
            8.5.4
            pi
            /home/pi
            OK:1 http://archive.raspberrypi.org/debian buster InRelease
            OK:2 http://raspbian.raspberrypi.org/raspbian buster InRelease
            OK:3 https://deb.nodesource.com/node_16.x buster InRelease
            Paketlisten werden gelesen... Fertig
            Abhängigkeitsbaum wird aufgebaut.
            Statusinformationen werden eingelesen.... Fertig
            Alle Pakete sind aktuell.
            nodejs:
              Installiert:           16.14.0-deb-1nodesource1
              Installationskandidat: 16.14.0-deb-1nodesource1
              Versionstabelle:
             *** 16.14.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
            pi@raspberrypi:~ $
            
            
            1 Reply Last reply Reply Quote 0
            • Marcus Hamburg
              Marcus Hamburg @Thomas Braun last edited by

              @thomas-braun

              pi@raspberrypi:~ $ rename '/opt/iobroker/node_modules/iobroker.javascript' -> '/                                opt/iobroker/node_modules/.iobroker.javascript-5NZ432mn'
              -bash: /opt/iobroker/node_modules/.iobroker.javascript-5NZ432mn: Ist ein Verzeic                                hnis
              
              
              Thomas Braun 1 Reply Last reply Reply Quote 0
              • Thomas Braun
                Thomas Braun Most Active @Marcus Hamburg last edited by Thomas Braun

                @marcus-hamburg

                NodeJS ist krumm und schief installiert.
                Das hast du irgendwie mit nvm in das System geballert.
                Deinstallieren, wie auch immer das geht.

                Verzeichnisse werden so umbenannt:

                sudo -u iobroker mv /opt/iobroker/node_modules/iobroker.javascript /opt/iobroker/node_modules/.iobroker.javascript-5NZ432mn
                
                wendy2702 1 Reply Last reply Reply Quote 0
                • wendy2702
                  wendy2702 @Thomas Braun last edited by

                  @thomas-braun sagte in Problem mit Admin und so:

                  @marcus-hamburg

                  NodeJS ist krumm und schief installiert.

                  🙈

                  Ich hatte extra zu Beginn deine Anleitung verlinkt.

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

                    @wendy2702

                    Die ist ja auch umgesetzt worden (so halb jedenfalls). Nur war nie die Rede von 'wild per nvm' installierten Versionen. Die stehen da jetzt noch in der falschen Gegend rum.

                    Marcus Hamburg 1 Reply Last reply Reply Quote 0
                    • Marcus Hamburg
                      Marcus Hamburg @Thomas Braun last edited by

                      @thomas-braun tut mir leid, dass ich chaos produziere. Ich möchte nur meine pi für das Smarthome nutzen und leider bin ich doch eher der eine IOS System nutzt. 😞

                      Was müsste ich nun machen. Die Anleitung von Anfang habe ich soweit ich es verstanden haben umgesetzt.

                      Marcus Hamburg Thomas Braun 2 Replies Last reply Reply Quote 0
                      • Marcus Hamburg
                        Marcus Hamburg @Marcus Hamburg last edited by Marcus Hamburg

                        Wenn ich ein Adapter update, kommt folgende Meldung

                        $ iobroker upgrade backitup@2.3.3
                        
                        Update backitup from @2.2.3 to @2.3.3
                        
                        NPM version: 8.3.1
                        
                        npm install iobroker.backitup@2.3.3 --loglevel error --prefix "/opt/iobroker" (System call)
                        
                        npm ERR! code ENOTEMPTYnpm ERR! syscall renamenpm ERR! path /opt/iobroker/node_modules/typescriptnpm ERR! dest /opt/iobroker/node_modules/.typescript-rKKYB1QGnpm ERR! errno -39npm ERR! ENOTEMPTY: directory not empty, rename '/opt/iobroker/node_modules/typescript' -> '/opt/iobroker/node_modules/.typescript-rKKYB1QG'npm ERR! A complete log of this run can be found in:npm ERR! /home/iobroker/.npm/_logs/2022-03-16T14_23_28_020Z-debug-0.log
                        
                        host.raspberrypi Cannot install iobroker.backitup@2.3.3: 217
                        
                        ERROR: Process exited with code 25
                        
                        1 Reply Last reply Reply Quote 0
                        • Thomas Braun
                          Thomas Braun Most Active @Marcus Hamburg last edited by

                          @marcus-hamburg sagte in Problem mit Admin und so:

                          Was müsste ich nun machen.

                          Ich kenne nvm nicht und weiß nicht wie man damit die falsche Version wieder aus dem /home bekommt. Zur Not einfach das Verzeichnis

                          /home/pi/.config/nvm/

                          löschen. Und das System neustarten.

                          Marcus Hamburg 1 Reply Last reply Reply Quote 0
                          • Marcus Hamburg
                            Marcus Hamburg @Thomas Braun last edited by

                            @thomas-braun ok Ordner gelöscht System läuft noch. Jedoch kann ich die Adapter nun gar nicht mehr aktuellisieren. (über Admin Oberfläche)

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

                              @marcus-hamburg sagte in Problem mit Admin und so:

                              System läuft noch.

                              Noch oder wieder?
                              Unbedingt einen Neustart vornehmen.

                              iobroker update -i
                              

                              sagt?

                              Und nodeJS ist jetzt senkrecht?
                              Mit

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

                              nochmal schauen.

                              Marcus Hamburg 1 Reply Last reply Reply Quote 0
                              • Marcus Hamburg
                                Marcus Hamburg @Thomas Braun last edited by

                                @thomas-braun

                                pi@raspberrypi:~ $ iobroker update -i
                                Used repository: stable
                                hash changed or no sources cached => force download of new sources
                                update done
                                Adapter    "admin"         : 5.3.1    , installed 5.2.3 [Updateable]
                                Adapter    "alexa2"        : 3.11.2   , installed 3.11.2
                                Adapter    "backitup"      : 2.3.3    , installed 2.2.3 [Updateable]
                                Adapter    "discovery"     : 2.7.5    , installed 2.7.3 [Updateable]
                                Adapter    "habpanel"      : 0.4.3    , installed 0.4.3
                                Adapter    "hmip"          : 1.15.4   , installed 1.15.2 [Updateable]
                                Adapter    "hue"           : 3.6.5    , installed 3.5.31 [Updateable]
                                Adapter    "ical"          : 1.11.4   , installed 1.11.4
                                Adapter    "info"          : 1.9.8    , installed 1.9.8
                                Controller "js-controller" : 4.0.21   , installed 3.3.22 [Updateable]
                                Adapter    "mihome"        : 1.3.7    , installed 1.3.7
                                Adapter    "openweathermap": 0.1.0    , installed 0.1.0
                                Adapter    "simple-api"    : 2.6.2    , installed 2.6.1 [Updateable]
                                Adapter    "socketio"      : 3.1.5    , installed 3.1.5
                                Adapter    "tankerkoenig"  : 2.1.1    , installed 2.1.1
                                Adapter    "tr-064"        : 4.2.15   , installed 4.2.14 [Updateable]
                                Adapter    "trashschedule" : 1.4.1    , installed 1.4.1
                                Adapter    "web"           : 3.4.16   , installed 3.4.16
                                pi@raspberrypi:~ $ which nodejs node npm && nodejs -v && node -v && npm -v && whoami && pwd && sudo apt update &> /dev/null && sudo apt update && apt policy nodejs
                                /usr/bin/nodejs
                                /usr/bin/node
                                /usr/bin/npm
                                v16.14.0
                                v16.14.0
                                8.3.1
                                pi
                                /home/pi
                                OK:1 http://raspbian.raspberrypi.org/raspbian buster InRelease
                                OK:2 http://archive.raspberrypi.org/debian buster InRelease
                                OK:3 https://deb.nodesource.com/node_16.x buster InRelease
                                Paketlisten werden gelesen... Fertig
                                Abhängigkeitsbaum wird aufgebaut.
                                Statusinformationen werden eingelesen.... Fertig
                                Alle Pakete sind aktuell.
                                N: Datei »nodesource.list.save.1« in Verzeichnis »/etc/apt/sources.list.d/« wird ignoriert, da sie eine ungültige Dateinamen-Erweiterung hat.
                                nodejs:
                                  Installiert:           16.14.0-deb-1nodesource1
                                  Installationskandidat: 16.14.0-deb-1nodesource1
                                  Versionstabelle:
                                 *** 16.14.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
                                N: Datei »nodesource.list.save.1« in Verzeichnis »/etc/apt/sources.list.d/« wird ignoriert, da sie eine ungültige Dateinamen-Erweiterung hat.
                                
                                
                                Thomas Braun 2 Replies Last reply Reply Quote 0
                                • Thomas Braun
                                  Thomas Braun Most Active @Marcus Hamburg last edited by

                                  @marcus-hamburg sagte in Problem mit Admin und so:

                                  nodesource.list.save.1

                                  löschen.

                                  sudo rm /etc/apt/sources.list.d/nodesource.list.save.1
                                  
                                  1 Reply Last reply Reply Quote 0
                                  • Thomas Braun
                                    Thomas Braun Most Active @Marcus Hamburg last edited by

                                    @marcus-hamburg

                                    iobroker stop
                                    iobroker fix
                                    iobroker update
                                    iobroker upgrade
                                    iobroker upgrade self
                                    iobroker start
                                    
                                    Marcus Hamburg 1 Reply Last reply Reply Quote 0
                                    • Marcus Hamburg
                                      Marcus Hamburg @Thomas Braun last edited by

                                      @thomas-braun bei Upgrade kommt erneut ein Fehler

                                      pi@raspberrypi:~ $ iob upgrade self
                                      Update js-controller from @3.3.22 to @4.0.21
                                      NPM version: 8.3.1
                                      npm install iobroker.js-controller@4.0.21 --loglevel error --unsafe-perm --prefix "/opt/iobroker" (System call)
                                      npm ERR! code ENOTEMPTY
                                      npm ERR! syscall rename
                                      npm ERR! path /opt/iobroker/node_modules/typescript
                                      npm ERR! dest /opt/iobroker/node_modules/.typescript-rKKYB1QG
                                      npm ERR! errno -39
                                      npm ERR! ENOTEMPTY: directory not empty, rename '/opt/iobroker/node_modules/typescript' -> '/opt/iobroker/node_modules/.typescript-rKKYB1QG'
                                      
                                      npm ERR! A complete log of this run can be found in:
                                      npm ERR!     /home/iobroker/.npm/_logs/2022-03-16T16_24_42_511Z-debug-0.log
                                      host.raspberrypi Cannot install iobroker.js-controller@4.0.21: 217
                                      
                                      Thomas Braun 1 Reply Last reply Reply Quote 0
                                      • Thomas Braun
                                        Thomas Braun Most Active @Marcus Hamburg last edited by

                                        @marcus-hamburg

                                        Siehe oben. Verzeichnis umbenennen.

                                        Marcus Hamburg 1 Reply Last reply Reply Quote 0
                                        • Marcus Hamburg
                                          Marcus Hamburg @Thomas Braun last edited by

                                          @thomas-braun Ich verzweifle an mich selbst. 😞 😞 😞

                                          pi@raspberrypi:~ $ sudo -u iobroker mv /opt/iobroker/node_modules/iobroker.javascript /opt/iobroker/node_modules/.iobroker.javascript-5NZ432mn
                                          mv: der Aufruf von stat für '/opt/iobroker/node_modules/iobroker.javascript' ist nicht möglich: Datei oder Verzeichnis nicht gefunden
                                          
                                          Thomas Braun 1 Reply Last reply Reply Quote 0
                                          • Thomas Braun
                                            Thomas Braun Most Active @Marcus Hamburg last edited by

                                            @marcus-hamburg sagte in Problem mit Admin und so:

                                            sudo -u iobroker mv /opt/iobroker/node_modules/typescript /opt/iobroker/node_modules/.typescript-rKKYB1QG
                                            
                                            Marcus Hamburg 1 Reply Last reply Reply Quote 0
                                            • First post
                                              Last post

                                            Support us

                                            ioBroker
                                            Community Adapters
                                            Donate

                                            558
                                            Online

                                            32.0k
                                            Users

                                            80.3k
                                            Topics

                                            1.3m
                                            Posts

                                            7
                                            71
                                            4533
                                            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