Navigation

    Logo
    • Register
    • Login
    • Search
    • Recent
    • Tags
    • Unread
    • Categories
    • Unreplied
    • Popular
    • GitHub
    • Docu
    • Hilfe
    1. Home
    2. Deutsch
    3. ioBroker Allgemein
    4. [gelöst]Docker startet nicht mehr nach update auf...

    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]Docker startet nicht mehr nach update auf...

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

      Hi,

      nachdem ich den Admin Adapter auf 6.12.1 aktuallsiert habe, startet mein Docker Container nicht mehr. Ich bekam die Meldung im log: Hostname in ioBroker does not match the hostname of this container.Cannot execute changes on running system. Stop iobroker first.Updating hostname to "iobroker"...
      Ich habe daraufhin das Docker iobroker image neu gezogen, hat aber auch nicht geholfen. Danach habe ich das iobroker Verzeichniss geleert und nochmal neu gestartet, Aber immer wieder bekomme ich die gleiche Meldung.
      Mein Setup ist wie folgt: iobroker im Docker Container mit MACVLAN auf Synology. States und Objects in einem redis Container. Ein weiteres Docker Container auf einem Raspi4 8GB, ebenfalls mit MACVLAN, der an dem gleichen redis hängt.

      Hier das Boot Logging vom Synology Container:

      --------------------------------------------------------------------------------
      -------------------------     2023-11-01 09:55:54      -------------------------
      --------------------------------------------------------------------------------
      -----                                                                      -----
      ----- ██╗  ██████╗  ██████╗  ██████╗   ██████╗  ██╗  ██╗ ███████╗ ██████╗  -----
      ----- ██║ ██╔═══██╗ ██╔══██╗ ██╔══██╗ ██╔═══██╗ ██║ ██╔╝ ██╔════╝ ██╔══██╗ -----
      ----- ██║ ██║   ██║ ██████╔╝ ██████╔╝ ██║   ██║ █████╔╝  █████╗   ██████╔╝ -----
      ----- ██║ ██║   ██║ ██╔══██╗ ██╔══██╗ ██║   ██║ ██╔═██╗  ██╔══╝   ██╔══██╗ -----
      ----- ██║ ╚██████╔╝ ██████╔╝ ██║  ██║ ╚██████╔╝ ██║  ██╗ ███████╗ ██║  ██║ -----
      ----- ╚═╝  ╚═════╝  ╚═════╝  ╚═╝  ╚═╝  ╚═════╝  ╚═╝  ╚═╝ ╚══════╝ ╚═╝  ╚═╝ -----
      -----                                                                      -----
      -----              Welcome to your ioBroker Docker container!              -----
      -----                    Startupscript is now running!                     -----
      -----                          Please be patient!                          -----
      --------------------------------------------------------------------------------
       
      --------------------------------------------------------------------------------
      -----                          System Information                          -----
      -----                    arch:                x86_64                       -----
      -----                    hostname:            iobroker                     -----
      -----                                                                      -----
      -----                          Version Information                         -----
      -----                    image:               v9.0.1                       -----
      -----                    build:               2023-10-26T23:44:46+00:00    -----
      -----                    node:                v18.18.2                     -----
      -----                    npm:                 9.8.1                        -----
      -----                                                                      -----
      -----                        Environment Variables                         -----
      -----                    IOB_OBJECTSDB_TYPE:  redis                        -----
      -----                    IOB_OBJECTSDB_HOST:  192.168.101.8                -----
      -----                    IOB_OBJECTSDB_PORT:  6379                         -----
      -----                    IOB_STATESDB_TYPE:   redis                        -----
      -----                    IOB_STATESDB_HOST:   192.168.101.8                -----
      -----                    IOB_STATESDB_PORT:   6379                         -----
      -----                    SETGID:              100                          -----
      -----                    SETUID:              1029                         -----
      --------------------------------------------------------------------------------
       
      --------------------------------------------------------------------------------
      -----                   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             -----
      --------------------------------------------------------------------------------
       
      There is no data detected in /opt/iobroker.
      Restoring initial ioBroker installation... Done.
       
      --------------------------------------------------------------------------------
      -----             Step 3 of 5: Checking ioBroker installation              -----
      --------------------------------------------------------------------------------
       
      Replacing ioBroker executable to fix sudo bug... Done.
       
      (Re)setting permissions (This might take a while! Please be patient!)... Done.
       
      Configuring custom objects db...
      IOB_OBJECTSDB_TYPE is available but value is different from detected ioBroker installation.
      Setting type of objects db to "redis"... Done.
      IOB_OBJECTSDB_HOST is available but value is different from detected ioBroker installation.
      Setting host of objects db to "192.168.101.8"... Done.
      IOB_OBJECTSDB_PORT is available but value is different from detected ioBroker installation.
      Setting port of objects db to "6379"... Done.
      Done.
       
      Configuring custom states db...
      IOB_STATESDB_TYPE is available but value is different from detected ioBroker installation.
      Setting type of states db to "redis"... Done.
      IOB_STATESDB_HOST is available but value is different from detected ioBroker installation.
      Setting host of states db to "192.168.101.8"... Done.
      IOB_STATESDB_PORT is available but value is different from detected ioBroker installation.
      Setting port of states db to "6379"... Done.
      Done.
       
      Initializing a fresh installation of ioBroker... Done.
       
      Hostname in ioBroker does not match the hostname of this container.
      Cannot execute changes on running system. Stop iobroker first.
      Updating hostname to "iobroker"... 
       
      --------------------------------------------------------------------------------
      -------------------------     2023-11-01 09:56:20      -------------------------
      --------------------------------------------------------------------------------
      -----                                                                      -----
      ----- ██╗  ██████╗  ██████╗  ██████╗   ██████╗  ██╗  ██╗ ███████╗ ██████╗  -----
      ----- ██║ ██╔═══██╗ ██╔══██╗ ██╔══██╗ ██╔═══██╗ ██║ ██╔╝ ██╔════╝ ██╔══██╗ -----
      ----- ██║ ██║   ██║ ██████╔╝ ██████╔╝ ██║   ██║ █████╔╝  █████╗   ██████╔╝ -----
      ----- ██║ ██║   ██║ ██╔══██╗ ██╔══██╗ ██║   ██║ ██╔═██╗  ██╔══╝   ██╔══██╗ -----
      ----- ██║ ╚██████╔╝ ██████╔╝ ██║  ██║ ╚██████╔╝ ██║  ██╗ ███████╗ ██║  ██║ -----
      ----- ╚═╝  ╚═════╝  ╚═════╝  ╚═╝  ╚═╝  ╚═════╝  ╚═╝  ╚═╝ ╚══════╝ ╚═╝  ╚═╝ -----
      -----                                                                      -----
      -----              Welcome to your ioBroker Docker container!              -----
      -----                    Startupscript is now running!                     -----
      -----                          Please be patient!                          -----
      --------------------------------------------------------------------------------
       
      --------------------------------------------------------------------------------
      -----                          System Information                          -----
      -----                    arch:                x86_64                       -----
      -----                    hostname:            iobroker                     -----
      -----                                                                      -----
      -----                          Version Information                         -----
      -----                    image:               v9.0.1                       -----
      -----                    build:               2023-10-26T23:44:46+00:00    -----
      -----                    node:                v18.18.2                     -----
      -----                    npm:                 9.8.1                        -----
      -----                                                                      -----
      -----                        Environment Variables                         -----
      -----                    IOB_OBJECTSDB_TYPE:  redis                        -----
      -----                    IOB_OBJECTSDB_HOST:  192.168.101.8                -----
      -----                    IOB_OBJECTSDB_PORT:  6379                         -----
      -----                    IOB_STATESDB_TYPE:   redis                        -----
      -----                    IOB_STATESDB_HOST:   192.168.101.8                -----
      -----                    IOB_STATESDB_PORT:   6379                         -----
      -----                    SETGID:              100                          -----
      -----                    SETUID:              1029                         -----
      --------------------------------------------------------------------------------
       
      --------------------------------------------------------------------------------
      -----                   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.
       
      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 "iobroker"... 
      
      

      Interessant ist, dass der Hostname schon immer "iobroker" ist und war. Ich erstelle den Container aus einem Portainer Template. Da gibt es also eine Änderungen.
      Ich habe erstmal alle Adapter auf den Raspi umgezogen, damit erstmal alles weiter läuft.

      Was kann ich machen? Das init Script kann ich nicht anhalten und der Container startet ständig durch.

      Gruß
      Robert

      ? 1 Reply Last reply Reply Quote 0
      • ?
        A Former User @Rookie50 last edited by

        @rookie50 sagte in Docker startet nicht mehr nach update auf Admin 6.12.1:

        Was kann ich machen?

        Moin,

        keine Ahnung, ob das jetzt wo Du schon so im System rumgehühnert hast, das noch hilft, aber hier steht was, wie man das System richtig administriert ⇒ https://docs.buanet.de/iobroker-docker-image/docs/#maintenance

        VG
        Bernd

        R 1 Reply Last reply Reply Quote 0
        • R
          Rookie50 @Guest last edited by

          @dp20eic Danke für den Tip, dort haben ich schon gelesen. Leider startet der Container zu schnell durch. Ich komme so gerade noch in den Maintenance Modus, dann startet der Container wieder 😒

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

            @rookie50
            Wenn man debug anschaltet dann bleibt er laufen

            R 1 Reply Last reply Reply Quote 0
            • R
              Rookie50 @OliverIO last edited by

              @oliverio Super, den Schalter kannte ich noch nicht. Und damit bin ich dem ganzen auf die Schliche gekommen. Ich musste dem Host tatsächlich einen anderen Namen geben. Nun sind beide Instanzen wieder im Betrieb. Danke für die Hilfe!

              Gruß Robert

              T 1 Reply Last reply Reply Quote 0
              • T
                teddy2000 @Rookie50 last edited by

                @rookie50 So, nun wäre es ganz nett gewesen, wenn ich da nun lesen könnte, wie der Hostname geändert wird. Also so eine Anleitung für Dummies. Das mit dem environment: DEBUG: true im docker-compose.yml hat mich nämlich bereits eine Stunde gekostet.

                Vielen merci vorweg!

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

                  @teddy2000
                  https://stackoverflow.com/questions/29924843/how-do-i-set-hostname-in-docker-compose

                  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

                  421
                  Online

                  31.9k
                  Users

                  80.1k
                  Topics

                  1.3m
                  Posts

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