Skip to content
  • Recent
  • Tags
  • 0 Unread 0
  • Categories
  • Unreplied
  • Popular
  • GitHub
  • Docu
  • Hilfe
Skins
  • Light
  • Brite
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Logo
  1. ioBroker Community Home
  2. Deutsch
  3. ioBroker Allgemein
  4. js-controller 3.0/3.1 jetzt im Latest!

NEWS

  • Wartung am 15.11. – Forum ab 22:00 Uhr nicht erreichbar
    BluefoxB
    Bluefox
    11
    2
    195

  • UPDATE 31.10.: Amazon Alexa - ioBroker Skill läuft aus ?
    apollon77A
    apollon77
    48
    3
    7.9k

  • Monatsrückblick – September 2025
    BluefoxB
    Bluefox
    13
    1
    1.7k

js-controller 3.0/3.1 jetzt im Latest!

js-controller 3.0/3.1 jetzt im Latest!

Scheduled Pinned Locked Moved ioBroker Allgemein
js-controller
1.3k Posts 127 Posters 493.9k Views 89 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • K knopers1

    Das Update des RFLink-Adapters zerschießt mir die Serielle Schnittstelle.

    
    raspberrypi
    
    Betriebssystem
        linux
    Betriebssystem
        linux
    Architektur
        arm
    CPUs
        4
    Geschwindigkeit
        1500 MHz
    Modell
        ARMv7 Processor rev 3 (v7l)
    RAM
        3.81 GB
    System Betriebszeit
        10 T. 22:55:36
    Node.js
        v10.20.1 (Empfohlene Version v12.16.3)
    NPM
        6.14.4
    Festplatte Größe
        233.73 GB
    Festplatte frei
        229.18 GB
    Anzahl der Adapter
        346
    Betriebszeit
        3 T. 00:01:36
    Aktive Instanzen
        23
    Hostname
        raspberrypi
    
    
    

    Das hier stimmt nicht:
    2020-05-01 08:32:49.599 - error: rflink.0 (2973) uncaught exception: SerialPort.list no longer takes a callback and only returns a promise
    2020-05-01 08:32:49.609 - error: rflink.0 (2973) TypeError: SerialPort.list no longer takes a callback and only returns a promise

    2020-05-01 08:30:03.576 - info: host.raspberrypi iobroker upload [2] rflink.admin /opt/iobroker/node_modules/iobroker.rflink/admin/rflink.png rflink.png image/png
    2020-05-01 08:30:03.635 - info: host.raspberrypi iobroker upload [1] rflink.admin /opt/iobroker/node_modules/iobroker.rflink/admin/parse.js parse.js application/javascript
    2020-05-01 08:30:03.714 - info: host.raspberrypi iobroker upload [0] rflink.admin /opt/iobroker/node_modules/iobroker.rflink/admin/index.html index.html text/html
    2020-05-01 08:30:03.770 - info: host.raspberrypi iobroker Adapter "rflink" updated
    2020-05-01 08:30:03.771 - info: host.raspberrypi iobroker host.raspberrypi Adapter "system.adapter.rflink.0" is started
    2020-05-01 08:30:03.795 - info: host.raspberrypi "system.adapter.rflink.0" enabled
    2020-05-01 08:30:03.814 - info: host.raspberrypi instance system.adapter.rflink.0 started with pid 1666
    2020-05-01 08:30:04.820 - info: host.raspberrypi iobroker exit 0
    2020-05-01 08:30:06.134 - info: rflink.0 (1666) starting. Version 2.1.0 in /opt/iobroker/node_modules/iobroker.rflink, node: v10.20.1, js-controller: 3.0.20
    2020-05-01 08:30:06.282 - info: rflink.0 (1666) Serial port opened
    2020-05-01 08:30:07.212 - info: rflink.0 (1666) Connected
    2020-05-01 08:30:09.311 - info: ical.0 (1645) Terminated (NO_ERROR): Without reason
    2020-05-01 08:30:09.830 - info: host.raspberrypi instance system.adapter.ical.0 terminated with code 0 (NO_ERROR)
    2020-05-01 08:30:21.393 - error: rflink.0 (1666) uncaught exception: SerialPort.list no longer takes a callback and only returns a promise
    2020-05-01 08:30:21.397 - error: rflink.0 (1666) TypeError: SerialPort.list no longer takes a callback and only returns a promise
    at Function.SerialPort.list (/opt/iobroker/node_modules/@serialport/stream/lib/index.js:651:11)
    at Adapter.adapter.on.obj (/opt/iobroker/node_modules/iobroker.rflink/main.js:43:36)
    at Adapter.emit (events.js:198:13)
    at change (/opt/iobroker/node_modules/iobroker.js-controller/lib/adapter.js:5304:34)
    at Immediate.setImmediate (/opt/iobroker/node_modules/iobroker.js-controller/lib/states/statesInRedis.js:234:41)
    at runCallback (timers.js:705:18)
    at tryOnImmediate (timers.js:676:5)
    at processImmediate (timers.js:658:5)
    2020-05-01 08:30:21.493 - info: rflink.0 (1666) terminating
    2020-05-01 08:30:21.495 - info: rflink.0 (1666) Terminated (NO_ERROR): Without reason
    2020-05-01 08:30:22.018 - info: host.raspberrypi instance system.adapter.rflink.0 terminated with code 0 (NO_ERROR)
    2020-05-01 08:30:22.019 - info: host.raspberrypi Restart adapter system.adapter.rflink.0 because enabled
    2020-05-01 08:30:52.044 - info: host.raspberrypi instance system.adapter.rflink.0 started with pid 2299
    2020-05-01 08:30:53.956 - info: rflink.0 (2299) starting. Version 2.1.0 in /opt/iobroker/node_modules/iobroker.rflink, node: v10.20.1, js-controller: 3.0.20
    2020-05-01 08:30:54.095 - info: rflink.0 (2299) Serial port opened
    2020-05-01 08:30:55.025 - info: rflink.0 (2299) Connected
    2020-05-01 08:31:00.460 - info: javascript.0 (30309) script.js.common.StromzaehlerWemo: setForeignState(id=javascript.0.StromMeter.Wert, state="648578.00")
    2020-05-01 08:31:06.026 - info: host.raspberrypi Update repository "latest" under "http://download.iobroker.net/sources-dist-latest.json"
    2020-05-01 08:31:22.254 - error: rflink.0 (2299) uncaught exception: SerialPort.list no longer takes a callback and only returns a promise
    2020-05-01 08:31:22.264 - error: rflink.0 (2299) TypeError: SerialPort.list no longer takes a callback and only returns a promise
    at Function.SerialPort.list (/opt/iobroker/node_modules/@serialport/stream/lib/index.js:651:11)
    at Adapter.adapter.on.obj (/opt/iobroker/node_modules/iobroker.rflink/main.js:43:36)
    at Adapter.emit (events.js:198:13)
    at change (/opt/iobroker/node_modules/iobroker.js-controller/lib/adapter.js:5304:34)
    at Immediate.setImmediate (/opt/iobroker/node_modules/iobroker.js-controller/lib/states/statesInRedis.js:234:41)
    at runCallback (timers.js:705:18)
    at tryOnImmediate (timers.js:676:5)
    at processImmediate (timers.js:658:5)
    2020-05-01 08:31:22.334 - info: rflink.0 (2299) terminating
    2020-05-01 08:31:22.335 - info: rflink.0 (2299) Terminated (NO_ERROR): Without reason
    2020-05-01 08:31:22.853 - info: host.raspberrypi instance system.adapter.rflink.0 terminated with code 0 (NO_ERROR)
    2020-05-01 08:31:22.853 - info: host.raspberrypi Restart adapter system.adapter.rflink.0 because enabled
    2020-05-01 08:31:48.770 - info: host.raspberrypi "system.adapter.rflink.0" disabled
    2020-05-01 08:31:54.229 - info: host.raspberrypi "system.adapter.rflink.0" enabled
    2020-05-01 08:31:54.229 - info: host.raspberrypi stopInstance system.adapter.rflink.0 (force=false, process=true)
    2020-05-01 08:31:54.231 - info: host.raspberrypi stopInstance system.adapter.rflink.0 send kill signal
    2020-05-01 08:31:55.292 - info: host.raspberrypi stopInstance system.adapter.rflink.0 killing pid 2957
    2020-05-01 08:31:55.302 - info: rflink.0 (2957) starting. Version 2.1.0 in /opt/iobroker/node_modules/iobroker.rflink, node: v10.20.1, js-controller: 3.0.20
    2020-05-01 08:31:55.453 - info: rflink.0 (2957) Serial port opened
    2020-05-01 08:31:56.383 - info: rflink.0 (2957) Connected
    2020-05-01 08:31:57.267 - info: host.raspberrypi instance system.adapter.rflink.0 started with pid 2973
    2020-05-01 08:31:57.273 - warn: rflink.0 (2957) Got terminate signal. Checking desired PID: 0 vs own PID 2957
    2020-05-01 08:31:57.277 - info: rflink.0 (2957) terminating
    2020-05-01 08:31:57.279 - info: rflink.0 (2957) Terminated (ADAPTER_REQUESTED_TERMINATION): Without reason
    2020-05-01 08:31:57.288 - warn: rflink.0 (2957) Got terminate signal. Checking desired PID: 2973 vs own PID 2957
    2020-05-01 08:31:57.804 - error: host.raspberrypi instance system.adapter.rflink.0 terminated by request of the instance itself and will not be restarted, before user restarts it.
    2020-05-01 08:31:57.804 - info: host.raspberrypi Do not restart adapter system.adapter.rflink.0 because desired by instance
    2020-05-01 08:31:59.163 - info: rflink.0 (2973) starting. Version 2.1.0 in /opt/iobroker/node_modules/iobroker.rflink, node: v10.20.1, js-controller: 3.0.20
    2020-05-01 08:31:59.665 - info: rflink.0 (2973) Serial port opened
    2020-05-01 08:32:00.594 - info: rflink.0 (2973) Connected
    2020-05-01 08:32:00.814 - info: javascript.0 (30309) script.js.common.StromzaehlerWemo: setForeignState(id=javascript.0.StromMeter.Wert, state="648579.00")
    2020-05-01 08:32:49.599 - error: rflink.0 (2973) uncaught exception: SerialPort.list no longer takes a callback and only returns a promise
    2020-05-01 08:32:49.609 - error: rflink.0 (2973) TypeError: SerialPort.list no longer takes a callback and only returns a promise
    at Function.SerialPort.list (/opt/iobroker/node_modules/@serialport/stream/lib/index.js:651:11)
    at Adapter.adapter.on.obj (/opt/iobroker/node_modules/iobroker.rflink/main.js:43:36)
    at Adapter.emit (events.js:198:13)
    at change (/opt/iobroker/node_modules/iobroker.js-controller/lib/adapter.js:5304:34)
    at Immediate.setImmediate (/opt/iobroker/node_modules/iobroker.js-controller/lib/states/statesInRedis.js:234:41)
    at runCallback (timers.js:705:18)
    at tryOnImmediate (timers.js:676:5)
    at processImmediate (timers.js:658:5)
    2020-05-01 08:32:49.775 - info: rflink.0 (2973) terminating
    2020-05-01 08:32:49.776 - info: rflink.0 (2973) Terminated (NO_ERROR): Without reason
    2020-05-01 08:32:50.295 - info: host.raspberrypi instance system.adapter.rflink.0 terminated with code 0 (NO_ERROR)
    2020-05-01 08:32:50.296 - info: host.raspberrypi Restart adapter system.adapter.rflink.0 because enabled
    
    apollon77A Offline
    apollon77A Offline
    apollon77
    wrote on last edited by
    #725

    @knopers1 Jupp. Ich bin schuld. Fix version kommt nachher.

    Beitrag hat geholfen? Votet rechts unten im Beitrag :-) https://paypal.me/Apollon77 / https://github.com/sponsors/Apollon77

    • Debug-Log für Instanz einschalten? Admin -> Instanzen -> Expertenmodus -> Instanz aufklappen - Loglevel ändern
    • Logfiles auf Platte /opt/iobroker/log/… nutzen, Admin schneidet Zeilen ab
    1 Reply Last reply
    0
    • M Marty56

      @liv-in-sky Ich habe ein ganz ähnliches Problem. Bei mir sind das PNGs, die ich vor sehr langer Zeit mal in ein eigenes Verzeichnis unterhalb der VIS ICONs Verzeichnis kopiert hatte, die ich aber schon seit mehreren Monaten (mehr als 12) nicht mehr in VIS benutze.

      Mir ist es deshalb total unklar, warum die noch geladen werden und diese Warning erzeugen. Ich vermute, dass VIS beim Editieren immer noch alte HTML Code Stücke sinnlosere Weise mit in der Datenbank hat, die diese PNGs referenzieren, aber nie mehr anzeigen. Das würde auch erklären, warum das erstmalige Laden meiner Visualisierung so lange dauert.

      PS: Ich habe gerade mal den Quelltext von dem VIS HTML Code angeschaut und da ist unter Index ein Ordner Bilder und der referenziert bei mir die PNGs, die nicht gefunden werden.

      Wie ich das jetzt fixe, ist mir unklar.

      liv-in-skyL Offline
      liv-in-skyL Offline
      liv-in-sky
      wrote on last edited by
      #726

      @Marty56
      erstmal danke für's melden - werde das morgen nochmal näher ansehen, ob ich das irgendwie nachvollziehen kann - meld mich dann

      nach einem gelösten Thread wäre es sinnvoll dies in der Überschrift des ersten Posts einzutragen [gelöst]-... Bitte benutzt das Voting rechts unten im Beitrag wenn er euch geholfen hat. Forum-Tools: PicPick https://picpick.app/en/download/ und ScreenToGif https://www.screentogif.com/downloads.html

      1 Reply Last reply
      0
      • K knopers1

        Das Update des RFLink-Adapters zerschießt mir die Serielle Schnittstelle.

        
        raspberrypi
        
        Betriebssystem
            linux
        Betriebssystem
            linux
        Architektur
            arm
        CPUs
            4
        Geschwindigkeit
            1500 MHz
        Modell
            ARMv7 Processor rev 3 (v7l)
        RAM
            3.81 GB
        System Betriebszeit
            10 T. 22:55:36
        Node.js
            v10.20.1 (Empfohlene Version v12.16.3)
        NPM
            6.14.4
        Festplatte Größe
            233.73 GB
        Festplatte frei
            229.18 GB
        Anzahl der Adapter
            346
        Betriebszeit
            3 T. 00:01:36
        Aktive Instanzen
            23
        Hostname
            raspberrypi
        
        
        

        Das hier stimmt nicht:
        2020-05-01 08:32:49.599 - error: rflink.0 (2973) uncaught exception: SerialPort.list no longer takes a callback and only returns a promise
        2020-05-01 08:32:49.609 - error: rflink.0 (2973) TypeError: SerialPort.list no longer takes a callback and only returns a promise

        2020-05-01 08:30:03.576 - info: host.raspberrypi iobroker upload [2] rflink.admin /opt/iobroker/node_modules/iobroker.rflink/admin/rflink.png rflink.png image/png
        2020-05-01 08:30:03.635 - info: host.raspberrypi iobroker upload [1] rflink.admin /opt/iobroker/node_modules/iobroker.rflink/admin/parse.js parse.js application/javascript
        2020-05-01 08:30:03.714 - info: host.raspberrypi iobroker upload [0] rflink.admin /opt/iobroker/node_modules/iobroker.rflink/admin/index.html index.html text/html
        2020-05-01 08:30:03.770 - info: host.raspberrypi iobroker Adapter "rflink" updated
        2020-05-01 08:30:03.771 - info: host.raspberrypi iobroker host.raspberrypi Adapter "system.adapter.rflink.0" is started
        2020-05-01 08:30:03.795 - info: host.raspberrypi "system.adapter.rflink.0" enabled
        2020-05-01 08:30:03.814 - info: host.raspberrypi instance system.adapter.rflink.0 started with pid 1666
        2020-05-01 08:30:04.820 - info: host.raspberrypi iobroker exit 0
        2020-05-01 08:30:06.134 - info: rflink.0 (1666) starting. Version 2.1.0 in /opt/iobroker/node_modules/iobroker.rflink, node: v10.20.1, js-controller: 3.0.20
        2020-05-01 08:30:06.282 - info: rflink.0 (1666) Serial port opened
        2020-05-01 08:30:07.212 - info: rflink.0 (1666) Connected
        2020-05-01 08:30:09.311 - info: ical.0 (1645) Terminated (NO_ERROR): Without reason
        2020-05-01 08:30:09.830 - info: host.raspberrypi instance system.adapter.ical.0 terminated with code 0 (NO_ERROR)
        2020-05-01 08:30:21.393 - error: rflink.0 (1666) uncaught exception: SerialPort.list no longer takes a callback and only returns a promise
        2020-05-01 08:30:21.397 - error: rflink.0 (1666) TypeError: SerialPort.list no longer takes a callback and only returns a promise
        at Function.SerialPort.list (/opt/iobroker/node_modules/@serialport/stream/lib/index.js:651:11)
        at Adapter.adapter.on.obj (/opt/iobroker/node_modules/iobroker.rflink/main.js:43:36)
        at Adapter.emit (events.js:198:13)
        at change (/opt/iobroker/node_modules/iobroker.js-controller/lib/adapter.js:5304:34)
        at Immediate.setImmediate (/opt/iobroker/node_modules/iobroker.js-controller/lib/states/statesInRedis.js:234:41)
        at runCallback (timers.js:705:18)
        at tryOnImmediate (timers.js:676:5)
        at processImmediate (timers.js:658:5)
        2020-05-01 08:30:21.493 - info: rflink.0 (1666) terminating
        2020-05-01 08:30:21.495 - info: rflink.0 (1666) Terminated (NO_ERROR): Without reason
        2020-05-01 08:30:22.018 - info: host.raspberrypi instance system.adapter.rflink.0 terminated with code 0 (NO_ERROR)
        2020-05-01 08:30:22.019 - info: host.raspberrypi Restart adapter system.adapter.rflink.0 because enabled
        2020-05-01 08:30:52.044 - info: host.raspberrypi instance system.adapter.rflink.0 started with pid 2299
        2020-05-01 08:30:53.956 - info: rflink.0 (2299) starting. Version 2.1.0 in /opt/iobroker/node_modules/iobroker.rflink, node: v10.20.1, js-controller: 3.0.20
        2020-05-01 08:30:54.095 - info: rflink.0 (2299) Serial port opened
        2020-05-01 08:30:55.025 - info: rflink.0 (2299) Connected
        2020-05-01 08:31:00.460 - info: javascript.0 (30309) script.js.common.StromzaehlerWemo: setForeignState(id=javascript.0.StromMeter.Wert, state="648578.00")
        2020-05-01 08:31:06.026 - info: host.raspberrypi Update repository "latest" under "http://download.iobroker.net/sources-dist-latest.json"
        2020-05-01 08:31:22.254 - error: rflink.0 (2299) uncaught exception: SerialPort.list no longer takes a callback and only returns a promise
        2020-05-01 08:31:22.264 - error: rflink.0 (2299) TypeError: SerialPort.list no longer takes a callback and only returns a promise
        at Function.SerialPort.list (/opt/iobroker/node_modules/@serialport/stream/lib/index.js:651:11)
        at Adapter.adapter.on.obj (/opt/iobroker/node_modules/iobroker.rflink/main.js:43:36)
        at Adapter.emit (events.js:198:13)
        at change (/opt/iobroker/node_modules/iobroker.js-controller/lib/adapter.js:5304:34)
        at Immediate.setImmediate (/opt/iobroker/node_modules/iobroker.js-controller/lib/states/statesInRedis.js:234:41)
        at runCallback (timers.js:705:18)
        at tryOnImmediate (timers.js:676:5)
        at processImmediate (timers.js:658:5)
        2020-05-01 08:31:22.334 - info: rflink.0 (2299) terminating
        2020-05-01 08:31:22.335 - info: rflink.0 (2299) Terminated (NO_ERROR): Without reason
        2020-05-01 08:31:22.853 - info: host.raspberrypi instance system.adapter.rflink.0 terminated with code 0 (NO_ERROR)
        2020-05-01 08:31:22.853 - info: host.raspberrypi Restart adapter system.adapter.rflink.0 because enabled
        2020-05-01 08:31:48.770 - info: host.raspberrypi "system.adapter.rflink.0" disabled
        2020-05-01 08:31:54.229 - info: host.raspberrypi "system.adapter.rflink.0" enabled
        2020-05-01 08:31:54.229 - info: host.raspberrypi stopInstance system.adapter.rflink.0 (force=false, process=true)
        2020-05-01 08:31:54.231 - info: host.raspberrypi stopInstance system.adapter.rflink.0 send kill signal
        2020-05-01 08:31:55.292 - info: host.raspberrypi stopInstance system.adapter.rflink.0 killing pid 2957
        2020-05-01 08:31:55.302 - info: rflink.0 (2957) starting. Version 2.1.0 in /opt/iobroker/node_modules/iobroker.rflink, node: v10.20.1, js-controller: 3.0.20
        2020-05-01 08:31:55.453 - info: rflink.0 (2957) Serial port opened
        2020-05-01 08:31:56.383 - info: rflink.0 (2957) Connected
        2020-05-01 08:31:57.267 - info: host.raspberrypi instance system.adapter.rflink.0 started with pid 2973
        2020-05-01 08:31:57.273 - warn: rflink.0 (2957) Got terminate signal. Checking desired PID: 0 vs own PID 2957
        2020-05-01 08:31:57.277 - info: rflink.0 (2957) terminating
        2020-05-01 08:31:57.279 - info: rflink.0 (2957) Terminated (ADAPTER_REQUESTED_TERMINATION): Without reason
        2020-05-01 08:31:57.288 - warn: rflink.0 (2957) Got terminate signal. Checking desired PID: 2973 vs own PID 2957
        2020-05-01 08:31:57.804 - error: host.raspberrypi instance system.adapter.rflink.0 terminated by request of the instance itself and will not be restarted, before user restarts it.
        2020-05-01 08:31:57.804 - info: host.raspberrypi Do not restart adapter system.adapter.rflink.0 because desired by instance
        2020-05-01 08:31:59.163 - info: rflink.0 (2973) starting. Version 2.1.0 in /opt/iobroker/node_modules/iobroker.rflink, node: v10.20.1, js-controller: 3.0.20
        2020-05-01 08:31:59.665 - info: rflink.0 (2973) Serial port opened
        2020-05-01 08:32:00.594 - info: rflink.0 (2973) Connected
        2020-05-01 08:32:00.814 - info: javascript.0 (30309) script.js.common.StromzaehlerWemo: setForeignState(id=javascript.0.StromMeter.Wert, state="648579.00")
        2020-05-01 08:32:49.599 - error: rflink.0 (2973) uncaught exception: SerialPort.list no longer takes a callback and only returns a promise
        2020-05-01 08:32:49.609 - error: rflink.0 (2973) TypeError: SerialPort.list no longer takes a callback and only returns a promise
        at Function.SerialPort.list (/opt/iobroker/node_modules/@serialport/stream/lib/index.js:651:11)
        at Adapter.adapter.on.obj (/opt/iobroker/node_modules/iobroker.rflink/main.js:43:36)
        at Adapter.emit (events.js:198:13)
        at change (/opt/iobroker/node_modules/iobroker.js-controller/lib/adapter.js:5304:34)
        at Immediate.setImmediate (/opt/iobroker/node_modules/iobroker.js-controller/lib/states/statesInRedis.js:234:41)
        at runCallback (timers.js:705:18)
        at tryOnImmediate (timers.js:676:5)
        at processImmediate (timers.js:658:5)
        2020-05-01 08:32:49.775 - info: rflink.0 (2973) terminating
        2020-05-01 08:32:49.776 - info: rflink.0 (2973) Terminated (NO_ERROR): Without reason
        2020-05-01 08:32:50.295 - info: host.raspberrypi instance system.adapter.rflink.0 terminated with code 0 (NO_ERROR)
        2020-05-01 08:32:50.296 - info: host.raspberrypi Restart adapter system.adapter.rflink.0 because enabled
        
        apollon77A Offline
        apollon77A Offline
        apollon77
        wrote on last edited by
        #727

        @knopers1 rflink 2.1.4 sollte das gefixt haben

        Beitrag hat geholfen? Votet rechts unten im Beitrag :-) https://paypal.me/Apollon77 / https://github.com/sponsors/Apollon77

        • Debug-Log für Instanz einschalten? Admin -> Instanzen -> Expertenmodus -> Instanz aufklappen - Loglevel ändern
        • Logfiles auf Platte /opt/iobroker/log/… nutzen, Admin schneidet Zeilen ab
        K 1 Reply Last reply
        0
        • ThisoftT Offline
          ThisoftT Offline
          Thisoft
          wrote on last edited by
          #728

          Hallo,

          ich bekomme aktuell nach dem Update auf Node 12 und js-controller 3.0.20 folgenden Fehler vom SQL-Adapter:

          sql.0
          2020-05-03 04:26:14.114
          error
          (7144) ConnectionError: Failed to connect to 192.168.137.xxx:1433 - Cannot call write after a stream was destroyed
          

          was kann ich denn dagegen tun?

          22 HM-Geräte; PivCCU2 auf RasPi

          ioBroker-Multihost; Ubuntu-Master auf Intel-Atom und 3 RasPi-Clients

          apollon77A 1 Reply Last reply
          0
          • apollon77A apollon77

            @knopers1 rflink 2.1.4 sollte das gefixt haben

            K Offline
            K Offline
            knopers1
            wrote on last edited by
            #729

            @apollon77 said in js-controller 3.0 jetzt im Latest!:

            @knopers1 rflink 2.1.4 sollte das gefixt haben

            ja, 2.1.4 läuft wieder :). Besten Dank. Meine Anerkennung apollon77. "Du hast es drauf"

            HP Microserver Gen8, RPI-4, IoBroker,

            1 Reply Last reply
            1
            • ThisoftT Thisoft

              Hallo,

              ich bekomme aktuell nach dem Update auf Node 12 und js-controller 3.0.20 folgenden Fehler vom SQL-Adapter:

              sql.0
              2020-05-03 04:26:14.114
              error
              (7144) ConnectionError: Failed to connect to 192.168.137.xxx:1433 - Cannot call write after a stream was destroyed
              

              was kann ich denn dagegen tun?

              apollon77A Offline
              apollon77A Offline
              apollon77
              wrote on last edited by
              #730

              @Thisoft nur Update von dem genannten oder auch von sql? Welche sql Version?

              Wann kommt der Fehler?

              Bissl mehr context und log wäre schön.

              Beitrag hat geholfen? Votet rechts unten im Beitrag :-) https://paypal.me/Apollon77 / https://github.com/sponsors/Apollon77

              • Debug-Log für Instanz einschalten? Admin -> Instanzen -> Expertenmodus -> Instanz aufklappen - Loglevel ändern
              • Logfiles auf Platte /opt/iobroker/log/… nutzen, Admin schneidet Zeilen ab
              1 Reply Last reply
              0
              • ThisoftT Offline
                ThisoftT Offline
                Thisoft
                wrote on last edited by
                #731

                @apollon77 Sorry, war schon spät 😉 Also, ich hab zuerst von nodejs 8.x auf 12.16.3 updatet. Danach:

                npm rebuild
                

                was mir mit der folgenden Ausgabe antwortet:

                @types/node@12.7.1 /home/iobroker/node_modules/@types/node
                

                das kommt mir schonmal komisch vor...?

                Dann reboot, danach "iobroker" update und "iobroker upgrade self"
                Danach den Installationsfixer drüber laufen lassen. Der hat alles ohne Fehlermeldung ausgeführt.
                Danach alle Adapter die zum Update anstanden über die Adminoberfläche updatet, u.a. auch den SQL-Adapter auf 1.12.3

                Ja, und das wäre jetzt ertstmal der Stand. Hier nochmal ein Log vom SQL-Adapter mit Debug-Logging:

                2020-05-03 11:11:57.617  - info: host.ioBroker-Ubuntu Restart adapter system.adapter.sql.0 because enabled
                2020-05-03 11:11:58.636  - info: host.ioBroker-Ubuntu instance system.adapter.sql.0 started with pid 5436
                2020-05-03 11:11:58.915  - debug: sql.0 (5436) Redis Objects: Use Redis connection: 0.0.0.0:9001
                2020-05-03 11:11:58.933  - debug: sql.0 (5436) Objects client ready ... initialize now
                2020-05-03 11:11:58.935  - debug: sql.0 (5436) Objects create System PubSub Client
                2020-05-03 11:11:58.935  - debug: sql.0 (5436) Objects create User PubSub Client
                2020-05-03 11:11:58.936  - debug: sql.0 (5436) Objects client initialize lua scripts
                2020-05-03 11:11:58.946  - debug: sql.0 (5436) Objects connected to redis: 0.0.0.0:9001
                2020-05-03 11:11:58.948  - debug: sql.0 (5436) objectDB connected
                2020-05-03 11:11:58.948  - debug: sql.0 (5436) Redis States: Use Redis connection: 0.0.0.0:9000
                2020-05-03 11:11:58.952  - debug: sql.0 (5436) States create User PubSub Client
                2020-05-03 11:11:58.953  - debug: sql.0 (5436) States create System PubSub Client
                2020-05-03 11:11:58.957  - debug: sql.0 (5436) States connected to redis: 0.0.0.0:9000
                2020-05-03 11:11:58.958  - debug: sql.0 (5436) statesDB connected
                2020-05-03 11:11:59.755  - debug: sql.0 (5436) Plugin sentry Initialize Plugin (enabled=true)
                2020-05-03 11:11:59.801  - info: sql.0 (5436) starting. Version 1.12.3 in /opt/iobroker/node_modules/iobroker.sql, node: v12.16.3, js-controller: 3.0.20
                2020-05-03 11:12:00.024  - info: host.ioBroker-Ubuntu instance system.adapter.weatherunderground.0 started with pid 5452
                2020-05-03 11:12:00.072  - debug: sql.0 (5436) system.adapter.admin.0: logging true
                2020-05-03 11:12:00.091  - error: sql.0 (5436) ConnectionError: Failed to connect to 192.168.137.13:1433 - Cannot call write after a stream was destroyed
                

                Hilft das weiter?

                22 HM-Geräte; PivCCU2 auf RasPi

                ioBroker-Multihost; Ubuntu-Master auf Intel-Atom und 3 RasPi-Clients

                apollon77A 1 Reply Last reply
                0
                • apollon77A apollon77

                  Hallo ioBroker-Community,

                  wie im neuen Release-Cycle für den js-controller geplant, kommt heute der neuen js-controller 3.0 (Releasename "Elena") bzw. inzwischen 3.1 (Releasename "Francesca") ins Latest Repository (sollte im laufe des Tages bei allen auftauchen). Ein großer Dank geht an alle User die bereits in den Letzten Tagen diese Version im beta test getestet und Probleme und Fehler zur Behebung gemeldet haben!

                  Node.js Versions-Anforderungen
                  Nach dem frühzeitigen aus für Node.js 8 bereits letzten November setzt diese neue Version nun Node.js 10.x voraus und funktioniert ebenso mit Node.js 12.x und, nach aktuellem Stand, auch mit der in den nächsten Tagen kommenden Node.js 14.x. Wir werden mit diesem Release auch die empfohlene Node.js Version für ioBroker auf 12.x anheben.
                  Bitte beachtet weiterhin bei Node.js Updates die Anleitung im Forum unter https://forum.iobroker.net/post/266625

                  Error/Crash-Reporting mittels Sentry
                  Der js-controller hat jetzt standardmässig Sentry als Fehler-Reporting eingebaut und aktiviert. Der js-controller weisst bei der Erstinstallation einer Version >3.1 beim Upgrade gesondert darauf hin! Wenn also der js-controller mit einer Fehlermeldung abstürzt (und nur dann!) werden die Fehlerdetails anonymisiert an einen von uns selbst in Deutschland betriebenen Sentry-Server gemeldet. IPs o.ä. personalisierte Daten werden nicht gespeichert. Dieses Fehler-Reporting hilft uns bei Crashes schneller und genauer zu sehen was los ist und solche Fehler noch schneller beheben zu können. Bitte legt für Crashes die Ihr seht bitte trotzdem weiterhin GitHub-Issues an und unterstützt uns indem Ihr das Fehler-Reporting aktiviert lasst. Weitere Details und wie es deaktivierbar ist findet Ihr unter https://github.com/ioBroker/plugin-sentry#what-is-sentrysentryio .
                  Auch immer mehr Adapter nutzen diese Form des Fehler-Reportings.

                  Informationen zur Version
                  Diese Version bringt einige Features mit, ist aber ebenso der Beginn um "unter der Haube" einiges zu vereinheitlichen und Wildwuchs in der Umsetzung einiger Adapter etwas einzugrenzen. Es gibt allerdings auch neue Features mit die die Adapter-Entwicklung vereinfachen und Hürden abbauen. Aus diesem Grund ist auch die Liste der Themen welche vor allem für Entwickler relevant sind diesmal recht lang.
                  Allerdings werden Aktionen von Adaptern die eigentlich den Regeln widersprechen jetzt über Logging sichtbar gemacht. Bitte unterstützt hier und legt bei den relevanten Adaptern Issues an das diese Dinge gefixt werden können. Für den js-controller 3.2 (ca. September 2020) ist es geplant einige dieser "verbotenen Aktionen" auch wirklich zu verhindern. Dazu dann zu gegebener Zeit mehr.

                  Darüber hinaus gibt es natürlich viele Optimierungen und Fixes. Mehr dazu weiter unten und im Changelog. Ich hoffe auch diesmal auf Eure tatkräftige Unterstützung, sodass der Latest-Release dann genau so reibungslos verläuft wie bei der 2.2!

                  Ich bedenke mich diesmal besonders bei @foxriver76, @AlCalzone und natürlich @Bluefox für die aktive Mitarbeit an dieser Version!

                  Der js-controller 3.0/3.1 ist generell kompatibel mit allen bestehenden ioBroker-Systemen. Ein Update von der 2.0/2.1/2.2 ist problemlos möglich. Nur die Node.js Version muss jetzt mindestens 10.x sein, wie oben bereits ausgeführt. Wer überlegt die Node.js Version anzuheben bitte weiter unten im Abschnitt "Was ist zu testen" lesen 🙂

                  Es gibt diesmal zwei Adapter die Aktualisiert werden müssen und einige weitere die aktualisiert werden sollten um die oben genannten Warnungen zu vermeiden! Mehr dazu im nächsten Abschnitt!


                  Installation


                  VOR der Installation

                  Wie bei jedem Update dieser Art: Bitte macht ein Backup! iobroker backup, bzw. kopieren des iobroker-data Verzeichnisses reichen an sich im Zweifel auch aus (ioBroker vorher stoppen natürlich). Bitte nicht das node_modules Verzeichnis einfach kopieren, da sonst symbolische Links kaputt gehen können, was zu größeren Problemen danach führt.

                  Nötige Adapter-Aktualisierungen

                  Die folgenden Adapter müssen auf die genannten Minimalversionsnummern aktualisiert werden, da diese sonst nicht mit dem js-controller 3.0/3.1 funktionieren. Diese Updates am besten vorher ausführen, weil alle genannten Versionen auch mit den alten js-controller Versionen funktionieren.

                  • pushover 1.1.x funktioniert, falls 1.2.x im Einsatz ist bitte auf 1.3.x aktualisieren
                  • tr-064 4.0.0
                  • tr-064-community wird nun offiziell nicht mehr funktionieren.
                  • Die soef Adapter firetv und wifilight funktionieren nicht mehr und haben Updates bekommen: Bitte wifilight 1.1.0 bzw firetv 1.0.0 nutzen. Falls jemand "wifilight-community" oder "firetv-community" nutzt bitte wieder zurück auf die anderen wechseln.
                  • Der soef Adapter lightify funktioniert ebenso nicht mehr. Da Lightify als Platform allerdings in ein paar Monaten nicht mehr weiter betrieben wird haben wir entscheiden hier keinen Aufwand mehr reinzustecken. Am besten die Geräte über zigbee direkt anbinden.

                  Es werden aber, wie oben ausgeführt, einige Adapter ggf Warnungen ins Log schreiben. Die wichtigsten Adapter sind mit neuen Versionen im Latest Repository allerdings schon gefixt. Falls ein Adapter "nervt" dann bitte dem Entwickler melden und den Loglevel auf "Error" setzen.

                  Achtung: Slave-Systeme zuerst!

                  Bei einem Multi-Host-System, welches auf js-controller 2.2 läuft ist es beim Update auf Version 3.0/3.1 empfohlen, zuerst die Slave-Systeme zu aktualisieren. Der Master wird als letztes aktualisiert!

                  Bei Updates von Master/Slave-Systemen mit js-controller 1.5 oder früher auf die 3.0 müssen zwingend zuerst die Slaves und der Master als letztes aktualisiert werden. Die Slaves bleiben nach dem Update offline und werden erst wieder funktionieren wenn auch der Master auf die 3.0/3.1 aktualisiert wurde!

                  Windows

                  Auf Systemen, die mit dem neuen Windows Installer eingerichtet wurden, darf der js-controller nicht mit npm aktualisiert werden. Es wird eine neue Version des Windows Installers geben, die das Update des js-controllers mit wenigen Mausklicks ermöglicht. Wir updaten dazu hier im Thread.

                  Für alle "alten manuellen" Installationen gilt

                  • ioBroker muss gestoppt sein.
                  • Vor dem Update bitte prüfen das keine Prozesse mehr laufen
                  • iobroker upgrade self
                  • ioBroker starten

                  Linux

                  • ioBroker stoppen (iobroker stop)
                  • prüfen das keine Prozesse (Adapter, Backups) mehr laufen (ps auxww|grep io und auch ps auxww|grep backup ). Es passiert manchmal das trotz dem Stoppen noch Zombies zurückbleiben
                  • Wie üblich wird das Update dann per iobroker upgrade self ausgeführt.
                  • ioBroker starten (iobroker start)

                  Bei Fehlern:
                  Wenn bei der Installation Fehler wegen fehlender Zugriffsrechte auftreten, am besten den Installation-Fixer (iobroker fix wer schon einen js-controller 2.x hat, alternativ weiterhin manuell via curl -sL https://iobroker.net/fix.sh | bash -) nutzen und die Installation wiederholen.
                  Falls es auch danach noch Fehler gibt, bitte die Installation erneut mittels sudo -H -u iobroker npm install iobroker.js-controller versuchen. Bitte berichtet solche Fälle hier im Thread.

                  NACH der Installation

                  Nach der Installation den ioBroker wieder starten (z.B. mittels iobroker start).

                  Wenn alles klappt merkt Ihr ausser der höheren Versionsnummer in der Host-Ansicht im Admin keinen Unterschied. Alles funktioniert weiterhin wie vorher. Alle Adapterinstanzen starten und funktionieren. Wenn das so ist hat alles geklappt. Die großen Änderungen sind alle "Unter der Haube" versteckt.

                  Dazu, was Euch jetzt die ganzen Neuerungen bringen, findet Ihr weiter unten in diesem Text Informationen. Neue Funktionen als Basis für Weiterentwicklungen wurden behutsam integriert und einige bestehende Probleme gezielt behoben.

                  Mit iobroker help wird eine Liste der möglichen Kommandozeilen-Kommandos angezeigt, die mit Version 2.0 um einige Befehle länger geworden ist.


                  Was hat sich geändert, was besonders ansehen/beachten?


                  Neben einiger weiterer Bugfixes gibt es folgende Änderungen und Fixes zu erwähnen:

                  • Der neue js-controller kann erkennen wenn es ein Node.js Update gab durch welches ggf, Adapter nicht mehr funktionieren und sollte diese automatisch reparieren (rebuilden). Wer also überlegt in dem Zuge des Tests seine Node.js Version anzuheben bitte mal explizit NICHT die übliche Anleitung nach dem Node-js update mit dem Rebuild befolgen sondern ioBroker einfach nach dem Node.js Update starten. Interessant ist ob sich alles selbst "heilt" 🙂
                  • Einige Adapter fangen Probleme mit Modulen ab und loggen dann einen Fehler, der nicht als automatischer Rebuild erkannt wird. Diese können manuell mittels iobroker rebuild adaptername oder falls das nicht funktioniert hat iobroker rebuild adaptername --install neu gebaut werden. Diese Befehle lösen faktisch reinstall.js u.a. ab.
                  • Der js-controller prüft jetzt vor jedem Start eines Adapters wieviel RAM noch frei ist und warnt im Log falls dies zu wenig ist. Die Standard-Limits sind 100MB (Warnung) bzw. 50MB (Fehler) und dies soll verhindern das mehr Adapter-Prozesse genutzt werden als RAM verfügbar ist. Hier sind wir gespannt auf Eure Berichte.
                  • Logfiles sollten jetzt wirklich nach dem täglichen rotieren auf Linux-Systemen als .gz Dateien abgelegt werden.

                  Wie bereits gesagt, viele Änderungen fanden hinter den Kulissen statt. Hier für Interessierte als Spoiler eine Zusammenfassung:


                  3.1.2 (2020-05-09) Release Francesca
                  3.0.14 (2020-04-21) Release Elena

                  BREAKING CHANGES

                  • Nodejs 8.x will be no longer officially supported! Supported are nodejs 10.x, 12.x and (most likely) 14.x

                  Features

                  • (Apollon77) Enable zip Archive setting that it is on by default again. All Logs on Linux will be packaged to .gz on rotation. This can be deactivated by configuration (see Documentation)
                  • (Apollon77) Introduce CLI command "iobroker rebuild <adaptername>" or "iobroker rebuild self" (for controller) to execute an npm install/rebuild for the specified adapter
                  • (Apollon77) Detect the need for a rebuild because of a nodejs update by checking adapter crash error message and execute the "iobroker rebuild" command for the affected adapter up to 3 times.
                  • (foxriver76) Add ability to define separate read and write id for aliases, introduce Adapter feature flag ALIAS_SEPARATE_READ_WRITE_ID for this (see Documentation)
                  • (foxriver76) Make file write intervals of objects and state file dbs configurable (see Documentation)
                  • (foxriver76) Check available RAM of the system before a new adapter process is started. If it is below 50/100MB log an error/warn and make it configurable via iobroker.json (see Documentation)
                  • (Apollon77) Add plugin system for js-controller and adapters (see Documentation)
                  • (Apollon77) Add and automatically enable Sentry as plugin for js-controller (see infos in README.md), can be disable per host via system.host.name.plugins.sentry.enabled (see Documentation)
                  • (AlCalzone) add iobroker object extend command
                  • (Apollon77) Add a node.js version check and output special error message if node.js version is not satisfied
                  • (Apollon77) Inform about sentry activation if not configured on "iobroker setup first"
                  • (AlCalzone) Add Plugin CLI commands to enable/disable plugins

                  Optimizations and Fixes

                  • (bluefox) Show options for start/stop/restart if more than one instance exists for the adapter
                  • (AlCalzone) Validate arguments for iobroker del ... CLI command
                  • (bluefox) Log js-controller version by start of adapter too
                  • (Stabilostick) Set default certificate validity to 12 months, according to new Apple rules! Existing certificates will be recreated on controller installation if no custom certificate is used
                  • (bluefox) Also initialize objects with local redis connection details if setup command is called with "useRedis" parameter
                  • (foxriver76) Increase timeout of hostinfo command to prevent errors on systems with low CPU
                  • (foxriver76) The end of schedule adapters is no longer logged as error
                  • (foxriver76) Allow CLI commands to check status of an adapter instance
                  • (foxriver76) Enhancements and fixes for iobroker list files command, allow to specify exact meta folder name as parameter and not only the adapter
                  • (foxriver76) Add forced repository update to help, add logging to show that it is used
                  • (foxriver76) Also delete uploaded vis widgets on adapter deletion
                  • (foxriver76) Restart referenced restart-adapters after uninstall also
                  • (foxriver76) Prevent dot as last char of an object or state id
                  • (foxriver76) Improve performance on filter actions (getObjectView) when redis is used as objects database
                  • (Apollon77) Optimize sigKill handling to prevent restart loops for edge cases and slow system
                  • (Apollon77) Optimize errormessage for invalid protocol on database connection and make easier understandable
                  • (Apollon77) Also catch unhandled promise rejections in adapters and handle like exceptions to allow error detection and automatic restart
                  • (foxriver76) Also remove objects from Enums on object deletion
                  • (foxriver76) Fix adapter exiting with wrong exit codes
                  • (bluefox) Fix restart CLI command
                  • (foxriver) Update cache manifest correctly on visdebug and fix process exit on non existing vis dir
                  • (foxriver76) No longer require restart of instance after alias object changes and other alias optimizations
                  • (foxriver76) Make sure files in internal file storage are always stored with correct path and also automatically fix existing entries
                  • (foxriver76) fix crash of redis setState when undefined is passed and refuse undefined as value in general
                  • (Apollon77) Make sure objects update from/ts/user when extending objects in all cases
                  • (AlCalzone) optimize performance when objects are duplicated and checked internally
                  • (Apollon77) prevent crash if udp membership can not be added (Sentry fix)
                  • (Apollon77) change object type for compact groups to "folder"
                  • (Apollon77) consider the Adapter Stop Timeout also for adapter restarts to give adapters enough time to stop before restarting
                  • (foxriver76) delete adapter and adapter.admin folders even if no corresponding meta objects exist
                  • (Apollon77) display errors on npm uninstall
                  • (Apollon77) prevent logged error from file DB where it ws tried to write meta file for already deleted folders
                  • (Apollon77) catch errors when letsencrypt server can not bind to port 80 (Sentry IOBROKER-WEB-1)
                  • (foxriver76) catch error on alias ids with empty objects
                  • (Apollon77) make sure promise rejections without error are not crashing the controller
                  • (Apollon77) handle edge case where hostName is not a string when sending messages (Sentry IOBROKER-ADMIN-B)
                  • (Apollon77) handle case where letsencrypt directory can not be created (Sentry IOBROKER-ADMIN-C/IOBROKER-WEB-B)
                  • (foxriver76) fix some logging in objects lib
                  • (Apollon77) make sure to catch error when reading log directory (Sentry IOBROKER-JS-CONTROLLER-1F)
                    (Apollon77) make sure command on cmdExec is a string (Sentry IOBROKER-JS-CONTROLLER-1H)
                  • (Apollon77) Check more cases for existence of variables before accessing them (Sentry IOBROKER-JS-CONTROLLER-E)
                  • (AlCalzone) Add missing parameter digest to crypto calls
                  • (Apollon77) make sure Objects/States backup files are deleted correctly according to backup settings
                  • (foxriver76) Make sure default state value is only set if state is not existing also in setObject
                  • (foxriver76) check that alias is of type state when adding subscribing pattern
                  • (Apollon77) Make sure error are checked correctly (Sentry IOBROKER-JS-CONTROLLER-1N)
                  • (bluefox) store for binary states the binary flag in objects
                  • (Apollon77) update Plugin system
                  • (Apollon77) update Sentry plugin to respect all options to disable reporting including new disableDataReporting flag ( will be integrated into Admin later)
                  • (Apollon77) make sure disabling instances while installation is running do not crash the controller (Sentry IOBROKER-JS-CONTROLLER-Z)
                  • (From Forum) prevent error on backup restore
                  • (Apollon77) Make sure error handing do not throw exception
                  • (Apollon77) Catch all errors when trying to store the File DB (Sentry IOBROKER-JS-CONTROLLER-14/15)
                  • (Apollon77) Make sure also edge cases on start adapter are handled correctly (Sentry IOBROKER-JS-CONTROLLER-12)
                  • (Apollon77) make sure to correctly create empty logfile on "delLogs" (Sentry IOBROKER-JS-CONTROLLER-Q)
                  • (foxriver76) make callback consistent when client has closed connection (Sentry IOBROKER-JS-CONTROLLER-R)
                  • (foxriver76) add missing Error for DB closed, which was used but undefined in tools.js
                  • (foxriver76) if buffer is of type object and not a buffer object log a warning - also bufferFrom null will also result in an error, prevent it (Sentry IOBROKER-JS-CONTROLLER-S)
                  • (foxriver76) in edge cases def can be an object, we also support this on extendObject
                  • (foxriver76) make sure stacktrace is there on validateId
                  • (foxriver76) avoid error on installAdapters function due to downloadyRetry (Sentry IOBROKER-JS-CONTROLLER-V)
                  • (Apollon77) make sure Logfile is rewritten with empty content (Sentry IOBROKER-JS-CONTROLLER-Q)
                  • (foxriver76) ensure backward compatibility with auto decrypt function
                  • (Apollon77) Re-allow states to be set with no val property but check that there is at least one property
                  • (foxriver76) also call enumerateAdapterDocs when deleting all instances
                  • (Apollon77) correct error handling for letsencrypt challenge server
                  • (foxriver76) fix default value of extend*Object
                  • (Apollon77) make sure system.config objects has correct type
                  • (Apollon77) make sure error cases are handled on zip file creation for objects (Sentry IOBROKER-JS-CONTROLLER-J)
                  • (Apollon77) make sure to check id when iterating over it (Sentry IOBROKER-WEB-3)
                  • (Apollon77) Adjust ID checking to allow numbers for non foreign id's for now but log warn
                  • (foxriver76/Apollon77) Adjust extendObject logic and only set state when state was not defined before
                  • (Apollon77) check that path is found before using it on rebuild CLI command (Sentry issue)
                  • (foxriver76) fix error on caught process exceptions
                  • (foxriver76) make sure that procs[id] is not undefined in some cases (Sentry IOBROKER-JS-CONTROLLER-E/G)
                  • (foxriver76/Apollon77) handle weird case where io-package.json from controller is not on normal place when getInstalledInfo is called (Sentry IOBROKER-JS-CONTROLLER-B/C/D/F/H)
                  • (foxriver76) fix bug for some cases where common.def is used on creation of foreign objects
                  • (Apollon77) make sure error cases are handled on zip file creation for objects (Sentry IOBROKER-JS-CONTROLLER-J)
                  • Several additional optimizations and fixes

                  Developer relevant DEPRECATIONS/WARNINGS

                  • (foxriver76) Do not allow access to adapter.states and adapter.objects anymore and add warning logs to deprecate the usage. js-controller 3.1+ will remove these methods. Please adjust your adapters
                  • (foxriver76) Verify that a proper object of type "meta" exists when files are accessed in the internal ioBroker storage and output deprecation logging, these actions will be declined in js-controller 3.1+
                  • (AlCalzone) Validate the object argument to set[Foreign]State[Changed] and log warnings, such invalid set commands will be declined with js-controller 3.1
                  • (Apollon77) Move deprecation of getMessage to next controller version (3.1+)
                  • (foxriver76/Apollon77) Validate that id in several state and object methods is of type string and log warnings
                  • (foxriver76) Add basic checking for obj.common properties including logging. Please check logs and fix them, such invalid objects will be declined with js-controller 3.1

                  Developer relevant new Features

                  • (bluefox/foxriver76) Automatically encrypt all config attributes that are listed in common.encryptedNative in io-package, introduce ADAPTER_AUTO_DECRYPT_NATIVE (see Documentation) Admin support added in Admin 4.0.9!
                  • (bluefox) Introduce new dependency field for io-package called common.globalDependencies to check for global dependencies (see Documentation). Admin support missing as of now!
                  • (AlCalzone) Add command iobroker debug adapter to start Node.js debug sessions for an adapter
                  • (bluefox) Add Controller messages to allow read and write controller base settings (iobroker.json); introduce adapter feature flag CONTROLLER_READWRITE_BASE_SETTINGS
                  • (foxriver76) Make decrypt and encrypt methods available in adapter object for developers. System secret is read automatically so only the value is passed to the function
                  • (AlCalzone) Add adapter exit code 13 (ADAPTER_REQUESTED_REBUILD) to also allow to tell js-controller to rebuild this adapter.
                  • (Apollon77) change logging for invalid readFile actions to debug because ca be triggered also by other cases then planned ones.
                  • (AlCalzone) Allow reverse lookup of exit codes (exit code -> error name)
                  • (bluefox) implement maintenance mode for adapter methods
                  • (AlCalzone) Add 'CONTROLLER_NPM_AUTO_REBUILD' to supported features

                  Developer relevant Optimizations and Fixes

                  • (Apollon77) Make sure that all places in adapters for states and objects that can return "really async" (e.g. because of DB communication) ALWAYS return async! (else callback !--count constructs can fail)
                  • (foxriver76) Also set default values of instanceObjects defined in io-package.json
                  • (bluefox) Improve extension mode for web extensions
                  • (foxriver76) Optimize extendObjects function of adapter.js (use from and ack)
                  • (foxriver76) Use from and ack when creating instanceObjects on installation of an instance
                  • (Apollon77) Fix potential crash where name is no string in some File object operations
                  • (foxriver76) Fix this.stop being undefined on daemon adapters
                  • (foxriver76) Also respect def values of io-package.json on automatic object recreation due to instance start
                  • (foxriver76) Respect state.from if provided on setState
                  • (Apollon77) Enhance checks for getObjectsView response
                  • (bluefox) add IDs to some log messages
                  • general dependency updates
                  • code style optimizations

                  Weitere Details zu den Änderungen und Bugfixes ist im Changelog einzusehen.

                  Generell ist zu testen, ob alles noch so funktioniert wie vorher auch. Das ist das wichtigste!


                  Wie Fehler melden?


                  Wer sich unsicher ist, ob ein Fehler vorliegt, sollte am besten hier im Thread das Problem beschreiben. So können wir alle versuchen, das Problem nachzuvollziehen und ggf. einzugrenzen.

                  Sobald ein Fehler auftritt der in einer Fehlermeldung oder einen Crash mit Fehlerdetails im Log oder auf Kommandozeile endet, dann dazu am besten direkt ein GitHub-Issue im js-controller Projekt öffnen und zusätzlich hier im Thread posten. Je detaillierter die Angaben im Issue sind (genaue Fehlermeldungen/Logs, Infos zur OS- und Node.js-Umgebung sowie genaue Schritte zur Reproduktion des Problems), umso schneller können wir Fehler einkreisen und beheben.

                  Ingo

                  PeoplesP Offline
                  PeoplesP Offline
                  Peoples
                  wrote on last edited by
                  #732

                  @apollon77 sagte in js-controller 3.0 jetzt im Latest!:
                  ...

                  • Der neue js-controller kann erkennen wenn es ein Node.js Update gab durch welches ggf, Adapter nicht mehr funktionieren und sollte diese automatisch reparieren (rebuilden). Wer also überlegt in dem Zuge des Tests seine Node.js Version anzuheben bitte mal explizit NICHT die übliche Anleitung nach dem Node-js update mit dem Rebuild befolgen sondern ioBroker einfach nach dem Node.js Update starten. Interessant ist ob sich alles selbst "heilt" 🙂
                    ....

                  Update wie beschrieben durchgeführt, Zigbee war veraltet beim ersten "Trying to rebuild it..." kein Erfolg danach kam dann ein zweiter Versuch welcher den Zigbee-Adapter wieder reparieren konnte.

                  Bis jetzt bei mir keine Probleme Top wie immer

                  Ich beantworte keine Fragen zu Themen via PN

                  apollon77A 1 Reply Last reply
                  0
                  • ThisoftT Thisoft

                    @apollon77 Sorry, war schon spät 😉 Also, ich hab zuerst von nodejs 8.x auf 12.16.3 updatet. Danach:

                    npm rebuild
                    

                    was mir mit der folgenden Ausgabe antwortet:

                    @types/node@12.7.1 /home/iobroker/node_modules/@types/node
                    

                    das kommt mir schonmal komisch vor...?

                    Dann reboot, danach "iobroker" update und "iobroker upgrade self"
                    Danach den Installationsfixer drüber laufen lassen. Der hat alles ohne Fehlermeldung ausgeführt.
                    Danach alle Adapter die zum Update anstanden über die Adminoberfläche updatet, u.a. auch den SQL-Adapter auf 1.12.3

                    Ja, und das wäre jetzt ertstmal der Stand. Hier nochmal ein Log vom SQL-Adapter mit Debug-Logging:

                    2020-05-03 11:11:57.617  - info: host.ioBroker-Ubuntu Restart adapter system.adapter.sql.0 because enabled
                    2020-05-03 11:11:58.636  - info: host.ioBroker-Ubuntu instance system.adapter.sql.0 started with pid 5436
                    2020-05-03 11:11:58.915  - debug: sql.0 (5436) Redis Objects: Use Redis connection: 0.0.0.0:9001
                    2020-05-03 11:11:58.933  - debug: sql.0 (5436) Objects client ready ... initialize now
                    2020-05-03 11:11:58.935  - debug: sql.0 (5436) Objects create System PubSub Client
                    2020-05-03 11:11:58.935  - debug: sql.0 (5436) Objects create User PubSub Client
                    2020-05-03 11:11:58.936  - debug: sql.0 (5436) Objects client initialize lua scripts
                    2020-05-03 11:11:58.946  - debug: sql.0 (5436) Objects connected to redis: 0.0.0.0:9001
                    2020-05-03 11:11:58.948  - debug: sql.0 (5436) objectDB connected
                    2020-05-03 11:11:58.948  - debug: sql.0 (5436) Redis States: Use Redis connection: 0.0.0.0:9000
                    2020-05-03 11:11:58.952  - debug: sql.0 (5436) States create User PubSub Client
                    2020-05-03 11:11:58.953  - debug: sql.0 (5436) States create System PubSub Client
                    2020-05-03 11:11:58.957  - debug: sql.0 (5436) States connected to redis: 0.0.0.0:9000
                    2020-05-03 11:11:58.958  - debug: sql.0 (5436) statesDB connected
                    2020-05-03 11:11:59.755  - debug: sql.0 (5436) Plugin sentry Initialize Plugin (enabled=true)
                    2020-05-03 11:11:59.801  - info: sql.0 (5436) starting. Version 1.12.3 in /opt/iobroker/node_modules/iobroker.sql, node: v12.16.3, js-controller: 3.0.20
                    2020-05-03 11:12:00.024  - info: host.ioBroker-Ubuntu instance system.adapter.weatherunderground.0 started with pid 5452
                    2020-05-03 11:12:00.072  - debug: sql.0 (5436) system.adapter.admin.0: logging true
                    2020-05-03 11:12:00.091  - error: sql.0 (5436) ConnectionError: Failed to connect to 192.168.137.13:1433 - Cannot call write after a stream was destroyed
                    

                    Hilft das weiter?

                    apollon77A Offline
                    apollon77A Offline
                    apollon77
                    wrote on last edited by
                    #733

                    @Thisoft ip ist korrekt? Port auch? Es sieht so aus als ob die dB Verbindung geschlossen wird. Sagt das logfile der Datenbank irgendwas?

                    Downgrade gern mal auf sql 1.9.x und schau was da passiert. Würde mich aber wundern wenn es da tut.

                    Beitrag hat geholfen? Votet rechts unten im Beitrag :-) https://paypal.me/Apollon77 / https://github.com/sponsors/Apollon77

                    • Debug-Log für Instanz einschalten? Admin -> Instanzen -> Expertenmodus -> Instanz aufklappen - Loglevel ändern
                    • Logfiles auf Platte /opt/iobroker/log/… nutzen, Admin schneidet Zeilen ab
                    ThisoftT 1 Reply Last reply
                    0
                    • PeoplesP Peoples

                      @apollon77 sagte in js-controller 3.0 jetzt im Latest!:
                      ...

                      • Der neue js-controller kann erkennen wenn es ein Node.js Update gab durch welches ggf, Adapter nicht mehr funktionieren und sollte diese automatisch reparieren (rebuilden). Wer also überlegt in dem Zuge des Tests seine Node.js Version anzuheben bitte mal explizit NICHT die übliche Anleitung nach dem Node-js update mit dem Rebuild befolgen sondern ioBroker einfach nach dem Node.js Update starten. Interessant ist ob sich alles selbst "heilt" 🙂
                        ....

                      Update wie beschrieben durchgeführt, Zigbee war veraltet beim ersten "Trying to rebuild it..." kein Erfolg danach kam dann ein zweiter Versuch welcher den Zigbee-Adapter wieder reparieren konnte.

                      Bis jetzt bei mir keine Probleme Top wie immer

                      apollon77A Offline
                      apollon77A Offline
                      apollon77
                      wrote on last edited by
                      #734

                      @Peoples Jupp. So soll es quasi sein.

                      Beitrag hat geholfen? Votet rechts unten im Beitrag :-) https://paypal.me/Apollon77 / https://github.com/sponsors/Apollon77

                      • Debug-Log für Instanz einschalten? Admin -> Instanzen -> Expertenmodus -> Instanz aufklappen - Loglevel ändern
                      • Logfiles auf Platte /opt/iobroker/log/… nutzen, Admin schneidet Zeilen ab
                      liv-in-skyL 1 Reply Last reply
                      0
                      • apollon77A apollon77

                        @Thisoft ip ist korrekt? Port auch? Es sieht so aus als ob die dB Verbindung geschlossen wird. Sagt das logfile der Datenbank irgendwas?

                        Downgrade gern mal auf sql 1.9.x und schau was da passiert. Würde mich aber wundern wenn es da tut.

                        ThisoftT Offline
                        ThisoftT Offline
                        Thisoft
                        wrote on last edited by
                        #735

                        @apollon77 Auch wenn Du's nicht erwartest, aber die Version 1.9.5 funktioniert. Was mir dabei allerdings auffällt, er führt beim Starten automatisch ein Rebuild aus:

                        2020-05-03 11:34:26.099 - info: host.ioBroker-Ubuntu Adapter system.adapter.sql.0 needs rebuild and will be restarted afterwards.
                        2020-05-03 11:34:26.099 - info: host.ioBroker-Ubuntu system.adapter.sql.0 will be rebuilt
                        2020-05-03 11:34:26.099 - warn: host.ioBroker-Ubuntu adapter "sql" seems to be installed for a different version of Node.js. Trying to rebuild it... 2 attempt
                        2020-05-03 11:34:26.100 - info: host.ioBroker-Ubuntu iobroker rebuild sql --install
                        2020-05-03 11:34:26.240 - info: host.ioBroker-Ubuntu iobroker npm-rebuild: npm install --loglevel error --production (System call) in "/opt/iobroker/node_modules/iobroker.sql"
                        2020-05-03 11:34:40.150 - info: host.ioBroker-Ubuntu iobroker npm-rebuild: ../deps/libmagic/src/fsmagic.c: In function ‘file_fsmagic’:../deps/libmagic/src/fsmagic.c:223:13: warning: In the GNU C Library, "major" is defined by . For historical compatibility, it is currently defined by as well, but we plan to remove this soon. To use "major", include directly. If you did not intend to use a system-defined macro "major", you should undefine it after including . COMMA, (long)major(sb->st_rdev), ^~~~~~~~~~~~~~~~~~~~~~~~~~~ ../deps/libmagic/src/fsmagic.c:224:13: warning: In the GNU C Library, "minor" is defined by . For historical compatibility, it is currently defined by as well, but we plan to remove this soon. To use "minor", include directly. If you did not intend to use a system-defined macro "minor", you should undefine it after including . (long)minor(sb->st_rdev)) == -1) ^~~~~~~~~~~~~~~~~~~~~~~~~~~ ../deps/libmagic/src/fsmagic.c:258:13: warning: In the GNU C Library, "major" is defined by . For historical compatibility, it is currently defined by as well, but we plan to remove this soon. To use "major", include directly. If you did not intend to use a system-defined macro "major", you should undefine it after including . COMMA, (long)major(sb->st_rdev), ^~~~~~~~~~~~~~~~~~~~~~~~~~~ ../deps/libmagic/src/fsmagic.c:259:13: warning: In the GNU C Library, "minor" is defined by . For historical compatibility, it is currently defined by as well, but we plan to remove this soon. To use "minor", include directly. If you did not intend to use a system-defined macro "minor", you should undefine it after including . (long)minor(sb->st_rdev)) == -1) ^~~~~~~~~~~~~~~~~~~~~~~~~~~ 
                        2020-05-03 11:34:45.056 - info: host.ioBroker-Ubuntu iobroker npm-rebuild: 
                        2020-05-03 11:34:45.057 - info: host.ioBroker-Ubuntu iobroker npm-rebuild: Rebuild sql done
                        2020-05-03 11:34:46.060 - info: host.ioBroker-Ubuntu iobroker npm-rebuild: exit 0
                        2020-05-03 11:34:46.082 - info: host.ioBroker-Ubuntu instance system.adapter.sql.0 started with pid 7239
                        

                        Wenn ich wieder auf die 1.12 gehe macht er das nicht - und es funktioniert eben auch nicht...

                        Übrigens, ich hab einen MS-SQLServer im Einsatz. Ist der vielleicht zu selten um genug getestet zu sein 😉 ?

                        22 HM-Geräte; PivCCU2 auf RasPi

                        ioBroker-Multihost; Ubuntu-Master auf Intel-Atom und 3 RasPi-Clients

                        apollon77A 1 Reply Last reply
                        0
                        • apollon77A apollon77

                          @Marty56 hm ... klingt nach einem issue für Vis wo sich GitHub freut.

                          M Offline
                          M Offline
                          Marty56
                          wrote on last edited by
                          #736

                          @apollon77 Würde ich natürlich machen, aber ich stehe mit dem VIS auf Kriegsfuß und blicke bis heute bei dem Tool nicht durch. Ich habe über die Zeit vermutlich irgendwo in den Verzeichnissen herumgefummelt und ich würde nicht ausschließen, dass ich da Mist gebaut habe und dass die Warnings drauf zurückzuführen sind.

                          HW:NUC (16 GB Ram)
                          OS: Debian Bullseye, Promox V7, node v16.x npm 8.19.3

                          1 Reply Last reply
                          0
                          • apollon77A apollon77

                            @Peoples Jupp. So soll es quasi sein.

                            liv-in-skyL Offline
                            liv-in-skyL Offline
                            liv-in-sky
                            wrote on last edited by
                            #737

                            @apollon77

                            vis alleine ist das nicht

                            habe auch von sayit meldungen - leider weiß ich nicht mehr, wo diese dateien herkommen (ob das standard dateien sind oder ob ich kopiert habe) - sayit habe ich schon ewig nicht mehr angesehen - die dateien liegen unter
                            Image 4.png

                            readFile	2020-05-03 16:03:35.104	warn	will not read this file (tts.userfiles/gong.mp3) in future versions: sayit.0 is not an object of type "meta"
                            sayit.0	2020-05-03 16:03:35.103	warn	(423) readFile will not read this file (tts.userfiles/gong.mp3) in future versions: sayit.0 is not an object of type "meta"
                            readFile	2020-05-03 16:03:35.100	warn	will not read this file (tts.userfiles/scifi.mp3) in future versions: sayit.0 is not an object of type "meta"
                            sayit.0	2020-05-03 16:03:35.064	warn	(423) readFile will not read this file (tts.userfiles/scifi.mp3) in future versions: sayit.0 is not an object of type "meta"
                            

                            muss bei jedem adapter ein git issue angelegt werden ?

                            nach einem gelösten Thread wäre es sinnvoll dies in der Überschrift des ersten Posts einzutragen [gelöst]-... Bitte benutzt das Voting rechts unten im Beitrag wenn er euch geholfen hat. Forum-Tools: PicPick https://picpick.app/en/download/ und ScreenToGif https://www.screentogif.com/downloads.html

                            crunchipC apollon77A 2 Replies Last reply
                            0
                            • liv-in-skyL liv-in-sky

                              @apollon77

                              vis alleine ist das nicht

                              habe auch von sayit meldungen - leider weiß ich nicht mehr, wo diese dateien herkommen (ob das standard dateien sind oder ob ich kopiert habe) - sayit habe ich schon ewig nicht mehr angesehen - die dateien liegen unter
                              Image 4.png

                              readFile	2020-05-03 16:03:35.104	warn	will not read this file (tts.userfiles/gong.mp3) in future versions: sayit.0 is not an object of type "meta"
                              sayit.0	2020-05-03 16:03:35.103	warn	(423) readFile will not read this file (tts.userfiles/gong.mp3) in future versions: sayit.0 is not an object of type "meta"
                              readFile	2020-05-03 16:03:35.100	warn	will not read this file (tts.userfiles/scifi.mp3) in future versions: sayit.0 is not an object of type "meta"
                              sayit.0	2020-05-03 16:03:35.064	warn	(423) readFile will not read this file (tts.userfiles/scifi.mp3) in future versions: sayit.0 is not an object of type "meta"
                              

                              muss bei jedem adapter ein git issue angelegt werden ?

                              crunchipC Away
                              crunchipC Away
                              crunchip
                              Forum Testing Most Active
                              wrote on last edited by
                              #738

                              @liv-in-sky hehe, ich schon wieder
                              scheinbar standard Dateien, die habe ich auch, habe sie auch bereits gelöscht und werden wieder angelegt

                              umgestiegen von Proxmox auf Unraid

                              liv-in-skyL 1 Reply Last reply
                              0
                              • crunchipC crunchip

                                @liv-in-sky hehe, ich schon wieder
                                scheinbar standard Dateien, die habe ich auch, habe sie auch bereits gelöscht und werden wieder angelegt

                                liv-in-skyL Offline
                                liv-in-skyL Offline
                                liv-in-sky
                                wrote on last edited by
                                #739

                                @crunchip bekommst du die warnungen auch im log ?

                                nach einem gelösten Thread wäre es sinnvoll dies in der Überschrift des ersten Posts einzutragen [gelöst]-... Bitte benutzt das Voting rechts unten im Beitrag wenn er euch geholfen hat. Forum-Tools: PicPick https://picpick.app/en/download/ und ScreenToGif https://www.screentogif.com/downloads.html

                                crunchipC 1 Reply Last reply
                                0
                                • liv-in-skyL liv-in-sky

                                  @crunchip bekommst du die warnungen auch im log ?

                                  crunchipC Away
                                  crunchipC Away
                                  crunchip
                                  Forum Testing Most Active
                                  wrote on last edited by
                                  #740

                                  @liv-in-sky ja

                                  umgestiegen von Proxmox auf Unraid

                                  liv-in-skyL 1 Reply Last reply
                                  0
                                  • crunchipC crunchip

                                    @liv-in-sky ja

                                    liv-in-skyL Offline
                                    liv-in-skyL Offline
                                    liv-in-sky
                                    wrote on last edited by
                                    #741

                                    @crunchip diese files finde ich wenigstens - die anderen von weiter oben finde ich nicht mal - da scheint tatsächlich irgendwo in der vis noch etwas altes zu stehen ???

                                    nach einem gelösten Thread wäre es sinnvoll dies in der Überschrift des ersten Posts einzutragen [gelöst]-... Bitte benutzt das Voting rechts unten im Beitrag wenn er euch geholfen hat. Forum-Tools: PicPick https://picpick.app/en/download/ und ScreenToGif https://www.screentogif.com/downloads.html

                                    crunchipC apollon77A 2 Replies Last reply
                                    0
                                    • liv-in-skyL liv-in-sky

                                      @crunchip diese files finde ich wenigstens - die anderen von weiter oben finde ich nicht mal - da scheint tatsächlich irgendwo in der vis noch etwas altes zu stehen ???

                                      crunchipC Away
                                      crunchipC Away
                                      crunchip
                                      Forum Testing Most Active
                                      wrote on last edited by
                                      #742

                                      @liv-in-sky welche meinst du?

                                      umgestiegen von Proxmox auf Unraid

                                      liv-in-skyL 1 Reply Last reply
                                      0
                                      • crunchipC crunchip

                                        @liv-in-sky welche meinst du?

                                        liv-in-skyL Offline
                                        liv-in-skyL Offline
                                        liv-in-sky
                                        wrote on last edited by liv-in-sky
                                        #743

                                        @crunchip

                                        https://forum.iobroker.net/post/424007

                                        nach einem gelösten Thread wäre es sinnvoll dies in der Überschrift des ersten Posts einzutragen [gelöst]-... Bitte benutzt das Voting rechts unten im Beitrag wenn er euch geholfen hat. Forum-Tools: PicPick https://picpick.app/en/download/ und ScreenToGif https://www.screentogif.com/downloads.html

                                        crunchipC 1 Reply Last reply
                                        0
                                        • liv-in-skyL liv-in-sky

                                          @crunchip

                                          https://forum.iobroker.net/post/424007

                                          crunchipC Away
                                          crunchipC Away
                                          crunchip
                                          Forum Testing Most Active
                                          wrote on last edited by crunchip
                                          #744

                                          @liv-in-sky hat ich doch direkt ein post darunter geschrieben,
                                          ah...editiert, ...
                                          dazu hab ich leider keine Idee

                                          umgestiegen von Proxmox auf Unraid

                                          1 Reply Last reply
                                          0
                                          Reply
                                          • Reply as topic
                                          Log in to reply
                                          • Oldest to Newest
                                          • Newest to Oldest
                                          • Most Votes


                                          Support us

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

                                          168

                                          Online

                                          32.4k

                                          Users

                                          81.3k

                                          Topics

                                          1.3m

                                          Posts
                                          Community
                                          Impressum | Datenschutz-Bestimmungen | Nutzungsbedingungen
                                          ioBroker Community 2014-2025
                                          logo
                                          • Login

                                          • Don't have an account? Register

                                          • Login or register to search.
                                          • First post
                                            Last post
                                          0
                                          • Recent
                                          • Tags
                                          • Unread 0
                                          • Categories
                                          • Unreplied
                                          • Popular
                                          • GitHub
                                          • Docu
                                          • Hilfe