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
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
|
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
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
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!
/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.