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 @Homoran last edited by

      @homoran
      iobroker läuft in einem Container auf einem qnap NAS.
      Ich greife darauf mit der console vom portainer zu.
      Diese Infos liefert die admin-Oberfläche vom iobroker.
      Plattform: docker
      RAM: 7.6 GB
      Node.js: v16.17.0
      NPM: v8.18.0
      In der console werden übrigens die gleichen Versionen angezeigt.
      Wie könnte ich mich denn mit einem Benutzer in putty einloggen?

      Homoran 1 Reply Last reply Reply Quote 0
      • Homoran
        Homoran Global Moderator Administrators @reindeer-web last edited by

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

        Node.js: v16.17.0
        NPM: v8.18.0

        das passt nicht, und die Antwort darauf

        @homoran sagte in Ich kann nichts mehr installieren / updaten:

        warum und wie du auf
        @reindeer-web sagte in Ich kann nichts mehr installieren / updaten:

        npm -v 8.18.0

        kommst,

        fehlt auch noch

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

          @homoran
          Wenn ich in der console "npm -v" kommt: 8.18.0
          und mit "node -v" kommt: v16.17.0
          Was passt nicht bzw. was müsste denn installiert sein?

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

            @reindeer-web

            nodejs 16.17.0 kommt im Paket mit npm 8.15.0 daher. Da hast du also npm irgendwie unorthodox zusätzlich installiert.

            3ae0f656-2cf3-4572-b016-0b469924f3e7-image.png

            Wie bist du denn da überhaupt unterwegs?

            Schau da mal rein:

            https://forum.iobroker.net/topic/35090/howto-nodejs-installation-und-upgrades-unter-debian

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

              @thomas-braun
              Habe leider nicht verstanden, was ich auf deine Frage antworten soll.
              Ja, den link hatte ich mir schon angesehen, da steht sehr viel drin, was man machen und was man nicht machen soll.
              Ich weiß jetzt nicht, welche Schritte ich als erstes unternehmen soll.
              Mit dem Befehl
              npm ls | grep -E 'github|ERR'
              werden ja viele 'extraneous' ausgegeben. Soll ich die mit
              cd /opt/iobroker && npm prune
              bereinigen?

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

                @reindeer-web
                Poste mal die Ausgabe zu

                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
                

                Bitte in CodeTags eingebettet.

                reindeer-web 1 Reply Last reply Reply Quote 0
                • 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
                                            • First post
                                              Last post

                                            Support us

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

                                            930
                                            Online

                                            31.9k
                                            Users

                                            80.1k
                                            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