ntpdate trouble

Please post any bugs you have found
Post Reply
Message
Author
Minomushi
Posts: 8
Joined: Thu 06 May 2010, 00:46

ntpdate trouble

#1 Post by Minomushi »

Hello.

I executed it as follows.

Code: Select all

# ntpdate ntp.nict.jp
Error : Servname not supported for ai_socktype
19 May 16:07:30 ntpdate[21916]: can't find host ntp.nict.jp

19 May 16:07:30 ntpdate[21916]: no servers can be used, exiting
WWW is retrieved by "Servname not supported for ai_socktype".

[Japanese page]
http://biokids.org/?%A4%C9%A4%D6%A4%AA% ... 4%B9%A4%EB

Referring to this page

Code: Select all

# cd /etc
# geany services
----- Start Cutout line ----------
ntp       123/tcp
ntp       123/udp
----- End Cutout line ----------
# ntpdate ntp.nict.jp
19 May 16:42:44 ntpdate[28398]: adjust time server 210.171.226.40 offset -0.000211 sec
It went well like this.
npierce
Posts: 858
Joined: Tue 29 Dec 2009, 01:40

#2 Post by npierce »

Until today I had never seen an /etc/services file that didn't include the ntp port. It is still listed among the well-known ports managed by the IANA (http://www.iana.org/assignments/port-numbers). Does anyone know of any special reason why it is not in /etc/services for Puppy 4.3.1 (and at least some earlier Puppies). If not, it would be great to have it listed in there for any future Puppy version that comes with ntpdate.

For Puppies before Puppy 4.3 that came without ntpdate, there was a pet (ntpdate-4.2.4p4_NOMENU.pet) that provided ntpdate and gave instructions on how to add the port to /etc/services.

And the very first thing that tasmod's psync (Menu -> Desktop -> Psync) does when it runs is to add the port, if necessary, to /etc/services.

But it would be good to have it included in the /etc/services in the .iso so that ntpdate would work right out of the box.


Some other references to this:

Forum index » House Training » Bugs ( Submit bugs )
NTPD issue (solved)
Nick, 2007-Dec-22:
http://www.murga-linux.com/puppy/viewto ... 326#162326

Forum index » House Training » Bugs ( Submit bugs )
Puppy 4.3 beta3 -- bugs and reports
byebyekitty123, 2009-Sep-12:
http://www.murga-linux.com/puppy/viewto ... 471#340471
byebyekitty123, 2009-Sep-12:
http://www.murga-linux.com/puppy/viewto ... 473#340473
Post Reply