Navigation

    Logo
    • Register
    • Login
    • Search
    • Recent
    • Tags
    • Unread
    • Categories
    • Unreplied
    • Popular
    • GitHub
    • Docu
    • Hilfe
    1. Home
    2. Deutsch
    3. ioBroker Allgemein
    4. js-controller 3.2 jetzt im Latest!

    NEWS

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

    • ioBroker goes Matter ... Matter Adapter in Stable

    • Monatsrückblick - April 2025

    js-controller 3.2 jetzt im Latest!

    This topic has been deleted. Only users with topic management privileges can see it.
    • K
      Kueppert @apollon77 last edited by Kueppert

      @apollon77 passt hier ggf nicht ganz hin, aber ich hab nen Syslog-Server auf meiner DS918+ laufen. Proxmox sendet da schon fein hin - in der json aber sind so viele Einstellungen, die ich nicht bewerten kann...
      Hab folgendes in der json hinterlegt - aber auf meiner Syno kommt nix an? path_comment weiß ich schon nicht was das ist? Bei Proxmox musste ich mehr oder weniger nur IP, und Port für den Server angeben, wohin gesendet wird...

      Hab auf IETF und Post 520 gewechselt, mal schauen ob was ankommt. Den Port 514 nutze ich für Proxmox

              "type": "syslog",
              "enabled": true,
              "host": "192.168.178.31",
              "host_comment": "The host running syslogd, defaults to localhost.",
      	"port": "520",
              "port_comment": "The port on the host that syslog is running on, defaults to syslogd's default port(514/UDP).",
      	"pid": "0",
              "protocol": "udp4",
              "protocol_comment": "The network protocol to log over (e.g. tcp4, udp4, unix, unix-connect, etc).",
      	"path": "",
              "path_comment": "The path to the syslog dgram socket (i.e. /dev/log or /var/run/syslog for OS X).",
              "facility_comment": "Syslog facility to use (Default: local0).",
              "localhost": "iobroker",
              "localhost_comment": "Host to indicate that log messages are coming from (Default: localhost).",
              "sysLogType_comment": "The type of the syslog protocol to use (Default: BSD).",
              "app_name_comment": "The name of the application (Default: process.title).",
              "eol_comment": "The end of line character to be added to the end of the message (Default: Message without modifications)."
      
      apollon77 1 Reply Last reply Reply Quote 0
      • Feuersturm
        Feuersturm @apollon77 last edited by

        @apollon77 Ich kann bestätigen, dass nach dem einfügen des Codeschnipsels in der iobroker.json für seq die Log Infos direkt in Seq landen 🙂

        1 Reply Last reply Reply Quote 0
        • apollon77
          apollon77 @Kueppert last edited by

          @kueppert adde mal ein "port" noch mit dem echten Wert. DIe "*_comment" beschreibeen die Felder - daher ist da ein text drin ... alles was ein _comment hat kannauch als "" hinterlegt werden

          K 1 Reply Last reply Reply Quote 0
          • K
            Kueppert @apollon77 last edited by

            @apollon77 hab IETF in die json manuell hinzugefügt gehabt mit "sysLogType": "IETF" ...danach ließ sich der Broker nicht mehr starten...hab die Zeile wieder entfernt.
            Hab meine Konfig gerade etwas umgebaut und diesen Winston Syslog unter /opt/iobroker nachinstalliert...ich schaue jetzt mal. WIll hier nicht so oft spamen und was nachträglich ändern ^^

            apollon77 1 Reply Last reply Reply Quote 0
            • apollon77
              apollon77 @Kueppert last edited by

              @kueppert also ich hab nicht mehr gesetzt als Du oben ... aber hab auch nen "klassischen udp syslog" und mach es nicht per synology ...

              K 1 Reply Last reply Reply Quote 1
              • K
                Kueppert @apollon77 last edited by

                @apollon77 hast du denn diesen npm install winston-syslog installiert unter /opt/iobroker? Ich glaube ich mach morgen weiter...2 EInträge hab ich im Protokoll-Server gefunden, die sind aber schon was her... ich glaub ich versuche morgen weiter, bevor ich mein Prod-System schrotte

                apollon77 1 Reply Last reply Reply Quote 0
                • apollon77
                  apollon77 @Kueppert last edited by

                  @kueppert winston-syslog ist eine der optionalen deps die an sich mit installiert werden ... In dem Zuge kommen auch immer diese "unix_dgram" Fehler die man so kennt ... schau mal ob in node_modules bzw node_modules/iobroker.js-controller/node_modules ein winston-syslog Verzeichnis existiert. ggf dort mal "npm i" machen

                  K 1 Reply Last reply Reply Quote 0
                  • K
                    Kueppert @apollon77 last edited by Kueppert

                    @apollon77 ok...ich habs eben schon installiert 😐 hab ich hier in einem anderen Beitrag aus 2019 gelesen...schlimm?

                    hab jetzt auch was im Syslog auf der Syno bekommen 😄 sieht nicht schön aus, aber ist was da (ist ein HTML-Export, damit man was lesen kann)
                    ccfe8496-4072-4e4f-b571-c275b86b3e86-image.png

                    dieser hier: https://forum.iobroker.net/topic/3863/iobroker-logging-zu-syslog/22

                    apollon77 1 Reply Last reply Reply Quote 0
                    • apollon77
                      apollon77 @Kueppert last edited by

                      @kueppert sagte in js-controller 3.2 jetzt im Latest!:

                      @apollon77 ok...ich habs eben schon installiert hab ich hier in einem anderen Beitrag aus 2019 gelesen...schlimm?

                      alles gut 🙂

                      M 1 Reply Last reply Reply Quote 1
                      • M
                        Marty56 @apollon77 last edited by Marty56

                        @apollon77 Ich habe die 3.2.16 installiert und bekomme jetzt im Log im Millisekunden Abstand folgende Meldungen.

                        2021-02-12 23:58:57.994 - info: hm-rpc.0 (COMPACT) setState not processed because States database not connected
                        2021-02-12 23:58:57.994 - info: hm-rpc.0 (COMPACT) setState not processed because States database not connected
                        2021-02-12 23:58:57.994 - info: hm-rpc.0 (COMPACT) setState not processed because States database not connected
                        2021-02-12 23:58:57.996 - info: hm-rpc.0 (COMPACT) setState not processed because States database not connected
                        2021-02-12 23:59:06.957 - info: hm-rpc.0 (COMPACT) setState not processed because States database not connected
                        

                        Diese Infos lassen sich auch nicht abstellen, in dem ich bei der hm-rpc.0 Instanz das Loggen auf "warn" oder höher stellen.

                        apollon77 1 Reply Last reply Reply Quote 0
                        • apollon77
                          apollon77 @Marty56 last edited by

                          @marty56 dann bitte sicherstellen das du die aktuellste hm-rpc hast und am besten einmal die ganze Compact Gruppe bzw. den Controller neu starten.

                          Dann am besten nach restart mal hm-Rpc stoppen und neu starten und dann schauen ob es wieder passiert. Wenn ja GitHub issue beim Adapter anlegen.

                          M 1 Reply Last reply Reply Quote 0
                          • M
                            Marty56 @apollon77 last edited by

                            @apollon77
                            Ich habe die allerneuste Version.
                            Was letztlich geholfen hat, war iobroker restart.
                            Das Verhalten trat auf, als ich meinen Linux Server neu gestartet hatte.

                            Ich vermute, dass das Timing beim Laden der Adapter dann etwas anders ist, und der hm-rpc sich merkt, dass vielleicht die redis Datenbank noch nicht gestartet war.

                            apollon77 1 Reply Last reply Reply Quote 0
                            • apollon77
                              apollon77 @Marty56 last edited by

                              @marty56 um da aus den Annahmen rauszukommen schau doch mal im logfile wann es genau angefangen hat.

                              1 Reply Last reply Reply Quote 0
                              • T
                                Turbo last edited by

                                Kurze Rückmeldung von mir:

                                Bin jetzt seit 3 Tagen auch auf 3.2.16 - bisher alles gut, mein Lets Encrypt funktioniert auch endlich wieder 💪

                                Good Job 👍

                                1 Reply Last reply Reply Quote 2
                                • D
                                  darkiop Most Active last edited by

                                  Hallo zusammen, ich war jetzt ein paar Tage Stabil auf der 3.2.16 und wollte heute meinen geplanten Umzug vom LXC Container in eine VM durchführen (spart mir einen Raspi da ich die Smartmeter per USB in der VM dann durchreiche).

                                  Restore wie gewohnt per iobroker restore 0 (schon x-mal gemacht).

                                  Allerdings bekomme ich beim Starten jedes einzelnen Adapters diese Warnungen (der Port auf localhost wechselt allerdings):

                                  2021-02-13 14:18:07.542  - warn: host.pve-vm-iobroker Objects 127.0.0.1:38656 Error from InMemDB: Error: client NOT SUPPORTED
                                  2021-02-13 14:18:07.600  - warn: host.pve-vm-iobroker Objects 127.0.0.1:38658 Error from InMemDB: Error: client NOT SUPPORTED
                                  2021-02-13 14:18:07.600  - warn: host.pve-vm-iobroker Objects 127.0.0.1:38660 Error from InMemDB: Error: client NOT SUPPORTED
                                  

                                  Das System läuft auf objects:file / states:redis und der Redis-Server läuft aktuell noch in dem ursprünglichen Container (die Warnungen gibt es aber auch wenn ich ihn lokal in der VM installiere).

                                  ioBroker Config:

                                  Multihost discovery server: disabled
                                  Discovery authentication:   enabled
                                  Objects:                    file on 0.0.0.0
                                  States:                     redis on 10.4.1.5
                                  

                                  Redis läuft auf 10.4.1.5 -> Port 6379

                                  nmap -p- 10.4.1.5
                                  Starting Nmap 7.70 ( https://nmap.org ) at 2021-02-13 14:26 CET
                                  Nmap scan report for 10.4.1.5
                                  Host is up (0.00012s latency).
                                  Not shown: 65528 closed ports
                                  PORT      STATE SERVICE
                                  22/tcp    open  ssh
                                  111/tcp   open  rpcbind
                                  139/tcp   open  netbios-ssn
                                  445/tcp   open  microsoft-ds
                                  6379/tcp  open  redis
                                  37043/tcp open  unknown
                                  43699/tcp open  unknown
                                  

                                  Hat jemand eine Idee wo ich ansetzen muss?

                                  apollon77 1 Reply Last reply Reply Quote 0
                                  • apollon77
                                    apollon77 @darkiop last edited by apollon77

                                    @darkiop ja, dein "Objects master" (host.pve-vm-iobroker) läuft nicht auf 3.2.x Master updaten bitte

                                    D 1 Reply Last reply Reply Quote 1
                                    • D
                                      darkiop Most Active @apollon77 last edited by

                                      @apollon77 Ok, Fehler 40 mal wieder ... 🙂 Danke dir!!

                                      1 Reply Last reply Reply Quote 1
                                      • crunchip
                                        crunchip Forum Testing Most Active @apollon77 last edited by

                                        @apollon77 im Zusammenhang mit dem Thread JsonL Datenbank, hab ich vorhin beim Auslesen der js.controller main.js das log per seq angesehen und verglichen mit dem admin log, da ist mir z.b aufgefallen, das diese error Zeile im seq gar nicht auftaucht

                                        2021-02-14 20:50:26.752 - info: host.IoBroker All instances are stopped.
                                        2021-02-14 20:50:26.800 - info: host.IoBroker instance system.adapter.zigbee.0 terminated with code 156 (START_IMMEDIATELY_AFTER_STOP)
                                        2021-02-14 20:50:26.801 - info: host.IoBroker All instances are stopped.
                                        2021-02-14 20:50:26.911 - info: host.IoBroker terminated
                                        2021-02-14 20:50:33.477 - error: host.IoBroker No connection to databases possible, restart
                                        2021-02-14 20:50:33.481 - info: host.IoBroker iobroker _restart
                                        2021-02-14 20:50:33.829 - info: host.IoBroker iobroker Starting node restart.js
                                        2021-02-14 20:50:35.430 - info: host.IoBroker iobroker.js-controller version 3.2.16 js-controller starting
                                        2021-02-14 20:50:35.435 - info: host.IoBroker Copyright (c) 2014-2021 bluefox, 2014 hobbyquaker
                                        2021-02-14 20:50:35.436 - info: host.IoBroker hostname: IoBroker, node: v12.20.1
                                        2021-02-14 20:50:35.437 - info: host.IoBroker ip addresses: 10.1.1.10 fe80::d428:e1ff:fe76:b484
                                        2021-02-14 20:50:49.675 - info: host.IoBroker connected to Objects and States
                                        2021-02-14 20:50:50.465 - info: host.IoBroker added notifications configuration of host
                                        2021-02-14 20:50:51.338 - info: host.IoBroker 126 instances found
                                        2021-02-14 20:50:51.424 - info: host.IoBroker starting 76 instances
                                        2021-02-14 20:50:51.742 - info: host.IoBroker instance system.adapter.admin.0 started with pid 9986
                                        2021-02-14 20:50:54.090 - info: admin.0 (9986) starting. Version 4.2.1 in /opt/iobroker/node_modules/iobroker.admin, node: v12.20.1, js-controller: 3.2.16
                                        2021-02-14 20:50:54.133 - info: admin.0 (9986) requesting all states
                                        2021-02-14 20:50:54.135 - info: admin.0 (9986) requesting all objects
                                        
                                        apollon77 1 Reply Last reply Reply Quote 0
                                        • apollon77
                                          apollon77 @crunchip last edited by

                                          @crunchip sagte in js-controller 3.2 jetzt im Latest!:

                                          2021-02-14 20:50:33.477 - error: host.IoBroker No connection to databases possible, restart

                                          Du meinst die?

                                          Strange das die kommt - die kommt "soooo spät" das schon alles andere (wie seq) weg ist ... also ignore

                                          crunchip 1 Reply Last reply Reply Quote 0
                                          • crunchip
                                            crunchip Forum Testing Most Active @apollon77 last edited by

                                            @apollon77 ok, hab mal weiter geblättert im Admin log, 4 min früher,
                                            ein Auszug,
                                            jedochch seh im seq keine einzige Meldung... no connection to databases possible
                                            muss mir das mal in Ruhe genauer ansehen

                                            2021-02-14 20:46:12.665 - info: host.IoBroker iobroker Starting node restart.js
                                            2021-02-14 20:46:13.884 - info: host.IoBroker iobroker.js-controller version 3.2.16 js-controller starting
                                            2021-02-14 20:46:13.900 - info: host.IoBroker Copyright (c) 2014-2021 bluefox, 2014 hobbyquaker
                                            2021-02-14 20:46:13.903 - info: host.IoBroker hostname: IoBroker, node: v12.20.1
                                            2021-02-14 20:46:13.906 - info: host.IoBroker ip addresses: 10.1.1.10 fe80::d428:e1ff:fe76:b484
                                            2021-02-14 20:46:38.051 - info: host.IoBroker-Server Error inMem-objects listening on port 9001: Error: listen EADDRINUSE: address already in use 127.0.0.1:9001
                                            2021-02-14 20:46:40.589 - info: socketio.0 (6039) <==Disconnect system.user.admin from ::ffff:10.1.20.164 vis.0
                                            2021-02-14 20:46:43.948 - error: host.IoBroker No connection to databases possible, restart
                                            2021-02-14 20:46:43.952 - info: host.IoBroker iobroker _restart
                                            2021-02-14 20:46:44.731 - info: host.IoBroker iobroker Starting node restart.js
                                            2021-02-14 20:46:45.502 - warn: weatherunderground.0 (6739) force terminate
                                            2021-02-14 20:46:46.565 - info: host.IoBroker iobroker.js-controller version 3.2.16 js-controller starting
                                            2021-02-14 20:46:46.575 - info: host.IoBroker Copyright (c) 2014-2021 bluefox, 2014 hobbyquaker
                                            2021-02-14 20:46:46.577 - info: host.IoBroker hostname: IoBroker, node: v12.20.1
                                            2021-02-14 20:46:46.579 - info: host.IoBroker ip addresses: 10.1.1.10 fe80::d428:e1ff:fe76:b484
                                            2021-02-14 20:46:46.733 - info: host.IoBroker instance system.adapter.weatherunderground.0 terminated with code 11 (ADAPTER_REQUESTED_TERMINATION)
                                            2021-02-14 20:47:14.474 - info: host.IoBroker-Server Error inMem-objects listening on port 9001: Error: listen EADDRINUSE: address already in use 127.0.0.1:9001
                                            2021-02-14 20:47:16.603 - error: host.IoBroker No connection to databases possible, restart
                                            2021-02-14 20:47:16.631 - info: host.IoBroker iobroker _restart
                                            2021-02-14 20:47:17.349 - info: host.IoBroker iobroker Starting node restart.js
                                            2021-02-14 20:47:18.893 - info: host.IoBroker iobroker.js-controller version 3.2.16 js-controller starting
                                            2021-02-14 20:47:18.904 - info: host.IoBroker Copyright (c) 2014-2021 bluefox, 2014 hobbyquaker
                                            2021-02-14 20:47:18.905 - info: host.IoBroker hostname: IoBroker, node: v12.20.1
                                            2021-02-14 20:47:18.907 - info: host.IoBroker ip addresses: 10.1.1.10 fe80::d428:e1ff:fe76:b484
                                            2021-02-14 20:47:26.057 - error: unifi.0 (6522) Error: Login required. Check username and password.
                                            2021-02-14 20:47:43.588 - info: host.IoBroker-Server Error inMem-objects listening on port 9001: Error: listen EADDRINUSE: address already in use 127.0.0.1:9001
                                            2021-02-14 20:47:48.937 - error: host.IoBroker No connection to databases possible, restart
                                            2021-02-14 20:47:48.942 - info: host.IoBroker iobroker _restart
                                            2021-02-14 20:47:49.723 - info: host.IoBroker iobroker Starting node restart.js
                                            2021-02-14 20:47:51.400 - info: host.IoBroker iobroker.js-controller version 3.2.16 js-controller starting
                                            2021-02-14 20:47:51.407 - info: host.IoBroker Copyright (c) 2014-2021 bluefox, 2014 hobbyquaker
                                            2021-02-14 20:47:51.409 - info: host.IoBroker hostname: IoBroker, node: v12.20.1
                                            2021-02-14 20:47:51.411 - info: host.IoBroker ip addresses: 10.1.1.10 fe80::d428:e1ff:fe76:b484
                                            2021-02-14 20:48:00.096 - info: host.IoBroker instance system.adapter.dwd.0 started with pid 9005
                                            2021-02-14 20:48:11.651 - info: host.IoBroker instance system.adapter.dwd.0 terminated with code 11 (ADAPTER_REQUESTED_TERMINATION)
                                            2021-02-14 20:48:15.562 - info: host.IoBroker-Server Error inMem-objects listening on port 9001: Error: listen EADDRINUSE: address already in use 127.0.0.1:9001
                                            2021-02-14 20:48:21.440 - error: host.IoBroker No connection to databases possible, restart
                                            2021-02-14 20:48:21.460 - info: host.IoBroker iobroker _restart
                                            2021-02-14 20:48:22.477 - info: host.IoBroker iobroker Starting node restart.js
                                            2021-02-14 20:48:24.365 - info: host.IoBroker iobroker.js-controller version 3.2.16 js-controller starting
                                            2021-02-14 20:48:24.380 - info: host.IoBroker Copyright (c) 2014-2021 bluefox, 2014 hobbyquaker
                                            2021-02-14 20:48:24.387 - info: host.IoBroker hostname: IoBroker, node: v12.20.1
                                            2021-02-14 20:48:24.389 - info: host.IoBroker ip addresses: 10.1.1.10 fe80::d428:e1ff:fe76:b484
                                            2021-02-14 20:48:50.992 - info: host.IoBroker-Server Error inMem-objects listening on port 9001: Error: listen EADDRINUSE: address already in use 127.0.0.1:9001
                                            2021-02-14 20:48:53.409 - info: host.IoBroker instance system.adapter.coronavirus-statistics.0 terminated with code 11 (ADAPTER_REQUESTED_TERMINATION)
                                            2021-02-14 20:48:54.429 - error: host.IoBroker No connection to databases possible, restart
                                            2021-02-14 20:48:54.433 - info: host.IoBroker iobroker _restart
                                            2021-02-14 20:48:55.012 - info: host.IoBroker iobroker Starting node restart.js
                                            2021-02-14 20:48:56.599 - info: host.IoBroker iobroker.js-controller version 3.2.16 js-controller starting
                                            2021-02-14 20:48:56.607 - info: host.IoBroker Copyright (c) 2014-2021 bluefox, 2014 hobbyquaker
                                            2021-02-14 20:48:56.609 - info: host.IoBroker hostname: IoBroker, node: v12.20.1
                                            2021-02-14 20:48:56.610 - info: host.IoBroker ip addresses: 10.1.1.10 fe80::d428:e1ff:fe76:b484
                                            2021-02-14 20:49:24.274 - info: host.IoBroker-Server Error inMem-objects listening on port 9001: Error: listen EADDRINUSE: address already in use 127.0.0.1:9001
                                            2021-02-14 20:49:25.745 - info: javascript.0 (5438) script.js.common.System.Statusmeldungen.Status_Lichtzählen1: Auslösender Schalter: sonoff.0.Kueche.POWER: true
                                            2021-02-14 20:49:25.790 - info: javascript.0 (5438) script.js.common.System.Statusmeldungen.Status_Lichtzählen1: Text: Buerolicht ,Esstisch ,Kueche ,Sofa
                                            2021-02-14 20:49:25.792 - info: javascript.0 (5438) script.js.common.System.Statusmeldungen.Status_Lichtzählen1: Anzahl Lichter: 19 # davon Lichter an: 4
                                            2021-02-14 20:49:26.628 - error: host.IoBroker No connection to databases possible, restart
                                            2021-02-14 20:49:26.632 - info: host.IoBroker iobroker _restart
                                            2021-02-14 20:49:27.116 - info: host.IoBroker iobroker Starting node restart.js
                                            2021-02-14 20:49:28.726 - info: host.IoBroker iobroker.js-controller version 3.2.16 js-controller starting
                                            2021-02-14 20:49:28.732 - info: host.IoBroker Copyright (c) 2014-2021 bluefox, 2014 hobbyquaker
                                            2021-02-14 20:49:28.733 - info: host.IoBroker hostname: IoBroker, node: v12.20.1
                                            2021-02-14 20:49:28.735 - info: host.IoBroker ip addresses: 10.1.1.10 fe80::d428:e1ff:fe76:b484
                                            2021-02-14 20:49:48.141 - info: host.IoBroker-Server Error inMem-objects listening on port 9001: Error: listen EADDRINUSE: address already in use 127.0.0.1:9001
                                            2021-02-14 20:49:58.750 - error: host.IoBroker No connection to databases possible, restart
                                            2021-02-14 20:49:58.754 - info: host.IoBroker iobroker _restart
                                            2021-02-14 20:49:59.363 - info: host.IoBroker iobroker Starting node restart.js
                                            
                                            apollon77 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

                                            428
                                            Online

                                            31.6k
                                            Users

                                            79.5k
                                            Topics

                                            1.3m
                                            Posts

                                            70
                                            575
                                            98248
                                            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