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.
    • 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
              • Thomas Braun
                Thomas Braun Most Active @sissiwup last edited by

                @sissiwup sagte in iob node fix - Skript:

                Wer doch als root arbeiten möchte

                Es gibt keinen Grund dafür.

                1 Reply Last reply Reply Quote 1
                • Homoran
                  Homoran Global Moderator Administrators @sissiwup last edited by

                  @sissiwup sagte in iob node fix - Skript:

                  Wer doch als root arbeiten möchte

                  die gibt es nicht!

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

                    @sissiwup sagte in iob node fix - Skript:

                    Vlt. ist es hier sinnvoller eine positiv-Liste anzugeben?

                    Nein, beide Codepassagen sind genauso richtig und bedürfen keiner Anpassung.

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

                      @thomas-braun Vielen Dank für das Script, es hat mir gerade das Leben sehr einfach gemacht (Upgrade von NodeJS 16.20.2 auf 18.18.0). Worked like a charm 🙂

                      1 Reply Last reply Reply Quote 1
                      • ofri2607
                        ofri2607 last edited by

                        @Thomas-Braun
                        auch von meiner Seite einen herzlichen Dank; war wirklich easy und problemlos.
                        Beide Systeme 1x master und 1x slave (beides Raspi 4 mit bullseye) von v18.17.1 auf 18.18.0

                        Den master hatte ich vor einiger Zeit entsprechend deinem HowTo gemacht, aber die notwendigen Änderungen (31.08.2023) noch nicht; hier script laufen lassen und danach sudo apt update && sudo apt upgrade.

                        Der slave ist relativ neu frisch aufgesetzt, hier hatte das script ein downgrade auf 18.17.0 gemacht und anschließend selbstständig die 18.18.0 installiert.
                        Ich denke, alles genauso, wie von dir geplant und gewollt.

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

                          @ofri2607 sagte in iob node fix - Skript:

                          Ich denke, alles genauso, wie von dir geplant und gewollt.

                          Ja, so soll das.

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

                            @thomas-braun
                            Hi,

                            bei mir kommt under debian:

                            N: Das Laden der konfigurierten Datei »main/binary-i386/Packages« wird übersprungen, da das Depot »https://deb.nodesource.com/node_18.x nodistro InRelease« die Architektur »i386« nicht unterstützt.
                            

                            Das kann man lösen durch:

                            deb [arch=amd64 signed-by=/etc/apt/keyrings/nodesource.gpg] https://deb.nodesource.com/node_18.x nodistro main
                            

                            Also konkrete Angabe der Architektur. Vlt. hat ja auch ein anderer das Problem...

                            Homoran 1 Reply Last reply Reply Quote 0
                            • Homoran
                              Homoran Global Moderator Administrators @sissiwup last edited by

                              @sissiwup wie passt denn

                              @sissiwup sagte in iob node fix - Skript:

                              arch=amd64

                              zu

                              @sissiwup sagte in iob node fix - Skript:

                              Architektur »i386«

                              ?

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

                                @sissiwup

                                Die Meldung fängt man sich nur ein, wenn (in der Vergangenheit) falsche Pakete (für die falsche Architektur) installiert wurden. Bei 'ordentlichen' Installationen passiert das nicht.

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

                                  @thomas-braun sagte in iob node fix - Skript:

                                  @sissiwup

                                  Die Meldung fängt man sich nur ein, wenn (in der Vergangenheit) falsche Pakete (für die falsche Architektur) installiert wurden. Bei 'ordentlichen' Installationen passiert das nicht.

                                  Hi,

                                  oder wenn man multi-arch support aktiviert hat (für nicht 64-bit Softwarepakete)

                                  dpkg --print-foreign-architectures
                                  i386
                                  

                                  Wer das nicht braucht:

                                  dpkg --remove-architecture i386
                                  
                                  Homoran 1 Reply Last reply Reply Quote 0
                                  • Homoran
                                    Homoran Global Moderator Administrators @sissiwup last edited by

                                    @sissiwup gib mal die Langfassung von iob diag

                                    1 Reply Last reply Reply Quote 0
                                    • R
                                      reutli @Thomas Braun last edited by reutli

                                      @thomas-braun

                                      warum kommt denn nach erfolgreichem update auf 18.18.0 und erneutem Aufruf trotzdem nochmals die Abfrage ob man auf 18.18.0 updaten möchte?

                                      ioBroker nodejs fixer 2023-09-24
                                      No recommendation for nodejs version found on your system. We recommend to install latest version from nodejs v18 tree.
                                      
                                      Your current setup is:
                                      /usr/bin/nodejs 	v18.18.0
                                      /usr/bin/node 		v18.18.0
                                      /usr/bin/npm 		9.8.1
                                      /usr/bin/npx 		9.8.1
                                      /usr/bin/corepack 	0.19.0
                                      
                                      We found these nodejs versions available for installation:
                                      
                                      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
                                      
                                      
                                      
                                      Nothing to do - Your installation is using the correct paths.
                                      
                                      You are running nodejs v18.18.0. Do you want to install recommended version v.18 ? 
                                      
                                      Press <y> to continue or any other key to quit
                                      We are not fixing your installation. Exiting.
                                      pi@iobroker:/opt/iobroker $ 
                                      

                                      es kommt zwar die Meldung

                                      We are not fixing your installation. Exiting.
                                      

                                      aber eins drüber meint er, er könnte von .18 auf .18 updaten...

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

                                        @reutli sagte in iob node fix - Skript:

                                        Weil für dein System keine empfohlene Version ausgelesen werden kann und daher kein Abgleich dagegen möglich ist.

                                        Ist das z. B. ein Multihost-Slave?

                                        R 1 Reply Last reply Reply Quote 0
                                        • F
                                          firebowl last edited by

                                          Sehr geile Sache das Script. 🙂
                                          Leider aktualisiert es bei mir die Version nicht auf 18.18.0
                                          Es wird erkannt, dass sie vorhanden ist und installiert werde soll.
                                          Nach dem Lauf ist aber weiterhin die 18.17.1 installiert. 😞

                                          R Thomas Braun 2 Replies Last reply Reply Quote 0
                                          • R
                                            reutli @firebowl last edited by

                                            @firebowl

                                            Die Ausgabe zeigen hilft, damit einem geholfen wird...

                                            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

                                            914
                                            Online

                                            31.9k
                                            Users

                                            80.1k
                                            Topics

                                            1.3m
                                            Posts

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