Navigation

    Logo
    • Register
    • Login
    • Search
    • Recent
    • Tags
    • Unread
    • Categories
    • Unreplied
    • Popular
    • GitHub
    • Docu
    • Hilfe
    1. Home
    2. Deutsch
    3. ioBroker Allgemein
    4. iob node fix - Skript

    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

    iob node fix - Skript

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

      @dpo99 sagte in iob node fix - Skript:

      Lief ohne Fehler durch

      Also final mit der doppelten 'Nothing to do'-Meldung?

      D 1 Reply Last reply Reply Quote 1
      • D
        DPO99 @Thomas Braun last edited by DPO99

        @thomas-braun Die Meldung stand jetzt nicht am Ende aber im Fließtext bzw. "unterwegs" also er installiert hat stand es da.

        Hab danach noch den iob diag durchlaufen lassen und der hat auch alles grün gemeldet.

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

          @dpo99 sagte in iob node fix - Skript:

          Die Meldung stand jetzt nicht am Ende

          Was stand denn dann am Ende?

          D 1 Reply Last reply Reply Quote 1
          • D
            DPO99 @Thomas Braun last edited by

            @thomas-braun Das hab ich leider nicht aufgehoben :/. Kann man das wiederherstellen oder iwo nachträglich auslesen?

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

              @dpo99 sagte in iob node fix - Skript:

              Kann man das wiederherstellen oder iwo nachträglich auslesen?

              Nein, es wird kein (eigenes) Log vom skript geschrieben.

              F D 2 Replies Last reply Reply Quote 1
              • T
                TWD83 @haselchen last edited by

                @haselchen sagte in iob node fix - Skript:

                                                                                                                                            sudo apt-get update                                                                                                                                                                            sudo apt-get install nodejs -y                                            
                

                Vielen dank! So hat es bei mir geklappt!

                1 Reply Last reply Reply Quote 1
                • F
                  Frank579 @Thomas Braun last edited by Frank579

                  @thomas-braun

                  So sieht es bei mir aus ... keine 2x Nothing to do ..

                  ioBroker nodejs fixer 2023-09-20
                  
                  Recommended nodejs-version is: 18.18.0
                  Checking your installation now. Please be patient!
                  
                  Your current setup is:
                  /usr/bin/nodejs         v18.17.1
                  /usr/bin/node           v18.17.1
                  /usr/bin/npm            9.6.7
                  /usr/bin/npx            9.6.7
                  /usr/bin/corepack       0.18.0
                  
                  We found these nodejs versions available for installation:
                  
                  nodejs:
                    Installed: 18.17.1-deb-1nodesource1
                    Candidate: 18.17.1-deb-1nodesource1
                    Version table:
                   *** 18.17.1-deb-1nodesource1 500
                          500 https://deb.nodesource.com/node_18.x bookworm/main amd64 Packages
                          100 /var/lib/dpkg/status
                       18.13.0+dfsg1-1 500
                          500 http://deb.debian.org/debian bookworm/main amd64 Packages
                  
                  
                  
                  Nothing to do, your installation is using the correct paths.
                  
                  You are running nodejs v18.17.1. Do you want to install recommended version 18.1                                                                             8.0?
                  
                  Press <y> to continue or any other key to quit
                  Trying to fix your installation now. Please be patient.
                  [sudo] password for frank:
                  kvm
                  Waiting for ioBroker to shut down - Give me a minute...
                  ############################################################
                  
                  *** These repos are active on your system:
                  Hit:1 http://security.debian.org/debian-security bookworm-security InRelease
                  Hit:2 http://deb.debian.org/debian bookworm InRelease
                  Hit:3 http://deb.debian.org/debian bookworm-updates InRelease
                  Reading package lists... Done
                  
                  *** Installing ca-certificates, curl and gnupg, just in case they are missing.
                  
                  *** Creating new /etc/apt/sources.list.d/nodesource.list and pinning source
                  deb [signed-by=/etc/apt/keyrings/nodesource.gpg] https://deb.nodesource.com/node_18.x nodistro main
                  Package: nodejs
                  Pin: origin deb.nodesource.com
                  Pin-Priority: 1001
                  
                  *** These repos are active after the adjustments:
                  Hit:1 http://security.debian.org/debian-security bookworm-security InRelease
                  Hit:2 http://deb.debian.org/debian bookworm InRelease
                  Hit:3 http://deb.debian.org/debian bookworm-updates InRelease
                  Get:4 https://deb.nodesource.com/node_18.x nodistro InRelease [12.1 kB]
                  Get:5 https://deb.nodesource.com/node_18.x nodistro/main amd64 Packages [5247 B]
                  Fetched 17.4 kB in 1s (27.2 kB/s)
                  Reading package lists... Done
                  
                  Installing the recommended nodejs version now!
                  ./iob_node_update: line 308: [: : integer expression expected
                  ./iob_node_update: line 323: [: : integer expression expected
                  
                  *** You need to manually restart your container now! ***
                  
                  We tried our best to fix your nodejs. Please run 'iob diag' again to verify.
                  
                  

                  nach einem Neustart war laut iob diag immer noch die 18.17.1 drauf, aber 1 OS update fällig. update und upgrade ausgeführt und dann war auch die 18.18.0 drauf

                  hier noch die diag Zusammenfassung

                  ======================= SUMMARY =======================
                                       v.2023-06-20
                  
                  
                   Static hostname: iobroker
                         Icon name: computer-vm
                           Chassis: vm 🖴
                        Machine ID: 84546650dea94ae18d0b4591eabfa35d
                           Boot ID: d517d6f1ff9047a7af8b77da764b2425
                    Virtualization: kvm
                  Operating System: Debian GNU/Linux 12 (bookworm)
                            Kernel: Linux 6.1.0-12-amd64
                      Architecture: x86-64
                   Hardware Vendor: QEMU
                    Hardware Model: Standard PC _i440FX + PIIX, 1996_
                  Firmware Version: rel-1.16.2-0-gea1b7a073390-prebuilt.qemu.org
                  
                  Installation:           kvm
                  Kernel:                 x86_64
                  Userland:               amd64
                  Timezone:               Europe/Berlin (CEST, +0200)
                  User-ID:                1000
                  X-Server:               false
                  Boot Target:            graphical.target
                  
                  Pending OS-Updates:     1
                  Pending iob updates:    16
                  
                  Nodejs-Installation:    /usr/bin/nodejs         v18.17.1
                                          /usr/bin/node           v18.17.1
                                          /usr/bin/npm            9.6.7
                                          /usr/bin/npx            9.6.7
                  
                  Recommended versions are nodejs 18.x.y and npm 9.x.y
                  Your nodejs installation is correct
                  
                  MEMORY:
                                 total        used        free      shared  buff/cache   available
                  Mem:            8.3G        2.7G        5.1G        507K        734M        5.6G
                  Swap:           1.0G          0B        1.0G
                  Total:          9.3G        2.7G        6.2G
                  
                  Active iob-Instances:   21
                  Active repo(s): beta
                  
                  ioBroker Core:          js-controller           5.0.12
                                          admin                   6.8.0
                  
                  ioBroker Status:        iobroker is running on this host.
                  
                  
                  Objects type: jsonl
                  States  type: jsonl
                  
                  Status admin and web instance:
                  + system.adapter.admin.0                  : admin                 : iobroker                                 -  enabled, port: 8081, bind: 0.0.0.0 (SSL), run as: admin
                    system.adapter.web.0                    : web                   : iobroker                                 -  enabled, port: 8082, bind: 0.0.0.0, run as: admin
                  
                  Objects:                19132
                  States:                 17041
                  
                  Size of iob-Database:
                  
                  55M     /opt/iobroker/iobroker-data/objects.jsonl
                  24M     /opt/iobroker/iobroker-data/states.jsonl
                  
                  
                  
                  =================== END OF SUMMARY ====================
                  

                  IOBroker läuft auf Debian 12 Proxmox VM

                  Edit:
                  Diag nach update / Upgrade

                  ======================= SUMMARY =======================
                                       v.2023-06-20
                  
                  
                   Static hostname: iobroker
                         Icon name: computer-vm
                           Chassis: vm 🖴
                        Machine ID: 84546650dea94ae18d0b4591eabfa35d
                           Boot ID: d517d6f1ff9047a7af8b77da764b2425
                    Virtualization: kvm
                  Operating System: Debian GNU/Linux 12 (bookworm)
                            Kernel: Linux 6.1.0-12-amd64
                      Architecture: x86-64
                   Hardware Vendor: QEMU
                    Hardware Model: Standard PC _i440FX + PIIX, 1996_
                  Firmware Version: rel-1.16.2-0-gea1b7a073390-prebuilt.qemu.org
                  
                  Installation:           kvm
                  Kernel:                 x86_64
                  Userland:               amd64
                  Timezone:               Europe/Berlin (CEST, +0200)
                  User-ID:                1000
                  X-Server:               false
                  Boot Target:            graphical.target
                  
                  Pending OS-Updates:     0
                  Pending iob updates:    2
                  
                  Nodejs-Installation:    /usr/bin/nodejs         v18.18.0
                                          /usr/bin/node           v18.18.0
                                          /usr/bin/npm            9.8.1
                                          /usr/bin/npx            9.8.1
                  
                  Recommended versions are nodejs 18.x.y and npm 9.x.y
                  Your nodejs installation is correct
                  
                  MEMORY:
                                 total        used        free      shared  buff/cache   available
                  Mem:            8.3G        4.8G        2.7G        507K        1.1G        3.5G
                  Swap:           1.0G          0B        1.0G
                  Total:          9.3G        4.8G        3.8G
                  
                  Active iob-Instances:   44
                  Active repo(s): stable
                  
                  ioBroker Core:          js-controller           5.0.12
                                          admin                   6.8.0
                  
                  ioBroker Status:        iobroker is running on this host.
                  
                  
                  Objects type: jsonl
                  States  type: jsonl
                  
                  Status admin and web instance:
                  + system.adapter.admin.0                  : admin                 : iobroker                                 -  enabled, port: 8081, bind: 0.0.0.0 (SSL), run as: admin
                  + system.adapter.web.0                    : web                   : iobroker                                 -  enabled, port: 8082, bind: 0.0.0.0, run as: admin
                  
                  Objects:                19132
                  States:                 17041
                  
                  Size of iob-Database:
                  
                  64M     /opt/iobroker/iobroker-data/objects.jsonl
                  36M     /opt/iobroker/iobroker-data/states.jsonl
                  
                  
                  
                  =================== END OF SUMMARY ====================
                  
                  J 1 Reply Last reply Reply Quote 0
                  • J
                    Jan1 @Frank579 last edited by

                    @frank579 sagte in iob node fix - Skript:

                    nach einem Neustart war laut iob diag immer noch die 18.17.1 drauf, aber 1 OS update fällig. update und upgrade ausgeführt und dann war auch die 18.18.0 drauf

                    Klar, ein Neustart installiert ja auch keine Node, sondern das System Update.
                    Das Script bereitet das vor, aber installieren musst das schon selber.

                    F 1 Reply Last reply Reply Quote 0
                    • F
                      Frank579 @Jan1 last edited by Frank579

                      @jan1 sagte in iob node fix - Skript:

                      Das Script bereitet das vor, aber installieren musst das schon selber.

                      You are running nodejs v18.17.1. Do you want to install recommended version 18.18.0?
                      
                      Press <y> to continue or any other key to quit
                      

                      Die abfrage habe ich anders verstanden...

                      Wenns so ist Okay dann war ja alles Richtig.

                      @Thomas-Braun ist das so ?

                      1 Reply Last reply Reply Quote 0
                      • D
                        DPO99 @Thomas Braun last edited by

                        @thomas-braun bei mir war es wie bei @Frank579. Realtiv ähnlich lief das Skript bei mir. Zwischendurch diese Info:

                        Nothing to do, your installation is using the correct paths.
                        

                        Bei mir wurde auch nach einem Update auf die neuste Version gefragt:

                        You are running nodejs v18.17.1. Do you want to install recommended version in tree 18.x                                                                             8.0?
                        
                        Press <y> to continue or any other key to quit
                        Trying to fix your installation now. Please be patient.
                        [sudo] password for iobroker:
                        Waiting for ioBroker to shut down - Give me a minute...
                        ############################################################
                        

                        und endete mit dieser CodeZeile

                        We tried our best to fix your nodejs. Please run 'iob diag' again to verify.
                        

                        Im Verlauf der Installation war es auch so, dass er von 18.17.1 ein Downgrade auf 18.17.0 durchgeführt hat und dann wieder ein upgrade auf 18.18.0 inkl. NPM.

                        Wie gesagt, sah am Ende dann alles korrekt aus, lief ohne Fehler und iob diag hat auch keine Fehler gemeldet.

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

                          @dpo99 sagte in iob node fix - Skript:

                          Im Verlauf der Installation war es auch so, dass er von 18.17.1 ein Downgrade auf 18.17.0 durchgeführt hat und dann wieder ein upgrade auf 18.18.0 inkl. NPM.

                          Das wird gemacht, wenn aus den iob-States keine Recommended Version ausgelesen werden kann (slaves oder Datenbank läuft nicht oder sonst irgendwas).

                          Ich hab den Code jetzt umgestellt, die Meldungen sollten jetzt schlüssiger sein.

                          1 Reply Last reply Reply Quote 1
                          • M
                            mick70 last edited by

                            Hat hier funktioniert. Ebenfalls nach anfänglichem Downgrade auf 18.17.0 ist jetzt 18.18.0 installiert und erneuter Durchlauf berichtet wie erhofft 2x "nothing to do". Einwandfrei!

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

                              @mick70 sagte in iob node fix - Skript:

                              Downgrade auf 18.17.0

                              Ist das ein Slave-Device? Oder warum musste dieser Fallback gemacht werden?

                              M 1 Reply Last reply Reply Quote 1
                              • M
                                mick70 @Thomas Braun last edited by

                                @thomas-braun Nein, ist eigentlich gar nix besonderes. Die Ursache fürs Fallback habe ich leider überlesen, falls sie irgendwo stand.

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

                                  @mick70 sagte in iob node fix - Skript:

                                  Die Ursache fürs Fallback habe ich leider überlesen, falls sie irgendwo stand.

                                  Die genaue Ursache steht nicht da, nur dass keine empfohlene Version gefunden werden konnte und daher der 18er-Zweig angelegt werden wird.

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

                                    @thomas-braun
                                    Funktioniert ganz klasse
                                    Hab das heute mal drüber laufen lassen und das Update auf die 18.18.0 gemacht


                                    ioBroker nodejs fixer 2023-09-20

                                    Recommended nodejs-version is: 18.18.0
                                    Checking your installation now. Please be patient!

                                    Your current setup is:
                                    /usr/bin/nodejs v18.17.1
                                    /usr/bin/node v18.17.1
                                    /usr/bin/npm 9.6.7
                                    /usr/bin/npx 9.6.7
                                    /usr/bin/corepack 0.18.0

                                    We found these nodejs versions available for installation:

                                    nodejs:
                                    Installed: 18.17.1-deb-1nodesource1
                                    Candidate: 18.17.1-deb-1nodesource1
                                    Version table:
                                    *** 18.17.1-deb-1nodesource1 500
                                    500 https://deb.nodesource.com/node_18.x bullseye/main arm64 Packages
                                    100 /var/lib/dpkg/status
                                    12.22.12~dfsg-1~deb11u4 500
                                    500 http://security.debian.org/debian-security bullseye-security/main ar m64 Packages
                                    12.22.12~dfsg-1~deb11u3 500
                                    500 http://deb.debian.org/debian bullseye/main arm64 Packages

                                    Nothing to do - Your installation is using the correct paths.

                                    You are running nodejs v18.17.1. Do you want to install recommended version 18.1 8.0?

                                    Press <y> to continue or any other key to quit
                                    Trying to fix your installation now. Please be patient.
                                    Waiting for ioBroker to shut down - Give me a minute...
                                    ############################################################

                                    *** These repos are active on your system:
                                    Hit:1 http://deb.debian.org/debian bullseye InRelease
                                    Get:2 http://deb.debian.org/debian bullseye-updates InRelease [44.1 kB]
                                    Get:3 http://security.debian.org/debian-security bullseye-security InRelease [48 .4 kB]
                                    Get:4 http://archive.raspberrypi.org/debian bullseye InRelease [23.6 kB]
                                    Hit:5 https://repos.influxdata.com/debian stable InRelease
                                    Get:6 https://apt.grafana.com stable InRelease [5984 B]
                                    Get:7 http://archive.raspberrypi.org/debian bullseye/main armhf Packages [314 kB ]
                                    Get:8 http://archive.raspberrypi.org/debian bullseye/main arm64 Packages [308 kB ]
                                    Fetched 744 kB in 1s (498 kB/s)
                                    Reading package lists... Done

                                    *** Installing ca-certificates, curl and gnupg, just in case they are missing.

                                    *** Creating new /etc/apt/sources.list.d/nodesource.list and pinning source
                                    deb [signed-by=/etc/apt/keyrings/nodesource.gpg] https://deb.nodesource.com/node _18.x nodistro main
                                    Package: nodejs
                                    Pin: origin deb.nodesource.com
                                    Pin-Priority: 1001

                                    *** These repos are active after the adjustments:
                                    Hit:1 http://deb.debian.org/debian bullseye InRelease
                                    Hit:2 http://deb.debian.org/debian bullseye-updates InRelease
                                    Hit:3 http://security.debian.org/debian-security bullseye-security InRelease
                                    Hit:4 http://archive.raspberrypi.org/debian bullseye InRelease
                                    Hit:5 https://repos.influxdata.com/debian stable InRelease
                                    Hit:6 https://apt.grafana.com stable InRelease
                                    Get:7 https://deb.nodesource.com/node_18.x nodistro InRelease [12.1 kB]
                                    Get:8 https://deb.nodesource.com/node_18.x nodistro/main arm64 Packages [5262 B]
                                    Get:9 https://deb.nodesource.com/node_18.x nodistro/main armhf Packages [5267 B]
                                    Fetched 22.7 kB in 2s (13.8 kB/s)
                                    Reading package lists... Done

                                    Installing the recommended nodejs version now!

                                    We tried our best to fix your nodejs. Please run iob diag again to verify.

                                    *** RESTARTING ioBroker NOW! ***
                                    Please refresh or restart your browser in a few moments.

                                    pi@iobroker:~ $ sudo apt update && sudo apt upgrade
                                    OK:1 http://security.debian.org/debian-security bullseye-security InRelease
                                    OK:2 http://deb.debian.org/debian bullseye InRelease
                                    OK:3 http://archive.raspberrypi.org/debian bullseye InRelease
                                    OK:4 http://deb.debian.org/debian bullseye-updates InRelease
                                    OK:5 https://repos.influxdata.com/debian stable InRelease
                                    OK:6 https://apt.grafana.com stable InRelease
                                    OK:7 https://deb.nodesource.com/node_18.x nodistro InRelease
                                    Paketlisten werden gelesen… Fertig
                                    Abhängigkeitsbaum wird aufgebaut… Fertig
                                    Statusinformationen werden eingelesen… Fertig
                                    Aktualisierung für 1 Paket verfügbar. Führen Sie »apt list --upgradable« aus, um es anzuzeigen.
                                    Paketlisten werden gelesen… Fertig
                                    Abhängigkeitsbaum wird aufgebaut… Fertig
                                    Statusinformationen werden eingelesen… Fertig
                                    Paketaktualisierung (Upgrade) wird berechnet… Fertig
                                    Die folgenden Pakete werden aktualisiert (Upgrade):
                                    nodejs
                                    1 aktualisiert, 0 neu installiert, 0 zu entfernen und 0 nicht aktualisiert.
                                    Es müssen 28,7 MB an Archiven heruntergeladen werden.
                                    Nach dieser Operation werden 859 kB Plattenplatz zusätzlich benutzt.
                                    Möchten Sie fortfahren? [J/n] J
                                    Holen:1 https://deb.nodesource.com/node_18.x nodistro/main arm64 nodejs arm64 18 .18.0-1nodesource1 [28,7 MB]
                                    Es wurden 28,7 MB in 2 s geholt (11,5 MB/s).
                                    Changelogs werden gelesen... Fertig
                                    (Lese Datenbank ... 117382 Dateien und Verzeichnisse sind derzeit installiert.)
                                    Vorbereitung zum Entpacken von .../nodejs_18.18.0-1nodesource1_arm64.deb ...
                                    Detected old npm client, removing...
                                    Entpacken von nodejs (18.18.0-1nodesource1) über (18.17.1-deb-1nodesource1) ...
                                    nodejs (18.18.0-1nodesource1) wird eingerichtet ...
                                    Trigger für man-db (2.9.4-2) werden verarbeitet ...
                                    pi@iobroker:~ $ iobroker stop
                                    pi@iobroker:~ $ iobroker fix
                                    library: loaded
                                    Library version=2022-12-09

                                    ==========================================================================

                                    Welcome to the ioBroker installation fixer!
                                    Script version: 2023-04-02
                                    
                                    You might need to enter your password a couple of times.
                                    

                                    ==========================================================================

                                    ==========================================================================
                                    Installing prerequisites (1/5)

                                    OK:1 http://security.debian.org/debian-security bullseye-security InRelease
                                    OK:2 http://deb.debian.org/debian bullseye InRelease
                                    OK:3 http://deb.debian.org/debian bullseye-updates InRelease
                                    OK:4 http://archive.raspberrypi.org/debian bullseye InRelease
                                    OK:5 https://repos.influxdata.com/debian stable InRelease
                                    OK:6 https://apt.grafana.com stable InRelease
                                    OK:7 https://deb.nodesource.com/node_18.x nodistro InRelease
                                    Paketlisten werden gelesen… Fertig
                                    Installed gcc-c++

                                    ==========================================================================
                                    Checking ioBroker user and directory permissions (2/5)

                                    Created /etc/sudoers.d/iobroker
                                    Fixing directory permissions...

                                    ==========================================================================
                                    Check and cleanup npm temporary directories (3/5)

                                    Done.

                                    ==========================================================================
                                    Database maintenance (4/5)

                                    Checking for uncompressed JSONL databases... This might take a while!

                                    Compressing /opt/iobroker/iobroker-data/states.jsonl
                                    Compressing /opt/iobroker/iobroker-data/objects.jsonl
                                    Compressed 2 JSONL files. Done

                                    ==========================================================================
                                    Checking autostart (5/5)

                                    Enabling autostart...
                                    Autostart enabled!

                                    ==========================================================================

                                    Your installation was fixed successfully
                                    Run iobroker start to start ioBroker again!
                                    

                                    ==========================================================================

                                    pi@iobroker:~ $ sudo reboot

                                    Und dann mal IOB Diag laufen lassen


                                    ======== Start marking the full check here =========

                                    Skript v.2023-06-20
                                    
                                    *** BASE SYSTEM ***
                                       Static hostname: iobroker
                                             Icon name: computer
                                            Machine ID: a9f1eae0dc5a48ddbf0e2a62c2227673
                                               Boot ID: 30ea7719d00c47c7b8b94d2a5e591316
                                      Operating System: Debian GNU/Linux 11 (bullseye)
                                                Kernel: Linux 6.1.21-v8+
                                          Architecture: arm64
                                    
                                    Model           : Raspberry Pi 4 Model B Rev 1.5
                                    Docker          : false
                                    Virtualization  : none
                                    Kernel          : aarch64
                                    Userland        : arm64
                                    
                                    Systemuptime and Load:
                                     15:14:39 up 5 min,  1 user,  load average: 1.41, 1.78, 0.91
                                    CPU threads: 4
                                    
                                    Raspberry only:
                                    throttled=0x0
                                    Other values than 0x0 hint to temperature/voltage problems
                                    temp=46.7'C
                                    volt=0.9360V
                                    
                                    *** Time and Time Zones ***
                                                   Local time: Fri 2023-09-22 15:14:39 CEST
                                               Universal time: Fri 2023-09-22 13:14:39 UTC
                                                     RTC time: n/a
                                                    Time zone: Europe/Berlin (CEST, +0200)
                                    System clock synchronized: yes
                                                  NTP service: active
                                              RTC in local TZ: no
                                    
                                    *** User and Groups ***
                                    pi
                                    /home/pi
                                    pi adm dialout cdrom sudo audio video plugdev games users input render netdev lpadmin gpio i2c spi iobroker
                                    
                                    *** X-Server-Setup ***
                                    X-Server:       false
                                    Desktop:
                                    Terminal:       tty
                                    Boot Target:    multi-user.target
                                    
                                    *** MEMORY ***
                                                   total        used        free      shared  buff/cache   available
                                    Mem:            7.8G        2.3G        4.0G        1.0M        1.5G        5.4G
                                    Swap:            99M          0B         99M
                                    Total:          7.9G        2.3G        4.1G
                                    
                                             7811 M total memory
                                             2318 M used memory
                                             3162 M active memory
                                              446 M inactive memory
                                             4041 M free memory
                                               71 M buffer memory
                                             1380 M swap cache
                                               99 M total swap
                                                0 M used swap
                                               99 M free swap
                                    
                                    Raspberry only:
                                    oom events: 0
                                    lifetime oom required: 0 Mbytes
                                    total time in oom handler: 0 ms
                                    max time spent in oom handler: 0 ms
                                    
                                    *** FILESYSTEM ***
                                    Filesystem     Type      Size  Used Avail Use% Mounted on
                                    /dev/root      ext4       59G  9.8G   47G  18% /
                                    devtmpfs       devtmpfs  3.6G     0  3.6G   0% /dev
                                    tmpfs          tmpfs     3.9G     0  3.9G   0% /dev/shm
                                    tmpfs          tmpfs     1.6G  1.2M  1.6G   1% /run
                                    tmpfs          tmpfs     5.0M  4.0K  5.0M   1% /run/lock
                                    /dev/sda1      vfat      255M   31M  225M  13% /boot
                                    tmpfs          tmpfs     782M   16K  782M   1% /run/user/1000
                                    
                                    Messages concerning ext4 filesystem in dmesg:
                                    [Fri Sep 22 15:08:53 2023] Kernel command line: coherent_pool=1M 8250.nr_uarts=1 snd_bcm2835.enable_headphones=0 snd_bcm2835.enable_headphones=1 snd_bcm2835.enable_hdmi=1 snd_bcm2835.enable_hdmi=0  smsc95xx.macaddr=D8:3A:DD:13:A5:D1 vc_mem.mem_base=0x3eb00000 vc_mem.mem_size=0x3ff00000  console=tty1 root=PARTUUID=2c0392e1-02 rootfstype=ext4 fsck.repair=yes rootwait quiet splash plymouth.ignore-serial-consoles
                                    [Fri Sep 22 15:08:55 2023] EXT4-fs (sda2): mounted filesystem with ordered data mode. Quota mode: none.
                                    [Fri Sep 22 15:08:55 2023] VFS: Mounted root (ext4 filesystem) readonly on device 8:2.
                                    [Fri Sep 22 15:08:56 2023] EXT4-fs (sda2): re-mounted. Quota mode: none.
                                    
                                    Show mounted filesystems (real ones only):
                                    TARGET  SOURCE    FSTYPE OPTIONS
                                    /       /dev/sda2 ext4   rw,noatime
                                    `-/boot /dev/sda1 vfat   rw,relatime,fmask=0022,dmask=0022,codepage=437,iocharset=ascii,shortname=mixed,errors=remount-ro
                                    
                                    Files in neuralgic directories:
                                    
                                    /var:
                                    1.9G    /var/
                                    1.2G    /var/log/journal/a9f1eae0dc5a48ddbf0e2a62c2227673
                                    1.2G    /var/log/journal
                                    1.2G    /var/log
                                    477M    /var/lib
                                    
                                    Archived and active journals take up 1.1G in the file system.
                                    
                                    /opt/iobroker/backups:
                                    1.2G    /opt/iobroker/backups/
                                    
                                    /opt/iobroker/iobroker-data:
                                    334M    /opt/iobroker/iobroker-data/
                                    181M    /opt/iobroker/iobroker-data/files
                                    71M     /opt/iobroker/iobroker-data/backup-objects
                                    62M     /opt/iobroker/iobroker-data/node-red/node_modules
                                    62M     /opt/iobroker/iobroker-data/node-red
                                    
                                    The five largest files in iobroker-data are:
                                    33M     /opt/iobroker/iobroker-data/files/iot.admin/static/js/main.1797d034.js.map
                                    21M     /opt/iobroker/iobroker-data/files/web.admin/static/js/main.edf7552a.js.map
                                    14M     /opt/iobroker/iobroker-data/objects.jsonl
                                    8.5M    /opt/iobroker/iobroker-data/files/iot.admin/static/js/main.1797d034.js
                                    8.3M    /opt/iobroker/iobroker-data/files/web.admin/static/js/main.edf7552a.js
                                    
                                    *** NodeJS-Installation ***
                                    
                                    /usr/bin/nodejs         v18.18.0
                                    /usr/bin/node           v18.18.0
                                    /usr/bin/npm            9.8.1
                                    /usr/bin/npx            9.8.1
                                    
                                    
                                    nodejs:
                                      Installed: 18.18.0-1nodesource1
                                      Candidate: 18.18.0-1nodesource1
                                      Version table:
                                     *** 18.18.0-1nodesource1 1001
                                            500 https://deb.nodesource.com/node_18.x nodistro/main arm64 Packages
                                            100 /var/lib/dpkg/status
                                         18.17.1-1nodesource1 1001
                                            500 https://deb.nodesource.com/node_18.x nodistro/main arm64 Packages
                                         18.17.0-1nodesource1 1001
                                            500 https://deb.nodesource.com/node_18.x nodistro/main arm64 Packages
                                         18.16.1-1nodesource1 1001
                                            500 https://deb.nodesource.com/node_18.x nodistro/main arm64 Packages
                                         18.16.0-1nodesource1 1001
                                            500 https://deb.nodesource.com/node_18.x nodistro/main arm64 Packages
                                         18.15.0-1nodesource1 1001
                                            500 https://deb.nodesource.com/node_18.x nodistro/main arm64 Packages
                                         18.14.2-1nodesource1 1001
                                            500 https://deb.nodesource.com/node_18.x nodistro/main arm64 Packages
                                         18.14.1-1nodesource1 1001
                                            500 https://deb.nodesource.com/node_18.x nodistro/main arm64 Packages
                                         18.14.0-1nodesource1 1001
                                            500 https://deb.nodesource.com/node_18.x nodistro/main arm64 Packages
                                         18.13.0-1nodesource1 1001
                                            500 https://deb.nodesource.com/node_18.x nodistro/main arm64 Packages
                                         18.12.0-1nodesource1 1001
                                            500 https://deb.nodesource.com/node_18.x nodistro/main arm64 Packages
                                         18.11.0-1nodesource1 1001
                                            500 https://deb.nodesource.com/node_18.x nodistro/main arm64 Packages
                                         18.10.0-1nodesource1 1001
                                            500 https://deb.nodesource.com/node_18.x nodistro/main arm64 Packages
                                         18.9.1-1nodesource1 1001
                                            500 https://deb.nodesource.com/node_18.x nodistro/main arm64 Packages
                                         18.9.0-1nodesource1 1001
                                            500 https://deb.nodesource.com/node_18.x nodistro/main arm64 Packages
                                         18.8.0-1nodesource1 1001
                                            500 https://deb.nodesource.com/node_18.x nodistro/main arm64 Packages
                                         18.7.0-1nodesource1 1001
                                            500 https://deb.nodesource.com/node_18.x nodistro/main arm64 Packages
                                         18.6.0-1nodesource1 1001
                                            500 https://deb.nodesource.com/node_18.x nodistro/main arm64 Packages
                                         18.5.0-1nodesource1 1001
                                            500 https://deb.nodesource.com/node_18.x nodistro/main arm64 Packages
                                         18.4.0-1nodesource1 1001
                                            500 https://deb.nodesource.com/node_18.x nodistro/main arm64 Packages
                                         18.3.0-1nodesource1 1001
                                            500 https://deb.nodesource.com/node_18.x nodistro/main arm64 Packages
                                         18.2.0-1nodesource1 1001
                                            500 https://deb.nodesource.com/node_18.x nodistro/main arm64 Packages
                                         18.1.0-1nodesource1 1001
                                            500 https://deb.nodesource.com/node_18.x nodistro/main arm64 Packages
                                         18.0.0-1nodesource1 1001
                                            500 https://deb.nodesource.com/node_18.x nodistro/main arm64 Packages
                                         12.22.12~dfsg-1~deb11u4 500
                                            500 http://security.debian.org/debian-security bullseye-security/main arm64 Packages
                                         12.22.12~dfsg-1~deb11u3 500
                                            500 http://deb.debian.org/debian bullseye/main arm64 Packages
                                    
                                    Temp directories causing npm8 problem: 0
                                    No problems detected
                                    
                                    Errors in npm tree: 0
                                    
                                    *** ioBroker-Installation ***
                                    
                                    ioBroker Status
                                    iobroker is running on this host.
                                    
                                    
                                    Objects type: jsonl
                                    States  type: jsonl
                                    
                                    No configuration change needed.
                                    
                                    
                                    Multihost discovery server: disabled
                                    Discovery authentication:   enabled
                                    Persistent activation:      disabled
                                    Objects:                    jsonl on 127.0.0.1
                                    States:                     jsonl on 127.0.0.1
                                    
                                    Core adapters versions
                                    js-controller:  5.0.12
                                    admin:          6.10.2
                                    javascript:     7.1.4
                                    
                                    Adapters from github:   2
                                    
                                    Adapter State
                                    + system.adapter.admin.0                  : admin                 : iobroker                                 -  enabled, port: 8081, bind: 0.0.0.0, run as: admin
                                    + system.adapter.alexa2.0                 : alexa2                : iobroker                                 -  enabled
                                      system.adapter.alias-manager.0          : alias-manager         : iobroker                                 - disabled
                                    + system.adapter.backitup.0               : backitup              : iobroker                                 -  enabled
                                    + system.adapter.cloud.0                  : cloud                 : iobroker                                 -  enabled
                                    + system.adapter.discovery.0              : discovery             : iobroker                                 -  enabled
                                    + system.adapter.energiefluss.0           : energiefluss          : iobroker                                 -  enabled
                                    + system.adapter.energiefluss.1           : energiefluss          : iobroker                                 -  enabled
                                    + system.adapter.fritzdect.0              : fritzdect             : iobroker                                 -  enabled
                                    + system.adapter.hm-rega.0                : hm-rega               : iobroker                                 -  enabled
                                    + system.adapter.hm-rpc.0                 : hm-rpc                : iobroker                                 -  enabled, port: 18701
                                    + system.adapter.hm-rpc.1                 : hm-rpc                : iobroker                                 -  enabled, port: 12001
                                    + system.adapter.hm-rpc.2                 : hm-rpc                : iobroker                                 -  enabled, port: 12010
                                    + system.adapter.hm-rpc.3                 : hm-rpc                : iobroker                                 -  enabled, port: 0
                                    + system.adapter.hue-extended.0           : hue-extended          : iobroker                                 -  enabled
                                      system.adapter.ical.0                   : ical                  : iobroker                                 -  enabled
                                    + system.adapter.influxdb.0               : influxdb              : iobroker                                 -  enabled, port: 8086
                                    + system.adapter.info.0                   : info                  : iobroker                                 -  enabled
                                    + system.adapter.iot.0                    : iot                   : iobroker                                 -  enabled
                                    + system.adapter.jarvis.0                 : jarvis                : iobroker                                 -  enabled
                                    + system.adapter.javascript.0             : javascript            : iobroker                                 -  enabled
                                      system.adapter.modbus.0                 : modbus                : iobroker                                 - disabled
                                    + system.adapter.mqtt.0                   : mqtt                  : iobroker                                 -  enabled, port: 1883, bind: 0.0.0.0
                                    + system.adapter.net-tools.0              : net-tools             : iobroker                                 -  enabled
                                    + system.adapter.node-red.0               : node-red              : iobroker                                 -  enabled, port: 1880, bind: 0.0.0.0
                                    + system.adapter.nuki.0                   : nuki                  : iobroker                                 -  enabled
                                    + system.adapter.opendtu.0                : opendtu               : iobroker                                 -  enabled
                                    + system.adapter.panasonic-viera.0        : panasonic-viera       : iobroker                                 -  enabled
                                    + system.adapter.ping.0                   : ping                  : iobroker                                 -  enabled
                                    + system.adapter.rpi2.0                   : rpi2                  : iobroker                                 -  enabled
                                    + system.adapter.simple-api.0             : simple-api            : iobroker                                 -  enabled, port: 8087, bind: 192.168.178.82, run as: admin
                                      system.adapter.smartmeter.0             : smartmeter            : iobroker                                 - disabled
                                      system.adapter.smartmeter.1             : smartmeter            : iobroker                                 - disabled
                                    + system.adapter.socketio.0               : socketio              : iobroker                                 -  enabled, port: 8084, bind: 0.0.0.0, run as: admin
                                    + system.adapter.sonoff.0                 : sonoff                : iobroker                                 -  enabled, port: 1886, bind: 0.0.0.0
                                    + system.adapter.telegram.0               : telegram              : iobroker                                 -  enabled, port: 8443, bind: 0.0.0.0
                                    + system.adapter.tr-064.0                 : tr-064                : iobroker                                 -  enabled
                                    + system.adapter.web.0                    : web                   : iobroker                                 -  enabled, port: 8082, bind: 0.0.0.0, run as: admin
                                    
                                    + instance is alive
                                    
                                    Enabled adapters with bindings
                                    + system.adapter.admin.0                  : admin                 : iobroker                                 -  enabled, port: 8081, bind: 0.0.0.0, run as: admin
                                    + system.adapter.hm-rpc.0                 : hm-rpc                : iobroker                                 -  enabled, port: 18701
                                    + system.adapter.hm-rpc.1                 : hm-rpc                : iobroker                                 -  enabled, port: 12001
                                    + system.adapter.hm-rpc.2                 : hm-rpc                : iobroker                                 -  enabled, port: 12010
                                    + system.adapter.hm-rpc.3                 : hm-rpc                : iobroker                                 -  enabled, port: 0
                                    + system.adapter.influxdb.0               : influxdb              : iobroker                                 -  enabled, port: 8086
                                    + system.adapter.mqtt.0                   : mqtt                  : iobroker                                 -  enabled, port: 1883, bind: 0.0.0.0
                                    + system.adapter.node-red.0               : node-red              : iobroker                                 -  enabled, port: 1880, bind: 0.0.0.0
                                    + system.adapter.simple-api.0             : simple-api            : iobroker                                 -  enabled, port: 8087, bind: 192.168.178.82, run as: admin
                                    + system.adapter.socketio.0               : socketio              : iobroker                                 -  enabled, port: 8084, bind: 0.0.0.0, run as: admin
                                    + system.adapter.sonoff.0                 : sonoff                : iobroker                                 -  enabled, port: 1886, bind: 0.0.0.0
                                    + system.adapter.telegram.0               : telegram              : iobroker                                 -  enabled, port: 8443, bind: 0.0.0.0
                                    + system.adapter.web.0                    : web                   : iobroker                                 -  enabled, port: 8082, bind: 0.0.0.0, run as: admin
                                    
                                    ioBroker-Repositories
                                    stable        : http://download.iobroker.net/sources-dist.json
                                    beta          : http://download.iobroker.net/sources-dist-latest.json
                                    
                                    Active repo(s): beta
                                    
                                    Installed ioBroker-Instances
                                    Used repository: beta
                                    Adapter    "admin"        : 6.10.2   , installed 6.10.2
                                    Adapter    "alexa2"       : 3.25.2   , installed 3.25.2
                                    Adapter    "alias-manager": 1.2.6    , installed 1.2.6
                                    Adapter    "backitup"     : 2.8.1    , installed 2.8.1
                                    Adapter    "cloud"        : 4.4.1    , installed 4.4.1
                                    Adapter    "discovery"    : 4.0.0    , installed 4.0.0
                                    Adapter    "fritzdect"    : 2.3.1    , installed 2.3.1
                                    Adapter    "hm-rega"      : 4.0.0    , installed 4.0.0
                                    Adapter    "hm-rpc"       : 1.15.19  , installed 1.15.19
                                    Adapter    "hue-extended" : 2.0.0    , installed 2.0.0
                                    Adapter    "ical"         : 1.13.3   , installed 1.13.3
                                    Adapter    "influxdb"     : 3.2.0    , installed 3.2.0
                                    Adapter    "info"         : 2.0.0    , installed 2.0.0
                                    Adapter    "iot"          : 2.0.11   , installed 2.0.11
                                    Adapter    "jarvis"       : 3.1.8    , installed 3.1.9-beta.3
                                    Adapter    "javascript"   : 7.1.4    , installed 7.1.4
                                    Controller "js-controller": 5.0.12   , installed 5.0.12
                                    Adapter    "modbus"       : 5.0.11   , installed 5.0.11
                                    Adapter    "mqtt"         : 5.0.0    , installed 5.0.0
                                    Adapter    "net-tools"    : 0.2.0    , installed 0.2.0
                                    Adapter    "node-red"     : 4.0.3    , installed 4.0.3
                                    Adapter    "nuki"         : 1.6.0    , installed 1.6.0
                                    Adapter    "opendtu"      : 0.1.7    , installed 0.1.7
                                    Adapter    "panasonic-viera": 2.0.0  , installed 2.0.0
                                    Adapter    "ping"         : 1.6.2    , installed 1.6.2
                                    Adapter    "rpi2"         : 1.3.2    , installed 1.3.2
                                    Adapter    "simple-api"   : 2.7.2    , installed 2.7.2
                                    Adapter    "smartmeter"   : 3.3.4    , installed 3.3.4
                                    Adapter    "socketio"     : 6.5.5    , installed 6.5.5
                                    Adapter    "sonoff"       : 2.5.7    , installed 2.5.7
                                    Adapter    "telegram"     : 1.16.0   , installed 1.16.0
                                    Adapter    "tr-064"       : 4.2.18   , installed 4.2.18
                                    Adapter    "web"          : 6.1.2    , installed 6.1.2
                                    Adapter    "ws"           : 2.5.5    , installed 2.5.5
                                    
                                    Objects and States
                                    Please stand by - This may take a while
                                    Objects:        9883
                                    States:         9205
                                    
                                    *** OS-Repositories and Updates ***
                                    Hit:1 http://security.debian.org/debian-security bullseye-security InRelease
                                    Hit:2 http://deb.debian.org/debian bullseye InRelease
                                    Hit:3 http://deb.debian.org/debian bullseye-updates InRelease
                                    Hit:4 http://archive.raspberrypi.org/debian bullseye InRelease
                                    Hit:5 https://apt.grafana.com stable InRelease
                                    Hit:6 https://repos.influxdata.com/debian stable InRelease
                                    Hit:7 https://deb.nodesource.com/node_18.x nodistro InRelease
                                    Reading package lists...
                                    Pending Updates: 0
                                    
                                    *** Listening Ports ***
                                    Active Internet connections (only servers)
                                    Proto Recv-Q Send-Q Local Address           Foreign Address         State       User       Inode      PID/Program name
                                    tcp        0      0 192.168.178.82:9092     0.0.0.0:*               LISTEN      1001       26915      2000/io.nuki.0
                                    tcp        0      0 192.168.178.82:2001     0.0.0.0:*               LISTEN      1001       15234      1458/io.hm-rpc.3
                                    tcp        0      0 0.0.0.0:22              0.0.0.0:*               LISTEN      0          13125      576/sshd: /usr/sbin
                                    tcp        0      0 192.168.178.82:18701    0.0.0.0:*               LISTEN      1001       17085      1315/io.hm-rpc.0
                                    tcp        0      0 0.0.0.0:8400            0.0.0.0:*               LISTEN      1001       20213      1851/io.jarvis.0
                                    tcp        0      0 0.0.0.0:1886            0.0.0.0:*               LISTEN      1001       18734      1558/io.sonoff.0
                                    tcp        0      0 0.0.0.0:1883            0.0.0.0:*               LISTEN      116        12257      561/mosquitto
                                    tcp        0      0 0.0.0.0:1880            0.0.0.0:*               LISTEN      1001       17070      1235/node-red
                                    tcp        0      0 192.168.178.82:12010    0.0.0.0:*               LISTEN      1001       17212      1359/io.hm-rpc.2
                                    tcp        0      0 192.168.178.82:12001    0.0.0.0:*               LISTEN      1001       17960      1342/io.hm-rpc.1
                                    tcp        0      0 127.0.0.1:631           0.0.0.0:*               LISTEN      0          13138      538/cupsd
                                    tcp        0      0 192.168.178.82:8087     0.0.0.0:*               LISTEN      1001       23788      2139/io.simple-api.
                                    tcp        0      0 127.0.0.1:9001          0.0.0.0:*               LISTEN      1001       15479      654/iobroker.js-con
                                    tcp        0      0 127.0.0.1:9000          0.0.0.0:*               LISTEN      1001       16497      654/iobroker.js-con
                                    tcp6       0      0 ::1:631                 :::*                    LISTEN      0          13137      538/cupsd
                                    tcp6       0      0 :::3000                 :::*                    LISTEN      117        16568      653/grafana
                                    tcp6       0      0 :::8086                 :::*                    LISTEN      999        13159      548/influxd
                                    tcp6       0      0 :::8084                 :::*                    LISTEN      1001       25135      2161/io.socketio.0
                                    tcp6       0      0 :::8082                 :::*                    LISTEN      1001       21930      1708/io.web.0
                                    tcp6       0      0 :::8081                 :::*                    LISTEN      1001       14838      954/io.admin.0
                                    tcp6       0      0 :::22                   :::*                    LISTEN      0          13127      576/sshd: /usr/sbin
                                    tcp6       0      0 :::1883                 :::*                    LISTEN      116        12258      561/mosquitto
                                    udp        0      0 0.0.0.0:68              0.0.0.0:*                           0          14601      461/dhcpcd
                                    udp        0      0 0.0.0.0:631             0.0.0.0:*                           0          13146      617/cups-browsed
                                    udp        0      0 0.0.0.0:49885           0.0.0.0:*                           108        13036      402/avahi-daemon: r
                                    udp        0      0 0.0.0.0:5353            0.0.0.0:*                           108        13034      402/avahi-daemon: r
                                    udp6       0      0 :::56039                :::*                                108        13037      402/avahi-daemon: r
                                    udp6       0      0 :::546                  :::*                                0          13201      461/dhcpcd
                                    udp6       0      0 :::5353                 :::*                                108        13035      402/avahi-daemon: r
                                    
                                    *** Log File - Last 25 Lines ***
                                    
                                    2023-09-22 15:14:07.195  - info: admin.0 (954) ==> Connected system.user.admin from ::ffff:192.168.178.63
                                    2023-09-22 15:14:09.020  - info: host.iobroker Updating repository "beta" under "http://download.iobroker.net/sources-dist-latest.json"
                                    
                                    

                                    ============ Mark until here for C&P =============

                                    iob diag has finished.

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

                                      @teletapi

                                      Das schaut gut aus.
                                      Von welcher Version bist du denn gekommen? Der Auszug ist ja vermutlich von einem zweiten Durchlauf des Skripts.

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

                                        @thomas-braun
                                        auf dem Produktivsystem hab ich das script nur einmal laufen lassen, danach dann direkt sudo apt update && sudo apt upgrade danach war alles bereits sauber erledigt
                                        Zum schluss nochmal dein script drüber laufen lassen und beide "Nothing to do" am Schluss

                                        Ich bin von der node.js 18.17.1
                                        Nachdem ich per sudo apt update && sudo apt upgrade nicht auf die 18.18.0 kam hab ich dein script mit einer sicherungs Festplatte am RPI getestet nachdem das wunderbar funktioniert hat hab ich das dann auf meinem produktiv System ebenfalls gemacht

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

                                          @teletapi

                                          Danke, das hilft!

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

                                            Hi,
                                            eine Suche über alle Dateien kann lange dauern ...
                                            Vlt. ist es hier sinnvoller eine positiv-Liste anzugeben? Ich habe mich beholfen mit einen weitern Ausschluss (/mnt)

                                            if [[ "$VERNODE" != "v$NODERECOM" ]] && [[ "$NODERECOM" == [[:digit:]]*.[[:digit:]]*.[[:digit:]]* ]];
                                            then
                                                     echo -e "\nYou are running nodejs $VERNODE. Do you want to install recommended version $NODERECOM? ";
                                                     echo -e "\nPress <y> to continue or any other key to quit";
                                                     read -r -s -n 1 char;
                                                     if
                                                             [[ "$char" = "y" ]] || [[ "$char" = "Y" ]]
                                                     then
                                                             echo "Trying to fix your installation now. Please be patient."
                                                             # Finding nodesource.gpg or nodesource.key and deleting. Current key is pulled in later.
                                                             $SUDOX rm "$($SUDOX find / \( -path /proc -o -path /dev -o -path /sys -o -path /lost+found -o -path /mnt \) -prune -o -name nodesource.[gk]* -print)";
                                                             # Deleting nodesource.list Will be recreated later.
                                                             $SUDOX rm /etc/apt/sources.list.d/nodesource.lis*;
                                                     else
                                                             echo "We are not fixing your installation. Exiting.";
                                                     exit;
                                                     fi;
                                            fi;
                                            

                                            Wer doch als root arbeiten möchte Zeile 82-86 löschen :

                                             77 if [ -f "$DOCKER" ];
                                             78 then
                                             79         echo "Fixing Docker is not supported, please update your Docker Container";
                                             80         unset LC_ALL;
                                             81         exit 1;
                                             82         elif [ "$(id -u)" -eq 0 ];
                                             83                  then
                                             84                          echo -e "This script must not be run as root! \nPlease use your standard user!"
                                             85         unset LC_ALL;
                                             86         exit 1;
                                             87 fi;
                                            
                                            Thomas Braun Homoran 3 Replies Last reply Reply Quote -1
                                            • First post
                                              Last post

                                            Support us

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

                                            938
                                            Online

                                            31.9k
                                            Users

                                            80.2k
                                            Topics

                                            1.3m
                                            Posts

                                            34
                                            198
                                            27316
                                            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