Navigation

    Logo
    • Register
    • Login
    • Search
    • Recent
    • Tags
    • Unread
    • Categories
    • Unreplied
    • Popular
    • GitHub
    • Docu
    • Hilfe
    1. Home
    2. Deutsch
    3. ioBroker Allgemein
    4. Ich kann nichts mehr installieren / updaten

    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

    Ich kann nichts mehr installieren / updaten

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

      @thomas-braun

      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 nodejsx86_64
      -P: not found
      nodejs is /usr/bin/nodejs
      node is /usr/bin/node
      npm is /usr/bin/npm
      Hit:1 http://deb.debian.org/debian bullseye InRelease
      Hit:2 http://deb.debian.org/debian bullseye-updates InRelease                                 
      Get:3 http://security.debian.org/debian-security bullseye-security InRelease [48,4 kB]        
      Hit:4 https://deb.nodesource.com/node_16.x bullseye InRelease                                 
      Fetched 48,4 kB in 1s (37,0 kB/s)                 
      Reading package lists... Done
      Building dependency tree... Done
      Reading state information... Done
      61 packages can be upgraded. Run 'apt list --upgradable' to see them.
      N: Unable to locate package nodejssudo
      N: Unable to locate package ln
      N: Unable to locate package /usr/bin/nodejs
      [1] + Done(127)                  uname -m && type -P nodejs node npm && nodejs -v && node -v && npm -v && whoami && pwd && sudo apt update
      
      Thomas Braun 2 Replies Last reply Reply Quote 0
      • Thomas Braun
        Thomas Braun Most Active @reindeer-web last edited by

        @reindeer-web

        Bitte sauber kopieren, da ist irgendwas durcheinander gelaufen.

        reindeer-web 1 Reply Last reply Reply Quote 0
        • reindeer-web
          reindeer-web @Thomas Braun last edited by

          @thomas-braun
          Da ist jetzt wirklich was durcheinander gekommen:

          --------------------------------------------------------------------------------
          -------------------------     2022-08-31 15:48:48      -------------------------
          --------------------------------------------------------------------------------
           
          --------------------------------------------------------------------------------
          -----                 Welcome to your ioBroker-container!                  -----
          -----                    Startupscript is now running.                     -----
          -----                          Please be patient!                          -----
          --------------------------------------------------------------------------------
           
          --------------------------------------------------------------------------------
          -----                        Debugging information                         -----
          -----                                                                      -----
          -----                                System                                -----
          -----                    arch:                x86_64                       -----
          -----                                                                      -----
          -----                             Docker-Image                             -----
          -----                    image:               v6.0.0                       -----
          -----                    build:               2022-02-25T23:46:04+00:00    -----
          -----                                                                      -----
          -----                               Versions                               -----
          /opt/scripts/iobroker_startup.sh: line 48: /usr/bin/node: Permission denied
          -----                    node:                                             -----
          /usr/bin/env: ‘node’: Permission denied
          -----                    npm:                                              -----
          -----                                                                      -----
          -----                                 ENV                                  -----
          -----                    AVAHI:               false                        -----
          -----                    PACKAGES:            nano                         -----
          -----                    SETGID:              1000                         -----
          -----                    SETUID:              1000                         -----
          --------------------------------------------------------------------------------
           
          --------------------------------------------------------------------------------
          -----                  Step 1 of 5: Preparing container                   -----
          --------------------------------------------------------------------------------
           
          Installing additional packages is set by ENV.
          Checking the following Packages: nano...
          nano is already installed.
          Reading package lists...
          Building dependency tree...
          Reading state information...
          Reading package lists...
          Building dependency tree...
          Reading state information...
          0 upgraded, 0 newly installed, 0 to remove and 61 not upgraded.
          Done.
           
          --------------------------------------------------------------------------------
          -----             Step 2 of 5: Detecting ioBroker installation             -----
          --------------------------------------------------------------------------------
           
          Existing installation of ioBroker detected in /opt/iobroker.
           
          --------------------------------------------------------------------------------
          -----             Step 3 of 5: Checking ioBroker installation              -----
          --------------------------------------------------------------------------------
           
          (Re)Setting folder permissions (This might take a while! Please be patient!)...
          Done.
           
          Fixing "sudo-bug" by replacing sudo in iobroker with gosu...
          Done.
           
          error: exec: "node": executable file not found in $PATH
          /opt/scripts/iobroker_startup.sh: line 199: [: !=: unary operator expected
          --------------------------------------------------------------------------------
          -----                Step 4 of 5: Applying special settings                -----
          --------------------------------------------------------------------------------
           
          Some adapters have special requirements/ settings which can be activated by the use of environment variables.
          For more information take a look at readme.md on Github!
           
          --------------------------------------------------------------------------------
          -----                    Step 5 of 5: ioBroker startup                     -----
          --------------------------------------------------------------------------------
           
          Starting ioBroker...
           
          error: exec: "node": executable file not found in $PATH
          
          
          Thomas Braun 1 Reply Last reply Reply Quote 0
          • Thomas Braun
            Thomas Braun Most Active @reindeer-web last edited by

            @reindeer-web

            System auf Stand halten:

            61 packages can be upgraded.

            iob stop 
            sudo apt update
            sudo apt full-upgrade
            
            1 Reply Last reply Reply Quote 0
            • Thomas Braun
              Thomas Braun Most Active @reindeer-web last edited by Thomas Braun

              @reindeer-web sagte in Ich kann nichts mehr installieren / updaten:

              Da ist jetzt wirklich was durcheinander gekommen:

              Den iobroker Fixer (oder was auch immer zu den obigen Ausgaben führt) auszuführen hatte ich aber auch nicht vorgeschlagen.

              reindeer-web 1 Reply Last reply Reply Quote 0
              • reindeer-web
                reindeer-web @Thomas Braun last edited by

                @thomas-braun
                Auf jeden Fall startet iobroker jetzt nicht mehr.

                Starting ioBroker...
                
                error: exec: "node": executable file not found in $PATH
                
                Thomas Braun 1 Reply Last reply Reply Quote 0
                • Thomas Braun
                  Thomas Braun Most Active @reindeer-web last edited by Thomas Braun

                  @reindeer-web sagte in Ich kann nichts mehr installieren / updaten:

                  Auf jeden Fall startet iobroker jetzt nicht mehr.

                  Keine Ahnung was du da treibst. Die Befehlskette von mir führt (sauber ausgeführt) jedenfalls nicht zu diesem Verhalten.

                  Installier nodejs nochmal.

                  reindeer-web 1 Reply Last reply Reply Quote 0
                  • reindeer-web
                    reindeer-web @Thomas Braun last edited by

                    @thomas-braun
                    Mit welchem Befehl?

                    Thomas Braun 1 Reply Last reply Reply Quote 0
                    • Thomas Braun
                      Thomas Braun Most Active @reindeer-web last edited by

                      @reindeer-web
                      Hast du dein System auf Stand?

                      Wenn es sauber ist:

                      sudo apt update
                      sudo apt install --reinstall nodejs
                      
                      reindeer-web 1 Reply Last reply Reply Quote 0
                      • reindeer-web
                        reindeer-web @Thomas Braun last edited by

                        @thomas-braun
                        Habe es ausgeführt und dies war die Ausgabe:

                        root@iobroker:/opt/iobroker# sudo apt update
                        Get:1 http://deb.debian.org/debian bullseye InRelease [116 kB]
                        Get:2 http://security.debian.org/debian-security bullseye-security InRelease [48,4 kB]              
                        Get:3 http://deb.debian.org/debian bullseye-updates InRelease [44,1 kB]                                     
                        Get:4 https://deb.nodesource.com/node_16.x bullseye InRelease [4.586 B]
                        Get:5 http://security.debian.org/debian-security bullseye-security/main amd64 Packages [180 kB]
                        Get:6 http://deb.debian.org/debian bullseye/main amd64 Packages [8.182 kB]
                        Get:7 https://deb.nodesource.com/node_16.x bullseye/main amd64 Packages [775 B]
                        Get:8 http://deb.debian.org/debian bullseye-updates/main amd64 Packages [2.596 B]
                        Fetched 8.578 kB in 5s (1.793 kB/s)                        
                        Reading package lists... Done
                        Building dependency tree... Done
                        Reading state information... Done
                        All packages are up to date.
                        root@iobroker:/opt/iobroker# sudo apt install --reinstall nodejs
                        Reading package lists... Done
                        Building dependency tree... Done
                        Reading state information... Done
                        0 upgraded, 0 newly installed, 1 reinstalled, 0 to remove and 0 not upgraded.
                        Need to get 27,1 MB of archives.
                        After this operation, 0 B of additional disk space will be used.
                        Get:1 https://deb.nodesource.com/node_16.x bullseye/main amd64 nodejs amd64 16.17.0-deb-1nodesource1 [27,1 MB]
                        Fetched 27,1 MB in 4s (6.749 kB/s) 
                        debconf: unable to initialize frontend: Dialog
                        debconf: (No usable dialog-like program is installed, so the dialog based frontend cannot be used. at /usr/share/perl5/Debconf/FrontEnd/Dialog.pm line 78, <> line 1.)
                        debconf: falling back to frontend: Readline
                        (Reading database ... 30393 files and directories currently installed.)
                        Preparing to unpack .../nodejs_16.17.0-deb-1nodesource1_amd64.deb ...
                        Unpacking nodejs (16.17.0-deb-1nodesource1) over (16.17.0-deb-1nodesource1) ...
                        Setting up nodejs (16.17.0-deb-1nodesource1) ...
                        

                        iobroker läuft jetzt wieder

                        J 1 Reply Last reply Reply Quote 0
                        • J
                          Jan1 @reindeer-web last edited by

                          @reindeer-web
                          warum kommt man eigentlich immer auf die Idee, wenn man schon als root user unterwegs ist, in sudo zu verwenden?

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

                            @jan1

                            Die Frage ist eher, warum man auf die Idee kommt unnötigerweise überhaupt mit dem root herumzuhampeln.
                            Dann passieren so krumme Dinge wie hier gesehen nämlich nochmal so schnell.

                            reindeer-web 1 Reply Last reply Reply Quote 1
                            • reindeer-web
                              reindeer-web @Thomas Braun last edited by

                              @thomas-braun
                              Wie gesagt, ich hatte mich über die console von portainer eingeloggt.
                              Und wie kann ich mich z.B. mit putty und einem Benutzer einloggen?
                              Bin mir im Unklaren wegen ip-Adresse, port usw.

                              Thomas Braun 1 Reply Last reply Reply Quote 0
                              • Thomas Braun
                                Thomas Braun Most Active @reindeer-web last edited by Thomas Braun

                                @reindeer-web sagte in Ich kann nichts mehr installieren / updaten:

                                Und wie kann ich mich z.B. mit putty und einem Benutzer einloggen?

                                In dem man sich einen User anlegt und diesen verwendet. Müsste auch in Containern gehen. Ich setze die Kübel allerdings nicht ein.

                                Mußte mal in die Anleitung schauen.

                                reindeer-web 1 Reply Last reply Reply Quote 0
                                • reindeer-web
                                  reindeer-web @Thomas Braun last edited by

                                  @thomas-braun
                                  Wobei ich jetzt immer noch vor dem anfänglichen Problem stehe, dass ich keinen Adapter mehr installieren kann und
                                  mit dem Befehl
                                  npm ls | grep -E 'github|ERR'
                                  ja viele 'extraneous' ausgegeben werden. Soll ich die mit
                                  cd /opt/iobroker && npm prune
                                  bereinigen?

                                  Thomas Braun Glasfaser 2 Replies Last reply Reply Quote 0
                                  • Thomas Braun
                                    Thomas Braun Most Active @reindeer-web last edited by

                                    @reindeer-web
                                    Kannst du machen, das hört sich aber eher danach an:

                                    https://forum.iobroker.net/topic/57337/fehler-25-bei-adapter-install-update-mit-npm8

                                    1 Reply Last reply Reply Quote 0
                                    • Glasfaser
                                      Glasfaser @reindeer-web last edited by Glasfaser

                                      @reindeer-web sagte in Ich kann nichts mehr installieren / updaten:

                                      Wobei ich jetzt immer noch vor dem anfänglichen Problem stehe,

                                      Nimm das neue Image 7 , dann ein Backup fertig ,!

                                      -----                             Docker-Image                             -----
                                      
                                      -----                    image:               v6.0.0
                                      

                                      denn du hast 6.0 , im neuen ist schon NodeJS16 drin und wird auch schon beim erstellen Tagesaktuell auf das aktuelle Nodejs16 upgraded.

                                      Und wer weiß was du sonst nach nebenbei rumgeschraubt hast .

                                      reindeer-web 1 Reply Last reply Reply Quote 0
                                      • reindeer-web
                                        reindeer-web @Glasfaser last edited by

                                        @glasfaser
                                        Vielen Dank an alle, die mir hier weitergeholfen haben.
                                        Habe einen neuen docker mit v7 installiert und dann das backup eingepielt.
                                        Dauert natürlich etwas, bis alle Adapter wieder geladen sind, aber dann hat alles funktioniert außer der Visualierung. Die ließ sich weder installieren noch starten.
                                        Habe dann auf der Konsole mit

                                        npm i iobroker.vis@1.4.6
                                        

                                        eine ältere Version installiert, die sich dann auch updaten und wieder starten ließ.

                                        Glasfaser 1 Reply Last reply Reply Quote 0
                                        • Glasfaser
                                          Glasfaser @reindeer-web last edited by

                                          @reindeer-web

                                          Schön das du meinen Vorschlag gefolgt bist .

                                          Das mit VIS ist bekannt und auch mit WS
                                          https://forum.iobroker.net/topic/57443/gelöst-docker-updates-verschwinden-immer-wieder/39

                                          und nebenbei

                                          vermeide Befehle mit npm

                                          npm i iobroker.vis@1.4.6
                                          

                                          nutze

                                          iobroker install vis@1.4.6
                                          
                                          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

                                          887
                                          Online

                                          31.9k
                                          Users

                                          80.2k
                                          Topics

                                          1.3m
                                          Posts

                                          6
                                          80
                                          5938
                                          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