You are not logged in.

#1 2014-05-20 08:59:11

Osiris
Member
Registered: 2003-01-18
Posts: 157
Website

[SOLVED] ntp: Does not connect to timeservers

Hello,

my NTP does not establish a connection to timeservers, even after two hours of uptime on my system:

% ntpq -p        
     remote           refid      st t when poll reach   delay   offset  jitter
==============================================================================
 log1.nierle.com .INIT.          16 u    - 1024    0    0.000    0.000   0.000
 der.beste.tiger .INIT.          16 u    - 1024    0    0.000    0.000   0.000
 ntp.uni-oldenbu .INIT.          16 u    - 1024    0    0.000    0.000   0.000

I'm using the default ntp.conf

% cat ntp.conf | grep -v "^#"                                                                                                                                                                                                                          :(
server 0.pool.ntp.org
server 1.pool.ntp.org
server 2.pool.ntp.org
restrict default noquery nopeer
restrict 127.0.0.1
restrict ::1
driftfile /var/lib/ntp/ntp.drift

What's wrong there?

Thanks!

Last edited by Osiris (2014-05-20 19:21:14)

Offline

#2 2014-05-20 17:08:49

Spider.007
Member
Registered: 2004-06-20
Posts: 1,175

Re: [SOLVED] ntp: Does not connect to timeservers

What does `systemctl status ntpd` say? Does it even run?

Offline

#3 2014-05-20 19:16:41

Osiris
Member
Registered: 2003-01-18
Posts: 157
Website

Re: [SOLVED] ntp: Does not connect to timeservers

Oh, yes, it does run:

% systemctl status ntpd
● ntpd.service - Network Time Service
   Loaded: loaded (/usr/lib/systemd/system/ntpd.service; enabled)
   Active: active (running) since Di 2014-05-20 21:13:44 CEST; 1min 25s ago
  Process: 364 ExecStart=/usr/bin/ntpd -g -u ntp:ntp -p /run/ntpd.pid (code=exited, status=0/SUCCESS)
 Main PID: 365 (ntpd)
   CGroup: /system.slice/ntpd.service
           └─365 /usr/bin/ntpd -g -u ntp:ntp -p /run/ntpd.pid

Mai 20 21:13:44 asaru ntpd[365]: Listen and drop on 0 v6wildcard [::]:123
Mai 20 21:13:44 asaru ntpd[365]: Listen and drop on 1 v4wildcard 0.0.0.0:123
Mai 20 21:13:44 asaru ntpd[365]: Listen normally on 2 lo 127.0.0.1:123
Mai 20 21:13:44 asaru ntpd[365]: Listen normally on 3 lo [::1]:123
Mai 20 21:13:44 asaru ntpd[365]: Listening on routing socket on fd #20 for interface updates
Mai 20 21:14:43 asaru ntpd[365]: Listen normally on 4 wlp3s0 [2a02:8070:5cc:ad00:7e7a:91ff:fe1b:5319]:123
Mai 20 21:14:43 asaru ntpd[365]: Listen normally on 5 wlp3s0 [fe80::7e7a:91ff:fe1b:5319%3]:123
Mai 20 21:14:43 asaru ntpd[365]: new interface(s) found: waking up resolver
Mai 20 21:14:51 asaru ntpd[365]: Listen normally on 6 wlp3s0 192.168.0.11:123
Mai 20 21:14:51 asaru ntpd[365]: new interface(s) found: waking up resolver

I just powered up my computer, that's why it was just started. As I said, even after serveral hours with active network connection it does not sync.

EDIT: I just checked ntpq -p again (I'm at home now, before I was at work, a university network). They seem to block NTP queries. I think they block UDP is general, is NTP UDP based?

Last edited by Osiris (2014-05-20 19:20:57)

Offline

#4 2014-05-20 19:29:20

rune0077
Member
Registered: 2009-04-11
Posts: 135

Re: [SOLVED] ntp: Does not connect to timeservers

Yes, ntp only works over udp.

Maybe there's a way to force it to use tcp, but none that I know of.

Offline

Board footer

Powered by FluxBB