Navigation

    Logo
    • Register
    • Login
    • Search
    • Recent
    • Tags
    • Unread
    • Categories
    • Unreplied
    • Popular
    • GitHub
    • Docu
    • Hilfe
    1. Home
    2. Deutsch
    3. ioBroker Allgemein
    4. Zeitzone stimmt nicht

    NEWS

    • Wir empfehlen: Node.js 22.x

    • Neuer Blog: Fotos und Eindrücke aus Solingen

    • ioBroker goes Matter ... Matter Adapter in Stable

    Zeitzone stimmt nicht

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

      Hallo,
      ich habe den iobroker im Docker laufen (und neu installiert).

      Seit dem bin ich irgendwie in der falschen Zeitzone.

      Beim Docker-Compose hab ich die Var. TZ = "Europe/Berlin" gesetzt.
      Aber irgendwie reicht sich das nicht durch.

      iob diag:

      ======================= SUMMARY =======================
                           v.2023-06-20
       
       
      model name      : Intel(R) Celeron(R) J4125 CPU @ 2.00GHz
      Kernel          : x86_64
      Userland        : amd64
      Docker          : v8.1.0
       
      Installation:           Docker
      Kernel:                 x86_64
      Userland:               amd64
      Timezone:               Etc/UTC
      User-ID:                0
      X-Server:               false
       
       
      Pending OS-Updates:     0
      Pending iob updates:    0
       
      Nodejs-Installation:    /usr/bin/nodejs         v18.17.1
                              /usr/bin/node           v18.17.1
                              /usr/bin/npm            9.6.7
                              /usr/bin/npx            9.6.7
       
      Recommended versions are nodejs 18.x.y and npm 9.x.y
      Your nodejs installation is correct
       
      MEMORY:
                     total        used        free      shared  buff/cache   available
      Mem:             11G        3.4G        959M        2.7G        7.4G        5.3G
      Swap:           2.0G        350M        1.7G
      Total:           13G        3.8G        2.7G
       
      Active iob-Instances:   22
      Active repo(s): stable
       
      ioBroker Core:          js-controller           5.0.12
                              admin                   6.10.1
       
      ioBroker Status:        iobroker is running on this host.
       
       
      Objects type: jsonl
      States  type: jsonl
       
      Status admin and web instance:
      + system.adapter.admin.0                  : admin                 : iobroker2                                -  enabled, port: 8081, bind: 0.0.0.0, run as: admin
       
      Objects:                6722
      States:                 5644
       
      Size of iob-Database:
       
      15M     /opt/iobroker/iobroker-data/objects.jsonl
      5.0M    /opt/iobroker/iobroker-data/states.jsonl
       
       
      

      =================== END OF SUMMARY ====================

      Was kann ich tun? -.-

      Homoran OliverIO Marc Berg 3 Replies Last reply Reply Quote 0
      • Homoran
        Homoran Global Moderator Administrators @ara last edited by Homoran

        @ara sagte in Zeitzone stimmt nicht:

        Timezone: Etc/UTC

        und im Container?

        edit:
        bezog sich auf
        @ara sagte in Zeitzone stimmt nicht:

        Beim Docker-Compose hab ich die Var. TZ = "Europe/Berlin" gesetzt.

        ara 1 Reply Last reply Reply Quote 0
        • ara
          ara @Homoran last edited by

          @homoran Im Container zeigt date
          So 24. Sep 12:52:02 2023
          also 2h zurück.

          ara paul53 2 Replies Last reply Reply Quote 0
          • ara
            ara @ara last edited by

            @ara und cat /etc/timezone
            Etc/UTC

            1 Reply Last reply Reply Quote 0
            • paul53
              paul53 @ara last edited by

              @ara sagte: Im Container

              sudo timedatectl set-timezone Europe/Berlin
              
              OliverIO ara 2 Replies Last reply Reply Quote 0
              • OliverIO
                OliverIO @paul53 last edited by

                @paul53
                Diese Einstellung überlebt die nächste Generation des Containers nicht

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

                  @ara
                  Zeige dein docker-compose

                  ara 1 Reply Last reply Reply Quote 0
                  • ara
                    ara @paul53 last edited by

                    @paul53 said in Zeitzone stimmt nicht:

                    sudo timedatectl set-timezone Europe/Berlin

                    bringt die Antwort
                    sudo: unable to resolve host iobroker2: Name or service not known
                    sudo: timedatectl: command not found

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

                      @oliverio version: '2'

                      services:
                      iobroker:
                      container_name: iobroker5
                      image: buanet/iobroker:latest
                      hostname: iobroker2
                      restart: always
                      network_mode: host
                      volumes:
                      - /volume2/docker/iobroker5:/opt/iobroker
                      environment:
                      - TZ="Europe/Berlin"

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

                        @ara
                        Mit Code Tags wäre besser gewesen
                        Im yaml hängt es auch von den Einrückungen ab
                        Aber entferne mal die Anführungsstriche

                        1 Reply Last reply Reply Quote 1
                        • Marc Berg
                          Marc Berg Most Active @ara last edited by Marc Berg

                          @ara sagte in Zeitzone stimmt nicht:

                          TZ = "Europe/Berlin" gesetzt.

                          Der Default im Buanet Image ist bereits auf "Europe/Berlin" gesetzt.
                          https://docs.buanet.de/iobroker-docker-image/docs/#environment-variables-env

                          Du könntest also die Variable weglassen, oder wie @OliverIO schon schreibt, ohne Anführungsstriche.

                          ara 1 Reply Last reply Reply Quote 0
                          • ara
                            ara @Marc Berg last edited by

                            @marc-berg
                            Ihr seit soooooo gut!

                            Ja, das war's. TZ-Definition aus dem Docker-Compose rausgenommen, neu erzeugt und geht wie blöd.

                            Dankeschön!!!!!!!!!!!!!!!!!!!!!

                            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

                            743
                            Online

                            32.0k
                            Users

                            80.4k
                            Topics

                            1.3m
                            Posts

                            5
                            12
                            1748
                            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