Navigation

    Logo
    • Register
    • Login
    • Search
    • Recent
    • Tags
    • Unread
    • Categories
    • Unreplied
    • Popular
    • GitHub
    • Docu
    • Hilfe
    1. Home
    2. Deutsch
    3. ioBroker Allgemein
    4. Umzug Ubuntu -> Docker Synology "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

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

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

      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 Braun 1 Reply Last reply Reply Quote 0
      • Marc Berg
        Marc Berg Most Active last edited by Marc Berg

        @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.

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

          @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 1 Reply Last reply Reply Quote 0
          • Q
            Qlink @Thomas Braun last edited by Qlink

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

            890
            Online

            31.8k
            Users

            80.0k
            Topics

            1.3m
            Posts

            3
            4
            281
            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