Skip to content
  • Home
  • Aktuell
  • Tags
  • 0 Ungelesen 0
  • Kategorien
  • Unreplied
  • Beliebt
  • GitHub
  • Docu
  • Hilfe
Skins
  • Light
  • Brite
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Standard: (Kein Skin)
  • Kein Skin
Einklappen
ioBroker Logo

Community Forum

donate donate
  1. ioBroker Community Home
  2. Deutsch
  3. ioBroker Allgemein
  4. [gelöst] mal wieder: No connection to databases possible ...

NEWS

  • UPDATE 31.10.: Amazon Alexa - ioBroker Skill läuft aus ?
    apollon77A
    apollon77
    48
    3
    8.8k

  • Monatsrückblick – September 2025
    BluefoxB
    Bluefox
    13
    1
    2.2k

  • Neues Video "KI im Smart Home" - ioBroker plus n8n
    BluefoxB
    Bluefox
    16
    1
    3.3k

[gelöst] mal wieder: No connection to databases possible ...

Geplant Angeheftet Gesperrt Verschoben ioBroker Allgemein
connectiondatabase
93 Beiträge 7 Kommentatoren 13.9k Aufrufe 5 Watching
  • Älteste zuerst
  • Neuste zuerst
  • Meiste Stimmen
Antworten
  • In einem neuen Thema antworten
Anmelden zum Antworten
Dieses Thema wurde gelöscht. Nur Nutzer mit entsprechenden Rechten können es sehen.
  • Thomas BraunT Thomas Braun

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

    vncserver-x11

    Ähem... Räusper

    D Offline
    D Offline
    DGR
    schrieb am zuletzt editiert von
    #12

    @thomas-braun Hallo,
    vncserver wurde deinstalliert, reboot
    Ergebnis:
    sudo netstat -tulpn | grep LISTEN
    tcp 0 0 0.0.0.0:8080 0.0.0.0:* LISTEN 361/deCONZ
    tcp 0 0 0.0.0.0:80 0.0.0.0:* LISTEN 687/lighttpd
    tcp 0 0 0.0.0.0:53 0.0.0.0:* LISTEN 680/pihole-FTL
    tcp 0 0 0.0.0.0:22 0.0.0.0:* LISTEN 599/sshd
    tcp 0 0 127.0.0.1:631 0.0.0.0:* LISTEN 402/cupsd
    tcp 0 0 0.0.0.0:443 0.0.0.0:* LISTEN 361/deCONZ
    tcp 0 0 0.0.0.0:445 0.0.0.0:* LISTEN 809/smbd
    tcp 0 0 127.0.0.1:4711 0.0.0.0:* LISTEN 680/pihole-FTL
    tcp 0 0 127.0.0.1:9001 0.0.0.0:* LISTEN 2141/
    tcp 0 0 0.0.0.0:139 0.0.0.0:* LISTEN 809/smbd
    tcp6 0 0 :::80 :::* LISTEN 687/lighttpd
    tcp6 0 0 :::53 :::* LISTEN 680/pihole-FTL
    tcp6 0 0 ::1:3350 :::* LISTEN 624/xrdp-sesman
    tcp6 0 0 :::22 :::* LISTEN 599/sshd
    tcp6 0 0 ::1:631 :::* LISTEN 402/cupsd
    tcp6 0 0 :::3389 :::* LISTEN 643/xrdp
    tcp6 0 0 :::445 :::* LISTEN 809/smbd
    tcp6 0 0 ::1:4711 :::* LISTEN 680/pihole-FTL
    tcp6 0 0 :::139 :::* LISTEN 809/smbd

    iobroker list instances
    Server Cannot start inMem-states on port 9000: Failed to lock DB file "/opt/iobroker/iobroker-data/states.jsonl"!

    wendy2702W Thomas BraunT 2 Antworten Letzte Antwort
    0
    • D DGR

      @thomas-braun Hallo,
      vncserver wurde deinstalliert, reboot
      Ergebnis:
      sudo netstat -tulpn | grep LISTEN
      tcp 0 0 0.0.0.0:8080 0.0.0.0:* LISTEN 361/deCONZ
      tcp 0 0 0.0.0.0:80 0.0.0.0:* LISTEN 687/lighttpd
      tcp 0 0 0.0.0.0:53 0.0.0.0:* LISTEN 680/pihole-FTL
      tcp 0 0 0.0.0.0:22 0.0.0.0:* LISTEN 599/sshd
      tcp 0 0 127.0.0.1:631 0.0.0.0:* LISTEN 402/cupsd
      tcp 0 0 0.0.0.0:443 0.0.0.0:* LISTEN 361/deCONZ
      tcp 0 0 0.0.0.0:445 0.0.0.0:* LISTEN 809/smbd
      tcp 0 0 127.0.0.1:4711 0.0.0.0:* LISTEN 680/pihole-FTL
      tcp 0 0 127.0.0.1:9001 0.0.0.0:* LISTEN 2141/
      tcp 0 0 0.0.0.0:139 0.0.0.0:* LISTEN 809/smbd
      tcp6 0 0 :::80 :::* LISTEN 687/lighttpd
      tcp6 0 0 :::53 :::* LISTEN 680/pihole-FTL
      tcp6 0 0 ::1:3350 :::* LISTEN 624/xrdp-sesman
      tcp6 0 0 :::22 :::* LISTEN 599/sshd
      tcp6 0 0 ::1:631 :::* LISTEN 402/cupsd
      tcp6 0 0 :::3389 :::* LISTEN 643/xrdp
      tcp6 0 0 :::445 :::* LISTEN 809/smbd
      tcp6 0 0 ::1:4711 :::* LISTEN 680/pihole-FTL
      tcp6 0 0 :::139 :::* LISTEN 809/smbd

      iobroker list instances
      Server Cannot start inMem-states on port 9000: Failed to lock DB file "/opt/iobroker/iobroker-data/states.jsonl"!

      wendy2702W Online
      wendy2702W Online
      wendy2702
      schrieb am zuletzt editiert von
      #13

      @dgr

      Was ist aktuell eingestellt bei

      iob setup custom
      

      Bitte keine Fragen per PN, die gehören ins Forum!

      Benutzt das Voting rechts unten im Beitrag wenn er euch geholfen hat.

      D 1 Antwort Letzte Antwort
      0
      • D DGR

        @thomas-braun Hallo,
        vncserver wurde deinstalliert, reboot
        Ergebnis:
        sudo netstat -tulpn | grep LISTEN
        tcp 0 0 0.0.0.0:8080 0.0.0.0:* LISTEN 361/deCONZ
        tcp 0 0 0.0.0.0:80 0.0.0.0:* LISTEN 687/lighttpd
        tcp 0 0 0.0.0.0:53 0.0.0.0:* LISTEN 680/pihole-FTL
        tcp 0 0 0.0.0.0:22 0.0.0.0:* LISTEN 599/sshd
        tcp 0 0 127.0.0.1:631 0.0.0.0:* LISTEN 402/cupsd
        tcp 0 0 0.0.0.0:443 0.0.0.0:* LISTEN 361/deCONZ
        tcp 0 0 0.0.0.0:445 0.0.0.0:* LISTEN 809/smbd
        tcp 0 0 127.0.0.1:4711 0.0.0.0:* LISTEN 680/pihole-FTL
        tcp 0 0 127.0.0.1:9001 0.0.0.0:* LISTEN 2141/
        tcp 0 0 0.0.0.0:139 0.0.0.0:* LISTEN 809/smbd
        tcp6 0 0 :::80 :::* LISTEN 687/lighttpd
        tcp6 0 0 :::53 :::* LISTEN 680/pihole-FTL
        tcp6 0 0 ::1:3350 :::* LISTEN 624/xrdp-sesman
        tcp6 0 0 :::22 :::* LISTEN 599/sshd
        tcp6 0 0 ::1:631 :::* LISTEN 402/cupsd
        tcp6 0 0 :::3389 :::* LISTEN 643/xrdp
        tcp6 0 0 :::445 :::* LISTEN 809/smbd
        tcp6 0 0 ::1:4711 :::* LISTEN 680/pihole-FTL
        tcp6 0 0 :::139 :::* LISTEN 809/smbd

        iobroker list instances
        Server Cannot start inMem-states on port 9000: Failed to lock DB file "/opt/iobroker/iobroker-data/states.jsonl"!

        Thomas BraunT Online
        Thomas BraunT Online
        Thomas Braun
        Most Active
        schrieb am zuletzt editiert von
        #14

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

        vncserver wurde deinstalliert

        Da läuft immer noch ein kompletter Desktop.
        Mach den Mist aus. Vollständig.

        Linux-Werkzeugkasten:
        https://forum.iobroker.net/topic/42952/der-kleine-iobroker-linux-werkzeugkasten
        NodeJS Fixer Skript:
        https://forum.iobroker.net/topic/68035/iob-node-fix-skript
        iob_diag: curl -sLf -o diag.sh https://iobroker.net/diag.sh && bash diag.sh

        D 1 Antwort Letzte Antwort
        0
        • wendy2702W wendy2702

          @dgr

          Was ist aktuell eingestellt bei

          iob setup custom
          
          D Offline
          D Offline
          DGR
          schrieb am zuletzt editiert von
          #15

          @wendy2702
          iob setup custom
          Current configuration:

          • Objects database:
            • Type: jsonl
            • Host/Unix Socket: 127.0.0.1
            • Port: 9001
          • States database:
            • Type: jsonl
            • Host/Unix Socket: 127.0.0.1
            • Port: 9000
          • Data Directory: ../../iobroker-data/

          Type of objects DB [(j)sonl, (f)ile, (r)edis, ...], default [jsonl]:

          j , danach:

          Host / Unix Socket of states DB (jsonl), default[127.0.0.1]:

          was wird hier für eine Eingabe erwartet ?
          Enter gegeben, dann:

          Port of states DB (jsonl), default[9000]:
          Enter gegeben, dann:
          Data directory (file), default[../../iobroker-data/]:
          Hostname bestätigt
          updating conf/iobroker.json

          D 1 Antwort Letzte Antwort
          0
          • Thomas BraunT Thomas Braun

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

            vncserver wurde deinstalliert

            Da läuft immer noch ein kompletter Desktop.
            Mach den Mist aus. Vollständig.

            D Offline
            D Offline
            DGR
            schrieb am zuletzt editiert von
            #16

            @thomas-braun RDP beendet

            Thomas BraunT 1 Antwort Letzte Antwort
            0
            • D DGR

              @wendy2702
              iob setup custom
              Current configuration:

              • Objects database:
                • Type: jsonl
                • Host/Unix Socket: 127.0.0.1
                • Port: 9001
              • States database:
                • Type: jsonl
                • Host/Unix Socket: 127.0.0.1
                • Port: 9000
              • Data Directory: ../../iobroker-data/

              Type of objects DB [(j)sonl, (f)ile, (r)edis, ...], default [jsonl]:

              j , danach:

              Host / Unix Socket of states DB (jsonl), default[127.0.0.1]:

              was wird hier für eine Eingabe erwartet ?
              Enter gegeben, dann:

              Port of states DB (jsonl), default[9000]:
              Enter gegeben, dann:
              Data directory (file), default[../../iobroker-data/]:
              Hostname bestätigt
              updating conf/iobroker.json

              D Offline
              D Offline
              DGR
              schrieb am zuletzt editiert von
              #17

              @dgr
              iobroker status
              No connection to databases possible ...

              1 Antwort Letzte Antwort
              0
              • D DGR

                @thomas-braun RDP beendet

                Thomas BraunT Online
                Thomas BraunT Online
                Thomas Braun
                Most Active
                schrieb am zuletzt editiert von
                #18

                @dgr

                Fahr die Kiste in RunLevel 3.

                Linux-Werkzeugkasten:
                https://forum.iobroker.net/topic/42952/der-kleine-iobroker-linux-werkzeugkasten
                NodeJS Fixer Skript:
                https://forum.iobroker.net/topic/68035/iob-node-fix-skript
                iob_diag: curl -sLf -o diag.sh https://iobroker.net/diag.sh && bash diag.sh

                1 Antwort Letzte Antwort
                0
                • wendy2702W Online
                  wendy2702W Online
                  wendy2702
                  schrieb am zuletzt editiert von
                  #19

                  Kannst du das mal auf „file“ stellen zum testen.

                  Bitte keine Fragen per PN, die gehören ins Forum!

                  Benutzt das Voting rechts unten im Beitrag wenn er euch geholfen hat.

                  D 1 Antwort Letzte Antwort
                  0
                  • D Offline
                    D Offline
                    DGR
                    schrieb am zuletzt editiert von
                    #20

                    @thomas-braun
                    SSH-Konsole wird bei "runlevel" N 3 ausgegeben

                    1 Antwort Letzte Antwort
                    0
                    • wendy2702W wendy2702

                      Kannst du das mal auf „file“ stellen zum testen.

                      D Offline
                      D Offline
                      DGR
                      schrieb am zuletzt editiert von
                      #21

                      @wendy2702
                      nach Bestätigung des Hostnamens kommt:
                      This host appears to be a Master or a Single host system. Is this correct? [Y/n]

                      Frage: Y oder n ? - wahrscheinlich Y ?

                      wendy2702W 1 Antwort Letzte Antwort
                      0
                      • D DGR

                        @wendy2702
                        nach Bestätigung des Hostnamens kommt:
                        This host appears to be a Master or a Single host system. Is this correct? [Y/n]

                        Frage: Y oder n ? - wahrscheinlich Y ?

                        wendy2702W Online
                        wendy2702W Online
                        wendy2702
                        schrieb am zuletzt editiert von
                        #22

                        @dgr Ist das denn ein Master?

                        Hast du ein Master - Slave System ?

                        Bitte keine Fragen per PN, die gehören ins Forum!

                        Benutzt das Voting rechts unten im Beitrag wenn er euch geholfen hat.

                        D 1 Antwort Letzte Antwort
                        0
                        • wendy2702W wendy2702

                          @dgr Ist das denn ein Master?

                          Hast du ein Master - Slave System ?

                          D Offline
                          D Offline
                          DGR
                          schrieb am zuletzt editiert von
                          #23

                          @wendy2702 läuft alles auf dem Raspberry, also eigentlich nicht Master-Slave
                          habe gerade mal y eingegeben, aber jetzt soll migriert werden:
                          Do you want to migrate objects and states from "jsonl/jsonl" to "file/file" [y/N]:

                          ob das jetzt gut ist ?

                          wendy2702W 1 Antwort Letzte Antwort
                          0
                          • D DGR

                            @wendy2702 läuft alles auf dem Raspberry, also eigentlich nicht Master-Slave
                            habe gerade mal y eingegeben, aber jetzt soll migriert werden:
                            Do you want to migrate objects and states from "jsonl/jsonl" to "file/file" [y/N]:

                            ob das jetzt gut ist ?

                            wendy2702W Online
                            wendy2702W Online
                            wendy2702
                            schrieb am zuletzt editiert von
                            #24

                            @dgr Ich denke du hast ein Backup, oder?

                            Bitte keine Fragen per PN, die gehören ins Forum!

                            Benutzt das Voting rechts unten im Beitrag wenn er euch geholfen hat.

                            D 1 Antwort Letzte Antwort
                            0
                            • wendy2702W wendy2702

                              @dgr Ich denke du hast ein Backup, oder?

                              D Offline
                              D Offline
                              DGR
                              schrieb am zuletzt editiert von
                              #25

                              @wendy2702
                              das hier: iobroker_2021_12_29-02_00_10_backupiobroker.tar.gz mit 12 MiB

                              oder kann man diese Einstellung dann auch wieder mit "iob setup custom" Rückgängig machen ?

                              Sorgen macht mir der Port 9001 (meine ursprüngliche Nachricht ganz oben). Allerdings kann ich das nicht reproduzieren. "iobroker start" geht noch, aber bei "iobroker repo list" kommt gleich "No connection to Databases possible"

                              wendy2702W 1 Antwort Letzte Antwort
                              0
                              • D DGR

                                @wendy2702
                                das hier: iobroker_2021_12_29-02_00_10_backupiobroker.tar.gz mit 12 MiB

                                oder kann man diese Einstellung dann auch wieder mit "iob setup custom" Rückgängig machen ?

                                Sorgen macht mir der Port 9001 (meine ursprüngliche Nachricht ganz oben). Allerdings kann ich das nicht reproduzieren. "iobroker start" geht noch, aber bei "iobroker repo list" kommt gleich "No connection to Databases possible"

                                wendy2702W Online
                                wendy2702W Online
                                wendy2702
                                schrieb am zuletzt editiert von
                                #26

                                @dgr Rückgängig geht, da du aber irgendwo einen Knoten drin hast ist die Frage ob das dann alles Fehlerfrei funktioniert.

                                Hast du seit erstellen des Backups am 29.12.2021 keine Änderungen mehr vorgenommen?

                                Wenn nicht ist das OK.

                                Sonst besser erst ein neues machen.

                                Bitte keine Fragen per PN, die gehören ins Forum!

                                Benutzt das Voting rechts unten im Beitrag wenn er euch geholfen hat.

                                D 1 Antwort Letzte Antwort
                                0
                                • wendy2702W wendy2702

                                  @dgr Rückgängig geht, da du aber irgendwo einen Knoten drin hast ist die Frage ob das dann alles Fehlerfrei funktioniert.

                                  Hast du seit erstellen des Backups am 29.12.2021 keine Änderungen mehr vorgenommen?

                                  Wenn nicht ist das OK.

                                  Sonst besser erst ein neues machen.

                                  D Offline
                                  D Offline
                                  DGR
                                  schrieb am zuletzt editiert von
                                  #27

                                  @wendy2702 neues Backup geht ja nicht (No connection ...)
                                  Ausgangspunkt der ganzen Misere war ja die Fehlernachricht beim backup:
                                  iob backup
                                  ... 153825 states saved
                                  ... 305278 objects saved
                                  Cannot create backup: RangeError: Invalid string length

                                  und Änderungen seit 29.12. ? Ich habe seit dem Adapter und Host aktualisiert. Alles andere wäre kein Problem.

                                  ist die von mir genannte Datei prinzipiell für ein restore gedacht (iob restore <Pfad zur Backupdatei>) ? Aktuell liegt sie (eine Kopie) unter /opt/iobroker

                                  wendy2702W AlCalzoneA 2 Antworten Letzte Antwort
                                  0
                                  • D DGR

                                    @wendy2702 neues Backup geht ja nicht (No connection ...)
                                    Ausgangspunkt der ganzen Misere war ja die Fehlernachricht beim backup:
                                    iob backup
                                    ... 153825 states saved
                                    ... 305278 objects saved
                                    Cannot create backup: RangeError: Invalid string length

                                    und Änderungen seit 29.12. ? Ich habe seit dem Adapter und Host aktualisiert. Alles andere wäre kein Problem.

                                    ist die von mir genannte Datei prinzipiell für ein restore gedacht (iob restore <Pfad zur Backupdatei>) ? Aktuell liegt sie (eine Kopie) unter /opt/iobroker

                                    wendy2702W Online
                                    wendy2702W Online
                                    wendy2702
                                    schrieb am zuletzt editiert von
                                    #28

                                    @dgr Ja, die ist dafür gedacht.

                                    Ich würde die aber auch noch an anderer Stelle sichern also von da weg kopieren.

                                    Bitte keine Fragen per PN, die gehören ins Forum!

                                    Benutzt das Voting rechts unten im Beitrag wenn er euch geholfen hat.

                                    D 1 Antwort Letzte Antwort
                                    0
                                    • wendy2702W wendy2702

                                      @dgr Ja, die ist dafür gedacht.

                                      Ich würde die aber auch noch an anderer Stelle sichern also von da weg kopieren.

                                      D Offline
                                      D Offline
                                      DGR
                                      schrieb am zuletzt editiert von
                                      #29

                                      @wendy2702
                                      habe jetzt y gegeben:

                                      Migrating the objects database will overwrite all objects! Are you sure that this is not a slave host and you want to migrate the data? [y/N]: y

                                      Connecting to previous DB "jsonl"...
                                      No connection to databases possible ...

                                      wendy2702W D 2 Antworten Letzte Antwort
                                      0
                                      • D DGR

                                        @wendy2702
                                        habe jetzt y gegeben:

                                        Migrating the objects database will overwrite all objects! Are you sure that this is not a slave host and you want to migrate the data? [y/N]: y

                                        Connecting to previous DB "jsonl"...
                                        No connection to databases possible ...

                                        wendy2702W Online
                                        wendy2702W Online
                                        wendy2702
                                        schrieb am zuletzt editiert von
                                        #30

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

                                        jsonl

                                        OK.

                                        Dann gehen mir die Ideen aus.

                                        Vielleicht nochmal den JS-Controller neu installieren:

                                        cd /opt/iobroker/
                                        sudo -H -u iobroker npm install iobroker.js-controller
                                        

                                        Wenn es dann nicht geht würde ich iobroker neu installieren und ein Restore mit dem Backup machen.

                                        Bitte keine Fragen per PN, die gehören ins Forum!

                                        Benutzt das Voting rechts unten im Beitrag wenn er euch geholfen hat.

                                        1 Antwort Letzte Antwort
                                        0
                                        • D DGR

                                          @wendy2702
                                          habe jetzt y gegeben:

                                          Migrating the objects database will overwrite all objects! Are you sure that this is not a slave host and you want to migrate the data? [y/N]: y

                                          Connecting to previous DB "jsonl"...
                                          No connection to databases possible ...

                                          D Offline
                                          D Offline
                                          DGR
                                          schrieb am zuletzt editiert von
                                          #31

                                          @dgr bleibt wohl doch nur
                                          iob restore /opt/iobroker/iobroker_2021_12_29-02_00_10_backupiobroker.tar.gz

                                          ist die Syntax so korrekt ?

                                          muß mich jetzt erstmal bist nachmittags abmelden. Danke bis hier.

                                          wendy2702W 1 Antwort Letzte Antwort
                                          0
                                          Antworten
                                          • In einem neuen Thema antworten
                                          Anmelden zum Antworten
                                          • Älteste zuerst
                                          • Neuste zuerst
                                          • Meiste Stimmen


                                          Support us

                                          ioBroker
                                          Community Adapters
                                          Donate
                                          FAQ Cloud / IOT
                                          HowTo: Node.js-Update
                                          HowTo: Backup/Restore
                                          Downloads
                                          BLOG

                                          436

                                          Online

                                          32.4k

                                          Benutzer

                                          81.5k

                                          Themen

                                          1.3m

                                          Beiträge
                                          Community
                                          Impressum | Datenschutz-Bestimmungen | Nutzungsbedingungen | Einwilligungseinstellungen
                                          ioBroker Community 2014-2025
                                          logo
                                          • Anmelden

                                          • Du hast noch kein Konto? Registrieren

                                          • Anmelden oder registrieren, um zu suchen
                                          • Erster Beitrag
                                            Letzter Beitrag
                                          0
                                          • Home
                                          • Aktuell
                                          • Tags
                                          • Ungelesen 0
                                          • Kategorien
                                          • Unreplied
                                          • Beliebt
                                          • GitHub
                                          • Docu
                                          • Hilfe