Navigation

    Logo
    • Register
    • Login
    • Search
    • Recent
    • Tags
    • Unread
    • Categories
    • Unreplied
    • Popular
    • GitHub
    • Docu
    • Hilfe
    1. Home
    2. Deutsch
    3. ioBroker Allgemein
    4. Javascript Adapter stürzt immer ab: Restart loop detected

    NEWS

    • Neuer Blog: Fotos und Eindrücke aus Solingen

    • ioBroker@Smart Living Forum Solingen, 14.06. - Agenda added

    • ioBroker goes Matter ... Matter Adapter in Stable

    Javascript Adapter stürzt immer ab: Restart loop detected

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

      @selector sagte in Javascript Adapter stürzt immer ab: Restart loop detected:

      /opt/iobroker/node_modules/iobroker.js-controller/pids.txt

      getfacl /opt/iobroker/node_modules/iobroker.js-controller/pids.txt
      

      sagt?

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

        Es gibt die Datei nicht. Oben steht ja auch, dass er die nicht speichern kann. Aber die Rechte sind da wohl wirklich komisch. Ein ls -al in dem iobroker,js-controller zeigt für user und gruppe root mit -rw-r--r-- für Dateien und drwxr-xr-x für Verzeichnisse an.

        Im Verzeichnis oberhalb, also dem node_modules Verzeichnis wird als owner und gruppe immer iobroker angezeigt. Ich selbst arbeite nicht als root an dem System.

        Wie kann das entstehen?

        Thomas Braun 3 Replies Last reply Reply Quote 0
        • Thomas Braun
          Thomas Braun Most Active @selector last edited by

          @selector sagte in Javascript Adapter stürzt immer ab: Restart loop detected:

          Wie kann das entstehen?

          Durch rückkopieren von einer 'Installation' aus einem Docker. Da läuft das ja wohl als root.

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

            @selector sagte in Javascript Adapter stürzt immer ab: Restart loop detected:

            Es gibt die Datei nicht. Oben steht ja auch, dass er die nicht speichern kann.

            Nein, das steht da nicht. Da steht, das die Datei nicht gespeichert werden kann, weil die Rechte nicht passen.

            iob stop
            iob fix
            iob start
            
            1 Reply Last reply Reply Quote 0
            • Thomas Braun
              Thomas Braun Most Active @selector last edited by

              @selector sagte in Javascript Adapter stürzt immer ab: Restart loop detected:

              Ein ls -al in dem iobroker,js-controller zeigt für user und gruppe root mit -rw-r--r-- für Dateien und drwxr-xr-x für Verzeichnisse an.

              Zeigen...
              Wobei hier ACLs gesetzt sind. Da bringt dir die Ausgabe von ls -la nix.

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

                @thomas-braun said in [Javascript Adapter stürzt immer ab: Restart loop detected]> > Wie kann das entstehen?

                Durch rückkopieren von einer 'Installation' aus einem Docker. Da läuft das ja wohl als root.

                Das habe ich wie gesagt nicht. Ich habe ioBroker installiert und dann das Backup von der Installation aus dem Container eingespielt.

                S 1 Reply Last reply Reply Quote 0
                • S
                  selector @selector last edited by

                  Ich verstehe den Zusammenhang nicht. Oben hat ja auch @thomas-braun angemerkt, das die Repo-Einstellungen komisch sind. Er meint aber wahrscheinlich nicht die iobroker repos, die stehen ja wie hier: https://www.iobroker.net/docu/index-234.htm?page_id=6227&lang=de#Verwahrungsorte_oder_Repositories sonder die OS Repos, also die Repositories des Betriebsystems:

                  *** OS-Repositories and Updates ***
                  E: The repository 'https://download.docker.com/linux/debian \ Release' does not have a Release file.
                  Pending Updates: 90
                  

                  Allerdings weiß ich nicht woher das kommt, wenn ich mir die Repos anzeigen lasse

                  cat /etc/apt/sources.list

                  dann ist da kein Repo mit docker zu finden.

                  Wenn das

                  iob fix

                  ausführe, dann werden aber auch docker repos verwendet,

                  
                  Hit:1 http://de.archive.ubuntu.com/ubuntu focal InRelease
                  Hit:2 http://de.archive.ubuntu.com/ubuntu focal-updates InRelease
                  Hit:3 http://ppa.launchpad.net/deadsnakes/ppa/ubuntu focal InRelease
                  Hit:4 http://de.archive.ubuntu.com/ubuntu focal-backports InRelease
                  Hit:5 http://de.archive.ubuntu.com/ubuntu focal-security InRelease
                  Hit:6 https://deb.nodesource.com/node_18.x nodistro InRelease
                  Ign:7 https://download.docker.com/linux/debian \ InRelease
                  Err:8 https://download.docker.com/linux/debian \ Release
                    404  Not Found [IP: 65.9.66.72 443]
                  Reading package lists... Done
                  E: The repository 'https://download.docker.com/linux/debian \ Release' does not have a Release file.
                  N: Updating from such a repository can't be done securely, and is therefore disabled by default.
                  N: See apt-secure(8) manpage for repository creation and user configuration details.
                  E: The repository 'https://download.docker.com/linux/debian \ Release' does not have a Release file.
                  Installed libavahi-compat-libdnssd-dev
                  E: The repository 'https://download.docker.com/linux/debian \ Release' does not have a Release file.
                  Installed libpam0g-dev
                  E: The repository 'https://download.docker.com/linux/debian \ Release' does not have a Release file.
                  Installed pkg-config
                  
                  

                  was hat es mit den Repos auf sich?

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

                    @selector sagte in Javascript Adapter stürzt immer ab: Restart loop detected:

                    dann ist da kein Repo mit docker zu finden.

                    Die .list-Datei dazu liegt in /etc/apt/sources.list.d/ herum. Wenn es nicht verwendet wird, raus damit.
                    Ebenso tote Schlangen aus dem launchpad sowie backports.
                    Will man alles auf einem Server nicht haben.

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

                      @thomas-braun
                      ich habe jetzt die pakete aktualisiert und die docker registry ausgetragen. Die Fileownership in dem node_modues/...javascript Verzeichnis liegen jetzt auch bei iobroker.

                      Meinst du denn das war das Problem warum der Adapter immer abgeschmiert ist?

                      Danke für Deinen Support!

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

                        @selector sagte in Javascript Adapter stürzt immer ab: Restart loop detected:

                        Meinst du denn das war das Problem warum der Adapter immer abgeschmiert ist?

                        Kann ich nicht sagen.

                        iob diag
                        

                        sieht nun wie aus?

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

                          @thomas-braun

                          ======== Start marking the full check here =========
                          Skript v.2023-10-10
                          
                          *** BASE SYSTEM ***
                             Static hostname: homeserver
                                   Icon name: computer-desktop
                                     Chassis: desktop
                            Operating System: Ubuntu 20.04.6 LTS
                                      Kernel: Linux 5.4.0-173-generic
                                Architecture: x86-64
                          
                          model name      : Intel(R) Core(TM) i5-6500T CPU @ 2.50GHz
                          Docker          : false
                          Virtualization  : none
                          Kernel          : x86_64
                          Userland        : amd64
                          
                          Systemuptime and Load:
                           17:21:06 up 19 min,  1 user,  load average: 0.07, 0.06, 0.09
                          CPU threads: 4
                          
                          
                          *** Time and Time Zones ***
                                         Local time: Sun 2024-03-17 17:21:06 UTC
                                     Universal time: Sun 2024-03-17 17:21:06 UTC
                                           RTC time: Sun 2024-03-17 17:21:06
                                          Time zone: Etc/UTC (UTC, +0000)
                          System clock synchronized: yes
                                        NTP service: active
                                    RTC in local TZ: no
                          
                          *** User and Groups ***
                          areith
                          /home/areith
                          areith adm cdrom sudo dip plugdev lxd docker iobroker
                          
                          *** X-Server-Setup ***
                          X-Server:       false
                          Desktop:
                          Terminal:       tty
                          Boot Target:    graphical.target
                          
                          *** MEMORY ***
                                        total        used        free      shared  buff/cache   available
                          Mem:            15G        1.8G         12G        1.0M        1.4G         13G
                          Swap:          4.1G          0B        4.1G
                          Total:          19G        1.8G         16G
                          
                                  15886 M total memory
                                   1820 M used memory
                                   2315 M active memory
                                    459 M inactive memory
                                  12619 M free memory
                                    235 M buffer memory
                                   1210 M swap cache
                                   4095 M total swap
                                      0 M used swap
                                   4095 M free swap
                          
                          *** FAILED SERVICES ***
                          
                            UNIT LOAD ACTIVE SUB DESCRIPTION
                          0 loaded units listed.
                          
                          *** FILESYSTEM ***
                          Filesystem                        Type      Size  Used Avail Use% Mounted on
                          udev                              devtmpfs  7.8G     0  7.8G   0% /dev
                          tmpfs                             tmpfs     1.6G  1.6M  1.6G   1% /run
                          /dev/mapper/ubuntu--vg-ubuntu--lv ext4       98G   17G   77G  18% /
                          tmpfs                             tmpfs     7.8G     0  7.8G   0% /dev/shm
                          tmpfs                             tmpfs     5.0M     0  5.0M   0% /run/lock
                          tmpfs                             tmpfs     7.8G     0  7.8G   0% /sys/fs/cgroup
                          /dev/sda2                         ext4      2.0G  209M  1.6G  12% /boot
                          /dev/loop1                        squashfs   56M   56M     0 100% /snap/core18/2812
                          /dev/loop2                        squashfs   64M   64M     0 100% /snap/core20/2105
                          /dev/loop0                        squashfs   56M   56M     0 100% /snap/core18/2796
                          /dev/loop5                        squashfs   68M   68M     0 100% /snap/lxd/22753
                          /dev/loop4                        squashfs   92M   92M     0 100% /snap/lxd/24061
                          /dev/loop3                        squashfs   64M   64M     0 100% /snap/core20/2182
                          /dev/loop6                        squashfs   41M   41M     0 100% /snap/snapd/20671
                          /dev/loop7                        squashfs   40M   40M     0 100% /snap/snapd/21184
                          tmpfs                             tmpfs     1.6G     0  1.6G   0% /run/user/1000
                          
                          Messages concerning ext4 filesystem in dmesg:
                          [Sun Mar 17 17:01:42 2024] EXT4-fs (dm-0): mounted filesystem with ordered data mode. Opts: (null)
                          [Sun Mar 17 17:01:43 2024] EXT4-fs (dm-0): re-mounted. Opts: (null)
                          [Sun Mar 17 17:01:44 2024] EXT4-fs (sda2): mounted filesystem with ordered data mode. Opts: (null)
                          
                          Show mounted filesystems \(real ones only\):
                          TARGET                SOURCE                            FSTYPE   OPTIONS
                          /                     /dev/mapper/ubuntu--vg-ubuntu--lv ext4     rw,relatime
                          |-/sys/kernel/tracing tracefs                           tracefs  rw,nosuid,nodev,noexec,relatime
                          |-/boot               /dev/sda2                         ext4     rw,relatime
                          |-/snap/core18/2812   /dev/loop1                        squashfs ro,nodev,relatime
                          |-/snap/core20/2105   /dev/loop2                        squashfs ro,nodev,relatime
                          |-/snap/core18/2796   /dev/loop0                        squashfs ro,nodev,relatime
                          |-/snap/lxd/22753     /dev/loop5                        squashfs ro,nodev,relatime
                          |-/snap/lxd/24061     /dev/loop4                        squashfs ro,nodev,relatime
                          |-/snap/core20/2182   /dev/loop3                        squashfs ro,nodev,relatime
                          |-/snap/snapd/20671   /dev/loop6                        squashfs ro,nodev,relatime
                          `-/snap/snapd/21184   /dev/loop7                        squashfs ro,nodev,relatime
                          
                          Files in neuralgic directories:
                          
                          /var:
                          7.3G    /var/
                          6.5G    /var/lib
                          5.4G    /var/lib/docker
                          3.4G    /var/lib/docker/overlay2
                          2.0G    /var/lib/docker/volumes
                          
                          Archived and active journals take up 512.0M in the file system.
                          
                          /opt/iobroker/backups:
                          66M     /opt/iobroker/backups/
                          
                          /opt/iobroker/iobroker-data:
                          326M    /opt/iobroker/iobroker-data/
                          230M    /opt/iobroker/iobroker-data/files
                          75M     /opt/iobroker/iobroker-data/backup-objects
                          57M     /opt/iobroker/iobroker-data/files/javascript.admin
                          45M     /opt/iobroker/iobroker-data/files/devices.admin/static
                          
                          The five largest files in iobroker-data are:
                          35M     /opt/iobroker/iobroker-data/files/devices.admin/static/js/main.24f2bb56.js.map
                          22M     /opt/iobroker/iobroker-data/files/web.admin/static/js/main.c05ba1d3.js.map
                          22M     /opt/iobroker/iobroker-data/files/modbus.admin/static/js/main.578d79d9.js.map
                          20M     /opt/iobroker/iobroker-data/objects.jsonl
                          8.8M    /opt/iobroker/iobroker-data/files/modbus.admin/static/js/main.578d79d9.js
                          
                          USB-Devices by-id:
                          USB-Sticks -  Avoid direct links to /dev/* in your adapter setups, please always prefer the links 'by-id':
                          
                          /dev/serial/by-id/usb-Silicon_Labs_Sonoff_Zigbee_3.0_USB_Dongle_Plus_0001-if00-port0
                          
                          *** NodeJS-Installation ***
                          
                          /usr/bin/nodejs         v18.19.1
                          /usr/bin/node           v18.19.1
                          /usr/bin/npm            10.2.4
                          /usr/bin/npx            10.2.4
                          /usr/bin/corepack       0.22.0
                          
                          
                          nodejs:
                            Installed: 18.19.1-1nodesource1
                            Candidate: 18.19.1-1nodesource1
                            Version table:
                           *** 18.19.1-1nodesource1 1001
                                  500 https://deb.nodesource.com/node_18.x nodistro/main amd64 Packages
                                  100 /var/lib/dpkg/status
                               18.19.0-1nodesource1 1001
                                  500 https://deb.nodesource.com/node_18.x nodistro/main amd64 Packages
                               18.18.2-1nodesource1 1001
                                  500 https://deb.nodesource.com/node_18.x nodistro/main amd64 Packages
                               18.18.1-1nodesource1 1001
                                  500 https://deb.nodesource.com/node_18.x nodistro/main amd64 Packages
                               18.18.0-1nodesource1 1001
                                  500 https://deb.nodesource.com/node_18.x nodistro/main amd64 Packages
                               18.17.1-1nodesource1 1001
                                  500 https://deb.nodesource.com/node_18.x nodistro/main amd64 Packages
                               18.17.0-1nodesource1 1001
                                  500 https://deb.nodesource.com/node_18.x nodistro/main amd64 Packages
                               18.16.1-1nodesource1 1001
                                  500 https://deb.nodesource.com/node_18.x nodistro/main amd64 Packages
                               18.16.0-1nodesource1 1001
                                  500 https://deb.nodesource.com/node_18.x nodistro/main amd64 Packages
                               18.15.0-1nodesource1 1001
                                  500 https://deb.nodesource.com/node_18.x nodistro/main amd64 Packages
                               18.14.2-1nodesource1 1001
                                  500 https://deb.nodesource.com/node_18.x nodistro/main amd64 Packages
                               18.14.1-1nodesource1 1001
                                  500 https://deb.nodesource.com/node_18.x nodistro/main amd64 Packages
                               18.14.0-1nodesource1 1001
                                  500 https://deb.nodesource.com/node_18.x nodistro/main amd64 Packages
                               18.13.0-1nodesource1 1001
                                  500 https://deb.nodesource.com/node_18.x nodistro/main amd64 Packages
                               18.12.0-1nodesource1 1001
                                  500 https://deb.nodesource.com/node_18.x nodistro/main amd64 Packages
                               18.11.0-1nodesource1 1001
                                  500 https://deb.nodesource.com/node_18.x nodistro/main amd64 Packages
                               18.10.0-1nodesource1 1001
                                  500 https://deb.nodesource.com/node_18.x nodistro/main amd64 Packages
                               18.9.1-1nodesource1 1001
                                  500 https://deb.nodesource.com/node_18.x nodistro/main amd64 Packages
                               18.9.0-1nodesource1 1001
                                  500 https://deb.nodesource.com/node_18.x nodistro/main amd64 Packages
                               18.8.0-1nodesource1 1001
                                  500 https://deb.nodesource.com/node_18.x nodistro/main amd64 Packages
                               18.7.0-1nodesource1 1001
                                  500 https://deb.nodesource.com/node_18.x nodistro/main amd64 Packages
                               18.6.0-1nodesource1 1001
                                  500 https://deb.nodesource.com/node_18.x nodistro/main amd64 Packages
                               18.5.0-1nodesource1 1001
                                  500 https://deb.nodesource.com/node_18.x nodistro/main amd64 Packages
                               18.4.0-1nodesource1 1001
                                  500 https://deb.nodesource.com/node_18.x nodistro/main amd64 Packages
                               18.3.0-1nodesource1 1001
                                  500 https://deb.nodesource.com/node_18.x nodistro/main amd64 Packages
                               18.2.0-1nodesource1 1001
                                  500 https://deb.nodesource.com/node_18.x nodistro/main amd64 Packages
                               18.1.0-1nodesource1 1001
                                  500 https://deb.nodesource.com/node_18.x nodistro/main amd64 Packages
                               18.0.0-1nodesource1 1001
                                  500 https://deb.nodesource.com/node_18.x nodistro/main amd64 Packages
                               10.19.0~dfsg-3ubuntu1.5 500
                                  500 http://de.archive.ubuntu.com/ubuntu focal-updates/universe amd64 Packages
                                  500 http://de.archive.ubuntu.com/ubuntu focal-security/universe amd64 Packages
                               10.19.0~dfsg-3ubuntu1 500
                                  500 http://de.archive.ubuntu.com/ubuntu focal/universe amd64 Packages
                          
                          Temp directories causing npm8 problem: 0
                          No problems detected
                          
                          Errors in npm tree:
                          
                          *** ioBroker-Installation ***
                          
                          ioBroker Status
                          iobroker is running on this host.
                          
                          
                          Objects type: jsonl
                          States  type: jsonl
                          
                          Core adapters versions
                          js-controller:  5.0.19
                          admin:          6.13.16
                          javascript:     7.8.0
                          
                          Adapters from github:   0
                          
                          Adapter State
                          + system.adapter.admin.0                  : admin                 : homeserver                               -  enabled, port: 8081, bind: 0.0.0.0, run as: admin
                          + system.adapter.backitup.0               : backitup              : homeserver                               -  enabled
                            system.adapter.devices.0                : devices               : homeserver                               - disabled
                            system.adapter.discovery.0              : discovery             : homeserver                               - disabled
                          + system.adapter.go-e.0                   : go-e                  : homeserver                               -  enabled
                          + system.adapter.govee-local.0            : govee-local           : homeserver                               -  enabled
                          + system.adapter.ham.0                    : ham                   : homeserver                               -  enabled
                          + system.adapter.influxdb.0               : influxdb              : homeserver                               -  enabled, port: 8086
                          + system.adapter.javascript.0             : javascript            : homeserver                               -  enabled
                          + system.adapter.modbus.0                 : modbus                : homeserver                               -  enabled
                          + system.adapter.mqtt.0                   : mqtt                  : homeserver                               -  enabled, port: 1883, bind: 0.0.0.0
                            system.adapter.openweathermap.0         : openweathermap        : homeserver                               - disabled
                          + system.adapter.pushover.0               : pushover              : homeserver                               -  enabled
                            system.adapter.shelly.0                 : shelly                : homeserver                               - disabled, port: 1882, bind: 0.0.0.0
                          + system.adapter.simple-api.0             : simple-api            : homeserver                               -  enabled, port: 8087, bind: 0.0.0.0, run as: admin
                          + system.adapter.sql.0                    : sql                   : homeserver                               -  enabled, port: 3306
                          + system.adapter.telegram.0               : telegram              : homeserver                               -  enabled, port: 8443, bind: 0.0.0.0
                            system.adapter.tr-064.0                 : tr-064                : homeserver                               - disabled
                            system.adapter.vis-icontwo.0            : vis-icontwo           : homeserver                               - disabled
                          + system.adapter.vis-inventwo.0           : vis-inventwo          : homeserver                               -  enabled
                            system.adapter.vis-jqui-mfd.0           : vis-jqui-mfd          : homeserver                               - disabled
                            system.adapter.vis.0                    : vis                   : homeserver                               -  enabled
                          + system.adapter.web.0                    : web                   : homeserver                               -  enabled, port: 8082, bind: 0.0.0.0, run as: admin
                          + system.adapter.zigbee.0                 : zigbee                : homeserver                               -  enabled, port: /dev/serial/by-id/usb-Silicon_Labs_Sonoff_Zigbee_3.0_USB_Dongle_Plus_0001-if00-port0
                          
                          + instance is alive
                          
                          Enabled adapters with bindings
                          + system.adapter.admin.0                  : admin                 : homeserver                               -  enabled, port: 8081, bind: 0.0.0.0, run as: admin
                          + system.adapter.influxdb.0               : influxdb              : homeserver                               -  enabled, port: 8086
                          + system.adapter.mqtt.0                   : mqtt                  : homeserver                               -  enabled, port: 1883, bind: 0.0.0.0
                          + system.adapter.simple-api.0             : simple-api            : homeserver                               -  enabled, port: 8087, bind: 0.0.0.0, run as: admin
                          + system.adapter.sql.0                    : sql                   : homeserver                               -  enabled, port: 3306
                          + system.adapter.telegram.0               : telegram              : homeserver                               -  enabled, port: 8443, bind: 0.0.0.0
                          + system.adapter.web.0                    : web                   : homeserver                               -  enabled, port: 8082, bind: 0.0.0.0, run as: admin
                          + system.adapter.zigbee.0                 : zigbee                : homeserver                               -  enabled, port: /dev/serial/by-id/usb-Silicon_Labs_Sonoff_Zigbee_3.0_USB_Dongle_Plus_0001-if00-port0
                          
                          ioBroker-Repositories
                          stable        : http://download.iobroker.net/sources-dist.json
                          beta          : http://download.iobroker.net/sources-dist-latest.json
                          
                          Active repo(s): stable
                          
                          Installed ioBroker-Instances
                          Used repository: stable
                          Adapter    "admin"        : 6.13.16  , installed 6.13.16
                          Adapter    "backitup"     : 2.10.11  , installed 2.10.11
                          Adapter    "devices"      : 1.1.5    , installed 1.1.5
                          Adapter    "discovery"    : 4.4.0    , installed 4.4.0
                          Adapter    "go-e"         : 1.0.29   , installed 1.0.29
                          Adapter    "govee-local"  : 0.2.5    , installed 0.2.5
                          Adapter    "ham"          : 5.3.1    , installed 5.3.1
                          Adapter    "influxdb"     : 4.0.2    , installed 4.0.2
                          Adapter    "javascript"   : 7.8.0    , installed 7.8.0
                          Controller "js-controller": 5.0.19   , installed 5.0.19
                          Adapter    "modbus"       : 6.1.0    , installed 6.1.0
                          Adapter    "mqtt"         : 5.2.0    , installed 5.2.0
                          Adapter    "openweathermap": 1.0.4   , installed 1.0.4
                          Adapter    "pushover"     : 3.0.6    , installed 3.0.6
                          Adapter    "shelly"       : 6.6.1    , installed 6.6.1
                          Adapter    "simple-api"   : 2.7.2    , installed 2.7.2
                          Adapter    "socketio"     : 6.6.0    , installed 6.6.0
                          Adapter    "sql"          : 2.2.0    , installed 2.2.0
                          Adapter    "telegram"     : 3.1.0    , installed 3.1.0
                          Adapter    "tr-064"       : 4.2.18   , installed 4.2.18
                          Adapter    "vis"          : 1.5.4    , installed 1.5.4
                          Adapter    "vis-icontwo"  : 1.5.0    , installed 1.5.0
                          Adapter    "vis-inventwo" : 3.3.3    , installed 3.3.3
                          Adapter    "vis-jqui-mfd" : 1.0.12   , installed 1.0.12
                          Adapter    "web"          : 6.2.3    , installed 6.2.3
                          Adapter    "ws"           : 2.5.10   , installed 2.5.10
                          Adapter    "zigbee"       : 1.10.1   , installed 1.10.1
                          
                          Objects and States
                          Please stand by - This may take a while
                          Objects:        1967
                          States:         1606
                          
                          *** OS-Repositories and Updates ***
                          Hit:1 http://ppa.launchpad.net/deadsnakes/ppa/ubuntu focal InRelease
                          Hit:2 http://de.archive.ubuntu.com/ubuntu focal InRelease
                          Hit:3 http://de.archive.ubuntu.com/ubuntu focal-updates InRelease
                          Hit:4 http://de.archive.ubuntu.com/ubuntu focal-backports InRelease
                          Hit:5 http://de.archive.ubuntu.com/ubuntu focal-security InRelease
                          Hit:6 https://deb.nodesource.com/node_18.x nodistro InRelease
                          Reading package lists...
                          Pending Updates: 0
                          
                          *** Listening Ports ***
                          Active Internet connections (only servers)
                          Proto Recv-Q Send-Q Local Address           Foreign Address         State       User       Inode      PID/Program name
                          tcp        0      0 0.0.0.0:111             0.0.0.0:*               LISTEN      0          13294      1/init
                          tcp        0      0 127.0.0.53:53           0.0.0.0:*               LISTEN      101        23863      671/systemd-resolve
                          tcp        0      0 0.0.0.0:22              0.0.0.0:*               LISTEN      0          27845      746/sshd: /usr/sbin
                          tcp        0      0 0.0.0.0:1883            0.0.0.0:*               LISTEN      1001       32441      1639/io.mqtt.0
                          tcp        0      0 0.0.0.0:3808            0.0.0.0:*               LISTEN      0          30229      1142/docker-proxy
                          tcp        0      0 127.0.0.1:9000          0.0.0.0:*               LISTEN      1001       31803      697/iobroker.js-con
                          tcp        0      0 127.0.0.1:9001          0.0.0.0:*               LISTEN      1001       30304      697/iobroker.js-con
                          tcp        0      0 0.0.0.0:3306            0.0.0.0:*               LISTEN      0          29662      1165/docker-proxy
                          tcp6       0      0 :::111                  :::*                    LISTEN      0          13298      1/init
                          tcp6       0      0 :::8081                 :::*                    LISTEN      1001       32071      1352/io.admin.0
                          tcp6       0      0 :::8082                 :::*                    LISTEN      1001       31683      1724/io.web.0
                          tcp6       0      0 :::22                   :::*                    LISTEN      0          27847      746/sshd: /usr/sbin
                          tcp6       0      0 :::8087                 :::*                    LISTEN      1001       32590      1754/io.simple-api.
                          tcp6       0      0 :::3808                 :::*                    LISTEN      0          29655      1150/docker-proxy
                          tcp6       0      0 :::3306                 :::*                    LISTEN      0          28558      1170/docker-proxy
                          udp        0      0 0.0.0.0:4002            0.0.0.0:*                           1001       34290      1739/io.govee-local
                          udp        0      0 127.0.0.53:53           0.0.0.0:*                           101        23862      671/systemd-resolve
                          udp        0      0 0.0.0.0:111             0.0.0.0:*                           0          13295      1/init
                          udp6       0      0 :::111                  :::*                                0          12114      1/init
                          udp6       0      0 fe80::6e4b:90ff:fe1:546 :::*                                100        24937      668/systemd-network
                          
                          *** Log File - Last 25 Lines ***
                          
                          2024-03-17 17:21:08.306  - info: modbus.0 (4439) Disconnected from slave 192.168.1.112
                          2024-03-17 17:21:09.530  - info: influxdb.0 (1473) Connecting http://localhost:8086/ ...
                          2024-03-17 17:21:09.530  - info: influxdb.0 (1473) Influx DB Version used: 2.x
                          2024-03-17 17:21:09.531  - error: influxdb.0 (1473) Error: connect ECONNREFUSED 127.0.0.1:8086
                          2024-03-17 17:21:09.718  - warn: zigbee.0 (1654) Send command to 0x3425b4fffec698ef failed with: Code 205 (No network route)
                          2024-03-17 17:21:14.087  - info: javascript.0 (1488) script.js.rooms.bed.cabinetIlumination: no motion since: 330
                          2024-03-17 17:21:14.088  - info: javascript.0 (1488) script.js.rooms.bed.cabinetIlumination: calc with 330 lux 30 hours: 17
                          2024-03-17 17:21:19.531  - info: influxdb.0 (1473) Connecting http://localhost:8086/ ...
                          2024-03-17 17:21:19.531  - info: influxdb.0 (1473) Influx DB Version used: 2.x
                          2024-03-17 17:21:19.532  - error: influxdb.0 (1473) Error: connect ECONNREFUSED 127.0.0.1:8086
                          2024-03-17 17:21:24.087  - info: javascript.0 (1488) script.js.rooms.bed.cabinetIlumination: no motion since: 340
                          2024-03-17 17:21:24.088  - info: javascript.0 (1488) script.js.rooms.bed.cabinetIlumination: calc with 340 lux 30 hours: 17
                          2024-03-17 17:21:29.533  - info: influxdb.0 (1473) Connecting http://localhost:8086/ ...
                          2024-03-17 17:21:29.533  - info: influxdb.0 (1473) Influx DB Version used: 2.x
                          2024-03-17 17:21:29.534  - error: influxdb.0 (1473) Error: connect ECONNREFUSED 127.0.0.1:8086
                          2024-03-17 17:21:30.003  - info: javascript.0 (1488) script.js.energy.periodicCalc: set attr 0_userdata.0.energy.current.houseConsumption to 569.79
                          2024-03-17 17:21:30.003  - info: javascript.0 (1488) script.js.energy.periodicCalc: set attr 0_userdata.0.energy.current.totalConsumption to 2417.2
                          2024-03-17 17:21:30.003  - info: javascript.0 (1488) script.js.energy.periodicCalc: set attr 0_userdata.0.energy.current.ownConsumption to 0
                          2024-03-17 17:21:30.003  - info: javascript.0 (1488) script.js.energy.periodicCalc: set attr 0_userdata.0.energy.current.production to 0
                          2024-03-17 17:21:30.003  - info: javascript.0 (1488) script.js.energy.periodicCalc: set attr 0_userdata.0.energy.current.supplied to 2417.2
                          2024-03-17 17:21:30.003  - info: javascript.0 (1488) script.js.energy.periodicCalc: set attr 0_userdata.0.energy.current.carConsumption to 1813
                          2024-03-17 17:21:30.003  - info: javascript.0 (1488) script.js.energy.periodicCalc: set attr 0_userdata.0.energy.current.heatingConsumption to 34.41
                          2024-03-17 17:21:30.005  - info: javascript.0 (1488) script.js.energy.periodicCalc: set attr 0_userdata.0.energy.current.availableForCar to 0
                          2024-03-17 17:21:30.006  - info: javascript.0 (1488) script.js.energy.periodicCalc: set attr 0_userdata.0.energy.current.consumptionWithoutCar to 604.1999999999999
                          2024-03-17 17:21:30.006  - info: javascript.0 (1488) script.js.energy.periodicCalc: set attr 0_userdata.0.energy.current.feed to 0
                          
                          
                          
                          ============ Mark until here for C&P =============
                          
                          iob diag has finished.
                          
                          
                          Press any key for a summary
                          
                          Thomas Braun 1 Reply Last reply Reply Quote 0
                          • Thomas Braun
                            Thomas Braun Most Active @selector last edited by

                            @selector sagte in Javascript Adapter stürzt immer ab: Restart loop detected:

                            Du hast den falschen Kram ja immer noch nicht angepackt...

                            Time zone: Etc/UTC (UTC, +0000)

                            Setz die richtig! Das ist WICHTIG!

                            sudo timedatectl set-timezone "Europe/Berlin"
                            

                            Oder in welcher Zeitzone du auch immer lebst.

                            Boot Target: graphical.target

                            Setz das auf multi-user.target

                            sudo systemctl set-default multi-user.target
                            

                            Rauskicken, wenn du nicht weißt warum das aktiv ist:

                            Hit:1 http://ppa.launchpad.net/deadsnakes/ppa/ubuntu focal InRelease
                            Hit:4 http://de.archive.ubuntu.com/ubuntu focal-backports InRelease

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

                              @thomas-braun
                              So habe die Repos entfernt und die Timezone richtig eingestellt. Das mit der Timezone erklärt auch Probleme die ich mit den Javascripten hatte, wo Date() immer eine Stunde "falsch gegangen" ist. Komisch war, dass die Logeinträge über den IOBroker immer die richtige Zeit hatten.

                              Bin gespannt wie sich jetzt der JS-Adapter verhält.
                              Nochmal danke für den Support

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

                                @selector sagte in Javascript Adapter stürzt immer ab: Restart loop detected:

                                Das mit der Timezone erklärt auch Probleme die ich mit den Javascripten hatte, wo Date() immer eine Stunde "falsch gegangen" ist.

                                Ich sag ja, das ist keine Kosmetik, eine richtig tickende Systemuhr ist sogar eminent wichtig.

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

                                  @thomas-braun

                                  Also die ganzen Bemühungen hier haben leider das Problem nicht behoben. Mein JS Adapter stürzt immer noch of ab. Teilweise 2x am Tag, teilweise läuft er auch zwei Tage. Ich starte dann immer neu. Total ärgerlich weil ich auch Überschlussladen etc für das eAuto darüber realisiert habe und der Wage dann natürlich nicht lädt.

                                  Ich habe folgendes im sys-Log dazu gefunden

                                  
                                  Apr 29 12:47:25 homeserver bash[565527]: Was not able to detect the Linky linky_mode. Default to historique
                                  Apr 29 12:47:25 homeserver bash[565527]: Was not able to detect the Linky energy_phase. Default to single_phase
                                  Apr 29 12:47:25 homeserver bash[565527]: Not able to detect the current tarif. Not filtering any expose...
                                  Apr 29 12:50:00 homeserver bash[565527]: (node:565605) Warning: Setting the NODE_TLS_REJECT_UNAUTHORIZED environment variable to '0' makes TLS connections and HTTPS requests insecure by disabling certificate verification.
                                  Apr 29 12:50:00 homeserver bash[565527]: (Use `node --trace-warnings ...` to show where the warning was created)
                                  Apr 29 12:50:00 homeserver bash[565527]: 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:
                                  Apr 29 12:50:00 homeserver bash[565527]: 0
                                  Apr 29 12:50:00 homeserver bash[565527]: 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:
                                  Apr 29 12:50:00 homeserver bash[565527]: 0
                                  Apr 29 12:50:00 homeserver bash[565527]: 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:
                                  Apr 29 12:50:00 homeserver bash[565527]: 0
                                  Apr 29 12:50:01 homeserver bash[565527]: ================================== > LOG REDIRECT system.adapter.javascript.0 => false [Process stopped]
                                  Apr 29 12:50:01 homeserver bash[565527]: ================================== > LOG REDIRECT system.adapter.javascript.0 => false [system.adapter.javascript.0.logging]
                                  Apr 29 12:55:00 homeserver bash[565527]: (node:565868) Warning: Setting the NODE_TLS_REJECT_UNAUTHORIZED environment variable to '0' makes TLS connections and HTTPS requests insecure by disabling certificate verification.
                                  Apr 29 12:55:00 homeserver bash[565527]: (Use `node --trace-warnings ...` to show where the warning was created)
                                  Apr 29 12:55:00 homeserver bash[565527]: 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:
                                  Apr 29 12:55:00 homeserver bash[565527]: 0
                                  Apr 29 12:55:00 homeserver bash[565527]: 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:
                                  Apr 29 12:55:00 homeserver bash[565527]: 0
                                  Apr 29 12:55:00 homeserver bash[565527]: 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:
                                  Apr 29 12:55:00 homeserver bash[565527]: 0
                                  Apr 29 12:55:01 homeserver bash[565527]: ================================== > LOG REDIRECT system.adapter.javascript.0 => false [Process stopped]
                                  Apr 29 12:55:01 homeserver bash[565527]: ================================== > LOG REDIRECT system.adapter.javascript.0 => false [system.adapter.javascript.0.logging]
                                  Apr 29 13:00:00 homeserver bash[565527]: (node:565961) Warning: Setting the NODE_TLS_REJECT_UNAUTHORIZED environment variable to '0' makes TLS connections and HTTPS requests insecure by disabling certificate verification.
                                  Apr 29 13:00:00 homeserver bash[565527]: (Use `node --trace-warnings ...` to show where the warning was created)
                                  Apr 29 13:00:00 homeserver bash[565527]: 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:
                                  Apr 29 13:00:00 homeserver bash[565527]: 0
                                  Apr 29 13:00:01 homeserver bash[565527]: ================================== > LOG REDIRECT system.adapter.javascript.0 => false [Process stopped]
                                  Apr 29 13:00:01 homeserver bash[565527]: ================================== > LOG REDIRECT system.adapter.javascript.0 => false [system.adapter.javascript.0.logging]
                                  
                                  

                                  Nach meiner Interpretation wird da die Konstante NODE_TLS_REJECT_UNAUTHORIZED für JS bzw node scheinbar so gesetzt, dass sie eine Warnung generieren kann und dieser Warnung führt dann dazu das eine Funktion zu einem Fehler führt, das dazu führt das der JS Adapter in den Restart-Loop geht (Sieht man ja auch gut im log)

                                  Meine Frage: Wie kann man die Node-Konstante setzen? Als normale System-Environment-Variable funktioniert das irgendwie nicht. Oder kann ich das im ioBroker irgendwo setzen?

                                  Und dann der Hinweis mit "node --trace-warnings" wie kann ich bei der ioBroker installation node startparamter mitgeben?

                                  Danke für Hilfe,
                                  selector

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

                                  Support us

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

                                  482
                                  Online

                                  31.9k
                                  Users

                                  80.2k
                                  Topics

                                  1.3m
                                  Posts

                                  4
                                  29
                                  1121
                                  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