Navigation

    Logo
    • Register
    • Login
    • Search
    • Recent
    • Tags
    • Unread
    • Categories
    • Unreplied
    • Popular
    • GitHub
    • Docu
    • Hilfe
    1. Home
    2. Deutsch
    3. Error/Bug
    4. [gelöst] ioB 120% Auslastung und no connection to database

    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

    [gelöst] ioB 120% Auslastung und no connection to database

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

      @kueppert sagte in ioBroker mit 120% Auslastung und no connection to database:

      /opt/iobroker/iobroker-data/objects.jsonl

      lsof /opt/iobroker/iobroker-data/objects.jsonl
      
      K 1 Reply Last reply Reply Quote 0
      • K
        Kueppert @apollon77 last edited by Kueppert

        @apollon77

        {
          "system": {
            "memoryLimitMB": 0,
            "hostname": "",
            "statisticsInterval": 15000,
            "checkDiskInterval": 300000
          },
          "multihostService": {
            "enabled": false,
            "secure": true,
            "password": "xxxxxxxxxxxxxxxxxx",
            "persist": false
          },
          "network": {
            "IPv4": true,
            "IPv6": true,
            "bindAddress": null,
            "useSystemNpm": true
          },
          "objects": {
            "type": "jsonl",
            "typeComment": "Possible values: 'file' - [port 9001], redis - [port 6379],
            "host": "127.0.0.1",
            "port": 9001,
            "user": "",
            "pass": "",
            "noFileCache": false,
            "connectTimeout": 2000,
            "options": {
              "auth_pass": null,
              "enableReadyCheck": true,
              "host": "0.0.0.0",
              "port": 9001,
              "db": 0,
              "family": 0,
              "password": null,
              "autoResubscribe": false,
              "connectionName": "host.ioBroker2",
              "retry_max_delay": 5000
            },
            "maxQueue": 1000,
            "dataDir": "../../iobroker-data/"
         },
          "states": {
            "type": "jsonl",
            "typeComment": "Possible values: 'file' - [port 9000], 'redis' - [port 6379]
            "host": "127.0.0.1",
            "port": 9000,
            "maxQueue": 1000,
            "writeFileInterval": 300000,
            "options": {
              "auth_pass": null,
              "enableReadyCheck": true,
              "host": "0.0.0.0",
              "port": 9000,
              "db": 0,
              "family": 0,
              "password": null,
              "autoResubscribe": false,
              "connectionName": "host.ioBroker2",
              "retry_max_delay": 5000
            },
            "dataDir": "../../iobroker-data/"
          },
          "log": {
            "level": "warn",
            "maxDays": 7,
            "noStdout": true,
            "transport": {
              "file1": {
                "type": "file",
                "enabled": true,
                "filename": "log/iobroker",
                "fileext": ".log",
                "maxsize": null,
                "maxFiles": null,
                "maxSize": null,
                "level": ""
              },
              "syslog1": {
                "type": "syslog",
                "enabled": true,
                "host": "192.168.10.10",
                "host_comment": "The host running syslogd, defaults to localhost.",
                "port": "520",
                "port_comment": "The port on the host that syslog is running on, default
                "pid_comment": "PID of the process that log messages are coming from (De
                "protocol": "udp4",
                "protocol_comment": "The network protocol to log over (e.g. tcp4, udp4,
                "path_comment": "The path to the syslog dgram socket (i.e. /dev/log or /
                "facility_comment": "Syslog facility to use (Default: local0).",
                "localhost": "iobroker",
                "localhost_comment": "Host to indicate that log messages are coming from
                "sysLogType": "5424",
                "sysLogType_comment": "The type of the syslog protocol to use (Default:
                "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
                "level": "warn",
                "facility": "",
                "app_name": "process.title"
              }
            }
          },
          "dataDir": "../../iobroker-data/",
          "plugins": null
        }{
          "system": {
            "memoryLimitMB": 0,
            "hostname": "",
            "statisticsInterval": 15000,
            "checkDiskInterval": 300000
          },
          "multihostService": {
            "enabled": false,
            "secure": true,
            "password": "xxxxxxxxxxxxxxxxxxxx",
            "persist": false
          },
          "network": {
            "IPv4": true,
            "IPv6": true,
            "bindAddress": null,
            "useSystemNpm": true
          },
          "objects": {
            "type": "jsonl",
            "typeComment": "Possible values: 'file' - [port 9001], redis - [port 6379],
            "host": "127.0.0.1",
            "port": 9001,
            "user": "",
            "pass": "",
            "noFileCache": false,
            "connectTimeout": 2000,
            "options": {
              "auth_pass": null,
              "enableReadyCheck": true,
              "host": "0.0.0.0",
              "port": 9001,
              "db": 0,
              "family": 0,
              "password": null,
              "autoResubscribe": false,
              "connectionName": "host.ioBroker2",
              "retry_max_delay": 5000
            },
            "maxQueue": 1000,
            "dataDir": "../../iobroker-data/"
          },
          "states": {
            "type": "jsonl",
            "typeComment": "Possible values: 'file' - [port 9000], 'redis' - [port 6379]
            "host": "127.0.0.1",
            "port": 9000,
            "maxQueue": 1000,
            "writeFileInterval": 300000,
            "options": {
              "auth_pass": null,
              "enableReadyCheck": true,
              "host": "0.0.0.0",
              "port": 9000,
              "db": 0,
              "family": 0,
              "password": null,
              "autoResubscribe": false,
              "connectionName": "host.ioBroker2",
              "retry_max_delay": 5000
            },
            "dataDir": "../../iobroker-data/"
          },
          "log": {
            "level": "warn",
            "maxDays": 7,
            "noStdout": true,
            "transport": {
              "file1": {
                "type": "file",
                "enabled": true,
                "filename": "log/iobroker",
                "fileext": ".log",
                "maxsize": null,
                "maxFiles": null,
                "maxSize": null,
                "level": ""
              },
              "syslog1": {
                "type": "syslog",
                "enabled": true,
                "host": "192.168.10.10",
                "host_comment": "The host running syslogd, defaults to localhost.",
                "port": "520",
                "port_comment": "The port on the host that syslog is running on, default
                "pid_comment": "PID of the process that log messages are coming from (De
                "protocol": "udp4",
                "protocol_comment": "The network protocol to log over (e.g. tcp4, udp4,
                "path_comment": "The path to the syslog dgram socket (i.e. /dev/log or /
                "facility_comment": "Syslog facility to use (Default: local0).",
                "localhost": "iobroker",
                "localhost_comment": "Host to indicate that log messages are coming from
                "sysLogType": "5424",
                "sysLogType_comment": "The type of the syslog protocol to use (Default:
                "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
                "level": "warn",
                "facility": "",
                "app_name": "process.title"
              }
            }
          },
          "dataDir": "../../iobroker-data/",
          "plugins": null
        }
        
        1 Reply Last reply Reply Quote 0
        • Homoran
          Homoran Global Moderator Administrators @Kueppert last edited by

          @kueppert
          wo ist hier ein BUG von ioBroker?

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

            @thomas-braun da passiert nix:

            thorsten@ioBroker2:~$ lsof /opt/iobroker/iobroker-data/objects.jsonl
            thorsten@ioBroker2:~$
            
            Thomas Braun 1 Reply Last reply Reply Quote 0
            • Thomas Braun
              Thomas Braun Most Active @Kueppert last edited by

              @kueppert sagte in ioBroker mit 120% Auslastung und no connection to database:

              lsof /opt/iobroker/iobroker-data/objects.jsonl

              Mit

              sudo lsof /opt/iobroker/iobroker-data/objects.jsonl
              

              sollte was kommen.

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

                @kueppert Frage zum Top: Da läuft auch ein Redis server??? Wird scheinbar nicht genutzt

                Ansonsten bitte mal iobroker stoppen und wirklich sicherstellen das er aus ist und ggf rozesse killen und dann bitte mal neu "iob status"

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

                  @thomas-braun

                  thorsten@ioBroker2:~$ sudo lsof /opt/iobroker/iobroker-data/objects.jsonl
                  [sudo] Passwort für thorsten:
                  COMMAND   PID     USER   FD   TYPE DEVICE SIZE/OFF    NODE NAME
                  iobroker. 874 iobroker   19u   REG    8,1 51272289 1451506 /opt/iobroker/iobroker-data/objects.jsonl
                  
                  Thomas Braun 1 Reply Last reply Reply Quote 0
                  • K
                    Kueppert @apollon77 last edited by

                    @apollon77 für meine Begriffe (command spuckt nix aus) läuft da nix sonst?

                    thorsten@ioBroker2:~$ iobroker stop
                    thorsten@ioBroker2:~$ ps auxww|grep io
                    root        12  0.0  0.0      0     0 ?        S    12:30   0:00 [migration/0]
                    root        16  0.6  0.0      0     0 ?        S    12:30   0:05 [migration/1]
                    message+   377  0.1  0.0   8980  4168 ?        Ss   12:31   0:01 /usr/bin/dbus-daemon --system --address=systemd: --nofork --nopidfile --systemd-activation --syslog-only
                    thorsten   914  0.0  0.0   6084   892 pts/0    S+   12:45   0:00 grep io
                    thorsten@ioBroker2:~$
                    

                    den Redis-Server hab ich bewusst nie selbst installiert manuell...

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

                      @kueppert Und was sagt "iob status" jetzt?

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

                        @apollon77

                        thorsten@ioBroker2:~$ iob status
                        No connection to databases possible ...
                        thorsten@ioBroker2:~$
                        
                        apollon77 1 Reply Last reply Reply Quote 0
                        • Thomas Braun
                          Thomas Braun Most Active @Kueppert last edited by

                          @kueppert

                          Der Hinweis von @apollon77 ist richtig. Wenn redis nicht (mehr) genutzt wird, weg damit.

                          apt policy redis
                          

                          Ggf. deinstallieren.

                          sudo apt remove redis
                          
                          K 1 Reply Last reply Reply Quote 0
                          • apollon77
                            apollon77 @Kueppert last edited by

                            @kueppert Ok, dann ändere bitte mal im iobroker.json die beiden

                                "connectTimeout": 2000,
                            

                            zu 30000

                            dann?

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

                              @thomas-braun

                              thorsten@ioBroker2:~$ apt policy redis
                              redis:
                                Installiert:           (keine)
                                Installationskandidat: 5:5.0.14-1+deb10u2
                                Versionstabelle:
                                   5:5.0.14-1+deb10u2 500
                                      500 http://ftp.de.debian.org/debian buster/main amd64 Packages
                                      500 http://security.debian.org/debian-security buster/updates/main amd64 Packages
                              thorsten@ioBroker2:~$
                              

                              hab noch nicht deinstalliert - steht aber auch da wär nix installiert?

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

                                @kueppert sagte in ioBroker mit 120% Auslastung und no connection to database:

                                hab noch nicht deinstalliert - steht aber auch da wär nix installiert?

                                In deinem top sieht man mit PID 422 einen redis-server Prozess.

                                systemctl status redis-server
                                
                                K 1 Reply Last reply Reply Quote 0
                                • K
                                  Kueppert @apollon77 last edited by

                                  @apollon77 hab nur ein connection-timeout gefunden?

                                  4fbbf738-9379-486e-b7bf-17a9f1deb787-image.png

                                  thorsten@ioBroker2:~$ iob status
                                  iobroker is not running on this host.
                                  
                                  
                                  Objects type: jsonl
                                  States  type: jsonl
                                  
                                  apollon77 1 Reply Last reply Reply Quote 0
                                  • K
                                    Kueppert @Thomas Braun last edited by

                                    @thomas-braun sagte in ioBroker mit 120% Auslastung und no connection to database:

                                    systemctl status redis-server

                                    thorsten@ioBroker2:~$ systemctl status redis-server
                                    ● redis-server.service - Advanced key-value store
                                       Loaded: loaded (/lib/systemd/system/redis-server.service; enabled; vendor pre
                                       Active: active (running) since Fri 2022-04-22 12:31:07 CEST; 23min ago
                                         Docs: http://redis.io/documentation,
                                               man:redis-server(1)
                                      Process: 383 ExecStart=/usr/bin/redis-server /etc/redis/redis.conf (code=exite
                                     Main PID: 422 (redis-server)
                                        Tasks: 4 (limit: 4915)
                                       Memory: 15.3M
                                       CGroup: /system.slice/redis-server.service
                                               └─422 /usr/bin/redis-server 127.0.0.1:6379
                                    lines 1-11/11 (END)
                                    

                                    soll ich den Befehl zum deinstallieren nun ausführen? Redis nutze ich nicht

                                    Thomas Braun 2 Replies Last reply Reply Quote 0
                                    • apollon77
                                      apollon77 @Kueppert last edited by

                                      @kueppert Ok, heisst das die Standard 5s nicht reichen das er die Files lesen kann ... da sist komisch ...

                                      Aber ok ...

                                      iob list instances ?

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

                                        @kueppert

                                        Bitte das Fenster des Terminals mal größer machen. Da fehlt rechts Text.

                                        sudo systemctl stop redis-server
                                        sudo systemctl disable redis-server
                                        
                                        K 1 Reply Last reply Reply Quote 0
                                        • Thomas Braun
                                          Thomas Braun Most Active @Kueppert last edited by

                                          @kueppert

                                          apt policy redis*
                                          

                                          Da ist vermutlich das Paket redis-server installiert.

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

                                            @apollon77 sagte in ioBroker mit 120% Auslastung und no connection to database:

                                            iob list instances

                                            thorsten@ioBroker2:~$ iob list instances
                                              system.adapter.admin.0                  : admin                 : ioBroker2                                -  enabled, port: 8081, bind: 0.0.0.0, run as: admin
                                              system.adapter.alarm.0                  : alarm                 : ioBroker2                                -  enabled
                                              system.adapter.alexa2.0                 : alexa2                : ioBroker2                                -  enabled
                                              system.adapter.alias-manager.0          : alias-manager         : ioBroker2                                -  enabled
                                              system.adapter.backitup.0               : backitup              : ioBroker2                                -  enabled
                                              system.adapter.daswetter.0              : daswetter             : ioBroker2                                -  enabled
                                              system.adapter.denon.0                  : denon                 : ioBroker2                                -  enabled
                                              system.adapter.discovery.0              : discovery             : ioBroker2                                -  enabled
                                              system.adapter.echarts.0                : echarts               : ioBroker2                                -  enabled
                                              system.adapter.email.0                  : email                 : ioBroker2                                -  enabled
                                              system.adapter.flot.0                   : flot                  : ioBroker2                                -  enabled
                                              system.adapter.fully-tablet-control.0   : fully-tablet-control  : ioBroker2                                -  enabled
                                              system.adapter.harmony.0                : harmony               : ioBroker2                                -  enabled
                                              system.adapter.history.0                : history               : ioBroker2                                -  enabled
                                              system.adapter.hm-rega.0                : hm-rega               : ioBroker2                                -  enabled
                                              system.adapter.hm-rpc.0                 : hm-rpc                : ioBroker2                                -  enabled, port: 0
                                              system.adapter.hm-rpc.1                 : hm-rpc                : ioBroker2                                -  enabled, port: 0
                                              system.adapter.hue.0                    : hue                   : ioBroker2                                -  enabled, port: 80
                                              system.adapter.ical.0                   : ical                  : ioBroker2                                -  enabled
                                              system.adapter.ical.1                   : ical                  : ioBroker2                                -  enabled
                                              system.adapter.icons-mfd-png.0          : icons-mfd-png         : ioBroker2                                -  enabled
                                              system.adapter.icons-ultimate-png.0     : icons-ultimate-png    : ioBroker2                                -  enabled
                                              system.adapter.influxdb.0               : influxdb              : ioBroker2                                -  enabled, port: 8086
                                              system.adapter.info.0                   : info                  : ioBroker2                                -  enabled
                                              system.adapter.iot.0                    : iot                   : ioBroker2                                -  enabled
                                              system.adapter.iqontrol.0               : iqontrol              : ioBroker2                                -  enabled
                                              system.adapter.javascript.0             : javascript            : ioBroker2                                -  enabled
                                              system.adapter.logparser.0              : logparser             : ioBroker2                                -  enabled
                                              system.adapter.nut.0                    : nut                   : ioBroker2                                -  enabled
                                              system.adapter.pi-hole.0                : pi-hole               : ioBroker2                                -  enabled
                                              system.adapter.ping.0                   : ping                  : ioBroker2                                - disabled
                                              system.adapter.pollenflug.0             : pollenflug            : ioBroker2                                -  enabled
                                              system.adapter.proxmox.0                : proxmox               : ioBroker2                                -  enabled, port: 8006
                                              system.adapter.scenes.0                 : scenes                : ioBroker2                                -  enabled
                                              system.adapter.shelly.0                 : shelly                : ioBroker2                                -  enabled, port: 1882, bind: 0.0.0.0
                                              system.adapter.simple-api.0             : simple-api            : ioBroker2                                -  enabled, port: 8087, bind: 0.0.0.0, run as: admin
                                              system.adapter.smartcontrol.0           : smartcontrol          : ioBroker2                                -  enabled
                                              system.adapter.snmp.0                   : snmp                  : ioBroker2                                -  enabled
                                              system.adapter.socketio.0               : socketio              : ioBroker2                                -  enabled, port: 8084, bind: 192.168.10.13, run as: admin
                                              system.adapter.sonoff.0                 : sonoff                : ioBroker2                                -  enabled, port: 1883, bind: 0.0.0.0
                                              system.adapter.synology.0               : synology              : ioBroker2                                -  enabled, port: 5001
                                              system.adapter.tankerkoenig.0           : tankerkoenig          : ioBroker2                                -  enabled
                                              system.adapter.telegram.0               : telegram              : ioBroker2                                -  enabled, port: 8443, bind: 0.0.0.0
                                              system.adapter.text2command.0           : text2command          : ioBroker2                                -  enabled
                                              system.adapter.tr-064.0                 : tr-064                : ioBroker2                                -  enabled
                                              system.adapter.trashschedule.0          : trashschedule         : ioBroker2                                -  enabled
                                              system.adapter.unifi.0                  : unifi                 : ioBroker2                                -  enabled
                                              system.adapter.vis-bars.0               : vis-bars              : ioBroker2                                -  enabled
                                              system.adapter.vis-canvas-gauges.0      : vis-canvas-gauges     : ioBroker2                                -  enabled
                                              system.adapter.vis-colorpicker.0        : vis-colorpicker       : ioBroker2                                -  enabled
                                              system.adapter.vis-fancyswitch.0        : vis-fancyswitch       : ioBroker2                                -  enabled
                                              system.adapter.vis-history.0            : vis-history           : ioBroker2                                -  enabled
                                              system.adapter.vis-hqwidgets.0          : vis-hqwidgets         : ioBroker2                                -  enabled
                                              system.adapter.vis-jqui-mfd.0           : vis-jqui-mfd          : ioBroker2                                -  enabled
                                              system.adapter.vis-justgage.0           : vis-justgage          : ioBroker2                                -  enabled
                                              system.adapter.vis-materialdesign.0     : vis-materialdesign    : ioBroker2                                -  enabled
                                              system.adapter.vis-players.0            : vis-players           : ioBroker2                                -  enabled
                                              system.adapter.vis-timeandweather.0     : vis-timeandweather    : ioBroker2                                -  enabled
                                              system.adapter.vis-weather.0            : vis-weather           : ioBroker2                                -  enabled
                                              system.adapter.vis.0                    : vis                   : ioBroker2                                -  enabled
                                              system.adapter.web-speedy.0             : web-speedy            : ioBroker2                                -  enabled
                                              system.adapter.web.0                    : web                   : ioBroker2                                -  enabled, port: 8082, bind: 192.168.10.13, run as: admin
                                              system.adapter.whatsapp-cmb.0           : whatsapp-cmb          : ioBroker2                                -  enabled
                                              system.adapter.wled.0                   : wled                  : ioBroker2                                -  enabled
                                              system.adapter.yeelight-2.0             : yeelight-2            : ioBroker2                                -  enabled
                                              system.adapter.zigbee.0                 : zigbee                : ioBroker2                                -  enabled, port: /dev/serial/by-id/usb-Silicon_Labs_CP2102N_USB_to_UART_Bridge_Controller_9271b043fa93eb11969ca85b3d98b6d1-if00-port0
                                            
                                            + instance is alive
                                            
                                            
                                            1 Reply Last reply Reply Quote 0
                                            • First post
                                              Last post

                                            Support us

                                            ioBroker
                                            Community Adapters
                                            Donate

                                            618
                                            Online

                                            31.9k
                                            Users

                                            80.1k
                                            Topics

                                            1.3m
                                            Posts

                                            5
                                            53
                                            3076
                                            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