Navigation

    Logo
    • Register
    • Login
    • Search
    • Recent
    • Tags
    • Unread
    • Categories
    • Unreplied
    • Popular
    • GitHub
    • Docu
    • Hilfe
    1. Home
    2. Deutsch
    3. Error/Bug
    4. langsame Admin Weboberfläche/No connection to databases

    NEWS

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

    • ioBroker goes Matter ... Matter Adapter in Stable

    • Monatsrückblick - April 2025

    langsame Admin Weboberfläche/No connection to databases

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

      Hallo,
      hatte ein langsames System neu aufgesetzt. Also Ubuntu 22.04.01 installiert, Iobroker und anschließend ein Backup eingespielt. War auch alles schnell und nun plötzlich wieder ein langsames System, Weboberfläche braucht ewig, teilweise Abbruch.

      user@iobroker-ubuntu-22-04:~$ cd /opt/iobroker
      user@iobroker-ubuntu-22-04:/opt/iobroker$ iobroker stop
      user@iobroker-ubuntu-22-04:/opt/iobroker$ iobroker update
      No connection to databases possible ...
       Unable to subscribe to meta namespace "meta." changes: Connection is closed.
       get state error: Connection is closed.
      Uncaught Rejection: Error: DB closed
          at Redis.sendCommand (/opt/iobroker/node_modules/ioredis/built/redis/index.js:636:24)
          at Redis.get (/opt/iobroker/node_modules/ioredis/built/commander.js:122:25)
          at ObjectsInMemoryServerClass._getObject (/opt/iobroker/node_modules/@iobroker/db-objects-redis/lib/objects/objectsInRedisClient.js:2663:37)
          at Immediate.<anonymous> (/opt/iobroker/node_modules/@iobroker/db-objects-redis/lib/objects/objectsInRedisClient.js:2709:33)
          at processImmediate (node:internal/timers:468:21)
      user@iobroker-ubuntu-22-04:/opt/iobroker$
      
      Systemdata
      Hardwaresystem: NUC
      Arbeitsspeicher: 8GB
      Festplattenart: SSD
      Betriebssystem: Ubuntu 22.04.01
      Node-Version: v16.17.0
      Nodejs-Version: v16.17.0
      NPM-Version: 8.15.0
      Installationsart: Skript
      Image genutzt: Nein
      Glasfaser 1 Reply Last reply Reply Quote 0
      • Glasfaser
        Glasfaser @tilly last edited by

        @tilly sagte in langsame Admin Weboberfläche/No connection to databases:

        neu aufgesetzt.

        Zeigen :

        cd /opt/iobroker
        npm ls | grep -E 'github.com|ERR' 
        
        iobroker update -i
         
        sudo ln -s /usr/bin/node /usr/bin/nodejs
        uname -m && type -P nodejs node npm && nodejs -v && node -v && npm -v && whoami && pwd && sudo apt update &> /dev/null && sudo apt update && apt policy nodejs
        

        .

        War auch alles schnell und nun plötzlich wieder ein langsames System,

        eventuell ein Script geschrieben was Amok läuft !?

        crunchip T 2 Replies Last reply Reply Quote 0
        • crunchip
          crunchip Forum Testing Most Active @Glasfaser last edited by

          @glasfaser oder liegt es an der Größe/Anzahl der Objekte

          Glasfaser 1 Reply Last reply Reply Quote 0
          • Glasfaser
            Glasfaser @crunchip last edited by

            @crunchip sagte in langsame Admin Weboberfläche/No connection to databases:
            Größe/Anzahl der Objekte

            Kann ich mir nicht vorstelle ,
            er schreibt

            und nun plötzlich wieder ein langsames System

            da sind schon ein paar Tage zwischen .....

            @tilly

            zeige mal

            f5f60f6a-9238-41ce-8b38-17e4ee474216-grafik.png

            hast du dann wenn er langsam läuft einen Neustart gemacht und danach ist es X Zeit / X Tage wieder gut .

            T 1 Reply Last reply Reply Quote 0
            • T
              tilly @Glasfaser last edited by

              @glasfaser

              user@iobroker-ubuntu-22-04:~$ cd /opt/iobroker
              user@iobroker-ubuntu-22-04:/opt/iobroker$ npm ls | grep -E 'github.com|ERR'
              [sudo] password for user:
              
              user@iobroker-ubuntu-22-04:/opt/iobroker$ iobroker update -i
              Used repository: stable
              Adapter    "admin"        : 6.2.22   , installed 6.2.22
              Adapter    "alexa2"       : 3.19.9   , installed 3.19.9
              Adapter    "backitup"     : 2.4.10   , installed 2.4.12
              Adapter    "bring"        : 1.8.1    , installed 1.8.1
              Adapter    "cloud"        : 4.2.2    , installed 4.2.2
              Adapter    "discovery"    : 3.0.5    , installed 3.0.5
              Adapter    "dwd"          : 2.8.3    , installed 2.8.3
              Adapter    "echarts"      : 1.0.12   , installed 1.0.12
              Adapter    "ecovacs-deebot": 1.4.4   , installed 1.4.7
              Adapter    "firetv"       : 1.0.0    , installed 1.0.0
              Adapter    "flot"         : 1.11.0   , installed 1.11.0
              Adapter    "haassohn"     : 1.0.7    , installed 1.0.7
              Adapter    "ical"         : 1.13.1   , installed 1.13.1
              Adapter    "icons-mfd-png": 1.1.0    , installed 1.1.0
              Adapter    "info"         : 1.9.19   , installed 1.9.19
              Adapter    "iot"          : 1.11.9   , installed 1.11.9
              Adapter    "javascript"   : 6.0.3    , installed 6.0.3
              Controller "js-controller": 4.0.23   , installed 4.0.23
              Adapter    "mihome-lamp"  : 1.1.0    , installed 1.1.0
              Adapter    "modbus"       : 5.0.5    , installed 5.0.5
              Adapter    "mqtt"         : 4.0.7    , installed 4.0.7
              Adapter    "node-red"     : 4.0.0    , installed 4.0.0
              Adapter    "octoprint"    : 4.0.0    , installed 4.0.0
              Adapter    "openweathermap": 0.3.0   , installed 0.3.0
              Adapter    "parser"       : 1.1.8    , installed 1.1.8
              Adapter    "pvforecast"   : 2.3.0    , installed 2.3.0
              Adapter    "samsung"      : 0.5.8    , installed 0.5.11
              Adapter    "sayit"        : 1.12.3   , installed 1.12.6
              Adapter    "shelly"       : 6.0.0    , installed 6.0.0
              Adapter    "simple-api"   : 2.7.0    , installed 2.7.0
              Adapter    "socketio"     : 4.2.0    , installed 6.1.8
              Adapter    "sonoff"       : 2.5.1    , installed 2.5.1
              Adapter    "sonos"        : 2.2.3    , installed 2.2.3
              Adapter    "sprinklecontrol": 0.2.9  , installed 0.2.12
              Adapter    "sql"          : 2.1.8    , installed 2.1.8
              Adapter    "tankerkoenig" : 2.1.1    , installed 2.1.1
              Adapter    "telegram"     : 1.14.1   , installed 1.14.1
              Adapter    "tr-064"       : 4.2.16   , installed 4.2.16
              Adapter    "trashschedule": 2.0.3    , installed 2.0.3
              Adapter    "tuya"         : 3.6.15   , installed 3.6.15
              Adapter    "unifi"        : 0.5.10   , installed 0.6.1
              Adapter    "vis"          : 1.4.15   , installed 1.4.15
              Adapter    "vis-hqwidgets": 1.3.0    , installed 1.3.0
              Adapter    "vis-inventwo" : 3.3.1    , installed 3.3.3
              Adapter    "vis-jqui-mfd" : 1.0.12   , installed 1.0.12
              Adapter    "web"          : 4.3.0    , installed 5.2.4
              Adapter    "wled"         : 0.6.7    , installed 0.6.7
              Adapter    "ws"           : 1.3.0    , installed 2.1.3
              Adapter    "yahka"        : 0.13.1   , installed 0.13.1
              Adapter    "zigbee"       : 1.7.5    , installed 1.7.6
              Adapter    "zwave2"       : 2.6.0    , installed 2.6.0
              user@iobroker-ubuntu-22-04:/opt/iobroker$
              
              user@iobroker-ubuntu-22-04:/opt/iobroker$ sudo ln -s /usr/bin/node /usr/bin/nodejs
              uname -m && type -P nodejs node npm && nodejs -v && node -v && npm -v && whoami && pwd && sudo apt update &> /dev/null && sudo apt update && apt policy nodejs
              ln: failed to create symbolic link '/usr/bin/nodejs': File exists
              x86_64
              /usr/bin/nodejs
              /usr/bin/node
              /usr/bin/npm
              v16.17.0
              v16.17.0
              8.15.0
              user
              /opt/iobroker
              OK:1 http://de.archive.ubuntu.com/ubuntu jammy InRelease
              Holen:2 http://de.archive.ubuntu.com/ubuntu jammy-updates InRelease [114 kB]
              OK:3 https://deb.nodesource.com/node_16.x jammy InRelease
              OK:4 http://de.archive.ubuntu.com/ubuntu jammy-backports InRelease
              Holen:5 http://de.archive.ubuntu.com/ubuntu jammy-security InRelease [110 kB]
              Es wurden 224 kB in 2 s geholt (139 kB/s).
              Paketlisten werden gelesen… Fertig
              Abhängigkeitsbaum wird aufgebaut… Fertig
              Statusinformationen werden eingelesen… Fertig
              Alle Pakete sind aktuell.
              nodejs:
                Installiert:           16.17.0-deb-1nodesource1
                Installationskandidat: 16.17.0-deb-1nodesource1
                Versionstabelle:
               *** 16.17.0-deb-1nodesource1 500
                      500 https://deb.nodesource.com/node_16.x jammy/main amd64 Packages
                      100 /var/lib/dpkg/status
                   12.22.9~dfsg-1ubuntu3 500
                      500 http://de.archive.ubuntu.com/ubuntu jammy/universe amd64 Packages
              user@iobroker-ubuntu-22-04:/opt/iobroker$
              
              

              Ein Skript was ich neu gemacht hatte, habe ich erstmal wieder deaktiviert.

              1 Reply Last reply Reply Quote 0
              • T
                tilly @Glasfaser last edited by

                @glasfaser

                1c39492c-aeda-40d5-9323-432bed672b54-image.png

                T 1 Reply Last reply Reply Quote 0
                • T
                  tilly @tilly last edited by

                  Admin Weboberfläche jetzt auch nach Neustart sehr langsam.
                  Info, Adapter und Instanzen wird noch geladen. Bei Objekten Timeout.

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

                    @tilly
                    133k Objekte könnte auch etwas heftig sein.

                    free -ht --mega
                    

                    sagt?

                    T 1 Reply Last reply Reply Quote 0
                    • T
                      tilly @Thomas Braun last edited by

                      @thomas-braun said in langsame Admin Weboberfläche/No connection to databases:

                      free -ht --mega

                      user@iobroker-ubuntu-22-04:~$ free -ht --mega
                                     total        used        free      shared  buff/cache   available
                      Mem:            3,9G        3,2G        467M        1,0M        293M        529M
                      Swap:           3,0G        100M        2,9G
                      Total:          6,9G        3,3G        3,3G
                      
                      

                      Aber wieso sind es so viele? Da sind bestimmt welche doppelt.

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

                        @tilly

                        Sooooo viel Luft ist da nicht mehr.
                        Schau mit

                        htop
                        

                        (sortiert nach MEM%) was da wieviel RAM knuspert.

                        T 1 Reply Last reply Reply Quote 0
                        • T
                          tilly @Thomas Braun last edited by

                          @thomas-braun said in langsame Admin Weboberfläche/No connection to databases:

                          htop

                          7c08865b-cd2e-4951-9439-bf907530b8c2-image.png

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

                            @tilly

                            (sortiert nach MEM%)

                            T 1 Reply Last reply Reply Quote 0
                            • T
                              tilly @Thomas Braun last edited by tilly

                              @thomas-braun

                              c8161698-3de2-427a-8f77-451dc847f341-image.png

                              T 1 Reply Last reply Reply Quote 0
                              • T
                                tilly @tilly last edited by tilly

                                die Objekte kommen von Unifi Adapter. Den hab ich erst einmal gelöscht.

                                user@iobroker-ubuntu-22-04:~$ iobroker list objects unifi.0.* | wc -l
                                125649
                                

                                Jetzt ist die Auslastung wie folgt:

                                616ea558-b410-453c-b316-4dab76088e8c-image.png

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

                                Support us

                                ioBroker
                                Community Adapters
                                Donate

                                515
                                Online

                                31.6k
                                Users

                                79.6k
                                Topics

                                1.3m
                                Posts

                                database langsam
                                4
                                14
                                675
                                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