Weiter zum Inhalt
  • Home
  • Aktuell
  • Tags
  • 0 Ungelesen 0
  • Kategorien
  • Unreplied
  • Beliebt
  • GitHub
  • Docu
  • Hilfe
Skins
  • Hell
  • Brite
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dunkel
  • 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. Umzug Ubuntu -> Docker Synology "no connection to database"

NEWS

  • Neuer ioBroker-Blog online: Monatsrückblick März/April 2026
    BluefoxB
    Bluefox
    8
    1
    678

  • Verwendung von KI bitte immer deutlich kennzeichnen
    HomoranH
    Homoran
    10
    1
    522

  • Monatsrückblick Januar/Februar 2026 ist online!
    BluefoxB
    Bluefox
    18
    1
    1.0k

Umzug Ubuntu -> Docker Synology "no connection to database"

Geplant Angeheftet Gesperrt Verschoben ioBroker Allgemein
4 Beiträge 3 Kommentatoren 458 Aufrufe 3 Beobachtet
  • Ä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.
  • Q Offline
    Q Offline
    Qlink
    schrieb am zuletzt editiert von
    #1

    Hi Leute,

    ich versuche gerade meine iobroker Umgebung von ubuntu 22.04 auf eine Synology mit Docker inkl. Portainer zu migrieren.

    Da ich keinerlei Daten/Datenpunkte/States etc. verlieren möchte, hab ich den Weg gewählt den kompletten iobroker Ordner von Ubuntu auf die Synology zu kopieren.
    Kein BackitUp Adapter und keine iobroker interne backup/restore Variante.
    Just copy/paste...

    Hier ein iobroker status von iobroker auf Ubuntu:

    iobroker is running on this host.
    
    
    Objects type: jsonl
    States  type: jsonl
    mmbadm@iob01:~$ iobroker 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/
    

    Wenn ich den iobroker Container auf der Synology starte erkennt er die vorhandene iobroker Instanz, bricht aber dann bei der Datenbank ab:

    --------------------------------------------------------------------------------
    -------------------------     2023-08-19 12:10:14      -------------------------
    --------------------------------------------------------------------------------
    -----                                                                      -----
    ----- ██╗  ██████╗  ██████╗  ██████╗   ██████╗  ██╗  ██╗ ███████╗ ██████╗  -----
    ----- ██║ ██╔═══██╗ ██╔══██╗ ██╔══██╗ ██╔═══██╗ ██║ ██╔╝ ██╔════╝ ██╔══██╗ -----
    ----- ██║ ██║   ██║ ██████╔╝ ██████╔╝ ██║   ██║ █████╔╝  █████╗   ██████╔╝ -----
    ----- ██║ ██║   ██║ ██╔══██╗ ██╔══██╗ ██║   ██║ ██╔═██╗  ██╔══╝   ██╔══██╗ -----
    ----- ██║ ╚██████╔╝ ██████╔╝ ██║  ██║ ╚██████╔╝ ██║  ██╗ ███████╗ ██║  ██║ -----
    ----- ╚═╝  ╚═════╝  ╚═════╝  ╚═╝  ╚═╝  ╚═════╝  ╚═╝  ╚═╝ ╚══════╝ ╚═╝  ╚═╝ -----
    -----                                                                      -----
    -----              Welcome to your ioBroker Docker container!              -----
    -----                    Startupscript is now running!                     -----
    -----                          Please be patient!                          -----
    --------------------------------------------------------------------------------
     
    --------------------------------------------------------------------------------
    -----                          System Information                          -----
    -----                    arch:                x86_64                       -----
    -----                    hostname:            iobtest                      -----
    -----                                                                      -----
    -----                          Version Information                         -----
    -----                    image:               v8.1.0                       -----
    -----                    build:               2023-08-15T20:58:03+00:00    -----
    -----                    node:                v18.17.1                     -----
    -----                    npm:                 9.6.7                        -----
    -----                                                                      -----
    -----                        Environment Variables                         -----
    -----                    DEBUG:               true                         -----
    -----                    SETGID:              1000                         -----
    -----                    SETUID:              1000                         -----
    --------------------------------------------------------------------------------
     
    !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
    !!!!                            DEBUG LOG ACTIVE                            !!!!
    !!!!               Environment variable DEBUG is set to true.               !!!!
    !!!! This will extend the logging output and may slow down container start. !!!!
    !!!!          Please make sure to deactivate if no longer needed.           !!!!
    !!!!     For more information see ioBroker Docker image documentation:      !!!!
    !!!!           https://docs.buanet.de/iobroker-docker-image/docs/           !!!!
    !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
     
    --------------------------------------------------------------------------------
    -----                   Step 1 of 5: Preparing container                   -----
    --------------------------------------------------------------------------------
     
    Updating Linux packages on first run... Done.
     
     
    Registering maintenance script as command... Done.
     
    --------------------------------------------------------------------------------
    -----             Step 2 of 5: Detecting ioBroker installation             -----
    --------------------------------------------------------------------------------
     
    Existing installation of ioBroker detected in "/opt/iobroker".
     
    --------------------------------------------------------------------------------
    -----             Step 3 of 5: Checking ioBroker installation              -----
    --------------------------------------------------------------------------------
     
    (Re)setting permissions (This might take a while! Please be patient!)... Done.
     
    Fixing "sudo-bug" by replacing sudo with gosu... Done.
     
    [DEBUG] Checking multihost settings... 
    [DEBUG] No multihost settings detected.
    [DEBUG] Done.
     
    [DEBUG] Checking custom objects db settings... 
    [DEBUG] No custom objects db settings detected.
    [DEBUG] Done.
     
    [DEBUG] Checking custom states db settings... 
    [DEBUG] No custom states db settings detected.
    [DEBUG] Done.
     
    Checking Database connection... Failed.
    [DEBUG] Error message: 
    [DEBUG] /opt/scripts/iobroker_startup.sh: /usr/bin/iob: /usr/bin/bash: bad interpreter: No such file or directory
    Please check your configuration and try again.
    For more information see ioBroker Docker Image Docs (https://docs.buanet.de/iobroker-docker-image/docs).
     
    [DEBUG] Debug mode prevents the container from exiting on errors.
    [DEBUG] This enables you to investigate or fix your issue on the command line.
    [DEBUG] If you want to stop or restart your container you have to do it manually.
    [DEBUG] IoBroker is not running!
    

    Kann mir jemand weiterhelfen ?

    Danke.

    Beste Grüße

    Thomas BraunT 1 Antwort Letzte Antwort
    0
    • Marc BergM Online
      Marc BergM Online
      Marc Berg
      Most Active
      schrieb am zuletzt editiert von Marc Berg
      #2

      @qlink sagte in Umzug Ubuntu -> Docker Synology "no connection to database":

      Da ich keinerlei Daten/Datenpunkte/States etc. verlieren möchte, hab ich den Weg gewählt den kompletten iobroker Ordner von Ubuntu auf die Synology zu kopieren.

      Warum bist du der Meinung, mit einem Backup/Restore Daten verlieren zu müssen?

      Kann mir jemand weiterhelfen ?

      Starte mit einem leeren Verzeichnis und spiele das Backup ein. Habe ich schon oft gemacht, funktioniert wunderbar. Alles andere wird zur Frickelei.
      Es gibt einen Knackpunkt: falls sich der Hostname geändert hat, einmal "iob host this" ausführen.

      NUC10I3+Ubuntu+Docker+ioBroker+influxDB2+Node Red+EMQX+Grafana

      Pi-hole, Traefik, Checkmk, Conbee II+Zigbee2MQTT, ESPSomfy-RTS, LoRaWAN, Arduino, KiCad

      Benutzt das Voting im Beitrag, wenn er euch geholfen hat.

      1 Antwort Letzte Antwort
      0
      • Q Qlink

        Hi Leute,

        ich versuche gerade meine iobroker Umgebung von ubuntu 22.04 auf eine Synology mit Docker inkl. Portainer zu migrieren.

        Da ich keinerlei Daten/Datenpunkte/States etc. verlieren möchte, hab ich den Weg gewählt den kompletten iobroker Ordner von Ubuntu auf die Synology zu kopieren.
        Kein BackitUp Adapter und keine iobroker interne backup/restore Variante.
        Just copy/paste...

        Hier ein iobroker status von iobroker auf Ubuntu:

        iobroker is running on this host.
        
        
        Objects type: jsonl
        States  type: jsonl
        mmbadm@iob01:~$ iobroker 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/
        

        Wenn ich den iobroker Container auf der Synology starte erkennt er die vorhandene iobroker Instanz, bricht aber dann bei der Datenbank ab:

        --------------------------------------------------------------------------------
        -------------------------     2023-08-19 12:10:14      -------------------------
        --------------------------------------------------------------------------------
        -----                                                                      -----
        ----- ██╗  ██████╗  ██████╗  ██████╗   ██████╗  ██╗  ██╗ ███████╗ ██████╗  -----
        ----- ██║ ██╔═══██╗ ██╔══██╗ ██╔══██╗ ██╔═══██╗ ██║ ██╔╝ ██╔════╝ ██╔══██╗ -----
        ----- ██║ ██║   ██║ ██████╔╝ ██████╔╝ ██║   ██║ █████╔╝  █████╗   ██████╔╝ -----
        ----- ██║ ██║   ██║ ██╔══██╗ ██╔══██╗ ██║   ██║ ██╔═██╗  ██╔══╝   ██╔══██╗ -----
        ----- ██║ ╚██████╔╝ ██████╔╝ ██║  ██║ ╚██████╔╝ ██║  ██╗ ███████╗ ██║  ██║ -----
        ----- ╚═╝  ╚═════╝  ╚═════╝  ╚═╝  ╚═╝  ╚═════╝  ╚═╝  ╚═╝ ╚══════╝ ╚═╝  ╚═╝ -----
        -----                                                                      -----
        -----              Welcome to your ioBroker Docker container!              -----
        -----                    Startupscript is now running!                     -----
        -----                          Please be patient!                          -----
        --------------------------------------------------------------------------------
         
        --------------------------------------------------------------------------------
        -----                          System Information                          -----
        -----                    arch:                x86_64                       -----
        -----                    hostname:            iobtest                      -----
        -----                                                                      -----
        -----                          Version Information                         -----
        -----                    image:               v8.1.0                       -----
        -----                    build:               2023-08-15T20:58:03+00:00    -----
        -----                    node:                v18.17.1                     -----
        -----                    npm:                 9.6.7                        -----
        -----                                                                      -----
        -----                        Environment Variables                         -----
        -----                    DEBUG:               true                         -----
        -----                    SETGID:              1000                         -----
        -----                    SETUID:              1000                         -----
        --------------------------------------------------------------------------------
         
        !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
        !!!!                            DEBUG LOG ACTIVE                            !!!!
        !!!!               Environment variable DEBUG is set to true.               !!!!
        !!!! This will extend the logging output and may slow down container start. !!!!
        !!!!          Please make sure to deactivate if no longer needed.           !!!!
        !!!!     For more information see ioBroker Docker image documentation:      !!!!
        !!!!           https://docs.buanet.de/iobroker-docker-image/docs/           !!!!
        !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
         
        --------------------------------------------------------------------------------
        -----                   Step 1 of 5: Preparing container                   -----
        --------------------------------------------------------------------------------
         
        Updating Linux packages on first run... Done.
         
         
        Registering maintenance script as command... Done.
         
        --------------------------------------------------------------------------------
        -----             Step 2 of 5: Detecting ioBroker installation             -----
        --------------------------------------------------------------------------------
         
        Existing installation of ioBroker detected in "/opt/iobroker".
         
        --------------------------------------------------------------------------------
        -----             Step 3 of 5: Checking ioBroker installation              -----
        --------------------------------------------------------------------------------
         
        (Re)setting permissions (This might take a while! Please be patient!)... Done.
         
        Fixing "sudo-bug" by replacing sudo with gosu... Done.
         
        [DEBUG] Checking multihost settings... 
        [DEBUG] No multihost settings detected.
        [DEBUG] Done.
         
        [DEBUG] Checking custom objects db settings... 
        [DEBUG] No custom objects db settings detected.
        [DEBUG] Done.
         
        [DEBUG] Checking custom states db settings... 
        [DEBUG] No custom states db settings detected.
        [DEBUG] Done.
         
        Checking Database connection... Failed.
        [DEBUG] Error message: 
        [DEBUG] /opt/scripts/iobroker_startup.sh: /usr/bin/iob: /usr/bin/bash: bad interpreter: No such file or directory
        Please check your configuration and try again.
        For more information see ioBroker Docker Image Docs (https://docs.buanet.de/iobroker-docker-image/docs).
         
        [DEBUG] Debug mode prevents the container from exiting on errors.
        [DEBUG] This enables you to investigate or fix your issue on the command line.
        [DEBUG] If you want to stop or restart your container you have to do it manually.
        [DEBUG] IoBroker is not running!
        

        Kann mir jemand weiterhelfen ?

        Danke.

        Beste Grüße

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

        @qlink sagte in Umzug Ubuntu -> Docker Synology "no connection to database":

        Kein BackitUp Adapter und keine iobroker interne backup/restore Variante.
        Just copy/paste...

        Wenn das so einfach wäre bräuchte es den Backitup-Adapter nicht.
        Ist es aber nicht. Spiel ein Backup 'ordentlich' ein.

        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

        Q 1 Antwort Letzte Antwort
        0
        • Thomas BraunT Thomas Braun

          @qlink sagte in Umzug Ubuntu -> Docker Synology "no connection to database":

          Kein BackitUp Adapter und keine iobroker interne backup/restore Variante.
          Just copy/paste...

          Wenn das so einfach wäre bräuchte es den Backitup-Adapter nicht.
          Ist es aber nicht. Spiel ein Backup 'ordentlich' ein.

          Q Offline
          Q Offline
          Qlink
          schrieb am zuletzt editiert von Qlink
          #4

          danke, habs hinbekommen...

          bin zwar über sämtliche Fallstricke mit SQL, Vis, Systeminfo und Nodered Nodes drübergestolpert, aber mittlerweile läufts.

          Vielleicht klappts ja irgendwann mal mit einem oneclick restore... träum

          1 Antwort Letzte Antwort
          0

          Hey! Du scheinst an dieser Unterhaltung interessiert zu sein, hast aber noch kein Konto.

          Hast du es satt, bei jedem Besuch durch die gleichen Beiträge zu scrollen? Wenn du dich für ein Konto anmeldest, kommst du immer genau dorthin zurück, wo du zuvor warst, und kannst dich über neue Antworten benachrichtigen lassen (entweder per E-Mail oder Push-Benachrichtigung). Du kannst auch Lesezeichen speichern und Beiträge positiv bewerten, um anderen Community-Mitgliedern deine Wertschätzung zu zeigen.

          Mit deinem Input könnte dieser Beitrag noch besser werden 💗

          Registrieren Anmelden
          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

          358

          Online

          32.8k

          Benutzer

          82.9k

          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