PDA

Archiv verlassen und diese Seite im Standarddesign anzeigen : Debian Jessy falsche systemzeit



Seiten : [1] 2

Coolzero
05.11.15, 20:12
Hallo, wir haben aktuell 21:10, mein Debian Jessy zeigt mir aber an wenn ich "Date" eingebe das wir 21:27 hatten.

Die Zeitzone stimmt, aber ich hab immer diese 17 Minuten Differenz, wie kann ich das korrigieren!?

Danke

Newbie314
05.11.15, 20:16
Wenn die Kiste regelmäßig ins Internet kommt würde ich ntp installieren und einrichten:

http://wiki.hetzner.de/index.php/Uhrzeit_synchronisieren_mit_NTP

Newbie314
05.11.15, 20:18
Hier ist noch ne Anleitung + die Anleitung wie du die Uhr stellst.

https://debian-blog.org/zeitzonezeit-unter-debian-andern/

Coolzero
05.11.15, 20:22
ntp ist konfiguriert, trotzdem kommt die falsche Zeit, seltsam ist wenn ich z.b. ein:

ntpdate ptbtime1.ptb.de durchführe, dann kommt:

5 Nov 21:37:19 ntpdate[27658]: the NTP socket is in use, exiting

nopes
05.11.15, 20:32
Lies dir mal diese Anleitung durch, da gibt es auch ein Troubleshooting Abschnitt - https://wiki.debian.org/NTP

Coolzero
05.11.15, 20:42
Ich denke es wird einfach (wieso auch immer plötzlich) der falsche Server genutzt:

ntpq -p
remote refid st t when poll reach delay offset jitter
================================================== ============================
+static.15.127.2 193.67.79.202 2 u 46 64 377 38.648 -952679 158.385
*lite.computer .DCFp. 1 u 41 64 377 17.050 -952677 155.742
+janetzki.eu 211.172.242.174 3 u 29 64 377 18.410 -952675 162.043
+s1.kelker.info 213.172.96.14 2 u 34 64 377 14.434 -952677 163.733


wie kann ich auf der Konsole die Server ändern, z.b. auf

server 0.de.pool.ntp.org
server 1.de.pool.ntp.org
server 2.de.pool.ntp.org
server 3.de.pool.ntp.org

Ich hab jetzt über nano die /etc/ntp.conf bearbeitet und die

server 0.de.pool.ntp.org
server 1.de.pool.ntp.org
server 2.de.pool.ntp.org
server 3.de.pool.ntp.org
eingefügt, aber trotzdem ist die Zeir falsch...

Newbie314
05.11.15, 20:59
Steht in den von mir verlinkten Anleitungen.

nopes
05.11.15, 23:02
Davon ab, du hast aber schon geprüft, ob der ntpd die Zeit überhaupt stellt, als mal ganz bewusst die Zeit verstellt und anschließend geprüft, ob der ntpd die korrigiert?

Zum Vergleich mal meine billig Tests, die erfolgreich waren:
root@debdev2:/home/nopes# date;date -u
Do 5. Nov 23:41:27 CET 2015
Do 5. Nov 22:41:27 UTC 2015
root@debdev2:/home/nopes# date -s 23:37:00
Do 5. Nov 23:37:00 CET 2015
root@debdev2:/home/nopes# date -u
Do 5. Nov 22:37:04 UTC 2015
root@debdev2:/home/nopes# ntpdate -s ptbtime1.ptb.de
root@debdev2:/home/nopes# date;date -u
Do 5. Nov 23:43:06 CET 2015
Do 5. Nov 22:43:06 UTC 2015
root@debdev2:/home/nopes# service ntp status
ntp.service - LSB: Start NTP daemon
Loaded: loaded (/etc/init.d/ntp)
Active: active (running) since Do 2015-11-05 23:43:20 CET; 4s ago
Process: 17689 ExecStop=/etc/init.d/ntp stop (code=exited, status=0/SUCCESS)
Process: 17723 ExecStart=/etc/init.d/ntp start (code=exited, status=0/SUCCESS)
CGroup: /system.slice/ntp.service
└─17733 /usr/sbin/ntpd -p /var/run/ntpd.pid -g -u 120:127

Nov 05 23:43:21 debdev2 ntpd[17733]: Soliciting pool server 85.10.246.226
...
Nov 05 23:43:24 debdev2 ntpd[17733]: Soliciting pool server 78.47.126.83
root@debdev2:/home/nopes# date;date -u
Do 5. Nov 23:43:56 CET 2015
Do 5. Nov 22:43:57 UTC 2015
root@debdev2:/home/nopes# date -s 23:40:00;service ntp status;sleep 181;date;date -u;service ntp status
Do 5. Nov 23:40:00 CET 2015
ntp.service - LSB: Start NTP daemon
Loaded: loaded (/etc/init.d/ntp)
Active: active (running) since Do 2015-11-05 23:43:20 CET; 3min 20s left
Process: 17689 ExecStop=/etc/init.d/ntp stop (code=exited, status=0/SUCCESS)
Process: 17723 ExecStart=/etc/init.d/ntp start (code=exited, status=0/SUCCESS)
CGroup: /system.slice/ntp.service
└─17733 /usr/sbin/ntpd -p /var/run/ntpd.pid -g -u 120:127

Nov 05 23:43:21 debdev2 ntpd[17733]: Soliciting pool server 85.10.246.226
...
Nov 05 23:43:24 debdev2 ntpd[17733]: Soliciting pool server 78.47.126.83
Do 5. Nov 23:43:01 CET 2015
Do 5. Nov 22:43:01 UTC 2015
ntp.service - LSB: Start NTP daemon
Loaded: loaded (/etc/init.d/ntp)
Active: active (running) since Do 2015-11-05 23:43:20 CET; 19s left
Process: 17689 ExecStop=/etc/init.d/ntp stop (code=exited, status=0/SUCCESS)
Process: 17723 ExecStart=/etc/init.d/ntp start (code=exited, status=0/SUCCESS)
CGroup: /system.slice/ntp.service
└─17733 /usr/sbin/ntpd -p /var/run/ntpd.pid -g -u 120:127

Nov 05 23:43:24 debdev2 ntpd[17733]: Soliciting pool server 176.9.1.211
...
Nov 05 23:41:32 debdev2 ntpd[17733]: Soliciting pool server 2a01:4f8:11d:700::75
root@debdev2:/home/nopes# # ok zeit stimmt noch nicht
root@debdev2:/home/nopes# service ntp status
ntp.service - LSB: Start NTP daemon
Loaded: loaded (/etc/init.d/ntp)
Active: active (running) since Do 2015-11-05 23:43:20 CET; 5min ago
Process: 17689 ExecStop=/etc/init.d/ntp stop (code=exited, status=0/SUCCESS)
Process: 17723 ExecStart=/etc/init.d/ntp start (code=exited, status=0/SUCCESS)
CGroup: /system.slice/ntp.service
└─17733 /usr/sbin/ntpd -p /var/run/ntpd.pid -g -u 120:127

Nov 05 23:41:30 debdev2 ntpd[17733]: Soliciting pool server 144.76.19.215
...
Nov 05 23:43:25 debdev2 ntpd[17733]: Soliciting pool server 95.129.55.109
Nov 05 23:43:36 debdev2 ntpd[17733]: kernel reports TIME_ERROR: 0x2041: Clock Unsynchronized
Nov 05 23:48:50 debdev2 ntpd[17733]: frequency error 961104 PPM exceeds tolerance 500 PPM
root@debdev2:/home/nopes# # man beachte die letzte zeile
root@debdev2:/home/nopes# service ntp status
ntp.service - LSB: Start NTP daemon
Loaded: loaded (/etc/init.d/ntp)
Active: active (running) since Do 2015-11-05 23:43:20 CET; 9min ago
Process: 17689 ExecStop=/etc/init.d/ntp stop (code=exited, status=0/SUCCESS)
Process: 17723 ExecStart=/etc/init.d/ntp start (code=exited, status=0/SUCCESS)
CGroup: /system.slice/ntp.service
└─17733 /usr/sbin/ntpd -p /var/run/ntpd.pid -g -u 120:127

Nov 05 23:52:17 debdev2 ntpd[17733]: 5.9.122.148 local addr 10.0.2.15 -> <null>
Nov 05 23:52:17 debdev2 ntpd[17733]: 78.46.232.183 local addr 10.0.2.15 -> <null>
Nov 05 23:52:17 debdev2 ntpd[17733]: 85.214.143.181 local addr 10.0.2.15 -> <null>
Nov 05 23:52:17 debdev2 ntpd[17733]: 217.79.179.106 local addr 10.0.2.15 -> <null>
Nov 05 23:52:17 debdev2 ntpd[17733]: 85.214.194.162 local addr 10.0.2.15 -> <null>
Nov 05 23:52:17 debdev2 ntpd[17733]: 5.45.97.110 local addr 10.0.2.15 -> <null>
Nov 05 23:52:17 debdev2 ntpd[17733]: 85.10.246.226 local addr 10.0.2.15 -> <null>
Nov 05 23:52:17 debdev2 ntpd[17733]: Deleting interface #5 eth0, fe80::a00:27ff:fef1:d14f%2#123, interface stats: received=0, sent=0, dropped=0, active_time=537 secs
Nov 05 23:52:21 debdev2 ntpd[17733]: Listen normally on 6 eth0 10.0.2.15:123
Nov 05 23:52:21 debdev2 ntpd[17733]: Listen normally on 7 eth0 [fe80::a00:27ff:fef1:d14f%2]:123
root@debdev2:/home/nopes# # alles wieder im grünen bereich..

Coolzero
06.11.15, 16:27
Hallo,
nach einem System Neustart passt die Zeit jetzt Plötzlich

Danke für die Tips

Coolzero
22.11.15, 18:59
Hab das Problem schon wieder, date hat eine andere Zeit wie hwclock, was ist da los? Auch ein neustart und die links helfen leider nicht:


date
Mon Nov 23 20:04:53 CET 2015
root@cubie:~# hwclock
Sat 21 Nov 2015 07:53:59 PM CET -1.732568 seconds

date;date -u Mon Nov 23 20:18:51 CET 2015 Mon Nov 23 19:18:51 UTC 2015

service ntp status ● ntp.service - LSB: Start NTP daemon Loaded: loaded (/etc/init.d/ntp) Active: active (running) since Mon 2015-11-23 19:53:12 CET; 30min ago Process: 521 ExecStart=/etc/init.d/ntp start (code=exited, status=0/SUCCESS) CGroup: /system.slice/ntp.service └─598 /usr/sbin/ntpd -p /va... Nov 23 19:53:12 cubie ntpd[598]: proto...Nov 23 19:53:12 cubie ntpd[598]: Liste...Nov 23 19:53:12 cubie ntpd[598]: Liste...Nov 23 19:53:12 cubie ntpd[598]: Liste...Nov 23 19:53:12 cubie ntpd[598]: Liste...Nov 23 19:53:12 cubie ntpd[598]: Liste...Nov 23 19:53:12 cubie ntpd[598]: Liste...Nov 23 19:53:12 cubie ntpd[598]: peers...Nov 23 19:53:12 cubie ntpd[598]: Liste...Nov 23 19:53:12 cubie systemd[1]: Star...Hint: Some lines were ellipsized, use -l to show in full.

ntpdate ptbtime1.ptb.de 23 Nov 20:30:30 ntpdate[9796]: the NTP socket is in use, exiting
sudo ntpdate ptbtime1.ptb.de 23 Nov 20:35:15 ntpdate[10906]: Can't adjust the time of day: Invalid argument




Was kann ich machen

Newbie314
22.11.15, 19:22
Gehe ich recht in der Annahme dass hwclock stimmt und date komplett daneben ist ?

Wenn dem so ist führe bitte mal das aus was hier http://www.thegeekstuff.com/2013/08/hwclock-examples/ unter Punkt 4 steht.

(Ich verlinke um dir Google Tipps für solche Probleme zu geben).

Dann beobachte mal wie lange es dauert bis die Zeiten wieder auseinander liegen. Meine Vermutung: dein ntp Dienst verliert möglicherweise immer wieder die Verbindung zum Server, und dann läuft die Systemzeit davon. Also nochmal in die ntpd Konfigurationsdateien reinschauen, und auch mal den eingestellten Zeitserver anpingen.

Und dann poste mal deine Konfiguration. Bei mir (und laut meinen Google Ergebnissen auch bei dir) liegt sie unter /etc/ntp.conf

nopes
22.11.15, 19:37
Hallo Nochmal,

gut ist du hast code Tags verwendet, schlecht ist das der Inhalt relativ wenig hergibt, allerdings verwendest du ntpdate nicht richtig

...

...
ntpdate ptbtime1.ptb.de 23 Nov 20:30:30 ntpdate[9796]: the NTP socket is in use, exiting
sudo ntpdate ptbtime1.ptb.de 23 Nov 20:35:15 ntpdate[10906]: Can't adjust the time of day: Invalid argument...
richtig ist vermutlich - ansonsten man ntpdate

sudo ntpdate -s ptbtime1.ptb.de

Coolzero
22.11.15, 19:42
Hi, nein weder noch bis grade eben war es so das Date das Datum von gestern 21.11.15 und hwclock von morgen 23.11.15, aber heute ist der 22.11.15

Hab beide dann jetzt wenigstens gleich falsch auf morgen 23.11

Seltsam ist auch wenn ich die Zeit Manuel setze das dann trotzdem beide falsch sind...


date -s "11/22/2015 20:38:00" Sun Nov 22 20:38:00 CET 2015 root@cubie:~# date Mon Nov 23 20:45:37 CET 2015 root@cubie:~# hwclock Mon 23 Nov 2015 08:45:50 PM CET -1.989471 seconds

@nopes
Leider auch nichts gebracht:


sudo ntpdate -s ptbtime1.ptb.de root@cubie:~# root@cubie:~# date Mon Nov 23 20:52:02 CET 2015 root@cubie:~# hwclock Mon 23 Nov 2015 08:52:09 PM CET -1.081438 seconds

Die ntp.conf


/etc/ntp.conf, configuration for ntpd; see ntp.conf(5) for help driftfile /var/lib/ntp/ntp.drift # Enable this if you want statistics to be logged. #statsdir /var/log/ntpstats/ # /etc/ntp.conf, configuration for ntpd; see ntp.conf(5) for help driftfile /var/lib/ntp/ntp.drift # Enable this if you want statistics to bb e logged. #statsdir /var/log/ntpstats/ statistics loopstats peerstats clockstats filegen loopstats file loopstats type dayy enable # /etc/ntp.conf, configuration for ntpd; see ntp.conf(5) for help driftfile /var/lib/ntp/ntp.drift # Enable this if you want statistics to be logged. #statsdir /var/log/ntpstats/ statistics loopstats peerstats clockstats filegen loopstats file loopstats type day enable filegen peerstats file peerstats type day enable filegen clockstats file clockstats type day enable # /etc/ntp.conf, configuration for ntpd; see ntp.conf(5) for help driftfile /var/lib/ntp/ntp.drift # Enable this if you want statistics to be logged. #statsdir /var/log/ntpstats/ statistics loopstats peerstats clockstats filegen loopstats file loopstats type day
enable

pool.ntp.org maps to about 1000 low-stratum NTP servers. Your server will # pick a different set every time it starts up. Please consider joining the # pool: server 0.de.pool.ntp.org server 1.de.pool.ntp.org server 2.de.pool.ntp.org server 3.de.pool.ntp.org # Access control configuration; see /usr/share/doc/ntp-doc/html/accopt.html for # details. The web page # might also be helpful.
# By default, exchange time with everybody, but don't allow configuration. restrict -4 default kod notrap nomodify nopeer noquery restrict -6 default kod notrap nomodify nopeer noquery # Local users may interrogate the ntp server more closely. restrict 127.0.0.1 restrict ::1 # Clients from this (example!) subnet have unlimited access, but only if # cryptographically authenticated. #restrict 192.168.123.0 mask 255.255.255.0 notrust
# If you want to provide time to your local subnet, change the next line. # (Again, the address is an example only.) #broadcast 192.168.123.255 # If you want to listen to time broadcasts on your local subnet, de-comment the # next lines. Please do this only if you trust everybody on the network! #disable auth #broadcastclient

marce
23.11.15, 06:42
Prüf auch mal Deine BIOS-Einstllungen zum Thema Systemzeit und die Ausgabe von locale sowie die /etc/localtime

zudem vielleicht noch ein Blick auf http://de.wikihow.com/Die-Zeitzone-unter-Linux-%C3%A4ndern werfen.

Wenn das Verhalten sich zudem auch mit Reboots und Konsorten (Rechner runterfahren, ...) parallel ändert - evtl. ist auch einfach die BIOS-Batterie im Arsch und sollte mal getauscht werden.

Newbie314
23.11.15, 07:30
Das ntp.conf kann ich so nicht lesen. Wie hast du das denn gedumpt ?

Öffne das doch bitte einfach in einem Editor und poste es hier nochmal rein.

marce
23.11.15, 08:02
Noch 'ne ganz doofe andere Frage: Läuft das System auf echter Hardware oder ist das eine VM?

Coolzero
23.11.15, 10:08
Hi, werde ich heute Abend alles machen.
Das system ist ein Cubietruck, da muss ich auch gucken wie ich überhaupt ins BIOS komme

Coolzero
23.11.15, 19:06
Prüf auch mal Deine BIOS-Einstllungen zum Thema Systemzeit und die Ausgabe von locale sowie die /etc/localtime

zudem vielleicht noch ein Blick auf http://de.wikihow.com/Die-Zeitzone-unter-Linux-%C3%A4ndern werfen.

Wenn das Verhalten sich zudem auch mit Reboots und Konsorten (Rechner runterfahren, ...) parallel ändert - evtl. ist auch einfach die BIOS-Batterie im Arsch und sollte mal getauscht werden.

locale ergibt


locale
LANG=en_US.UTF-8
LANGUAGE=en_US.UTF-8
LC_CTYPE="en_US.UTF-8"
LC_NUMERIC="en_US.UTF-8"
LC_TIME="en_US.UTF-8"
LC_COLLATE="en_US.UTF-8"
LC_MONETARY="en_US.UTF-8"
LC_MESSAGES=POSIX
LC_PAPER="en_US.UTF-8"
LC_NAME="en_US.UTF-8"
LC_ADDRESS="en_US.UTF-8"
LC_TELEPHONE="en_US.UTF-8"
LC_MEASUREMENT="en_US.UTF-8"
LC_IDENTIFICATION="en_US.UTF-8"
LC_ALL=


das scheint ja schonmal falsch zu sein...



sudo /etc/localtime
sudo: /etc/localtime: command not found


Im link bin ich noch am lesen

Coolzero
23.11.15, 19:08
Das ntp.conf kann ich so nicht lesen. Wie hast du das denn gedumpt ?

Öffne das doch bitte einfach in einem Editor und poste es hier nochmal rein.


# /etc/ntp.conf, configuration for ntpd; see ntp.conf(5) for help

driftfile /var/lib/ntp/ntp.drift


# Enable this if you want statistics to be logged.
#statsdir /var/log/ntpstats/

statistics loopstats peerstats clockstats
filegen loopstats file loopstats type day enable
filegen peerstats file peerstats type day enable
filegen clockstats file clockstats type day enable


# You do need to talk to an NTP server or two (or three).
#server ntp.your-provider.example

# pool.ntp.org maps to about 1000 low-stratum NTP servers. Your server will
# pick a different set every time it starts up. Please consider joining the
# pool: <http://www.pool.ntp.org/join.html>
server 0.de.pool.ntp.org
server 1.de.pool.ntp.org
server 2.de.pool.ntp.org
server 3.de.pool.ntp.org


# Access control configuration; see /usr/share/doc/ntp-doc/html/accopt.html for
# details. The web page <http://support.ntp.org/bin/view/Support/AccessRestrictions>
# might also be helpful.
#
# Note that "restrict" applies to both servers and clients, so a configuration
# that might be intended to block requests from certain clients could also end
# up blocking replies from your own upstream servers.

# By default, exchange time with everybody, but don't allow configuration.
restrict -4 default kod notrap nomodify nopeer noquery
restrict -6 default kod notrap nomodify nopeer noquery

# Local users may interrogate the ntp server more closely.
restrict 127.0.0.1
restrict ::1

# Clients from this (example!) subnet have unlimited access, but only if
# cryptographically authenticated.
#restrict 192.168.123.0 mask 255.255.255.0 notrust


# If you want to provide time to your local subnet, change the next line.
# (Again, the address is an example only.)
#broadcast 192.168.123.255

# If you want to listen to time broadcasts on your local subnet, de-comment the
# next lines. Please do this only if you trust everybody on the network!
#disable auth
#broadcastclient

Newbie314
23.11.15, 20:17
OK, ich sehe keinen Fehler. Evtl. noch sehen ob ntpq -p was interessantes ausgibt, Ausgabe soll so aussehen: http://www.pool.ntp.org/de/use.html

nopes
23.11.15, 23:29
Ich würde mal einen festen NTP Server nutzen, nicht das da einfach was schief geht - etwa so

# You do need to talk to an NTP server or two (or three).
#server ntp.your-provider.example
# NTP-Server der PTB - http://ptb.de
server ptbtime1.ptb.de
server ptbtime2.ptb.de
server ptbtime3.ptb.de
# pool.ntp.org maps to about 1000 low-stratum NTP servers. Your server will
# pick a different set every time it starts up. Please consider joining the
# pool: <http://www.pool.ntp.org/join.html>
# EIN NÜTZLICHER HINWEIS AN DIESER STELLE KANN NICHT SCHADE
#server 0.de.pool.ntp.org
#server 1.de.pool.ntp.org
#server 2.de.pool.ntp.org
#server 3.de.pool.ntp.org

Wegen der Zeitzone, ganz generell steht die fast immer in /etc/timezone:

root@debdev2:/home/nopes# ls -la /etc/timezone
-rw-r--r-- 1 root root 14 Sep 18 22:59 /etc/timezone
root@debdev2:/home/nopes# cat /etc/timezone
Europe/Berlin
root@debdev2:/home/nopes# Weiterhin gilt, dein Linux nutzt UTF-8, damit sind die "Locale-Einstellungen" nicht zwingend falsch, ggf. kannst du diesen Befehl ausführen, um de_DE.UTF-8 einzustellen (notwendig eher nicht - Tastatur Layout ist hier entscheidener, probiere also mal ein äöü einzutippen oder ein :, wenn das nicht geht* ;))
dpkg-reconfigure locales
*Keyboard-Layout:
dpkg-reconfigure keyboard-configuration

[edit]Wobei auch das wieder nebensächlich werden kann, wenn du zB per ssh zugreifst...

BetterWorld
24.11.15, 00:27
Ich behaupte mal ganz frech, dass da ein Windows zwischendurch parallel gebootet wird.
Dort weicht die Zeit ab. Und zwar so weit, dass ein evtl. dort konfigurierter NTP-Service nichts macht. (17 Minuten sind sicher jenseits der Grenze)
Aber die hwclock gestellt wird.

Ist das so?
Läuft (und bootest du) ein parallel installiertes Windows?

Coolzero
24.11.15, 05:31
Ich behaupte mal ganz frech, dass da ein Windows zwischendurch parallel gebootet wird.
Dort weicht die Zeit ab. Und zwar so weit, dass ein evtl. dort konfigurierter NTP-Service nichts macht. (17 Minuten sind sicher jenseits der Grenze)
Aber die hwclock gestellt wird.

Ist das so?
Läuft (und bootest du) ein parallel installiertes Windows?

Hi, nein läuft ausschließlich Debian Jessy auf dem Cubietruck!

@alle anderen werd eure tips heute Abend versuchen, danke dafür.
Ich verzweifle langsam...

marce
24.11.15, 07:17
Hat das Ding überhaupt eine "offline" weiterlaufende BIOS-Uhr, wenn ja, wie stabil läuft die (selbt reguläre PC sind da teilweise gruselig daneben ohne Strom).

Evtl. einfach mal auf ntpd verzichten und nach dem Booten direkt ein
/usr/sbin/ntpdate ptbtime2.ptb.de
/sbin/hwclock --systohc
z.B. über die Crontab oder eine kleines systemd / init / boot.local / login / bahsrc / wasauchimmer-Script abesetzen.

Coolzero
24.11.15, 08:25
Ja hat er, wie gut/schlecht keine Ahnung, mir reichte aber auch wenn die Software Uhr richtig geht

just4uk
24.11.15, 08:29
Hat das Ding überhaupt eine "offline" weiterlaufende BIOS-Uhr, ......Nein hat es nicht. Der Cubietruck besitzt zwar eine RTC aber die Batterie (sofern es eine ist ich vermute eher ein Glodcap) hält nur ca. XX min.
BIOS gibt es auch keines Äquivalent wäre evtl. das script.bin File welches beim booten gelesen wird.
Ob allerdings in script.bin etwas bzgl. ntp drin steht kann ich nicht sagen da ich es bis dato nicht benötigt habe.
Bei mir hier laufen 2/3 von den Dingern allerdings ohne Probleme mit der Uhrzeit.
Ich habe bei allen 14.04 LTS am laufen mich um die Zeit Geschichte nie wirklich kümmern müssen, ging einfach so soll's ja auch sein.
Hier mal die ntp.conf
driftfile /var/lib/ntp/ntp.drift
statistics loopstats peerstats clockstats
filegen loopstats file loopstats type day enable
filegen peerstats file peerstats type day enable
filegen clockstats file clockstats type day enable

server 0.ubuntu.pool.ntp.org
server 1.ubuntu.pool.ntp.org
server 2.ubuntu.pool.ntp.org
server 3.ubuntu.pool.ntp.org

restrict -4 default kod notrap nomodify nopeer noquery
restrict -6 default kod notrap nomodify nopeer noquery

restrict 127.0.0.1
restrict ::1
Hoffe hilft dir.

Gruß aus L.E.
Uwe

Coolzero
24.11.15, 11:29
OK, ich sehe keinen Fehler. Evtl. noch sehen ob ntpq -p was interessantes ausgibt, Ausgabe soll so aussehen: http://www.pool.ntp.org/de/use.html

Liefert das hier


ntpq -p ntpq: read: Connection refused root@cubie:~# date Wed Nov 25 12:34:02 CET 2015

Hab auch mal was aus deinem Link versucht, das liefert das:

ntpdate pool.ntp.org 25 Nov 12:35:49 ntpdate[10217]: Can't adjust the time of day: Invalid argument root@cubie:~# ntpq -pn ntpq: read: Connection refused

Da scheint doch mit dem ntpdate was nicht zustimmen!?

Interessant ist auch wenn ich das Datum manuell setze das es anschließend direkt wieder falsch ist

date -s "Nov 24 12:38:00 2015" Tue Nov 24 12:38:00 CET 2015 root@cubie:~# date Wed Nov 25 12:43:14 CET 2015

@Uwe, werde ich nachher mal testen, danke

BetterWorld
24.11.15, 12:33
Ist es wirklich zuviel verlangt, dass du deine Posts ordentlich formatierst, so dass man sie auch lesen kann?

just4uk
24.11.15, 16:57
Ist es wirklich zuviel verlangt, dass du deine Posts ordentlich formatierst, so dass man sie auch lesen kann?Da muss ich BetterWorld Recht geben, schrecklich zu lesen und interpretieren!
Bei mir sieht das so aus:
root @ cubie :~# ntpq -p
remote refid st t when poll reach delay offset jitter
================================================== ============================
*ptbtime1.ptb.de .PTB. 1 u 430 1024 377 28.654 0.503 0.595
-public.streikt. 192.53.103.104 2 u 652 1024 377 40.662 -5.231 4.683
+static.140.107. 36.224.68.195 2 u 976 1024 377 35.347 -1.682 3.304
-frankfurt1.firs 16.173.229.2 3 u 508 1024 377 36.745 -5.201 6.268
+mail.danzuck.eu 161.143.24.141 2 u 383 1024 377 23.022 -1.309 1.117
root @ cubie :~#
root @ cubie :~#
root @ cubie :~# ntpq -pn
remote refid st t when poll reach delay offset jitter
================================================== ============================
*192.53.103.108 .PTB. 1 u 458 1024 377 28.654 0.503 0.595
-78.47.226.8 192.53.103.104 2 u 680 1024 377 40.662 -5.231 4.683
+78.46.107.140 36.224.68.195 2 u 1004 1024 377 35.347 -1.682 3.304
-2a01:4f8:110:51 16.173.229.2 3 u 536 1024 377 36.745 -5.201 6.268
+46.165.212.205 161.143.24.141 2 u 411 1024 377 23.022 -1.309 1.117
root @ cubie :~#
root @ cubie :~# date
Di 24. Nov 17:44:30 CET 2015
root @ cubie :~#
root @ cubie :~# hwclock
Di 24 Nov 2015 17:48:27 CET -1.916524 seconds
root @ cubie :~#
Als welcher User führst du die Kommandos aus?

Gruß aus L.E.
Uwe

Coolzero
24.11.15, 17:47
Nein ist es nicht, hab das heute von unterwegs vom handy gemacht, da wird das falsch dargestellt. Sorry

Seltsamerweise stimmt die "date" angaben grade wo ich nach Hause gekommen bin.... muss ich nicht verstehn................