[GELÖST] Uhrzeit immer falsch
Moderatoren: jmaus, Co-Administratoren
- jmaus
- Beiträge: 9862
- Registriert: 17.02.2015, 14:45
- System: Alternative CCU (auf Basis OCCU)
- Wohnort: Dresden
- Hat sich bedankt: 464 Mal
- Danksagung erhalten: 1880 Mal
- Kontaktdaten:
Re: Uhrzeit immer falsch
Es geht um die /etc/config/localtime datei bzw symlink. Der sitzt falsch. Schau mal nach unstellen ob der sich dann anders verhält bzw auf was anderes zeigt. D.h. Immer den readlink Befehl ausführen.
RaspberryMatic 3.75.7.20240420 @ ProxmoxVE – ~200 Hm-RF/HmIP-RF/HmIPW Geräte + ioBroker + HomeAssistant – GitHub / Sponsors / PayPal /
- jmaus
- Beiträge: 9862
- Registriert: 17.02.2015, 14:45
- System: Alternative CCU (auf Basis OCCU)
- Wohnort: Dresden
- Hat sich bedankt: 464 Mal
- Danksagung erhalten: 1880 Mal
- Kontaktdaten:
Re: Uhrzeit immer falsch
Dann lösch mal den /etc/config/localtime symlink und setz dann in der webui nochmal die zeitzone neu und dann schau mit dem readlink kommando mal auf was der neu generierte symlink dann zeigt.
RaspberryMatic 3.75.7.20240420 @ ProxmoxVE – ~200 Hm-RF/HmIP-RF/HmIPW Geräte + ioBroker + HomeAssistant – GitHub / Sponsors / PayPal /
- jmaus
- Beiträge: 9862
- Registriert: 17.02.2015, 14:45
- System: Alternative CCU (auf Basis OCCU)
- Wohnort: Dresden
- Hat sich bedankt: 464 Mal
- Danksagung erhalten: 1880 Mal
- Kontaktdaten:
Re: Uhrzeit immer falsch
Achja, für mal noch folgende Befehle mal auf der Kommandozeile aus und schau ob das was ausgibt:
Code: Alles auswählen
/bin/updateTZ.sh
Code: Alles auswählen
ls -la /usr/share/zoneinfo/Europe/Berlin
RaspberryMatic 3.75.7.20240420 @ ProxmoxVE – ~200 Hm-RF/HmIP-RF/HmIPW Geräte + ioBroker + HomeAssistant – GitHub / Sponsors / PayPal /
-
- Beiträge: 100
- Registriert: 27.11.2014, 18:30
- System: Alternative CCU (auf Basis OCCU)
- Wohnort: Palz
- Hat sich bedankt: 1 Mal
Re: Uhrzeit immer falsch
Moin,
ich hab ja das gleiche Problem auch schon im Firmwarethread gemeldet. Bisher ohne eine Lösung...
Habe jetzt mit mehreren NTP Adressen gespielt, die Uhr ist immer um eine Stunde weggelaufen.
Seit heute Morgen habe ich die IP Adresse der Fritzbox drin, seitdem stimmt die Uhr der RM....
Ich bin verwundert....
ich hab ja das gleiche Problem auch schon im Firmwarethread gemeldet. Bisher ohne eine Lösung...
Habe jetzt mit mehreren NTP Adressen gespielt, die Uhr ist immer um eine Stunde weggelaufen.
Seit heute Morgen habe ich die IP Adresse der Fritzbox drin, seitdem stimmt die Uhr der RM....
Ich bin verwundert....
-
- Beiträge: 207
- Registriert: 25.05.2017, 01:24
- Hat sich bedankt: 8 Mal
- Danksagung erhalten: 2 Mal
Re: Uhrzeit immer falsch
jmaus hat geschrieben: ↑04.10.2020, 17:46Achja, für mal noch folgende Befehle mal auf der Kommandozeile aus und schau ob das was ausgibt:
Code: Alles auswählen
/bin/updateTZ.sh
Code: Alles auswählen
ls -la /usr/share/zoneinfo/Europe/Berlin
Code: Alles auswählen
root@raspberrymatic-ccu2:~# /bin/updateTZ.sh
ln: /etc/config/localtime/Berlin: Read-only file system
root@raspberrymatic-ccu2:~# ls -la /usr/share/zoneinfo/Europe/Berlin
-rw-r--r-- 1 root root 2298 Sep 19 13:18 /usr/share/zoneinfo/Europe/Berlin
root@raspberrymatic-ccu2:~#
-
- Beiträge: 207
- Registriert: 25.05.2017, 01:24
- Hat sich bedankt: 8 Mal
- Danksagung erhalten: 2 Mal
- jmaus
- Beiträge: 9862
- Registriert: 17.02.2015, 14:45
- System: Alternative CCU (auf Basis OCCU)
- Wohnort: Dresden
- Hat sich bedankt: 464 Mal
- Danksagung erhalten: 1880 Mal
- Kontaktdaten:
Re: Uhrzeit immer falsch
Ok, wir kommen der Sache näher. Muss nur noch verstehen was da bei dir schief geht. Für bitte mal noch folgende Kommandos aus:Patt hat geschrieben: ↑04.10.2020, 17:58Code: Alles auswählen
root@raspberrymatic-ccu2:~# /bin/updateTZ.sh ln: /etc/config/localtime/Berlin: Read-only file system
Code: Alles auswählen
mount
ls -la /etc/config/
ls -la /etc/config/localtime/
RaspberryMatic 3.75.7.20240420 @ ProxmoxVE – ~200 Hm-RF/HmIP-RF/HmIPW Geräte + ioBroker + HomeAssistant – GitHub / Sponsors / PayPal /
-
- Beiträge: 207
- Registriert: 25.05.2017, 01:24
- Hat sich bedankt: 8 Mal
- Danksagung erhalten: 2 Mal
Re: Uhrzeit immer falsch
Hallo,
Code: Alles auswählen
root@raspberrymatic-ccu2:~# mount
/dev/root on / type ext4 (ro,relatime)
devtmpfs on /dev type devtmpfs (rw,relatime,size=1016120k,nr_inodes=184476,mode=755)
proc on /proc type proc (rw,relatime)
devpts on /dev/pts type devpts (rw,relatime,gid=5,mode=620,ptmxmode=000)
tmpfs on /dev/shm type tmpfs (rw,relatime,mode=777)
tmpfs on /tmp type tmpfs (rw,noatime)
tmpfs on /run type tmpfs (rw,nosuid,nodev,noatime,mode=755)
sysfs on /sys type sysfs (rw,relatime)
tmpfs on /var type tmpfs (rw,noatime)
tmpfs on /media type tmpfs (rw,noatime)
/dev/mmcblk2p3 on /usr/local type ext4 (rw,noatime,nodiratime,nodelalloc,data=journal)
/dev/mmcblk2p1 on /boot type vfat (ro,relatime,fmask=0022,dmask=0022,codepage=437,iocharset=iso8859-1,shortname=mixed,errors=remount-ro)
root@raspberrymatic-ccu2:~# ls -la /etc/config/
total 5104
drwxrwxr-x 14 root root 4096 Oct 4 23:16 .
drwxr-xr-x 4 root root 4096 Jun 27 2019 ..
-rw-r--r-- 1 root root 519 Oct 3 09:11 InterfacesList.xml
-rw-r--r-- 1 root root 14 Oct 4 10:53 TZ
drwxr-xr-x 7 root root 4096 Sep 25 05:29 addons
drwxr-xr-x 3 root root 4096 Jul 2 2019 crRFD
-rw-r--r-- 1 root root 35 Mar 12 2017 crypttool.cfg
-rw-r--r-- 1 root root 106 Nov 20 2016 energyPrice
drwxr-xr-x 3 root root 4096 Nov 20 2016 eshlight
-rw-r--r-- 1 root root 607 Sep 25 05:36 firewall.conf
-rw-r--r-- 1 root root 0 Jul 2 2019 firewallConfigured
drwxr-xr-x 4 root root 4096 May 24 2018 firmware
drwxr-xr-x 2 root root 4096 Sep 25 05:22 hap-homematic
-rw-r--r-- 1 root root 917 Sep 25 05:29 hm_addons.cfg
-rw-r--r-- 1 root root 79 Jun 14 2016 hmip_address.conf
-rw-r--r-- 1 root root 2537528 Oct 4 23:16 homematic.regadom
-rw-r--r-- 1 root root 2537529 Oct 4 11:16 homematic.regadom.bak
drwxr-xr-x 2 root root 4096 Jan 1 1970 hs485d
-rw-r--r-- 1 root root 149 Jan 2 2020 hs485d.conf
-rw-r--r-- 1 root root 26 Jan 1 1970 ids
-rw-r--r-- 1 root root 84 Mar 12 2017 keys
-rw-r--r-- 1 root root 0 Jul 2 2019 legacyAPIMigrationAccepted
lrwxrwxrwx 1 root root 20 Jun 27 2019 localtime -> /usr/share/zoneinfo/
-rw-r--r-- 1 root root 1220 Jun 14 2016 log4j.xml
drwxr-xr-x 2 root root 4096 Dec 7 2016 measurement
-rw-r--r-- 1 root root 402 Jun 14 2016 multimacd.conf
-rw-r--r-- 1 root root 305 Oct 3 09:11 netconfig
-rw-r--r-- 1 root root 28 Oct 3 09:02 ntpclient
drwxr-xr-x 2 root root 4096 May 3 2017 nut
-rw-r--r-- 1 root root 512 Oct 3 09:10 random-seed
drwxr-xr-x 2 root root 4096 Oct 3 18:34 rc.d
-rw-r--r-- 1 root root 76 Jul 19 2017 rega.conf
drwxr-xr-x 2 root root 4096 Oct 2 06:45 rfd
-rw-r--r-- 1 root root 872 Oct 3 09:11 rfd.conf
-rw-r--r-- 1 root root 2900 Jun 25 2017 server.pem
-rw------- 1 root root 453 Oct 3 08:44 shadow
drwxr-xr-x 2 root root 4096 Nov 17 2018 snmp
-rw-r--r-- 1 root root 0 Oct 3 08:44 sshEnabled
-rw-r--r-- 1 root root 66 Jan 1 1970 syslog
-rw-r--r-- 1 root root 92 Oct 4 10:53 time.conf
-rw-r--r-- 1 root root 14 Oct 4 15:58 timezone
-rw-r--r-- 1 root root 0 Jul 2 2019 userAckSecurityHint
drwxr-xr-x 2 root root 4096 Jul 3 2019 userprofiles
root@raspberrymatic-ccu2:~# ls -la /etc/config/localtime
lrwxrwxrwx 1 root root 20 Jun 27 2019 /etc/config/localtime -> /usr/share/zoneinfo/
root@raspberrymatic-ccu2:~#
- jmaus
- Beiträge: 9862
- Registriert: 17.02.2015, 14:45
- System: Alternative CCU (auf Basis OCCU)
- Wohnort: Dresden
- Hat sich bedankt: 464 Mal
- Danksagung erhalten: 1880 Mal
- Kontaktdaten:
Re: Uhrzeit immer falsch
Ok, nun konnte ich das Problem nachstellen und eingrenzen. Gib nun folgenden Befehl ein:
Und danach dann nochmal das updateTZ.sh wie folgt aufrufen:
Und dann sollte das localtime auf "Europe/Berlin" zeigen.
Dann kannst du neustarten und es sollte hoffentlich alles wieder i.O. sein.
Code: Alles auswählen
rm -f /etc/config/localtime
Code: Alles auswählen
/bin/updateTZ.sh
Dann kannst du neustarten und es sollte hoffentlich alles wieder i.O. sein.
RaspberryMatic 3.75.7.20240420 @ ProxmoxVE – ~200 Hm-RF/HmIP-RF/HmIPW Geräte + ioBroker + HomeAssistant – GitHub / Sponsors / PayPal /