Navigation

    Logo
    • Register
    • Login
    • Search
    • Recent
    • Tags
    • Unread
    • Categories
    • Unreplied
    • Popular
    • GitHub
    • Docu
    • Hilfe
    1. Home
    2. Deutsch
    3. ioBroker Allgemein
    4. [gelöst] mal wieder: No connection to databases possible ...

    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] mal wieder: No connection to databases possible ...

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

      @apollon77 habe beide Dateien eines Datums entpackt.
      states.jsonl 26,6 MiB
      objects.jsonl 104,2 MiB

      werde die alten großen in iobroker-data mal umbenennen und die kleinen da reinkopieren.
      Mal sehen...

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

        @apollon77 Hurraaaa ! ! ! Alles wieder da ! Adapter, Instanzen, Objekte, Scripte OK.
        Erstaunlicherweise ist auch Hosts aktuell 4.0.21

        Vielen Dank !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
        Das hat mir eine Menge Arbeit erspart und ich habe auch noch viel gelernt.

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

          @apollon77
          doch noch ein Wermutstropfen. Vor dieser Aktion hatte ich schon das Problem beim Backup und jetzt wieder (Invalid string length):

          Started iobroker ...
          [DEBUG] [iobroker] - host.PI-AL-01 1194 states saved
          
          [DEBUG] [iobroker] - host.PI-AL-01 309380 objects saved
          
          [ERROR] [iobroker] - host.PI-AL-01 Backup not created: Invalid string length
          
          [DEBUG] [iobroker] - Backup created: undefined
          
          [DEBUG] [iobroker] - done
          [DEBUG] [historyDB] - compress from historyDB started ...
          [DEBUG] [historyDB] - Backup created: /opt/iobroker/backups/historyDB_2022_03_16-14_54_11_backupiobroker.tar.gz
          [DEBUG] [historyDB] - done
          [ERROR] [ftp] - Error: connect ECONNREFUSED 192.168.196.161:21
          
          1 Reply Last reply Reply Quote 1
          • apollon77
            apollon77 last edited by

            Hi, das klingt ja schonmal gut. kurz zu den letzten 3 Posts:

            1.) States sehen wenige aus ... hat das wirklich geklappt mit dem entpackten File? Naja ansonsten kommen die ja jetzt wieder nacheinander mit neuen Werten rein, aber gefüht sehr wenige

            2.) 300k Objekts sehen immer noch zuviel aus. Also schau mal wo die sind. Falls es wirklich ble ist dann hast Du dir da viele Geräte angesammelt. Lösch die alle mal weg. Oderwo auch immer das herkommt. Dann sollte hoffentlich die Anzahl Objekte drastisch reduzieren.

            3.) Der "Invalid Length" Fehler kommt weil Backup scheinbar nicht mit 300k+ Backup Entries klarkommt. Daher wenn 2. gefixt ist dann sollte das ach gehen. Und ja wir haben ein Thema für den 4.1er js-controller 🙂

            1 Reply Last reply Reply Quote 0
            • D
              DGR last edited by

              @apollon77
              kann das davon kommen:
              32 Sensoren
              9 Lichter

              Beim Versuch, im iobroker Objekte->BLE->0 etwas anzeigen zu lassen, stürzte diese Seite ab (nicht der ganze iobroker-Browser)

              Habe dann mal den BLE-Adapter deinstalliert v0.12.0:

              kann CodeTag nicht mitliefern, ist zu groß.

              danach folgende Größen:
              states.jsonl 26,6 MiB
              objects.jsonl 7,9 MiB
              unter Objekte --> BLE --> 0 im iobroker wurden nur noch 14 MAC-Adressen (?) angezeigt

              dann Neuinstallation BLE-Adapter über iobroker
              es wurde wieder v0.12.0 installiert

              $ iobroker add ble --host PI-AL-01
              
              NPM version: 6.14.16
              
              Installing iobroker.ble@0.12.0... (System call)
              
              > usb@1.9.2 install /opt/iobroker/node_modules/usb> node-gyp-build
              
              make: Verzeichnis „/opt/iobroker/node_modules/usb/build“ wird betreten
              
              CC(target) Release/obj.target/libusb/libusb/libusb/core.o
              
              CC(target) Release/obj.target/libusb/libusb/libusb/descriptor.o
              
              CC(target) Release/obj.target/libusb/libusb/libusb/hotplug.o
              
              CC(target) Release/obj.target/libusb/libusb/libusb/io.o
              
              CC(target) Release/obj.target/libusb/libusb/libusb/strerror.o
              
              CC(target) Release/obj.target/libusb/libusb/libusb/sync.o
              
              CC(target) Release/obj.target/libusb/libusb/libusb/os/poll_posix.o
              
              CC(target) Release/obj.target/libusb/libusb/libusb/os/threads_posix.o
              
              CC(target) Release/obj.target/libusb/libusb/libusb/os/linux_usbfs.o
              
              CC(target) Release/obj.target/libusb/libusb/libusb/os/linux_udev.o
              
              AR(target) Release/obj.target/usb.a
              
              COPY Release/usb.a
              
              CXX(target) Release/obj.target/usb_bindings/src/node_usb.o
              
              CXX(target) Release/obj.target/usb_bindings/src/device.o
              
              CXX(target) Release/obj.target/usb_bindings/src/transfer.o
              
              SOLINK_MODULE(target) Release/obj.target/usb_bindings.node
              
              COPY Release/usb_bindings.node
              
              make: Verzeichnis „/opt/iobroker/node_modules/usb/build“ wird verlassen
              
              > @abandonware/bluetooth-hci-socket@0.5.3-8 install /opt/iobroker/node_modules/@abandonware/bluetooth-hci-socket> node-pre-gyp install --fallback-to-build
              
              make: Verzeichnis „/opt/iobroker/node_modules/@abandonware/bluetooth-hci-socket/build“ wird betreten
              
              CXX(target) Release/obj.target/bluetooth_hci_socket/src/BluetoothHciSocket.o
              
              SOLINK_MODULE(target) Release/obj.target/bluetooth_hci_socket.node
              
              COPY Release/bluetooth_hci_socket.node
              
              COPY /opt/iobroker/node_modules/@abandonware/bluetooth-hci-socket/lib/binding/bluetooth_hci_socket.node
              
              TOUCH Release/obj.target/action_after_build.stamp
              
              make: Verzeichnis „/opt/iobroker/node_modules/@abandonware/bluetooth-hci-socket/build“ wird verlassen
              
              > @abandonware/noble@1.9.2-15 install /opt/iobroker/node_modules/@abandonware/noble> node-gyp rebuild
              
              make: Verzeichnis „/opt/iobroker/node_modules/@abandonware/noble/build“ wird betreten
              
              SOLINK_MODULE(target) Release/obj.target/noble.node
              
              COPY Release/noble.node
              
              make: Verzeichnis „/opt/iobroker/node_modules/@abandonware/noble/build“ wird verlassen
              
              + iobroker.ble@0.12.0added 49 packages from 114 contributors in 93.419s
              
              75 packages are looking for funding run `npm fund` for details
              
              host.PI-AL-01 install adapter ble
              
              These apt-get packages were already installed: bluetooth, bluez, libbluetooth-dev, libudev-dev, libcap2-bin
              
              upload [7] ble.admin /opt/iobroker/node_modules/iobroker.ble/admin/ble.png ble.png image/png
              
              upload [6] ble.admin /opt/iobroker/node_modules/iobroker.ble/admin/build/index.js build/index.js application/javascript
              
              upload [5] ble.admin /opt/iobroker/node_modules/iobroker.ble/admin/build/index.js.map build/index.js.map application/json
              
              upload [4] ble.admin /opt/iobroker/node_modules/iobroker.ble/admin/build/index.map build/index.map application/json
              
              upload [3] ble.admin /opt/iobroker/node_modules/iobroker.ble/admin/index.html index.html text/html
              
              upload [2] ble.admin /opt/iobroker/node_modules/iobroker.ble/admin/index_m.html index_m.html text/html
              
              upload [1] ble.admin /opt/iobroker/node_modules/iobroker.ble/admin/style.css style.css text/css
              
              upload [0] ble.admin /opt/iobroker/node_modules/iobroker.ble/admin/words.js words.js application/javascript
              
              host.PI-AL-01 object system.adapter.ble created/updated
              
              host.PI-AL-01 create instance ble
              
              host.PI-AL-01 object system.adapter.ble.0.alive created
              
              host.PI-AL-01 object system.adapter.ble.0.connected created
              
              host.PI-AL-01 object system.adapter.ble.0.compactMode created
              
              host.PI-AL-01 object system.adapter.ble.0.cpu created
              
              host.PI-AL-01 object system.adapter.ble.0.cputime created
              
              host.PI-AL-01 object system.adapter.ble.0.memHeapUsed created
              
              host.PI-AL-01 object system.adapter.ble.0.memHeapTotal created
              
              host.PI-AL-01 object system.adapter.ble.0.memRss created
              
              host.PI-AL-01 object system.adapter.ble.0.uptime created
              
              host.PI-AL-01 object system.adapter.ble.0.inputCount created
              
              host.PI-AL-01 object system.adapter.ble.0.outputCount created
              
              host.PI-AL-01 object system.adapter.ble.0.eventLoopLag created
              
              host.PI-AL-01 object system.adapter.ble.0.sigKill created
              
              host.PI-AL-01 object system.adapter.ble.0.logLevel created
              
              host.PI-AL-01 object ble.0.info created
              
              host.PI-AL-01 object ble.0.info.connection created
              
              host.PI-AL-01 object ble.0.info.driverState created
              
              host.PI-AL-01 object ble.0.options created
              
              host.PI-AL-01 object ble.0.options.allowNewDevices created
              
              host.PI-AL-01 Set default value of ble.0.info.connection: false
              
              host.PI-AL-01 Set default value of ble.0.info.driverState: poweredOff
              
              host.PI-AL-01 Set default value of ble.0.options.allowNewDevices: true
              
              host.PI-AL-01 object system.adapter.ble.0 created
              
              Process exited with code 0
              

              jetzt Größen von:
              states.jsonl 26,6 MiB
              objects.jsonl 8,1 MiB

              Backup-Versuch ohne die bekannte Fehlermeldung:

              Started iobroker ...
              [DEBUG] [iobroker] - host.PI-AL-01 1221 states saved
              
              [DEBUG] [iobroker] - host.PI-AL-01 3502 objects saved
              
              [DEBUG] [iobroker] - Backup created: /opt/iobroker/backups/iobroker_2022_03_16-18_02_44_backupiobroker.tar.gz
              
              [DEBUG] [iobroker] - done
              [DEBUG] [historyDB] - compress from historyDB started ...
              [DEBUG] [historyDB] - Backup created: /opt/iobroker/backups/historyDB_2022_03_16-18_02_52_backupiobroker.tar.gz
              [DEBUG] [historyDB] - done
              [ERROR] [ftp] - Error: connect ECONNREFUSED 192.168.196.161:21
              

              Allerding zeigt die letzte Zeile wieder einen Fehler an und der Backup-Prozess kommt einfach nicht zum Ende.

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

                @dgr

                Ist da ein FTP Server im Spiel?

                D 1 Reply Last reply Reply Quote 0
                • D
                  DGR @Thomas Braun last edited by

                  @thomas-braun bei Instanz Backup ist der Speicherort FTP eingestellt. Kann es das sein ?

                  Thomas Braun 1 Reply Last reply Reply Quote 0
                  • apollon77
                    apollon77 @DGR last edited by apollon77

                    @dgr ok also wie vermutet Ble hat so viele Objekte angesammelt. Also in der neuen Instanz jetzt das sammeln ausschalten sonst endest du bald wieder da ;-))

                    Die ftp Meldung sieht eher danach aus das du backitup nutzt und dort konfiguriert hast wegen FTP. Also checke dort bitte.

                    Und vergiss die neue sd Karte nicht!!

                    PS: am Ende jetzt an mehreren stellen alles gut. Bei dir geht wieder alles und wir devs haben ein neues Limit kennengelernt 😉

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

                      @dgr sagte in mal wieder: No connection to databases possible ...:

                      Kann es das sein ?

                      Ja, offenbar falsch konfiguriert.

                      1 Reply Last reply Reply Quote 0
                      • D
                        DGR last edited by

                        @thomas-braun habe ich korrigiert in der Backup-Instanz (von FTP auf NAS/Copy)
                        läuft jetzt, nur noch nicht, wenn ich direkt auf den USB-Stick sichern will (keine Berechtigung, obwohl bei "NAS/Kopieren" der Haken gesetzt ist "Als root-Benutzer mounten (sudo)"
                        geht aber auch so mit direkt auf SD.

                        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

                        823
                        Online

                        31.9k
                        Users

                        80.1k
                        Topics

                        1.3m
                        Posts

                        connection database
                        7
                        93
                        10217
                        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