FS#23243 - ntpdate: NTP server name cannot be resolved

Attached to Project: Arch Linux
Opened by Petr Slansky (psl) - Friday, 11 March 2011, 17:56 GMT
Last edited by Eric Belanger (Snowman) - Friday, 11 March 2011, 20:07 GMT
Task Type Bug Report
Category Packages: Extra
Status Closed
Assigned To No-one
Architecture All
Severity High
Priority Normal
Reported Version
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Votes 0
Private No

Details

Description:

ntpdate cannot connect to the server. I have ntpdate in boot script (rc.conf) and it blocks boot process with BUSY message. I think there is a bug in ntpdate package; it was working in the past...

Additional info:

Steps to reproduce:

[root@idle ~]# date
Fri Mar 11 18:49:28 CET 2011

[root@idle ~]# host ntp.home
ntp.home has address 192.168.222.11

[root@idle ~]# ntpdate ntp.home
Error resolving ntp.home: Servname not supported for ai_socktype (-8)
11 Mar 18:49:12 ntpdate[984]: Can't find host ntp.home: Servname not supported for ai_socktype (-8)
11 Mar 18:49:12 ntpdate[984]: no servers can be used, exiting

[root@idle ~]# ntpdate 192.168.222.11
Error resolving 192.168.222.1: Servname not supported for ai_socktype (-8)
11 Mar 18:49:18 ntpdate[985]: Can't find host 192.168.222.11: Servname not supported for ai_socktype (-8)
11 Mar 18:49:18 ntpdate[985]: no servers can be used, exiting

[root@idle ~]# ntpdate -v
11 Mar 18:50:08 ntpdate[993]: ntpdate 4.2.6p3@1.2290-o Thu Feb 17 23:20:45 UTC 2011 (1)
11 Mar 18:50:08 ntpdate[993]: no servers can be used, exiting

#################
# for a reference, Ubuntu server works OK, it can get time from my NTP server..

root@ubuntu:~# uname -a
Linux ubuntu 2.6.35-27-generic-pae #48-Ubuntu SMP Tue Feb 22 21:46:58 UTC 2011 i686 GNU/Linux
root@ubuntu:~# ntpdate ntp.home
11 Mar 18:52:23 ntpdate[20136]: adjust time server 192.168.222.11 offset -0.302357 sec
This task depends upon

Closed by  Eric Belanger (Snowman)
Friday, 11 March 2011, 20:07 GMT
Reason for closing:  Not a bug
Comment by Petr Slansky (psl) - Friday, 11 March 2011, 18:05 GMT
[root@idle ~]# uname -a
Linux idle 2.6.37-ARCH #1 SMP PREEMPT Tue Mar 8 08:34:35 CET 2011 x86_64 AMD Processor model unknown AuthenticAMD GNU/Linux
Comment by Petr Slansky (psl) - Friday, 11 March 2011, 18:22 GMT
File /etc/services was missing at my box. I created simple one:

ntp 123/tcp
ntp 123/udp

And ntpdate works. ntpd works too.

The question is who deleted file /etc/services? That was not an user error!
Comment by Eric Belanger (Snowman) - Friday, 11 March 2011, 20:07 GMT
$ pacman -Qo /etc/services
/etc/services is owned by iana-etc 2.30-1

Try installing/reinstalling iana-etc. Probably something went wront the last time you updated the filesystem package.

Loading...