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

    • Monatsrückblick - April 2025

    • Minor js-controller 7.0.7 Update in latest repo

    • Save The Date: ioBroker@Smart Living Forum Solingen, 14.06.

    iob node fix - Skript

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

      @thomas-braun sehr gut dass du dich dazu durchgerungen hast! Ich hoffe bzw. bin mir sicher dass das auch deine unermüdliche Arbeit hier leichter machen wird

      Ein paar Dinge hätte ich dazu noch anzumerken, komme leider jedoch erst morgen dazu das ausführlicher zu schreiben

      F 1 Reply Last reply Reply Quote 0
      • Meister Mopper
        Meister Mopper @Thomas Braun last edited by Meister Mopper

        @thomas-braun

        1. So, ich habe das mal auf einem bookworm lxc (ioBroker master) ausgeführt.

        Vorab der Eintrag in nodesource.list

        thomas@iobroker:~$ cat /etc/apt/sources.list.d/nodesource.list
        
        deb https://deb.nodesource.com/node_18.x bookworm main
        deb-src https://deb.nodesource.com/node_18.x bookworm main
        

        Ich habe da somit an den Schlüsseln bisher nichts geändert.
        Hier die Ausgabe des Skripts:

        ioBroker nodejs fixer 2023-09-02
        Recommended nodejs-version is: 18.17.1
        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
        
        I found these versions available:
        
        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 seems to be correct
        
        1. Ich habe es auch auf einem Raspberrypi 4 mit bullseye (ioBroker slave) ausgeführt und erhalte:
        thomas@rpizigbee:~ $ cat /etc/apt/sources.list.d/nodesource.list
        # node 18
        deb https://deb.nodesource.com/node_18.x bullseye main
        deb-src https://deb.nodesource.com/node_18.x bullseye main
        
        ioBroker nodejs fixer 2023-09-02
        Could not detect recommended nodejs-version. Please run 'iob node-update' again.
        

        iob diag auf diesem Raspberrypi ergibt:

        Skript v.2023-04-16
        
        *** BASE SYSTEM ***
        Model           : Raspberry Pi 4 Model B Rev 1.2
        Architecture    : aarch64
        Docker          : false
        Virtualization  : none
        Distributor ID: Raspbian
        Description:    Raspbian GNU/Linux 11 (bullseye)
        Release:        11
        Codename:       bullseye
        
        PRETTY_NAME="Raspbian GNU/Linux 11 (bullseye)"
        NAME="Raspbian GNU/Linux"
        VERSION_ID="11"
        VERSION="11 (bullseye)"
        VERSION_CODENAME=bullseye
        ID=raspbian
        ID_LIKE=debian
        HOME_URL="http://www.raspbian.org/"
        SUPPORT_URL="http://www.raspbian.org/RaspbianForums"
        BUG_REPORT_URL="http://www.raspbian.org/RaspbianBugs"
        
        Systemuptime and Load:
         10:24:15 up 39 days, 20:46,  2 users,  load average: 1.56, 1.59, 1.61
        CPU threads: 4
        
        Raspberry only:
        throttled=0x0
        Other values than 0x0 hint to temperature/voltage problems
        temp=56.0'C
        volt=0.8563V
        
        *** Time and Time Zones ***
                       Local time: Sun 2023-09-03 10:24:15 CEST
                   Universal time: Sun 2023-09-03 08:24:15 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 ***
        thomas
        /home/thomas
        thomas adm video lpadmin iobroker
        
        *** X-Server-Setup ***
        X-Server:       false
        Desktop:
        Terminal:       tty
        Boot Target:    multi-user.target
        
        *** MEMORY ***
                       total        used        free      shared  buff/cache   available
        Mem:            3.8G        915M        684M        1.0M        2.2G        2.8G
        Swap:             0B          0B          0B
        Total:          3.8G        915M        684M
        
                 3793 M total memory
                  915 M used memory
                 1284 M active memory
                 1486 M inactive memory
                  683 M free memory
                 1044 M buffer memory
                 1149 M swap cache
                    0 M total swap
                    0 M used swap
                    0 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      459G  7.6G  433G   2% /
        devtmpfs                             devtmpfs  1.7G     0  1.7G   0% /dev
        tmpfs                                tmpfs     1.9G     0  1.9G   0% /dev/shm
        tmpfs                                tmpfs     759M  836K  758M   1% /run
        tmpfs                                tmpfs     5.0M  4.0K  5.0M   1% /run/lock
        /dev/sda1                            vfat      253M   51M  202M  20% /boot
        tmpfs                                tmpfs     380M   24K  380M   1% /run/user/1000
        //192.168.178.100/homes/pi/rpizigbee cifs      7.0T  3.1T  4.0T  44% /mnt/nas
        tmpfs                                tmpfs     380M   24K  380M   1% /run/user/1001
        
        Messages concerning ext4 filesystem in dmesg:
        [Tue Jul 25 13:37:52 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  smsc95xx.macaddr=DC:A6:32:60:B6:CA vc_mem.mem_base=0x3eb00000 vc_mem.mem_size=0x3ff00000  console=ttyAMA0,115200 console=tty1 root=PARTUUID=b5ea4336-02 rootfstype=ext4 elevator=deadline fsck.repair=yes rootwait
        [Tue Jul 25 13:37:55 2023] EXT4-fs (sda2): mounted filesystem with ordered data mode. Quota mode: none.
        [Tue Jul 25 13:37:55 2023] VFS: Mounted root (ext4 filesystem) readonly on device 8:2.
        [Tue Jul 25 13:37:58 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,flush,errors=remount-ro
        `-/mnt/nas //192.168.178.100/homes/pi/rpizigbee cifs   rw,relatime,vers=3.1.1,cache=strict,username=pi,uid=0,noforceuid,gid=0,noforcegid,addr=192.168.178.100,file_mode=0755,dir_mode=0755,soft,nounix,serverino,mapposix,rsize=4194304,wsize=4194304,bsize=1048576,echo_interval=60,actimeo=1,closetimeo=5
        
        Files in neuralgic directories:
        
        /var:
        1.4G    /var/
        617M    /var/log
        500M    /var/cache
        488M    /var/cache/apt
        424M    /var/cache/apt/archives
        
        Archived and active journals take up 264.0M in the file system.
        
        /opt/iobroker/backups:
        44K     /opt/iobroker/backups/
        4.0K    /opt/iobroker/backups/redistmp
        
        /opt/iobroker/iobroker-data:
        8.2M    /opt/iobroker/iobroker-data/
        3.4M    /opt/iobroker/iobroker-data/files
        2.8M    /opt/iobroker/iobroker-data/files/info.admin
        2.4M    /opt/iobroker/iobroker-data/files/info.admin/lib
        1.2M    /opt/iobroker/iobroker-data/backup-objects
        
        The five largest files in iobroker-data are:
        1.5M    /opt/iobroker/iobroker-data/objects.json.bak
        1.5M    /opt/iobroker/iobroker-data/objects.json
        444K    /opt/iobroker/iobroker-data/backup-objects/2020-06-12_11-00_objects.json.gz
        444K    /opt/iobroker/iobroker-data/backup-objects/2020-06-12_10-45_objects.json.gz
        440K    /opt/iobroker/iobroker-data/files/info.admin/lib/fonts/fontawesome-webfont.svg
        
        *** 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
        
        
        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 armhf Packages
                100 /var/lib/dpkg/status
             12.22.12~dfsg-1~deb11u4 500
                500 http://raspbian.raspberrypi.org/raspbian bullseye/main armhf Packages
        
        Temp directories causing npm8 problem: 0
        No problems detected
        
        *** ioBroker-Installation ***
        
        ioBroker Status
        iobroker is running on this host.
        
        At least one iobroker host is running.
        
        Objects type: jsonl
        States  type: redis
        
        MULTIHOSTSERVICE/enabled: false
        
        Core adapters versions
        js-controller:  4.0.24
        admin:          6.8.0
        javascript:     7.0.3
        
        Adapters from github:   0
        
        Adapter State
        + system.adapter.admin.0                  : admin                 : iobroker                                 -  enabled, port: 8081, bind: 0.0.0.0 (SSL), run as: admin
        + system.adapter.backitup.0               : backitup              : iobroker                                 -  enabled
        + system.adapter.backitup.1               : backitup              : rpizigbee                                -  enabled
        + system.adapter.bluelink.0               : bluelink              : iobroker                                 -  enabled
        + system.adapter.chromecast.0             : chromecast            : iobroker                                 -  enabled
          system.adapter.daswetter.0              : daswetter             : rpizigbee                                -  enabled
        + system.adapter.denon.0                  : denon                 : iobroker                                 -  enabled
        + system.adapter.discovery.0              : discovery             : iobroker                                 -  enabled
          system.adapter.dwd.0                    : dwd                   : rpizigbee                                -  enabled
        + system.adapter.enigma2.0                : enigma2               : iobroker                                 -  enabled
        + system.adapter.enigma2.1                : enigma2               : iobroker                                 -  enabled
          system.adapter.feiertage.0              : feiertage             : iobroker                                 -  enabled
        + system.adapter.fullybrowser.0           : fullybrowser          : iobroker                                 -  enabled
        + system.adapter.harmony.0                : harmony               : iobroker                                 -  enabled
        + system.adapter.heos.0                   : heos                  : iobroker                                 -  enabled
        + system.adapter.hm-rega.0                : hm-rega               : iobroker                                 -  enabled
        + system.adapter.hm-rpc.0                 : hm-rpc                : iobroker                                 -  enabled, port: 0
        + system.adapter.hm-rpc.1                 : hm-rpc                : iobroker                                 -  enabled, port: 12010
        + system.adapter.hue.0                    : hue                   : iobroker                                 -  enabled, port: 80
          system.adapter.ical.0                   : ical                  : iobroker                                 -  enabled
          system.adapter.ical.1                   : ical                  : iobroker                                 -  enabled
          system.adapter.icons-addictive-flavour-png.0: icons-addictive-flavour-png: iobroker                                 - disabled
          system.adapter.icons-fatcow-hosting.0   : icons-fatcow-hosting  : iobroker                                 - disabled
          system.adapter.icons-material-png.0     : icons-material-png    : iobroker                                 - disabled
          system.adapter.icons-mfd-png.0          : icons-mfd-png         : iobroker                                 -  enabled
          system.adapter.icons-mfd-svg.0          : icons-mfd-svg         : iobroker                                 -  enabled
          system.adapter.icons-open-icon-library-png.0: icons-open-icon-library-png: iobroker                                 - disabled
        + 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.javascript.0             : javascript            : iobroker                                 -  enabled
        + system.adapter.linux-control.0          : linux-control         : rpizigbee                                -  enabled
        + system.adapter.modbus.0                 : modbus                : iobroker                                 -  enabled
        + system.adapter.net-tools.0              : net-tools             : iobroker                                 -  enabled
        + system.adapter.nut.0                    : nut                   : iobroker                                 -  enabled
        + system.adapter.nut.1                    : nut                   : iobroker                                 -  enabled
        + system.adapter.ocpp.0                   : ocpp                  : rpizigbee                                -  enabled, port: 9220
        + system.adapter.openligadb.0             : openligadb            : iobroker                                 -  enabled
        + system.adapter.pi-hole.0                : pi-hole               : iobroker                                 -  enabled
        + system.adapter.pi-hole.1                : pi-hole               : iobroker                                 -  enabled
        + system.adapter.ping.0                   : ping                  : iobroker                                 -  enabled
        + system.adapter.pollenflug.0             : pollenflug            : iobroker                                 -  enabled
        + system.adapter.proxmox.0                : proxmox               : iobroker                                 -  enabled, port: 8006
        + system.adapter.rpi2.0                   : rpi2                  : rpizigbee                                -  enabled
        + system.adapter.sayit.0                  : sayit                 : iobroker                                 -  enabled
        + system.adapter.sayit.1                  : sayit                 : iobroker                                 -  enabled
        + system.adapter.sayit.2                  : sayit                 : iobroker                                 -  enabled
        + system.adapter.sayit.3                  : sayit                 : iobroker                                 -  enabled
        + system.adapter.sayit.4                  : sayit                 : iobroker                                 -  enabled
        + system.adapter.sayit.5                  : sayit                 : iobroker                                 -  enabled
        + system.adapter.simple-api.0             : simple-api            : iobroker                                 -  enabled, port: 8087, bind: 0.0.0.0, run as: admin
        + system.adapter.smartmeter.0             : smartmeter            : rpizigbee                                -  enabled
        + system.adapter.solax.0                  : solax                 : iobroker                                 -  enabled
        + system.adapter.sonoff.0                 : sonoff                : iobroker                                 -  enabled, port: 8883, bind: 0.0.0.0
        + system.adapter.tankerkoenig.0           : tankerkoenig          : iobroker                                 -  enabled
        + 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.trashschedule.0          : trashschedule         : iobroker                                 -  enabled
        + system.adapter.tuya.0                   : tuya                  : rpizigbee                                -  enabled
        + system.adapter.unifi.0                  : unifi                 : iobroker                                 -  enabled
        + system.adapter.vaillant.0               : vaillant              : rpizigbee                                -  enabled
          system.adapter.vis-bars.0               : vis-bars              : iobroker                                 - disabled
          system.adapter.vis-fancyswitch.0        : vis-fancyswitch       : iobroker                                 - disabled
          system.adapter.vis-google-fonts.0       : vis-google-fonts      : iobroker                                 -  enabled
          system.adapter.vis-history.0            : vis-history           : iobroker                                 - disabled
          system.adapter.vis-hqwidgets.0          : vis-hqwidgets         : iobroker                                 - disabled
          system.adapter.vis-jqui-mfd.0           : vis-jqui-mfd          : iobroker                                 - disabled
          system.adapter.vis-justgage.0           : vis-justgage          : iobroker                                 - disabled
          system.adapter.vis-map.0                : vis-map               : rpizigbee                                -  enabled
          system.adapter.vis-players.0            : vis-players           : iobroker                                 - disabled
          system.adapter.vis-timeandweather.0     : vis-timeandweather    : iobroker                                 - disabled
          system.adapter.vis.0                    : vis                   : iobroker                                 -  enabled
        + system.adapter.web.0                    : web                   : iobroker                                 -  enabled, port: 8082, bind: 0.0.0.0, run as: admin
        + system.adapter.yeelight-2.0             : yeelight-2            : iobroker                                 -  enabled
        + system.adapter.zigbee.0                 : zigbee                : rpizigbee                                -  enabled, port: /dev/serial/by-id/usb-Texas_Instruments_XDS110__03.00.00.13__Embed_with_CMSIS-DAP_L1100MSJ-if00
        
        + instance is alive
        
        Enabled adapters with bindings
        + system.adapter.admin.0                  : admin                 : iobroker                                 -  enabled, port: 8081, bind: 0.0.0.0 (SSL), run as: admin
        + system.adapter.hm-rpc.0                 : hm-rpc                : iobroker                                 -  enabled, port: 0
        + system.adapter.hm-rpc.1                 : hm-rpc                : iobroker                                 -  enabled, port: 12010
        + system.adapter.hue.0                    : hue                   : iobroker                                 -  enabled, port: 80
        + system.adapter.influxdb.0               : influxdb              : iobroker                                 -  enabled, port: 8086
        + system.adapter.ocpp.0                   : ocpp                  : rpizigbee                                -  enabled, port: 9220
        + system.adapter.proxmox.0                : proxmox               : iobroker                                 -  enabled, port: 8006
        + system.adapter.simple-api.0             : simple-api            : iobroker                                 -  enabled, port: 8087, bind: 0.0.0.0, run as: admin
        + system.adapter.sonoff.0                 : sonoff                : iobroker                                 -  enabled, port: 8883, 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
        + system.adapter.zigbee.0                 : zigbee                : rpizigbee                                -  enabled, port: /dev/serial/by-id/usb-Texas_Instruments_XDS110__03.00.00.13__Embed_with_CMSIS-DAP_L1100MSJ-if00
        
        ioBroker-Repositories
        (stable) default: http://download.iobroker.net/sources-dist.json
        (beta) latest : http://download.iobroker.net/sources-dist-latest.json
        stable-live   : http://iobroker.live/repo/sources-dist.json
        latest-live   : http://iobroker.live/repo/sources-dist-latest.json
        
        Active repo(s): (stable) default
        
        Installed ioBroker-Instances
        Used repository: (stable) default
        Adapter    "admin"        : 6.8.0    , installed 6.8.0
        Adapter    "backitup"     : 2.6.23   , installed 2.6.23
        Adapter    "bluelink"     : 2.3.6    , installed 2.3.6
        Adapter    "daswetter"    : 3.1.10   , installed 3.1.10
        Adapter    "denon"        : 1.15.3   , installed 1.15.3
        Adapter    "discovery"    : 3.1.0    , installed 3.1.0
        Adapter    "dwd"          : 2.8.5    , installed 2.8.5
        Adapter    "fullybrowser" : 2.1.2    , installed 2.1.2
        Adapter    "history"      : 2.2.6    , installed 2.2.6
        Adapter    "hm-rega"      : 3.0.47   , installed 3.0.47
        Adapter    "hm-rpc"       : 1.15.19  , installed 1.15.19
        Adapter    "homekit-controller": 0.5.8, installed 0.5.8
        Adapter    "hue"          : 3.9.5    , installed 3.9.5
        Adapter    "info"         : 1.9.26   , installed 1.9.26
        Adapter    "javascript"   : 7.0.3    , installed 7.0.3
        Controller "js-controller": 4.0.24   , installed 4.0.24
        Adapter    "linux-control": 1.1.3    , installed 1.1.3
        Adapter    "ocpp"         : 0.12.5   , installed 0.12.5
        Adapter    "openligadb"   : 1.2.4    , installed 1.2.4
        Adapter    "pi-hole"      : 1.3.6    , installed 1.3.6
        Adapter    "rpi2"         : 1.3.2    , installed 1.3.2
        Adapter    "signal-cmb"   : 0.3.0    , installed 0.3.0
        Adapter    "simple-api"   : 2.7.2    , installed 2.7.2
        Adapter    "smartmeter"   : 3.3.4    , installed 3.3.4
        Adapter    "socketio"     : 6.5.2    , installed 6.5.2
        Adapter    "sonoff"       : 2.5.3    , installed 2.5.3
        Adapter    "spotify-premium": 1.2.2  , installed 1.2.2
        Adapter    "telegram"     : 1.16.0   , installed 1.16.0
        Adapter    "tr-064"       : 4.2.18   , installed 4.2.18
        Adapter    "trashschedule": 2.2.0    , installed 2.2.0
        Adapter    "tuya"         : 3.14.2   , installed 3.14.2
        Adapter    "upnp"         : 1.0.21   , installed 1.0.21
        Adapter    "vaillant"     : 0.1.2    , installed 0.1.2
        Adapter    "vis-google-fonts": 1.0.4 , installed 1.0.4
        Adapter    "web"          : 6.1.0    , installed 6.1.0
        Adapter    "ws"           : 2.5.3    , installed 2.5.3
        Adapter    "zigbee"       : 1.8.23   , installed 1.8.23
        
        Objects and States
        Please stand by - This may take a while
        Objects:        20365
        States:         22441
        
        *** OS-Repositories and Updates ***
        Hit:1 http://archive.raspberrypi.org/debian bullseye InRelease
        Hit:2 http://raspbian.raspberrypi.org/raspbian bullseye InRelease
        Get:3 https://deb.nodesource.com/node_18.x bullseye InRelease [4586 B]
        Fetched 4586 B in 1s (5084 B/s)
        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 127.0.0.1:631           0.0.0.0:*               LISTEN      0          117298392  28647/cupsd
        tcp        0      0 0.0.0.0:22              0.0.0.0:*               LISTEN      0          3685       495/sshd: /usr/sbin
        tcp        0      0 127.0.0.1:53            0.0.0.0:*               LISTEN      0          13662      377/connmand
        tcp        0      0 127.0.0.1:6379          0.0.0.0:*               LISTEN      118        3697       475/redis-server 12
        tcp6       0      0 :::6556                 :::*                    LISTEN      0          3511       1/init
        tcp6       0      0 ::1:6379                :::*                    LISTEN      118        3698       475/redis-server 12
        tcp6       0      0 :::22                   :::*                    LISTEN      0          3687       495/sshd: /usr/sbin
        tcp6       0      0 ::1:53                  :::*                    LISTEN      0          13666      377/connmand
        tcp6       0      0 ::1:631                 :::*                    LISTEN      0          117298391  28647/cupsd
        tcp6       0      0 :::9220                 :::*                    LISTEN      1002       115702107  9742/io.ocpp.0
        udp        0      0 0.0.0.0:631             0.0.0.0:*                           0          117299454  28660/cups-browsed
        udp        0      0 0.0.0.0:5353            0.0.0.0:*                           108        3577       374/avahi-daemon: r
        udp        0      0 0.0.0.0:52646           0.0.0.0:*                           108        3579       374/avahi-daemon: r
        udp        0      0 127.0.0.1:53            0.0.0.0:*                           0          13654      377/connmand
        udp        0      0 0.0.0.0:68              0.0.0.0:*                           0          13858      501/dhcpcd
        udp        0      0 0.0.0.0:6666            0.0.0.0:*                           1002       56200601   29275/io.tuya.0
        udp        0      0 0.0.0.0:6667            0.0.0.0:*                           1002       56200602   29275/io.tuya.0
        udp6       0      0 :::5353                 :::*                                108        3578       374/avahi-daemon: r
        udp6       0      0 ::1:53                  :::*                                0          13658      377/connmand
        udp6       0      0 :::51362                :::*                                108        3580       374/avahi-daemon: r
        udp6       0      0 :::546                  :::*                                0          3860       501/dhcpcd
        
        *** Log File - Last 25 Lines ***
        
        
        
        ============ Mark until here for C&P =============
        
        iob diag has finished.
        

        Erwartet hatte ich, dass auf beiden Systemen nodesource.list geändert wird und die neue Schlüsselvariante angewendet wird.

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

          @meister-mopper sagte in iob node fix - Skript:

          Erwartet hatte ich, dass auf beiden Systemen nodesource.list geändert wird und die neue Schlüsselvariante angewendet wird.

          Da passiert nur, wenn die empfohlene Version und die installierte Version ungleich sind. Bei einer empfohlenen v18.17.2 würde das z. B. umgestellt. So bist du aber aber ja schon auf der aktuellen Version, wenn auch im Moment noch aus dem alten Repo. Installier mal ein nodejs@16 oder 20. Dann wird ein nodejs@18 installiert werden.

          Could not detect recommended nodejs-version. Please run 'iob node-update' again.

          Ist ein Timinig Problem beim Auslesen der iob-Datenbank.

          Meister Mopper 2 Replies Last reply Reply Quote 1
          • Meister Mopper
            Meister Mopper @Thomas Braun last edited by

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

            Ist ein Timinig Problem beim Auslesen der iob-Datenbank.

            Ich bekomme jedoch dieselbe Meldung, wenn ich das Skript erneut (und, und, und) aufrufe.

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

              @meister-mopper

              Mit Slaves hab ich das zugegeben nicht getestet.
              Was passiert bei dir mit dem Code:

              iobroker state getValue system.host.`hostname`.versions.nodeNewestNext
              
              Meister Mopper 1 Reply Last reply Reply Quote 1
              • Meister Mopper
                Meister Mopper @Thomas Braun last edited by

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

                Was passiert bei dir mit dem Code:

                thomas@rpizigbee:~ $ iobroker state getValue system.host.`hostname`.versions.nodeNewestNext
                The state system.host.rpizigbee.versions.nodeNewestNext was not found!
                
                Thomas Braun 1 Reply Last reply Reply Quote 0
                • Thomas Braun
                  Thomas Braun Most Active @Meister Mopper last edited by Thomas Braun

                  @meister-mopper
                  Gib mal statt
                  ``hostname`
                  da den Hostname des Masters ein.

                  Also

                  iobroker state getValue system.host.iobroker.versions.nodeNewestNext
                  
                  Meister Mopper 1 Reply Last reply Reply Quote 1
                  • Meister Mopper
                    Meister Mopper @Thomas Braun last edited by

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

                    Hostname des Masters

                    thomas@rpizigbee:~ $ iobroker state getValue system.host.iobroker.versions.nodeNewestNext
                    18.17.1
                    
                    Thomas Braun 2 Replies Last reply Reply Quote 0
                    • Thomas Braun
                      Thomas Braun Most Active @Meister Mopper last edited by

                      @meister-mopper

                      Okay. Dann hab ich das Problem, das ich noch nicht herausgefunden habe wie man zweifelsfrei erkennt ob es ein Master oder ein Slave System ist.

                      Homoran 1 Reply Last reply Reply Quote 1
                      • Thomas Braun
                        Thomas Braun Most Active @Meister Mopper last edited by

                        @meister-mopper

                        Schau nochmal wie sich der Slave nun verhält. Hab da was angepasst.

                        Meister Mopper 1 Reply Last reply Reply Quote 1
                        • Homoran
                          Homoran Global Moderator Administrators @Thomas Braun last edited by

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

                          ob es ein Master oder ein Slave System ist.

                          nur mal ins unreine;
                          iob setup custom müsste dann beim slave die IP/den Hostnamen enthalten, der nicht der eigene ist.

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

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

                            Schau nochmal wie sich der Slave nun verhält.

                            Ok, jetzt wird geliefert:

                            ioBroker nodejs fixer 2023-09-03
                            Could not detect recommended nodejs-version. Setting up the nodejs 18 tree now.
                            
                            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
                            
                            I found these versions available:
                            
                            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 armhf Packages
                                    100 /var/lib/dpkg/status
                                 12.22.12~dfsg-1~deb11u4 500
                                    500 http://raspbian.raspberrypi.org/raspbian bullseye/main armhf Packages
                            
                            
                            
                            Nothing to do, your installation seems to be correct
                            
                            Could not detect recommended nodejs-version. Please run 'iob node-update' again.
                            
                            1 Reply Last reply Reply Quote 0
                            • David G.
                              David G. @Thomas Braun last edited by

                              @thomas-braun

                              Bei mir läuft es auch Problemlos

                              ioBroker nodejs fixer 2023-09-03
                              Recommended nodejs-version is: 18.17.1
                              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                                
                              I found these versions available:                             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 armhf Packages
                                      100 /var/lib/dpkg/status
                                   12.22.12~dfsg-1~deb11u4 500
                                      500 http://raspbian.raspberrypi.org/raspbian bullseye/main armhf Packages
                              
                              
                              
                              Nothing to do, your installation seems to be correct
                              
                              1 Reply Last reply Reply Quote 0
                              • F
                                fastfoot @fastfoot last edited by

                                @fastfoot sagte in iob node fix - Skript:

                                Ein paar Dinge hätte ich dazu noch anzumerken

                                @Thomas-Braun die haben sich über Nacht wohl aufgelöst 🙂 Aber in Zeile 254 hat sich noch ein Fehler eingeschlichen. Ersetze mal durch:
                                if [[ $NODEINSTMAJOR > $NODE_MAJOR || "$NODERECOMNF" = 1 ]]

                                die double-braces sind hier wichtig.

                                Tolle Arbeit!

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

                                  @fastfoot sagte in iob node fix - Skript:

                                  die double-braces sind hier wichtig.

                                  Die sind auch schon raus. Hab den Code an der Stelle umgestellt.
                                  Die ist aber im Moment noch der Punkt wo es hakelt...
                                  Ohne ausgelesenem state aus der iob-Datenbank was die empfohlene Version angeht komme ich da ins Schleudern.

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

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

                                    Hab den Code an der Stelle umgestellt.

                                    hat aber nicht funktioniert 🙂 Mach mal wie beschrieben, da kommt kein Fehler mehr

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

                                      @fastfoot
                                      Ist doch drin?

                                      if [[ $NODEINSTMAJOR -gt $NODE_MAJOR || "$NODERECOMNF" -eq 1 ]]
                                      
                                      F 1 Reply Last reply Reply Quote 1
                                      • F
                                        fastfoot @Thomas Braun last edited by

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

                                        @fastfoot
                                        Ist doch drin?

                                        if [[ $NODEINSTMAJOR -gt $NODE_MAJOR || "$NODERECOMNF" -eq 1 ]]
                                        

                                        yep, so schnell kann man gar nicht nachladen 🙂 so funktionieren upgrades als auch downgrades.

                                        evtl. könnte man noch die Ausgabe von apt policy unterdrücken, die bringt eh nur die verfügbaren versionen der current installation, nicht der recommended

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

                                          @fastfoot sagte in iob node fix - Skript:

                                          evtl. könnte man noch die Ausgabe von apt policy unterdrücken, die bringt eh nur die verfügbaren versionen der current installation, nicht der recommended

                                          Ja, das nehme ich noch raus, dient im Moment noch zum debuggen. Damit ich sehe was da passiert. Die Ausgaben leite ich nach /dev/null, wenn es stabil läuft.

                                          E F 3 Replies Last reply Reply Quote 1
                                          • E
                                            emil70 @Thomas Braun last edited by

                                            @thomas-braun

                                            Lief auf Docker sauber durch

                                            ioBroker nodejs fixer 2023-09-03
                                            Recommended nodejs-version is: 18.17.1
                                            Checking your installation now. Please be patient!
                                            
                                            Your current setup is:
                                            /usr/bin/nodejs         v18.17.0
                                            /usr/bin/node           v18.17.0
                                            /usr/bin/npm            9.6.7
                                            /usr/bin/npx            9.6.7
                                            /usr/bin/corepack       0.18.0
                                            
                                            I found these versions available:
                                            
                                            nodejs:
                                              Installed: 18.17.0-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 amd64 Packages
                                             *** 18.17.0-deb-1nodesource1 100
                                                    100 /var/lib/dpkg/status
                                                 12.22.12~dfsg-1~deb11u4 500
                                                    500 http://security.debian.org/debian-security bullseye-security/main amd64 Packages
                                                 12.22.12~dfsg-1~deb11u3 500
                                                    500 http://deb.debian.org/debian bullseye/main amd64 Packages
                                            
                                            
                                            
                                            Nothing to do, your installation seems to be correct
                                            
                                            !!! THIS CODE IS IN BETA STAGE. TRY IT AT YOUR OWN RISK !!!
                                            
                                            You are running nodejs v18.17.0. Do you want to install recommended nodejs v18.17.1?  
                                            *** DO NOT TRY THIS FIX ON NON-LINUX-SYSTEMS! ***
                                            
                                            Press <y> to continue or any other key to quit
                                            
                                            root@iobroker:/opt/iobroker# 
                                            
                                            Homoran Thomas Braun 2 Replies 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

                                            957
                                            Online

                                            31.6k
                                            Users

                                            79.4k
                                            Topics

                                            1.3m
                                            Posts

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