Navigation

    Logo
    • Register
    • Login
    • Search
    • Recent
    • Tags
    • Unread
    • Categories
    • Unreplied
    • Popular
    • GitHub
    • Docu
    • Hilfe
    1. Home
    2. Deutsch
    3. Tester
    4. Alpha Test js-controller Kiera (v6.0)

    NEWS

    • ioBroker goes Matter ... Matter Adapter in Stable

    • 15. 05. Wartungsarbeiten am ioBroker Forum

    • Monatsrückblick - April 2025

    Alpha Test js-controller Kiera (v6.0)

    This topic has been deleted. Only users with topic management privileges can see it.
    • foxriver76
      foxriver76 Developer @mcm1957 last edited by foxriver76

      @mcm1957 ne die offizielle version von sql hat 2.6.0 daher crasht es https://www.npmjs.com/package/iobroker.sql?activeTab=code

      Was auf GitHub steht hat keine Auswirkung wenn es nicht von GitHub installiert wurde

      mcm1957 1 Reply Last reply Reply Quote 0
      • Feuersturm
        Feuersturm @foxriver76 last edited by

        @foxriver76 Ich habe meine System gerade einmal auf nodejs 20 (über iob nodejs-update 20 aktualisiert, da du ganz am Anfang geschrieben hattest, dass die Empfehlung jetzt nodejs20 ist.

        Wenn ich jetzt den js-controller installieren will kommt folgende Fehlermeldung

        proxmox@ioBrokerTestsystem:~$ iob stop
        proxmox@ioBrokerTestsystem:~$ cd /opt/iobroker/
        proxmox@ioBrokerTestsystem:/opt/iobroker$ npm i iobroker.js-controller@next --omit=dev
        npm ERR! code EBADENGINE
        npm ERR! engine Unsupported engine
        npm ERR! engine Not compatible with your version of node/npm: @appland/appmap-agent-js@13.9.1
        npm ERR! notsup Not compatible with your version of node/npm: @appland/appmap-agent-js@13.9.1
        npm ERR! notsup Required: {"node":"14.x.x || 16.x.x || 17.x.x || 18.x.x || 19.x.x"}
        npm ERR! notsup Actual:   {"npm":"10.5.2","node":"v20.13.1"}
        
        npm ERR! A complete log of this run can be found in: /home/iobroker/.npm/_logs/2024-05-22T11_53_14_435Z-debug-0.log
        
        

        iob diag:

        Skript v.2024-04-21
        
        *** BASE SYSTEM ***
        Static hostname: ioBrokerTestsystem
              Icon name: computer-container
                Chassis: container
         Virtualization: lxc
        Operating System: Ubuntu 22.04.4 LTS
                 Kernel: Linux 6.5.13-1-pve
           Architecture: x86-64
        
        model name      : Intel(R) Celeron(R) CPU  N3150  @ 1.60GHz
        Docker          : false
        Virtualization  : lxc
        Kernel          : x86_64
        Userland        : 64 bit
        
        Systemuptime and Load:
        13:58:17 up 10:47,  2 users,  load average: 3.28, 2.65, 2.81
        CPU threads: 4
        
        
        *** Time and Time Zones ***
                      Local time: Wed 2024-05-22 13:58:18 CEST
                  Universal time: Wed 2024-05-22 11:58:18 UTC
                        RTC time: n/a
                       Time zone: Europe/Berlin (CEST, +0200)
        System clock synchronized: yes
                     NTP service: inactive
                 RTC in local TZ: no
        
        *** Users and Groups ***
        User that called 'iob diag':
        proxmox
        HOME=/home/proxmox
        GROUPS=proxmox sudo iobroker
        
        User that is running 'js-controller':
        js-controller is not running
        
        *** Display-Server-Setup ***
        Display-Server: false
        Desktop:
        Terminal:       tty
        Boot Target:    graphical.target
        
        *** MEMORY ***
                      total        used        free      shared  buff/cache   available
        Mem:            6.0G        313M        4.6G        0.0K        1.1G        5.7G
        Swap:           1.5G        0.0K        1.5G
        Total:          7.5G        313M        6.1G
        
        Active iob-Instances:   1
        
                6000 M total memory
                 313 M used memory
                 258 M active memory
                 910 M inactive memory
                4600 M free memory
                   0 M buffer memory
                1086 M swap cache
                1512 M total swap
                   0 M used swap
                1511 M free swap
        
        *** top - Table Of Processes  ***
        top - 13:58:18 up 10:47,  2 users,  load average: 3.28, 2.65, 2.81
        Tasks:  37 total,   1 running,  36 sleeping,   0 stopped,   0 zombie
        %Cpu(s):  4.8 us, 14.3 sy,  0.0 ni, 81.0 id,  0.0 wa,  0.0 hi,  0.0 si,  0.0 st
        MiB Mem :   6000.0 total,   4599.5 free,    313.8 used,   1086.8 buff/cache
        MiB Swap:   1512.0 total,   1512.0 free,      0.0 used.   5686.2 avail Mem
        
        *** FAILED SERVICES ***
        
         UNIT                   LOAD   ACTIVE SUB    DESCRIPTION
        * run-rpc_pipefs.mount   loaded failed failed RPC Pipe File System
        * sys-kernel-debug.mount loaded failed failed Kernel Debug File System
        * iobroker.service       loaded failed failed ioBroker Server
        
        LOAD   = Reflects whether the unit definition was properly loaded.
        ACTIVE = The high-level unit activation state, i.e. generalization of SUB.
        SUB    = The low-level unit activation state, values depend on unit type.
        3 loaded units listed.
        
        *** FILESYSTEM ***
        Filesystem                          Type   Size  Used Avail Use% Mounted on
        /dev/mapper/data2-vm--3108--disk--1 ext4    20G  9.3G  9.3G  51% /
        none                                tmpfs  492K  4.0K  488K   1% /dev
        tmpfs                               tmpfs  7.7G     0  7.7G   0% /dev/shm
        tmpfs                               tmpfs  3.1G  156K  3.1G   1% /run
        tmpfs                               tmpfs  5.0M     0  5.0M   0% /run/lock
        tmpfs                               tmpfs  1.0M     0  1.0M   0% /run/credentials/systemd-sysusers.service
        tmpfs                               tmpfs  1.6G     0  1.6G   0% /run/user/1001
        
        Messages concerning ext4 filesystem in dmesg:
        dmesg: read kernel buffer failed: Operation not permitted
        
        Show mounted filesystems:
        TARGET                                        SOURCE                              FSTYPE     OPTIONS
        /                                             /dev/mapper/data2-vm--3108--disk--1 ext4       rw,relatime,stripe=16
        |-/run                                        tmpfs                               tmpfs      rw,nosuid,nodev,size=3206044k,nr_inodes=819200,mode=755,uid=100000,gid=100000,inode64
        | |-/run/lock                                 tmpfs                               tmpfs      rw,nosuid,nodev,noexec,relatime,size=5120k,uid=100000,gid=100000,inode64
        | |-/run/credentials/systemd-sysusers.service tmpfs                               tmpfs      ro,nosuid,nodev,noexec,relatime,size=1024k,nr_inodes=1024,mode=700,uid=100000,gid=100000,inode64
        | `-/run/user/1001                            tmpfs                               tmpfs      rw,nosuid,nodev,relatime,size=1603020k,nr_inodes=400755,mode=700,uid=101001,gid=101001,inode64
        |-/dev                                        none                                tmpfs      rw,relatime,size=492k,mode=755,uid=100000,gid=100000,inode64
        | |-/dev/shm                                  tmpfs                               tmpfs      rw,nosuid,nodev,uid=100000,gid=100000,inode64
        | |-/dev/mqueue                               mqueue                              mqueue     rw,nosuid,nodev,noexec,relatime
        | |-/dev/full                                 udev[/full]                         devtmpfs   rw,nosuid,relatime,size=7981392k,nr_inodes=1995348,mode=755,inode64
        | |-/dev/null                                 udev[/null]                         devtmpfs   rw,nosuid,relatime,size=7981392k,nr_inodes=1995348,mode=755,inode64
        | |-/dev/random                               udev[/random]                       devtmpfs   rw,nosuid,relatime,size=7981392k,nr_inodes=1995348,mode=755,inode64
        | |-/dev/tty                                  udev[/tty]                          devtmpfs   rw,nosuid,relatime,size=7981392k,nr_inodes=1995348,mode=755,inode64
        | |-/dev/urandom                              udev[/urandom]                      devtmpfs   rw,nosuid,relatime,size=7981392k,nr_inodes=1995348,mode=755,inode64
        | |-/dev/zero                                 udev[/zero]                         devtmpfs   rw,nosuid,relatime,size=7981392k,nr_inodes=1995348,mode=755,inode64
        | |-/dev/pts                                  devpts                              devpts     rw,nosuid,noexec,relatime,gid=100005,mode=620,ptmxmode=666,max=1026
        | |-/dev/ptmx                                 devpts[/ptmx]                       devpts     rw,nosuid,noexec,relatime,gid=100005,mode=620,ptmxmode=666,max=1026
        | |-/dev/console                              devpts[/0]                          devpts     rw,nosuid,noexec,relatime,gid=100005,mode=620,ptmxmode=666,max=1026
        | |-/dev/tty1                                 devpts[/1]                          devpts     rw,nosuid,noexec,relatime,gid=100005,mode=620,ptmxmode=666,max=1026
        | `-/dev/tty2                                 devpts[/2]                          devpts     rw,nosuid,noexec,relatime,gid=100005,mode=620,ptmxmode=666,max=1026
        |-/proc                                       proc                                proc       rw,nosuid,nodev,noexec,relatime
        | |-/proc/sys                                 proc[/sys]                          proc       ro,relatime
        | | |-/proc/sys/net                           proc[/sys/net]                      proc       rw,nosuid,nodev,noexec,relatime
        | | `-/proc/sys/kernel/random/boot_id         none[/.lxc-boot-id]                 tmpfs      ro,nosuid,nodev,noexec,relatime,size=492k,mode=755,uid=100000,gid=100000,inode64
        | |-/proc/sysrq-trigger                       proc[/sysrq-trigger]                proc       ro,relatime
        | |-/proc/cpuinfo                             lxcfs[/proc/cpuinfo]                fuse.lxcfs rw,nosuid,nodev,relatime,user_id=0,group_id=0,allow_other
        | |-/proc/diskstats                           lxcfs[/proc/diskstats]              fuse.lxcfs rw,nosuid,nodev,relatime,user_id=0,group_id=0,allow_other
        | |-/proc/loadavg                             lxcfs[/proc/loadavg]                fuse.lxcfs rw,nosuid,nodev,relatime,user_id=0,group_id=0,allow_other
        | |-/proc/meminfo                             lxcfs[/proc/meminfo]                fuse.lxcfs rw,nosuid,nodev,relatime,user_id=0,group_id=0,allow_other
        | |-/proc/slabinfo                            lxcfs[/proc/slabinfo]               fuse.lxcfs rw,nosuid,nodev,relatime,user_id=0,group_id=0,allow_other
        | |-/proc/stat                                lxcfs[/proc/stat]                   fuse.lxcfs rw,nosuid,nodev,relatime,user_id=0,group_id=0,allow_other
        | |-/proc/swaps                               lxcfs[/proc/swaps]                  fuse.lxcfs rw,nosuid,nodev,relatime,user_id=0,group_id=0,allow_other
        | `-/proc/uptime                              lxcfs[/proc/uptime]                 fuse.lxcfs rw,nosuid,nodev,relatime,user_id=0,group_id=0,allow_other
        `-/sys                                        sysfs                               sysfs      ro,nosuid,nodev,noexec,relatime
         |-/sys/fs/fuse/connections                  fusectl                             fusectl    rw,nosuid,nodev,noexec,relatime
         |-/sys/devices/virtual/net                  sysfs[/devices/virtual/net]         sysfs      rw,nosuid,nodev,noexec,relatime
         |-/sys/fs/cgroup                            none                                cgroup2    rw,nosuid,nodev,noexec,relatime
         `-/sys/devices/system/cpu                   lxcfs[/sys/devices/system/cpu]      fuse.lxcfs rw,nosuid,nodev,relatime,user_id=0,group_id=0,allow_other
        
        Files in neuralgic directories:
        
        /var:
        1.6G    /var/
        698M    /var/log
        689M    /var/log/journal/db91a8d9813048b3b0d9627361bf92a2
        689M    /var/log/journal
        507M    /var/lib
        
        Hint: You are currently not seeing messages from other users and the system.
             Users in groups 'adm', 'systemd-journal' can see all messages.
             Pass -q to turn off this notice.
        Archived and active journals take up 48.0M in the file system.
        
        /opt/iobroker/backups:
        109M    /opt/iobroker/backups/
        
        /opt/iobroker/iobroker-data:
        1.3G    /opt/iobroker/iobroker-data/
        1.1G    /opt/iobroker/iobroker-data/files
        223M    /opt/iobroker/iobroker-data/files/vis
        215M    /opt/iobroker/iobroker-data/files/vis/widgets
        203M    /opt/iobroker/iobroker-data/files/vis-2
        
        The five largest files in iobroker-data are:
        35M     /opt/iobroker/iobroker-data/files/devices.admin/static/js/main.24f2bb56.js.map
        35M     /opt/iobroker/iobroker-data/files/device-manager.admin/build/tab.js.map
        27M     /opt/iobroker/iobroker-data/files/tankerkoenig.admin/build/index.js.map
        26M     /opt/iobroker/iobroker-data/files/scenes.admin/static/js/main.8947f24d.js.map
        24M     /opt/iobroker/iobroker-data/files/web.admin/static/js/main.135279a0.js.map
        
        USB-Devices by-id:
        USB-Sticks -  Avoid direct links to /dev/tty* in your adapter setups, please always prefer the links 'by-id':
        
        No Devices found 'by-id'
        
        
        
        
        *** NodeJS-Installation ***
        
        /usr/bin/nodejs         v20.13.1
        /usr/bin/node           v20.13.1
        /usr/bin/npm            10.5.2
        /usr/bin/npx            10.5.2
        /usr/bin/corepack       0.28.0
        
        
        nodejs:
         Installed: 20.13.1-1nodesource1
         Candidate: 20.13.1-1nodesource1
         Version table:
        *** 20.13.1-1nodesource1 1001
               500 https://deb.nodesource.com/node_20.x nodistro/main amd64 Packages
               100 /var/lib/dpkg/status
            20.13.0-1nodesource1 1001
               500 https://deb.nodesource.com/node_20.x nodistro/main amd64 Packages
            20.12.2-1nodesource1 1001
               500 https://deb.nodesource.com/node_20.x nodistro/main amd64 Packages
            20.12.1-1nodesource1 1001
               500 https://deb.nodesource.com/node_20.x nodistro/main amd64 Packages
            20.12.0-1nodesource1 1001
               500 https://deb.nodesource.com/node_20.x nodistro/main amd64 Packages
            20.11.1-1nodesource1 1001
               500 https://deb.nodesource.com/node_20.x nodistro/main amd64 Packages
            20.11.0-1nodesource1 1001
               500 https://deb.nodesource.com/node_20.x nodistro/main amd64 Packages
            20.10.0-1nodesource1 1001
               500 https://deb.nodesource.com/node_20.x nodistro/main amd64 Packages
            20.9.0-1nodesource1 1001
               500 https://deb.nodesource.com/node_20.x nodistro/main amd64 Packages
            20.8.1-1nodesource1 1001
               500 https://deb.nodesource.com/node_20.x nodistro/main amd64 Packages
            20.8.0-1nodesource1 1001
               500 https://deb.nodesource.com/node_20.x nodistro/main amd64 Packages
            20.7.0-1nodesource1 1001
               500 https://deb.nodesource.com/node_20.x nodistro/main amd64 Packages
            20.6.1-1nodesource1 1001
               500 https://deb.nodesource.com/node_20.x nodistro/main amd64 Packages
            20.6.0-1nodesource1 1001
               500 https://deb.nodesource.com/node_20.x nodistro/main amd64 Packages
            20.5.1-1nodesource1 1001
               500 https://deb.nodesource.com/node_20.x nodistro/main amd64 Packages
            20.5.0-1nodesource1 1001
               500 https://deb.nodesource.com/node_20.x nodistro/main amd64 Packages
            20.4.0-1nodesource1 1001
               500 https://deb.nodesource.com/node_20.x nodistro/main amd64 Packages
            20.3.1-1nodesource1 1001
               500 https://deb.nodesource.com/node_20.x nodistro/main amd64 Packages
            20.3.0-1nodesource1 1001
               500 https://deb.nodesource.com/node_20.x nodistro/main amd64 Packages
            20.2.0-1nodesource1 1001
               500 https://deb.nodesource.com/node_20.x nodistro/main amd64 Packages
            20.1.0-1nodesource1 1001
               500 https://deb.nodesource.com/node_20.x nodistro/main amd64 Packages
            20.0.0-1nodesource1 1001
               500 https://deb.nodesource.com/node_20.x nodistro/main amd64 Packages
            12.22.9~dfsg-1ubuntu3.5 500
               500 http://archive.ubuntu.com/ubuntu jammy-updates/universe amd64 Packages
               500 http://archive.ubuntu.com/ubuntu jammy-security/universe amd64 Packages
            12.22.9~dfsg-1ubuntu3 500
               500 http://archive.ubuntu.com/ubuntu jammy/universe amd64 Packages
        
        Temp directories causing npm8 problem: 0
        No problems detected
        
        Errors in npm tree:
        
        *** ioBroker-Installation ***
        
        ioBroker Status
        iobroker is not running on this host.
        
        
        Objects type: jsonl
        States  type: jsonl
        
        Core adapters versions
        js-controller:  5.0.19
        admin:          6.17.11
        javascript:     8.3.1
        
        nodejs modules from github:     5
        +-- iobroker.fully-tablet-control@0.3.4-0 (git+ssh://git@github.com/xXBJXx/ioBroker.fully-tablet-control.git#7117121d4e659a2ddf69feb2698a4014588a5f94)
        +-- iobroker.rainbird@0.2.3 (git+ssh://git@github.com/StrathCole/ioBroker.rainbird.git#0caa24dcbb11024865ff9161c6f6bb5e6db6a9ce)
        +-- iobroker.samsung-community@0.5.0 (git+ssh://git@github.com/iobroker-community-adapters/ioBroker.samsung-community.git#dd5c173cf9056c3ab9bd45006f17bb639d9ff5f8)
        | +-- samsungtv@0.0.0 (git+ssh://git@github.com/luca-saggese/samsungtv.git#7fc20107455414e2afb94022682e0787e8635550)
        +-- iobroker.valloxmv@1.2.0 (git+ssh://git@github.com/hacki11/ioBroker.valloxmv.git#51ef16846b53016d658f1df5afa0cf42296000be)
        
        Adapter State
         system.adapter.admin.0                  : admin                 : ioBrokerTestsystem                       -  enabled, port: 8081, bind: 0.0.0.0, run as: admin
         system.adapter.backitup.0               : backitup              : ioBrokerTestsystem                       -  enabled
         system.adapter.benchmark.0              : benchmark             : ioBrokerTestsystem                       - disabled
         system.adapter.daswetter.0              : daswetter             : ioBrokerTestsystem                       -  enabled
         system.adapter.device-manager.0         : device-manager        : ioBrokerTestsystem                       -  enabled
         system.adapter.device-watcher.0         : device-watcher        : ioBrokerTestsystem                       - disabled
         system.adapter.devices.0                : devices               : ioBrokerTestsystem                       - disabled
         system.adapter.discovery.0              : discovery             : ioBrokerNew                              -  enabled
         system.adapter.discovery.1              : discovery             : ioBrokerTestsystem                       -  enabled
         system.adapter.dwd.0                    : dwd                   : ioBrokerTestsystem                       -  enabled
         system.adapter.echarts.0                : echarts               : ioBrokerTestsystem                       -  enabled
         system.adapter.fritzbox.0               : fritzbox              : ioBrokerTestsystem                       -  enabled
         system.adapter.fully-tablet-control.0   : fully-tablet-control  : ioBrokerTestsystem                       - disabled
         system.adapter.history.1                : history               : ioBrokerNew                              - disabled
         system.adapter.hm-rega.0                : hm-rega               : ioBrokerTestsystem                       -  enabled
         system.adapter.hm-rpc.0                 : hm-rpc                : ioBrokerTestsystem                       -  enabled, port: 0
         system.adapter.hue.0                    : hue                   : ioBrokerTestsystem                       -  enabled, port: 443
         system.adapter.ical.0                   : ical                  : ioBrokerTestsystem                       - disabled
         system.adapter.ical.1                   : ical                  : ioBrokerTestsystem                       - disabled
         system.adapter.ical.2                   : ical                  : ioBrokerTestsystem                       - disabled
         system.adapter.ical.3                   : ical                  : ioBrokerTestsystem                       - disabled
         system.adapter.ical.4                   : ical                  : ioBrokerTestsystem                       - disabled
         system.adapter.ical.5                   : ical                  : ioBrokerTestsystem                       -  enabled
         system.adapter.icons-material-png.0     : icons-material-png    : ioBrokerTestsystem                       - disabled
         system.adapter.icons-mfd-svg.0          : icons-mfd-svg         : ioBrokerTestsystem                       - disabled
         system.adapter.icons-ultimate-png.0     : icons-ultimate-png    : ioBrokerTestsystem                       - disabled
         system.adapter.influxdb.0               : influxdb              : ioBrokerTestsystem                       -  enabled, port: 8086
         system.adapter.javascript.0             : javascript            : ioBrokerTestsystem                       -  enabled
         system.adapter.mqtt.0                   : mqtt                  : ioBrokerTestsystem                       - disabled, port: 1883, bind: 0.0.0.0
         system.adapter.nina.0                   : nina                  : ioBrokerTestsystem                       -  enabled
         system.adapter.openweathermap.0         : openweathermap        : ioBrokerTestsystem                       -  enabled
         system.adapter.proxmox.0                : proxmox               : ioBrokerTestsystem                       -  enabled, port: 8006
         system.adapter.rainbird.0               : rainbird              : ioBrokerTestsystem                       - disabled
         system.adapter.samsung-community.0      : samsung-community     : ioBrokerTestsystem                       - disabled
         system.adapter.sayit.0                  : sayit                 : ioBrokerTestsystem                       - disabled, port: 0
         system.adapter.scenes.0                 : scenes                : ioBrokerTestsystem                       -  enabled
         system.adapter.scheduler.0              : scheduler             : ioBrokerTestsystem                       - disabled
         system.adapter.simple-api.0             : simple-api            : ioBrokerTestsystem                       - disabled, port: 8087, bind: 0.0.0.0, run as: admin
         system.adapter.socketio.0               : socketio              : ioBrokerTestsystem                       - disabled, port: 8084, bind: 192.168.178.77, run as: admin
         system.adapter.spotify-premium.0        : spotify-premium       : ioBrokerTestsystem                       - disabled
         system.adapter.sql.0                    : sql                   : ioBrokerNew                              - disabled, port: 3306
         system.adapter.tankerkoenig.0           : tankerkoenig          : ioBrokerTestsystem                       -  enabled
         system.adapter.telegram.0               : telegram              : ioBrokerTestsystem                       - disabled, port: 8443, bind: 0.0.0.0
         system.adapter.tr-064.0                 : tr-064                : ioBrokerTestsystem                       -  enabled
         system.adapter.trashschedule.0          : trashschedule         : ioBrokerTestsystem                       -  enabled
         system.adapter.unifi.0                  : unifi                 : ioBrokerTestsystem                       -  enabled
         system.adapter.valloxmv.0               : valloxmv              : ioBrokerTestsystem                       - disabled, port: 80
         system.adapter.vis-2-widgets-energy.0   : vis-2-widgets-energy  : ioBrokerTestsystem                       - disabled
         system.adapter.vis-2-widgets-gauges.0   : vis-2-widgets-gauges  : ioBrokerTestsystem                       - disabled
         system.adapter.vis-2-widgets-jaeger-design.0: vis-2-widgets-jaeger-design: ioBrokerTestsystem                       - disabled
         system.adapter.vis-2-widgets-material.0 : vis-2-widgets-material: ioBrokerTestsystem                       - disabled
         system.adapter.vis-2.0                  : vis-2                 : ioBrokerTestsystem                       -  enabled
         system.adapter.vis-fancyswitch.0        : vis-fancyswitch       : ioBrokerTestsystem                       - disabled
         system.adapter.vis-google-fonts.0       : vis-google-fonts      : ioBrokerTestsystem                       -  enabled
         system.adapter.vis-history.0            : vis-history           : ioBrokerTestsystem                       - disabled
         system.adapter.vis-inventwo.0           : vis-inventwo          : ioBrokerTestsystem                       -  enabled
         system.adapter.vis-jqui-mfd.0           : vis-jqui-mfd          : ioBrokerTestsystem                       - disabled
         system.adapter.vis-justgage.0           : vis-justgage          : ioBrokerTestsystem                       - disabled
         system.adapter.vis-map.0                : vis-map               : ioBrokerTestsystem                       - disabled
         system.adapter.vis-materialdesign.0     : vis-materialdesign    : ioBrokerTestsystem                       - disabled
         system.adapter.vis-timeandweather.0     : vis-timeandweather    : ioBrokerTestsystem                       - disabled
         system.adapter.vis.0                    : vis                   : ioBrokerTestsystem                       -  enabled
         system.adapter.web.0                    : web                   : ioBrokerTestsystem                       -  enabled, port: 8082, bind: 192.168.178.77, run as: admin
         system.adapter.worx.0                   : worx                  : ioBrokerTestsystem                       - disabled
        
        + instance is alive
        
        Enabled adapters with bindings
         system.adapter.admin.0                  : admin                 : ioBrokerTestsystem                       -  enabled, port: 8081, bind: 0.0.0.0, run as: admin
         system.adapter.hm-rpc.0                 : hm-rpc                : ioBrokerTestsystem                       -  enabled, port: 0
         system.adapter.hue.0                    : hue                   : ioBrokerTestsystem                       -  enabled, port: 443
         system.adapter.influxdb.0               : influxdb              : ioBrokerTestsystem                       -  enabled, port: 8086
         system.adapter.proxmox.0                : proxmox               : ioBrokerTestsystem                       -  enabled, port: 8006
         system.adapter.web.0                    : web                   : ioBrokerTestsystem                       -  enabled, port: 8082, bind: 192.168.178.77, 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.17.11  , installed 6.17.11
        Adapter    "backitup"     : 2.11.0   , installed 2.11.0
        Adapter    "benchmark"    : 1.2.0    , installed 1.2.0
        Adapter    "daswetter"    : 3.1.13   , installed 3.1.13
        Adapter    "device-watcher": 2.12.1  , installed 2.12.1
        Adapter    "devices"      : 1.1.5    , installed 1.1.5
        Adapter    "discovery"    : 4.5.0    , installed 4.5.0
        Adapter    "dwd"          : 2.8.5    , installed 2.8.5
        Adapter    "echarts"      : 1.7.2    , installed 1.7.2
        Adapter    "fritzbox"     : 0.6.0    , installed 0.6.0
        Adapter    "hm-rega"      : 4.0.0    , installed 4.0.0
        Adapter    "hm-rpc"       : 1.17.0   , installed 1.17.0
        Adapter    "hue"          : 3.11.0   , installed 3.11.0
        Adapter    "ical"         : 1.15.0   , installed 1.15.0
        Adapter    "icons-material-png": 0.1.0, installed 0.1.0
        Adapter    "icons-mfd-svg": 1.2.0    , installed 1.2.0
        Adapter    "icons-ultimate-png": 1.0.1, installed 1.0.1
        Adapter    "influxdb"     : 4.0.2    , installed 4.0.2
        Adapter    "javascript"   : 8.3.1    , installed 8.3.1
        Controller "js-controller": 5.0.19   , installed 5.0.19
        Adapter    "mqtt"         : 5.2.0    , installed 5.2.0
        Adapter    "nina"         : 0.0.26   , installed 0.0.26
        Adapter    "openweathermap": 1.0.4   , installed 1.0.4
        Adapter    "proxmox"      : 2.3.0    , installed 2.3.0
        Adapter    "rainbird"     : 0.2.2    , installed 0.2.3
        Adapter    "sayit"        : 3.0.5    , installed 3.0.5
        Adapter    "scenes"       : 3.0.4    , installed 3.0.4
        Adapter    "scheduler"    : 1.3.12   , installed 1.3.12
        Adapter    "simple-api"   : 2.7.2    , installed 2.7.2
        Adapter    "socketio"     : 6.7.0    , installed 6.7.0
        Adapter    "spotify-premium": 1.5.0  , installed 1.5.0
        Adapter    "tankerkoenig" : 3.4.0    , installed 3.4.0
        Adapter    "telegram"     : 3.2.1    , installed 3.2.1
        Adapter    "tr-064"       : 4.3.0    , installed 4.3.0
        Adapter    "trashschedule": 3.3.0    , installed 3.3.0
        Adapter    "unifi"        : 0.7.0    , installed 0.7.0
        Adapter    "valloxmv"     : 1.2.0    , installed 1.2.0
        Adapter    "vis"          : 1.5.6    , installed 1.5.6
        Adapter    "vis-2"        : 2.9.63   , installed 2.9.63
        Adapter    "vis-2-widgets-energy": 0.3.11, installed 0.3.11
        Adapter    "vis-2-widgets-gauges": 1.0.3, installed 1.0.3
        Adapter    "vis-2-widgets-jaeger-design": 1.1.23, installed 1.1.23
        Adapter    "vis-2-widgets-material": 1.3.32, installed 1.3.32
        Adapter    "vis-fancyswitch": 1.1.0  , installed 1.1.0
        Adapter    "vis-google-fonts": 1.0.4 , installed 1.0.4
        Adapter    "vis-history"  : 1.0.0    , installed 1.0.0
        Adapter    "vis-inventwo" : 3.3.4    , installed 3.3.4
        Adapter    "vis-jqui-mfd" : 1.1.1    , installed 1.1.1
        Adapter    "vis-justgage" : 2.1.7    , installed 2.1.7
        Adapter    "vis-map"      : 1.1.0    , installed 1.1.0
        Adapter    "vis-materialdesign": 0.5.9, installed 0.5.9
        Adapter    "vis-timeandweather": 1.2.2, installed 1.2.2
        Adapter    "web"          : 6.2.5    , installed 6.2.5
        Adapter    "worx"         : 3.0.2    , installed 3.0.2
        Adapter    "ws"           : 2.6.1    , installed 2.6.1
        
        Objects and States
        Please stand by - This may take a while
        Objects:        12986
        States:         11386
        
        *** OS-Repositories and Updates ***
        Hit:1 https://deb.nodesource.com/node_20.x nodistro InRelease
        Hit:2 http://archive.ubuntu.com/ubuntu jammy InRelease
        Hit:3 http://archive.ubuntu.com/ubuntu jammy-updates InRelease
        Hit:4 http://archive.ubuntu.com/ubuntu jammy-security 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 127.0.0.1:25            0.0.0.0:*               LISTEN      0          17872762   300/master
        tcp        0      0 0.0.0.0:111             0.0.0.0:*               LISTEN      0          17873349   1/init
        tcp        0      0 0.0.0.0:22              0.0.0.0:*               LISTEN      0          17872599   130/sshd: /usr/sbin
        tcp        0      0 127.0.0.53:53           0.0.0.0:*               LISTEN      102        17870806   95/systemd-resolved
        tcp6       0      0 :::3000                 :::*                    LISTEN      108        17876054   113/grafana-server
        tcp6       0      0 :::111                  :::*                    LISTEN      0          17873351   1/init
        tcp6       0      0 :::22                   :::*                    LISTEN      0          17872610   130/sshd: /usr/sbin
        tcp6       0      0 ::1:25                  :::*                    LISTEN      0          17872763   300/master
        udp        0      0 127.0.0.53:53           0.0.0.0:*                           102        17870805   95/systemd-resolved
        udp        0      0 0.0.0.0:111             0.0.0.0:*                           0          17873350   1/init
        udp6       0      0 :::111                  :::*                                0          17873352   1/init
        
        *** Log File - Last 25 Lines ***
        
        

        foxriver76 1 Reply Last reply Reply Quote 0
        • mcm1957
          mcm1957 @foxriver76 last edited by mcm1957

          @foxriver76
          OK, sorry - mein Fehler.
          Ich bin davon ausgegangen dass jemand der js-controller 6 alpha installiert auch die latest Versionen der anderern Adapter installiert hat.

          Offenbar ist der SQL Adapter auf GH um einiges weiter als der npm / latest / stable Stand 😭

          Alles klar soweit.

          foxriver76 1 Reply Last reply Reply Quote 0
          • foxriver76
            foxriver76 Developer @mcm1957 last edited by

            @mcm1957 Ja, es ist echt nur auf GitHub mit 3.x sql latest und stable ist 2 jahre alt

            1 Reply Last reply Reply Quote 0
            • foxriver76
              foxriver76 Developer @Feuersturm last edited by

              @feuersturm sagte in Alpha Test js-controller Kiera (v6.0):

              @appland/appmap-agent-js

              das dürfte nicht vom controller kommen, mach mal npm ls @appland/appmap-agent-js in /opt/iobroker

              Feuersturm 1 Reply Last reply Reply Quote 0
              • Feuersturm
                Feuersturm @foxriver76 last edited by

                @foxriver76 Das ist die Ausgabe

                proxmox@ioBrokerTestsystem:/opt/iobroker$ npm ls @appland/appmap-agent-js
                iobroker.inst@2.0.3 /opt/iobroker
                `-- iobroker.device-manager@0.0.3
                  `-- @appland/appmap-agent-js@13.9.1
                
                
                foxriver76 1 Reply Last reply Reply Quote 0
                • foxriver76
                  foxriver76 Developer @Feuersturm last edited by

                  @feuersturm die inkompatible dependency bringt der device-manager Adapter mit, gerne dort mal ein Issue eröffnen. Ansonsten kannst du natürlich auch gerne mit node v18 testen.

                  Feuersturm 1 Reply Last reply Reply Quote 0
                  • Feuersturm
                    Feuersturm @foxriver76 last edited by

                    @foxriver76 Danke. Issue https://github.com/ioBroker/ioBroker.device-manager/issues/42 wurde beim device-manager erstellt. Dann mach ich mal ein downgrade 🙂

                    Feuer-sturm created this issue in ioBroker/ioBroker.device-manager

                    closed Not compatible with your version of node/npm: @appland/appmap-agent-js@13.9.1 #42

                    mcm1957 1 Reply Last reply Reply Quote 0
                    • Feuersturm
                      Feuersturm last edited by

                      @foxriver76 Nach dem Downgrade auf nodejs18 ging die Installation vom js-controller6 ohne Probleme.
                      Beim Start wirft der Admin Adapter 6.17.11 fehler und kann nicht gestartet werden.

                      2024-05-22 14:28:04.907  - info: host.ioBrokerTestsystem iobroker.js-controller version 6.0.0 js-controller starting
                      2024-05-22 14:28:04.921  - info: host.ioBrokerTestsystem Copyright (c) 2014-2023 bluefox, 2014 hobbyquaker
                      2024-05-22 14:28:04.925  - info: host.ioBrokerTestsystem hostname: ioBrokerTestsystem, node: v18.20.3
                      2024-05-22 14:28:04.929  - info: host.ioBrokerTestsystem ip addresses: 192.168.178.77 fe80::f854:cfff:fe5f:6c25
                      2024-05-22 14:28:07.666  - info: host.ioBrokerTestsystem connected to Objects and States
                      2024-05-22 14:28:07.713  - info: host.ioBrokerTestsystem added notifications configuration of host
                      2024-05-22 14:28:08.866  - info: host.ioBrokerTestsystem 64 instances found
                      2024-05-22 14:28:08.975  - info: host.ioBrokerTestsystem starting 27 instances
                      2024-05-22 14:28:09.740  - info: host.ioBrokerTestsystem Delete state "system.host.ioBrokerTestsystem.versions.nodeCurrent"
                      2024-05-22 14:28:09.822  - info: host.ioBrokerTestsystem Delete state "system.host.ioBrokerTestsystem.versions.nodeNewest"
                      2024-05-22 14:28:09.893  - info: host.ioBrokerTestsystem Delete state "system.host.ioBrokerTestsystem.versions.nodeNewestNext"
                      2024-05-22 14:28:09.929  - info: host.ioBrokerTestsystem instance system.adapter.admin.0 started with pid 19670
                      2024-05-22 14:28:10.082  - info: host.ioBrokerTestsystem Delete state "system.host.ioBrokerTestsystem.versions.npmCurrent"
                      2024-05-22 14:28:10.108  - info: host.ioBrokerTestsystem Delete state "system.host.ioBrokerTestsystem.versions.npmNewest"
                      2024-05-22 14:28:10.126  - info: host.ioBrokerTestsystem Delete state "system.host.ioBrokerTestsystem.versions.npmNewestNext"
                      2024-05-22 14:28:10.137  - info: host.ioBrokerTestsystem Some obsolete host states deleted.
                      2024-05-22 14:28:13.695  - info: host.ioBrokerTestsystem instance system.adapter.influxdb.0 started with pid 19677
                      2024-05-22 14:28:16.342  - info: admin.0 (19670) starting. Version 6.17.11 in /opt/iobroker/node_modules/iobroker.admin, node: v18.20.3, js-controller: 6.0.0
                      2024-05-22 14:28:16.436  - info: admin.0 (19670) requesting all objects
                      2024-05-22 14:28:20.148  - info: admin.0 (19670) received all objects
                      2024-05-22 14:28:20.331  - info: host.ioBrokerTestsystem instance system.adapter.javascript.0 started with pid 19708
                      2024-05-22 14:28:20.749  - error: admin.0 (19670) Unhandled promise rejection. This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled with .catch().
                      2024-05-22 14:28:20.753  - error: admin.0 (19670) unhandled promise rejection: utils.commonTools.session is not a function
                      2024-05-22 14:28:20.768  - error: admin.0 (19670) TypeError: utils.commonTools.session is not a function
                          at Web.#init (/opt/iobroker/node_modules/iobroker.admin/build-backend/lib/web.js:451:50)
                          at new Web (/opt/iobroker/node_modules/iobroker.admin/build-backend/lib/web.js:167:19)
                          at /opt/iobroker/node_modules/iobroker.admin/build-backend/main.js:1289:46
                          at Immediate.<anonymous> (/opt/iobroker/node_modules/iobroker.admin/build-backend/main.js:1136:25)
                          at processImmediate (node:internal/timers:478:21)
                      2024-05-22 14:28:20.772  - error: admin.0 (19670) utils.commonTools.session is not a function
                      2024-05-22 14:28:21.208  - info: admin.0 (19670) terminating http server on port 8081
                      2024-05-22 14:28:21.215  - info: admin.0 (19670) terminating
                      2024-05-22 14:28:21.221  - warn: admin.0 (19670) Terminated (UNCAUGHT_EXCEPTION): Without reason
                      2024-05-22 14:28:21.237  - info: admin.0 (19670) Request actual repository...
                      2024-05-22 14:28:21.738  - info: admin.0 (19670) terminating
                      2024-05-22 14:28:22.423  - warn: admin.0 (19670) redis get admin.0.info.newsLastId, error - Connection is closed.
                      2024-05-22 14:28:22.445  - warn: admin.0 (19670) get state error: Connection is closed.
                      2024-05-22 14:28:22.518  - warn: admin.0 (19670) get state error: Connection is closed.
                      2024-05-22 14:28:22.526  - warn: admin.0 (19670) get state error: Connection is closed.
                      2024-05-22 14:28:22.530  - warn: admin.0 (19670) get state error: Connection is closed.
                      2024-05-22 14:28:22.534  - warn: admin.0 (19670) get state error: Connection is closed.
                      2024-05-22 14:28:22.538  - warn: admin.0 (19670) get state error: Connection is closed.
                      2024-05-22 14:28:22.594  - warn: admin.0 (19670) Cannot check node.js/npm version
                      2024-05-22 14:28:22.981  - error: host.ioBrokerTestsystem Caught by controller[0]: This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled with .catch(). The promise rejected with the reason:
                      2024-05-22 14:28:22.986  - error: host.ioBrokerTestsystem Caught by controller[0]: TypeError: utils.commonTools.session is not a function
                      2024-05-22 14:28:22.992  - error: host.ioBrokerTestsystem Caught by controller[0]:     at Web.#init (/opt/iobroker/node_modules/iobroker.admin/build-backend/lib/web.js:451:50)
                      2024-05-22 14:28:22.997  - error: host.ioBrokerTestsystem Caught by controller[0]:     at new Web (/opt/iobroker/node_modules/iobroker.admin/build-backend/lib/web.js:167:19)
                      2024-05-22 14:28:23.001  - error: host.ioBrokerTestsystem Caught by controller[0]:     at /opt/iobroker/node_modules/iobroker.admin/build-backend/main.js:1289:46
                      2024-05-22 14:28:23.007  - error: host.ioBrokerTestsystem Caught by controller[0]:     at Immediate.<anonymous> (/opt/iobroker/node_modules/iobroker.admin/build-backend/main.js:1136:25)
                      2024-05-22 14:28:23.011  - error: host.ioBrokerTestsystem Caught by controller[0]:     at processImmediate (node:internal/timers:478:21)
                      2024-05-22 14:28:23.015  - error: host.ioBrokerTestsystem instance system.adapter.admin.0 terminated with code 6 (UNCAUGHT_EXCEPTION)
                      
                      
                      foxriver76 1 Reply Last reply Reply Quote 0
                      • mcm1957
                        mcm1957 @Feuersturm last edited by

                        @feuersturm said in Alpha Test js-controller Kiera (v6.0):

                        @foxriver76 Danke. Issue https://github.com/ioBroker/ioBroker.device-manager/issues/42 wurde beim device-manager erstellt. Dann mach ich mal ein downgrade 🙂

                        Da muss der device-manager ev. intensiver angepasst werden. Das Repo von appmap-agent-js wurde archiviert und auf npm ist das package nicht mehr via Suche zu finden.
                        https://github.com/getappmap/appmap-agent-js

                        Ist aber für js-controlelr 6 irrelevant.

                        1 Reply Last reply Reply Quote 0
                        • sigi234
                          sigi234 Forum Testing Most Active @foxriver76 last edited by sigi234

                          @foxriver76 sagte in Alpha Test js-controller Kiera (v6.0):

                          Windows
                          Generell muss das Update manuell via npm installiert werden.
                          Hierzu im ioBroker-Verzeichnis nach stoppen des ioBroker den Befehl npm i iobroker.js-controller@next --omit=dev ausführen.

                          Hallo,

                          nach dem installieren startet der IOB nicht, er beendet sich immer automatisch.

                          Screenshot (759).png Screenshot (760).png

                          **********************************************************
                          ***               Welcome to ioBroker.                 ***
                          ***                                                    ***
                          ***     Type 'iob help' for list of instructions.      ***
                          ***                For more help see                   ***
                          ***     https://github.com/ioBroker/ioBroker.docs      ***
                          **********************************************************
                          
                          Your environment has been set up for using Node.js 18.20.3 (x64) and npm.
                          
                          C:\Test>npm ls @iobroker/adapter-core
                          iobroker.inst@3.0.0 C:\Test
                          +-- iobroker.admin@6.13.16
                          | +-- @iobroker/adapter-core@3.1.4
                          | `-- @iobroker/socket-classes@1.5.0
                          |   `-- @iobroker/adapter-core@3.1.4 deduped
                          +-- iobroker.backitup@2.11.0
                          | `-- @iobroker/adapter-core@3.1.4 deduped
                          +-- iobroker.discovery@4.4.0
                          | `-- @iobroker/adapter-core@3.1.4 deduped
                          `-- iobroker.js-controller@6.0.1-alpha.0-20240522-f267270b9
                            `-- @iobroker/adapter-core@3.1.4 deduped
                          
                          
                          C:\Test>
                          

                          Edit:

                          Bin wieder auf Version 5.0.19 , alles läuft wieder.

                          Screenshot (762).png

                          Gaspode 1 Reply Last reply Reply Quote 0
                          • Gaspode
                            Gaspode @sigi234 last edited by Gaspode

                            @sigi234 said in Alpha Test js-controller Kiera (v6.0):

                            nach dem installieren startet der IOB nicht, er beendet sich immer automatisch.

                            Exakt das Gleiche beobachte ich auch. Beim Start wird nicht mal was in die Log Datei geschrieben, auch nicht, wenn ich die Controller Log Ausgabe auf Debug schalte.

                            Ach ja:

                            npm ls @iobroker/adapter-core
                            iobroker.inst@3.0.0 C:\ioBroker\SmartHome1
                            +-- iobroker.admin@6.17.11
                            | +-- @iobroker/adapter-core@3.1.4
                            | `-- @iobroker/socket-classes@1.5.0
                            |   `-- @iobroker/adapter-core@3.1.4 deduped
                            +-- iobroker.backitup@2.11.0
                            | `-- @iobroker/adapter-core@3.1.4 deduped
                            +-- iobroker.discovery@4.5.0
                            | `-- @iobroker/adapter-core@3.1.4 deduped
                            +-- iobroker.habpanel@0.5.0
                            | `-- @iobroker/adapter-core@2.6.8
                            +-- iobroker.javascript@8.3.1
                            | `-- @iobroker/adapter-core@3.1.4 deduped
                            +-- iobroker.js-controller@6.0.1-alpha.0-20240522-f267270b9
                            | `-- @iobroker/adapter-core@3.1.4 deduped
                            +-- iobroker.socketio@6.7.0
                            | `-- @iobroker/adapter-core@3.1.4 deduped
                            +-- iobroker.web@6.2.5
                            | +-- @iobroker/adapter-core@3.1.4 deduped
                            | +-- iobroker.simple-api@2.7.2
                            | | `-- @iobroker/adapter-core@2.6.8
                            | +-- iobroker.socketio@6.6.1
                            | | `-- @iobroker/adapter-core@3.1.4 deduped
                            | `-- iobroker.ws@2.5.11
                            |   `-- @iobroker/adapter-core@3.1.4 deduped
                            `-- iobroker.ws@2.6.1
                              `-- @iobroker/adapter-core@3.1.4 deduped
                            
                            foxriver76 1 Reply Last reply Reply Quote 0
                            • foxriver76
                              foxriver76 Developer @Feuersturm last edited by

                              @feuersturm Kannst du nochmal neu installieren

                              gleiches gilt für @Thomas-Braun ich hoffe die Fehler sind gefixt.

                              Feuersturm 1 Reply Last reply Reply Quote 0
                              • foxriver76
                                foxriver76 Developer @Gaspode last edited by

                                @gaspode Kannst du mal direkt mittels node die controller.js ausführen (liegt in deinen node_modules/iobroker.js-controller/controller.js), da müsste dann ein Fehler auftauchen hoffe ich.

                                Gaspode 1 Reply Last reply Reply Quote 0
                                • Gaspode
                                  Gaspode @foxriver76 last edited by

                                  @foxriver76 said in Alpha Test js-controller Kiera (v6.0):

                                  @gaspode Kannst du mal direkt mittels node die controller.js ausführen

                                  Ja, dann läuft er hoch.

                                  Start per Service liefert im Service error log file daemon\iob_smarthome1.err.log:

                                  C:\ioBroker\SmartHome1\controller.js:2
                                  require('./node_modules/iobroker.js-controller/controller.js');
                                  ^
                                  
                                  Error [ERR_REQUIRE_ESM]: require() of ES Module C:\ioBroker\SmartHome1\node_modules\iobroker.js-controller\controller.js from C:\ioBroker\SmartHome1\controller.js not supported.
                                  C:\ioBroker\SmartHome1\node_modules\iobroker.js-controller\controller.js is treated as an ES module file as it is a .js file whose nearest parent package.json contains "type": "module" which declares all .js files in that package scope as ES modules.
                                  Instead either rename C:\ioBroker\SmartHome1\node_modules\iobroker.js-controller\controller.js to end in .cjs, change the requiring code to use dynamic import() which is available in all CommonJS modules, or change "type": "module" to "type": "commonjs" in C:\ioBroker\SmartHome1\node_modules\iobroker.js-controller\package.json to treat all .js files as CommonJS (using .mjs for all ES modules instead).
                                  
                                      at Object.<anonymous> (C:\ioBroker\SmartHome1\controller.js:2:1) {
                                    code: 'ERR_REQUIRE_ESM'
                                  }
                                  
                                  Node.js v18.20.3
                                  C:\ioBroker\SmartHome1\controller.js:2
                                  require('./node_modules/iobroker.js-controller/controller.js');
                                  ^
                                  
                                  Error [ERR_REQUIRE_ESM]: require() of ES Module C:\ioBroker\SmartHome1\node_modules\iobroker.js-controller\controller.js from C:\ioBroker\SmartHome1\controller.js not supported.
                                  C:\ioBroker\SmartHome1\node_modules\iobroker.js-controller\controller.js is treated as an ES module file as it is a .js file whose nearest parent package.json contains "type": "module" which declares all .js files in that package scope as ES modules.
                                  Instead either rename C:\ioBroker\SmartHome1\node_modules\iobroker.js-controller\controller.js to end in .cjs, change the requiring code to use dynamic import() which is available in all CommonJS modules, or change "type": "module" to "type": "commonjs" in C:\ioBroker\SmartHome1\node_modules\iobroker.js-controller\package.json to treat all .js files as CommonJS (using .mjs for all ES modules instead).
                                  
                                      at Object.<anonymous> (C:\ioBroker\SmartHome1\controller.js:2:1) {
                                    code: 'ERR_REQUIRE_ESM'
                                  }
                                  
                                  Node.js v18.20.3
                                  C:\ioBroker\SmartHome1\controller.js:2
                                  require('./node_modules/iobroker.js-controller/controller.js');
                                  ^
                                  
                                  Error [ERR_REQUIRE_ESM]: require() of ES Module C:\ioBroker\SmartHome1\node_modules\iobroker.js-controller\controller.js from C:\ioBroker\SmartHome1\controller.js not supported.
                                  C:\ioBroker\SmartHome1\node_modules\iobroker.js-controller\controller.js is treated as an ES module file as it is a .js file whose nearest parent package.json contains "type": "module" which declares all .js files in that package scope as ES modules.
                                  Instead either rename C:\ioBroker\SmartHome1\node_modules\iobroker.js-controller\controller.js to end in .cjs, change the requiring code to use dynamic import() which is available in all CommonJS modules, or change "type": "module" to "type": "commonjs" in C:\ioBroker\SmartHome1\node_modules\iobroker.js-controller\package.json to treat all .js files as CommonJS (using .mjs for all ES modules instead).
                                  
                                      at Object.<anonymous> (C:\ioBroker\SmartHome1\controller.js:2:1) {
                                    code: 'ERR_REQUIRE_ESM'
                                  }
                                  
                                  Node.js v18.20.3
                                  
                                  
                                  foxriver76 1 Reply Last reply Reply Quote 0
                                  • foxriver76
                                    foxriver76 Developer @Gaspode last edited by foxriver76

                                    @gaspode kannst du den Inhalt von controller.js zeigen, das klingt iwie als wurde das irgendwie nicht aktualisiert.

                                    Bzw. ist das bei dir eine controller.js die im Root-verzeichnis der Installation liegt? Wird die vom Installer erstellt, weißt du das evtl? Dann müsste diese auch angepasst werden von uns für die ESM Thematik.

                                    Thomas Braun Gaspode 2 Replies Last reply Reply Quote 0
                                    • Thomas Braun
                                      Thomas Braun Most Active @foxriver76 last edited by

                                      @foxriver76

                                      Nein, hier hagelt es weiterhin Fehler beim bauen.
                                      Genaueres später, mit richtigem Terminal.

                                      1 Reply Last reply Reply Quote 0
                                      • Gaspode
                                        Gaspode @foxriver76 last edited by

                                        @foxriver76 said in Alpha Test js-controller Kiera (v6.0):

                                        Dann müsste diese auch angepasst werden von uns für die ESM Thematik.

                                        Ja, in die Richtung hab ich auch schon überlegt. Der Service wird so angelegt:

                                        const svc = new Service({
                                            name: process.env.iobServiceName ? process.env.iobServiceName : 'ioBroker',
                                            description: 'ioBroker service.',
                                            script: require('path').join(__dirname, 'controller.js'),
                                            env: {
                                                name: 'NODE_ENV',
                                                value: 'production'
                                            }
                                        });
                                        

                                        Und controller.js liegt tatsächlich im Inst. Root und lautet

                                        'use strict';
                                        require('./node_modules/iobroker.js-controller/controller.js');
                                        
                                        foxriver76 1 Reply Last reply Reply Quote 0
                                        • foxriver76
                                          foxriver76 Developer @Gaspode last edited by

                                          @gaspode Hm okay die required dann wiederum die vom Controller. Die müsste jetzt eigentlich das require durch import ersetzen. Was passiert wenn du mal hart editierst und das require durch import ersetzt?

                                          Gaspode 1 Reply Last reply Reply Quote 1
                                          • Gaspode
                                            Gaspode @foxriver76 last edited by

                                            @foxriver76 said in Alpha Test js-controller Kiera (v6.0):

                                            Was passiert wenn du mal hart editierst und das require durch import ersetzt?

                                            Läuft.

                                            Die Datei kommt übrigens von hier:
                                            https://github.com/ioBroker/ioBroker/blob/master/install/windows/controller.js
                                            Sie wird vom Windows Installationsscript im Installationsverlauf dort hin kopiert.

                                            foxriver76 1 Reply Last reply Reply Quote 0
                                            • First post
                                              Last post

                                            Support us

                                            ioBroker
                                            Community Adapters
                                            Donate

                                            548
                                            Online

                                            31.6k
                                            Users

                                            79.5k
                                            Topics

                                            1.3m
                                            Posts

                                            alpha js-controller kiera test
                                            20
                                            234
                                            20792
                                            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