Navigation

    Logo
    • Register
    • Login
    • Search
    • Recent
    • Tags
    • Unread
    • Categories
    • Unreplied
    • Popular
    • GitHub
    • Docu
    • Hilfe
    1. Home
    2. Deutsch
    3. ioBroker Allgemein
    4. [HowTo] ioBroker unter Docker auf Synology DiskStation

    NEWS

    • 15. 05. Wartungsarbeiten am ioBroker Forum

    • Monatsrückblick - April 2025

    • Minor js-controller 7.0.7 Update in latest repo

    [HowTo] ioBroker unter Docker auf Synology DiskStation

    This topic has been deleted. Only users with topic management privileges can see it.
    • OliverIO
      OliverIO @Neuschwansteini last edited by

      @ilovegym

      besser ist das skript in das verzeichnis
      /etc/network/if-up.d/dockermacvlan
      zu legen

      #!/bin/sh
      
      if [ "$IFACE" = "enp3s0" ]; then
          ip link add macvlan0 link enp3s0 type macvlan mode bridge
          ip addr add 192.168.1.80/28 dev macvlan0
          ip link set macvlan0 up
      fi
      
      

      das wird dann automatisch ausgeführt, sobal ein netzwerkdevice zur verfügung steht.

      1 Reply Last reply Reply Quote 0
      • OliverIO
        OliverIO last edited by

        werden thread hier findet und das verzeichnis bei sich aber nicht findet:
        nicht alle distributionen verwenden den networkmanager.

        daher muss dann nach anderen alternativen gesucht werden, wie ein userscript auf basis eines ereignisses ausgeführt werden kann.
        für DSM werden hier ein paar sachen diskutiert
        https://community.synology.com/enu/forum/11/post/133969?page=1&sort=oldest

        1 Reply Last reply Reply Quote 0
        • D
          drapo @OliverIO last edited by

          @oliverio den link hab ich eingerichtet ist aber nicht das problem. Da es in diesem fall nicht der host ist welcher mit dem container kommunizieren muss

          Neuschwansteini 1 Reply Last reply Reply Quote 0
          • Neuschwansteini
            Neuschwansteini @drapo last edited by

            @drapo

            Brauchst du die 172.er Schnittstelle? Schalt die mal ab…

            D 1 Reply Last reply Reply Quote 0
            • D
              drapo @Neuschwansteini last edited by

              @ilovegym bevor ich das tu. nur dass ich das richtig verstehe. die 172. Schnittstelle ist für die Kommunikation von Conatinern untereinander korrekt? Wenn ich die abschalte haben container untereinander keine Kommunikation mehr stimmt das?
              Bei mir läuft noch Redis auf einem eigenen Container. Kann der dann noch mit dem iobroker kommunizieren wenn ich die 172. Schnittstelle ausschalte?

              1 Reply Last reply Reply Quote 0
              • Neuschwansteini
                Neuschwansteini last edited by

                @drapo

                ja dann geht’s nicht… lass den an.
                Kann man den Adapter nicht richtig konfigurieren, wie bei mqtt, und vielen anderen?
                Was sagt denn der Developer dazu?

                D 1 Reply Last reply Reply Quote 0
                • D
                  drapo @Neuschwansteini last edited by

                  @ilovegym ich hab ihn angeschrieben. warte noch auf rückmeldung.

                  1 Reply Last reply Reply Quote 0
                  • Neuschwansteini
                    Neuschwansteini last edited by

                    @andre

                    folgende Ausgangssituation:
                    Synology 1 - Docker iobroker (macvlan) (v9.0.1), redis(host), alles in Portainer gemanaged
                    iobroker laeuft als Master, Slave ist ein iobroker LXC in Proxmox auf ner anderen Maschine, keine Probleme.

                    Synology 2 - Docker iobroker (macvlan) (v9.0.1)
                    startet alleine mit json/json ohne probleme. Dieser soll jetzt aber auch ein Slave von iobroker-Syno1 werden.
                    Vorgehensweise, lt. doku
                    in der Console den maintenance mode on, iob setup custom, alles auf den redis-host (ich hab das schon bestimmt 50x auch mit anderen Systemen gemacht), maintenance mode off, Docker neu starten...
                    Normalweise sollte der neue iobroker als Slave auftauchen, macht er nur in den Objekten, und der Container beendet sich mit "stop iobroker first"

                    
                    --------------------------------------------------------------------------------
                    -------------------------     2024-01-22 10:53:00      -------------------------
                    --------------------------------------------------------------------------------
                    -----                                                                      -----
                    ----- ██╗  ██████╗  ██████╗  ██████╗   ██████╗  ██╗  ██╗ ███████╗ ██████╗  -----
                    ----- ██║ ██╔═══██╗ ██╔══██╗ ██╔══██╗ ██╔═══██╗ ██║ ██╔╝ ██╔════╝ ██╔══██╗ -----
                    ----- ██║ ██║   ██║ ██████╔╝ ██████╔╝ ██║   ██║ █████╔╝  █████╗   ██████╔╝ -----
                    ----- ██║ ██║   ██║ ██╔══██╗ ██╔══██╗ ██║   ██║ ██╔═██╗  ██╔══╝   ██╔══██╗ -----
                    ----- ██║ ╚██████╔╝ ██████╔╝ ██║  ██║ ╚██████╔╝ ██║  ██╗ ███████╗ ██║  ██║ -----
                    ----- ╚═╝  ╚═════╝  ╚═════╝  ╚═╝  ╚═╝  ╚═════╝  ╚═╝  ╚═╝ ╚══════╝ ╚═╝  ╚═╝ -----
                    -----                                                                      -----
                    -----              Welcome to your ioBroker Docker container!              -----
                    -----                    Startupscript is now running!                     -----
                    -----                          Please be patient!                          -----
                    --------------------------------------------------------------------------------
                    
                    --------------------------------------------------------------------------------
                    -----                          System Information                          -----
                    -----                    arch:                x86_64                       -----
                    -----                    hostname:            iobrokerDS                   -----
                    -----                                                                      -----
                    -----                          Version Information                         -----
                    -----                    image:               v9.0.1                       -----
                    -----                    build:               2023-12-24T23:44:38+00:00    -----
                    -----                    node:                v18.19.0                     -----
                    -----                    npm:                 10.2.3                       -----
                    -----                                                                      -----
                    -----                        Environment Variables                         -----
                    -----                    AVAHI:               true                         -----
                    -----                    DEBUG:               false                        -----
                    -----                    IOB_OBJECTSDB_TYPE:  redis                        -----
                    -----                    IOB_OBJECTSDB_HOST:  10.10.2.10                   -----
                    -----                    IOB_OBJECTSDB_PORT:  6379                         -----
                    -----                    IOB_STATESDB_TYPE:   redis                        -----
                    -----                    IOB_STATESDB_HOST:   10.10.2.10                   -----
                    -----                    IOB_STATESDB_PORT:   6379                         -----
                    -----                    PACKAGES:            nano libfontconfig           -----
                    -----                    SETGID:              1000                         -----
                    -----                    SETUID:              1000                         -----
                    --------------------------------------------------------------------------------
                    
                    --------------------------------------------------------------------------------
                    -----                   Step 1 of 5: Preparing container                   -----
                    --------------------------------------------------------------------------------
                    
                    Updating Linux packages on first run... Done.
                    
                    
                    PACKAGES is set. Installing the following additional Linux packages: nano libfontconfig
                    
                    nano is not installed. Installing... Done.
                    libfontconfig is not installed. Installing... 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.
                    
                    Configuring custom objects db...
                    IOB_OBJECTSDB_TYPE is available and value meets detected ioBroker installation.
                    IOB_OBJECTSDB_HOST is available and value meets detected ioBroker installation.
                    IOB_OBJECTSDB_PORT is available and value meets detected ioBroker installation.
                    Done.
                    
                    Configuring custom states db...
                    IOB_STATESDB_TYPE is available and value meets detected ioBroker installation.
                    IOB_STATESDB_HOST is available and value meets detected ioBroker installation.
                    IOB_STATESDB_PORT is available and value meets detected ioBroker installation.
                    Done.
                    
                    Checking Database connection... Done.
                    
                    Hostname in ioBroker does not match the hostname of this container.
                    Cannot execute changes on running system. Stop iobroker first.
                    Updating hostname to "iobrokerDS"... 
                    
                    

                    Frage:
                    das aktivieren von "multihost on" im Docker geht nicht, da sich iobroker beendet und der ganze Container dann haengt. Starte ich den Container dann neu, ist natuerlich multihost "slave verbindungen zulassen" wieder deaktiviert...
                    Lt. Doku soll das bei Redis ja auch garnicht notwendig sein, mit nem LXC/VM unter Proxmox hatte ich da nie probleme.

                    andre 1 Reply Last reply Reply Quote 0
                    • andre
                      andre Developer @Neuschwansteini last edited by

                      @ilovegym Liegt vielleicht daran, dass du deinem Container in der Config nicht gesagt hast, dass er ein Slave sein soll. Zumindest fehlt laut Log die Umgebungsvariable "IOB_MULTIHOST".
                      Wenn ich deinen Fall richtig verstehe, dann sollte die ja auf Slave stehen. Dann würde er auch nicht versuchen den Hostnamen zu ändern... Außerdem ist es immer hilfreich in solch einem Fall "DEBUG" = "true" zu setzen. Gerade bei dem Multihost-Gedöns habe ich reichlich Logging eingebaut...

                      MfG,
                      André

                      Neuschwansteini 1 Reply Last reply Reply Quote 1
                      • Neuschwansteini
                        Neuschwansteini @andre last edited by

                        @andre

                        Danke, die Env hab ich tatsächlich übersehen.. 🙈🙈🙈

                        Kaum macht man‘s richtig, funktioniert es… 😀😀👍👍👍👍👍

                        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

                        932
                        Online

                        31.6k
                        Users

                        79.4k
                        Topics

                        1.3m
                        Posts

                        buanet diskstation docker iobroker synology
                        248
                        2854
                        1167996
                        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