Navigation

    Logo
    • Register
    • Login
    • Search
    • Recent
    • Tags
    • Unread
    • Categories
    • Unreplied
    • Popular
    • GitHub
    • Docu
    • Hilfe
    1. Home
    2. Deutsch
    3. ioBroker Allgemein
    4. ioBroker Neustarts - States database error: read ECONNRESET

    NEWS

    • Neuer Blog: Fotos und Eindrücke aus Solingen

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

    • ioBroker goes Matter ... Matter Adapter in Stable

    ioBroker Neustarts - States database error: read ECONNRESET

    This topic has been deleted. Only users with topic management privileges can see it.
    • C
      civi last edited by

      Guten Morgen,

      seit dieser Nacht (also ohne, dass ich irgend etwas am System geändert habe) startet der ioBroker-Prozess immer wieder neu.

      Mein System:
      aktuelles Ubuntu 20.04.2 als Proxmox Container mit 4GB Ram
      node Version 12.22.5
      npm Version 6.14.14

      Ich habe versucht, fast alle genutzten Adapter zu deaktivieren, anscheinend ändert das aber nichts. Die Fehlermeldungen im Log sind jetzt noch:

      2021-08-14 08:15:49.900  - info: host.6ad907f78bd1 iobroker.js-controller version 3.3.15 js-controller starting
      2021-08-14 08:15:49.901  - info: host.6ad907f78bd1 Copyright (c) 2014-2021 bluefox, 2014 hobbyquaker
      2021-08-14 08:15:49.901  - info: host.6ad907f78bd1 hostname: 6ad907f78bd1, node: v12.22.5
      2021-08-14 08:15:49.901  - info: host.6ad907f78bd1 ip addresses: 192.168.1.12 
      2021-08-14 08:15:50.352  - info: host.6ad907f78bd1 connected to Objects and States
      2021-08-14 08:15:50.465  - info: host.6ad907f78bd1 added notifications configuration of host
      2021-08-14 08:15:50.730  - info: host.6ad907f78bd1 66 instances found
      2021-08-14 08:15:50.762  - info: host.6ad907f78bd1 starting 14 instances
      2021-08-14 08:15:50.824  - info: host.6ad907f78bd1 instance system.adapter.admin.0 started with pid 3475
      2021-08-14 08:15:51.392  - info: admin.0 (3475) starting. Version 5.1.23 in /opt/iobroker/node_modules/iobroker.admin, node: v12.22.5, js-controller: 3.3.15
      2021-08-14 08:15:51.405  - info: admin.0 (3475) requesting all states
      2021-08-14 08:15:51.405  - info: admin.0 (3475) requesting all objects
      2021-08-14 08:15:52.163  - info: admin.0 (3475) received all objects
      2021-08-14 08:15:52.282  - info: admin.0 (3475) http server listening on port 8081
      2021-08-14 08:15:52.283  - info: admin.0 (3475) Use link "http://localhost:8081" to configure.
      2021-08-14 08:15:54.846  - info: host.6ad907f78bd1 instance system.adapter.tr-064.0 started with pid 3494
      2021-08-14 08:15:55.427  - info: tr-064.0 (3494) starting. Version 4.2.14 in /opt/iobroker/node_modules/iobroker.tr-064, node: v12.22.5, js-controller: 3.3.15
      2021-08-14 08:15:58.809  - info: host.6ad907f78bd1 instance system.adapter.web.0 started with pid 3512
      2021-08-14 08:15:59.300  - info: web.0 (3512) starting. Version 3.4.7 in /opt/iobroker/node_modules/iobroker.web, node: v12.22.5, js-controller: 3.3.15
      2021-08-14 08:15:59.408  - error: web.0 (3512) Please specify the email address and domains to use Let's Encrypt certificates! We reuse old certificates
      2021-08-14 08:15:59.441  - info: web.0 (3512) Secure socket.io server listening on port 8082
      2021-08-14 08:15:59.442  - info: web.0 (3512) https server listening on port 8082
      2021-08-14 08:15:59.495  - info: web.0 (3512) ==>Connected system.user.admin from ::ffff:192.168.1.21
      2021-08-14 08:16:35.976  - error: web.0 (3512) States database error: read ECONNRESET
      2021-08-14 08:16:35.977  - error: admin.0 (3475) States database error: read ECONNRESET
      2021-08-14 08:16:35.979  - error: web.0 (3512) Objects database error: read ECONNRESET
      2021-08-14 08:16:35.977  - error: admin.0 (3475) Objects database error: read ECONNRESET
      2021-08-14 08:16:35.980  - info: admin.0 (3475) terminating http server on port 8081
      2021-08-14 08:16:35.980  - error: tr-064.0 (3494) States database error: read ECONNRESET
      2021-08-14 08:16:35.979  - info: web.0 (3512) terminated https server on port 8082
      2021-08-14 08:16:37.481  - info: admin.0 (3475) Terminated (START_IMMEDIATELY_AFTER_STOP): Without reason
      2021-08-14 08:16:37.481  - info: web.0 (3512) Terminated (START_IMMEDIATELY_AFTER_STOP): Without reason
      2021-08-14 08:16:37.481  - info: tr-064.0 (3494) Terminated (START_IMMEDIATELY_AFTER_STOP): Without reason
      2021-08-14 08:16:40.980  - error: admin.0 (3475) Objects database error: connect ECONNREFUSED 0.0.0.0:9001
      2021-08-14 08:16:40.982  - error: tr-064.0 (3494) Objects database error: connect ECONNREFUSED 0.0.0.0:9001
      2021-08-14 08:16:40.983  - warn: web.0 (3512) get state error: DB closed
      2021-08-14 08:16:41.415  - info: host.6ad907f78bd1 iobroker.js-controller version 3.3.15 js-controller starting
      2021-08-14 08:16:41.416  - info: host.6ad907f78bd1 Copyright (c) 2014-2021 bluefox, 2014 hobbyquaker
      2021-08-14 08:16:41.416  - info: host.6ad907f78bd1 hostname: 6ad907f78bd1, node: v12.22.5
      2021-08-14 08:16:41.417  - info: host.6ad907f78bd1 ip addresses: 192.168.1.12 
      2021-08-14 08:16:41.781  - info: host.6ad907f78bd1 connected to Objects and States
      2021-08-14 08:16:41.883  - info: host.6ad907f78bd1 added notifications configuration of host
      2021-08-14 08:16:42.088  - info: host.6ad907f78bd1 66 instances found
      2021-08-14 08:16:42.108  - info: host.6ad907f78bd1 starting 14 instances
      2021-08-14 08:16:42.158  - info: host.6ad907f78bd1 instance system.adapter.admin.0 started with pid 3547
      2021-08-14 08:16:42.709  - info: admin.0 (3547) starting. Version 5.1.23 in /opt/iobroker/node_modules/iobroker.admin, node: v12.22.5, js-controller: 3.3.15
      2021-08-14 08:16:42.718  - info: admin.0 (3547) requesting all states
      2021-08-14 08:16:42.718  - info: admin.0 (3547) requesting all objects
      2021-08-14 08:16:43.385  - info: admin.0 (3547) received all objects
      2021-08-14 08:16:43.492  - info: admin.0 (3547) http server listening on port 8081
      2021-08-14 08:16:43.492  - info: admin.0 (3547) Use link "http://localhost:8081" to configure.
      2021-08-14 08:16:46.176  - info: host.6ad907f78bd1 instance system.adapter.tr-064.0 started with pid 3562
      2021-08-14 08:16:46.651  - info: tr-064.0 (3562) starting. Version 4.2.14 in /opt/iobroker/node_modules/iobroker.tr-064, node: v12.22.5, js-controller: 3.3.15
      2021-08-14 08:16:50.159  - info: host.6ad907f78bd1 instance system.adapter.web.0 started with pid 3577
      2021-08-14 08:16:50.620  - info: web.0 (3577) starting. Version 3.4.7 in /opt/iobroker/node_modules/iobroker.web, node: v12.22.5, js-controller: 3.3.15
      2021-08-14 08:16:50.724  - error: web.0 (3577) Please specify the email address and domains to use Let's Encrypt certificates! We reuse old certificates
      2021-08-14 08:16:50.751  - info: web.0 (3577) Secure socket.io server listening on port 8082
      2021-08-14 08:16:50.753  - info: web.0 (3577) https server listening on port 8082
      2021-08-14 08:16:50.909  - info: web.0 (3577) ==>Connected system.user.admin from ::ffff:192.168.1.21
      2021-08-14 08:17:26.741  - error: tr-064.0 (3562) States database error: read ECONNRESET
      2021-08-14 08:17:26.741  - error: web.0 (3577) States database error: read ECONNRESET
      2021-08-14 08:17:26.743  - error: admin.0 (3547) States database error: read ECONNRESET
      2021-08-14 08:17:26.743  - error: admin.0 (3547) Objects database error: read ECONNRESET
      2021-08-14 08:17:26.745  - info: admin.0 (3547) terminating http server on port 8081
      2021-08-14 08:17:26.743  - error: web.0 (3577) Objects database error: read ECONNRESET
      2021-08-14 08:17:26.748  - info: web.0 (3577) terminated https server on port 8082
      2021-08-14 08:17:28.243  - info: tr-064.0 (3562) Terminated (START_IMMEDIATELY_AFTER_STOP): Without reason
      2021-08-14 08:17:28.246  - info: admin.0 (3547) Terminated (START_IMMEDIATELY_AFTER_STOP): Without reason
      2021-08-14 08:17:28.250  - info: web.0 (3577) Terminated (START_IMMEDIATELY_AFTER_STOP): Without reason
      2021-08-14 08:17:31.742  - warn: tr-064.0 (3562) get state error: DB closed
      2021-08-14 08:17:31.746  - error: admin.0 (3547) Objects database error: connect ECONNREFUSED 0.0.0.0:9001
      2021-08-14 08:17:31.749  - error: web.0 (3577) Objects database error: connect ECONNREFUSED 0.0.0.0:9001
      2021-08-14 08:17:32.1  - info: host.6ad907f78bd1 iobroker.js-controller version 3.3.15 js-controller starting
      2021-08-14 08:17:32.178  - info: host.6ad907f78bd1 Copyright (c) 2014-2021 bluefox, 2014 hobbyquaker
      2021-08-14 08:17:32.178  - info: host.6ad907f78bd1 hostname: 6ad907f78bd1, node: v12.22.5
      2021-08-14 08:17:32.178  - info: host.6ad907f78bd1 ip addresses: 192.168.1.12 
      2021-08-14 08:17:32.545  - info: host.6ad907f78bd1 connected to Objects and States
      2021-08-14 08:17:32.676  - info: host.6ad907f78bd1 added notifications configuration of host
      2021-08-14 08:17:32.911  - info: host.6ad907f78bd1 66 instances found
      2021-08-14 08:17:32.940  - info: host.6ad907f78bd1 starting 14 instances
      2021-08-14 08:17:33.003  - info: host.6ad907f78bd1 instance system.adapter.admin.0 started with pid 3610
      2021-08-14 08:17:33.533  - info: admin.0 (3610) starting. Version 5.1.23 in /opt/iobroker/node_modules/iobroker.admin, node: v12.22.5, js-controller: 3.3.15
      2021-08-14 08:17:33.545  - info: admin.0 (3610) requesting all states
      2021-08-14 08:17:33.545  - info: admin.0 (3610) requesting all objects
      2021-08-14 08:17:34.306  - info: admin.0 (3610) received all objects
      2021-08-14 08:17:34.421  - info: admin.0 (3610) http server listening on port 8081
      2021-08-14 08:17:34.421  - info: admin.0 (3610) Use link "http://localhost:8081" to configure.
      2021-08-14 08:17:36.981  - info: host.6ad907f78bd1 instance system.adapter.tr-064.0 started with pid 3625
      2021-08-14 08:17:37.513  - info: tr-064.0 (3625) starting. Version 4.2.14 in /opt/iobroker/node_modules/iobroker.tr-064, node: v12.22.5, js-controller: 3.3.15
      2021-08-14 08:17:40.986  - info: host.6ad907f78bd1 instance system.adapter.web.0 started with pid 3640
      2021-08-14 08:17:41.410  - info: web.0 (3640) starting. Version 3.4.7 in /opt/iobroker/node_modules/iobroker.web, node: v12.22.5, js-controller: 3.3.15
      2021-08-14 08:17:41.508  - error: web.0 (3640) Please specify the email address and domains to use Let's Encrypt certificates! We reuse old certificates
      2021-08-14 08:17:41.535  - info: web.0 (3640) Secure socket.io server listening on port 8082
      2021-08-14 08:17:41.536  - info: web.0 (3640) https server listening on port 8082
      2021-08-14 08:17:41.589  - info: web.0 (3640) ==>Connected system.user.admin from ::ffff:192.168.1.21
      2021-08-14 08:18:01.476  - info: admin.0 (3610) terminating http server on port 8081
      2021-08-14 08:18:01.477  - info: web.0 (3640) terminated https server on port 8082
      2021-08-14 08:18:02.977  - info: admin.0 (3610) Terminated (START_IMMEDIATELY_AFTER_STOP): Without reason
      2021-08-14 08:18:02.978  - info: tr-064.0 (3625) Terminated (START_IMMEDIATELY_AFTER_STOP): Without reason
      2021-08-14 08:18:02.979  - info: web.0 (3640) Terminated (START_IMMEDIATELY_AFTER_STOP): Without reason
      

      Bisher habe vergeblich ich versucht:

      • Neustart des Systems
      • ein Script, dass im Log als fehlerhaft gemeldet wurde, habe ich deaktiviert
      • Deaktivieren von fast allen Adaptern, die ich normalerweise nutze
      • iobroker fix

      Ich vermute, dass die Meldung "States database error: read ECONNRESET" auf die Ursache schließen lässt, bin mir aber nicht sicher. Im Forum habe ich zwar ein paar Einträge dazu gefunden, aber ich glaube, nichts passendes.

      Wie lässt sich dieses database error-Problem lösen? Oder liegt die Ursache doch woanders?

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

        @civi sagte in ioBroker Neustarts - States database error: read ECONNRESET:

        error: web.0 (3512) Please specify the email address and domains to use Let's Encrypt certificates! We reuse old certificates

        Zeig mal deine web.0 Einstellungen

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

          @sigi234 Danke für die Nachricht. Das Problem war erst, dass ich erst gar nicht sauber mehr in web.0 Einstellunge rein kam. ioBroker startete so schnell neu, dass das über das Admin-Interface nicht mehr ging. Bekam die Konfig erst, als ich über "iobroker stop web.0" gestoppt habe.

          Hier die Config:

          {
            "_id": "system.adapter.web.0",
            "common": {
              "name": "web",
              "version": "3.4.7",
              "title": "WEB server",
              "license": "MIT",
              "mode": "daemon",
              "platform": "Javascript/Node.js",
              "loglevel": "info",
              "icon": "https://raw.githubusercontent.com/ioBroker/ioBroker.web/master/admin/web.png",
              "readme": "https://github.com/ioBroker/ioBroker.web/blob/master/README.md",
              "enabled": false,
              "materialize": true,
              "compact": true,
              "keywords": [
                "web",
                "server",
                "www",
                "express"
              ],
              "extIcon": "https://raw.githubusercontent.com/ioBroker/ioBroker.web/master/admin/web.png",
              "type": "general",
              "stopBeforeUpdate": true,
              "webExtendable": true,
              "localLink": "%web_protocol%://%ip%:%web_port%/",
              "dependencies": [
                {
                  "js-controller": ">=3.1.0"
                }
              ],
              "authors": [
                {
                  "name": "bluefox",
                  "email": "dogafox@gmail.com"
                }
              ],
              "plugins": {
                "sentry": {
                  "dsn": "https://3acf24332d994549bfa3b86e06062c21@sentry.iobroker.net/16"
                }
              },
              "installedFrom": "iobroker.web@3.4.7",
              "installedVersion": "3.4.7",
              "host": "6ad907f78bd1",
              "globalDependencies": [
                {
                  "admin": ">=5.1.0"
                }
              ],
              "connectionType": "none",
              "dataSource": "none",
              "tier": 3
            },
            "native": {
              "port": "8082",
              "auth": false,
              "secure": true,
              "bind": "0.0.0.0",
              "cache": false,
              "socketio": "",
              "simpleapi": false,
              "defaultUser": "admin",
              "ttl": "3600",
              "certPublic": "defaultPublic",
              "certPrivate": "defaultPrivate",
              "certChained": "",
              "addUserName": false,
              "forceWebSockets": false,
              "whiteListEnabled": false,
              "leEnabled": true,
              "leUpdate": false,
              "leCheckPort": 80,
              "loginBackgroundColor": "",
              "loginBackgroundImage": false,
              "basicAuth": false,
              "lePort": "80",
              "whiteListSettings": {
                "default": {
                  "user": "defaultname",
                  "object": {
                    "read": true,
                    "list": true,
                    "write": true,
                    "delete": true
                  },
                  "state": {
                    "read": true,
                    "list": true,
                    "write": true,
                    "create": true,
                    "delete": true
                  },
                  "file": {
                    "read": true,
                    "list": true,
                    "write": true,
                    "create": true,
                    "delete": true
                  }
                }
              },
              "disableExtensions": false,
              "disableStates": false,
              "disableFilesObjects": false
            }
          }
          

          Sollte eigentlich eine einfache Config sein, habe für die Verschlüsselung davor einen nginx Reverse Proxy mit Zertifikaten,.

          Aber seitdem ich den Adapter gestoppt habe, scheint ioBroker wirklich stabil zu sein. Siehst du was Auffälliges in der Config?

          EDIT: Ich habe den Adapter jetzt einmal komplett entfernt, dann wieder hinzugefügt und eine Instanz erstellt mit
          iobroker del web
          iobroker install web
          iobroker add web

          Nun ist anscheinend wieder Ruhe, keine Neustarts bisher. Wenn ich die Configs vergleiche, scheint bei der "alten" Instanz ausirgendeinem Grund die secure-Option aktiv gewesen zu sein. Verstehe nur nicht, warum das über Nacht dann zu einem Problem geworden ist.

          @sigi234 Vielen Dank für die Hilfestellung, damit konnte ich das Problem lösen (zumindest bisher).

          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

          401
          Online

          31.9k
          Users

          80.2k
          Topics

          1.3m
          Posts

          2
          3
          1404
          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