NEWS
Zeitzone stimmt nicht
-
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? -.-
-
@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.
-
@homoran Im Container zeigt date
So 24. Sep 12:52:02 2023
also 2h zurück. -
@ara und cat /etc/timezone
Etc/UTC -
@ara sagte: Im Container
sudo timedatectl set-timezone Europe/Berlin
-
@paul53
Diese Einstellung überlebt die nächste Generation des Containers nicht -
@ara
Zeige dein docker-compose -
@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 -
@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" -
@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 -
@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-envDu könntest also die Variable weglassen, oder wie @OliverIO schon schreibt, ohne Anführungsstriche.
-
@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!!!!!!!!!!!!!!!!!!!!!