LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (https://www.linuxquestions.org/questions/linux-software-2/)
-   -   CentOS 5.3 VM, trouble with ntpd, no server suitable for synchronization found (https://www.linuxquestions.org/questions/linux-software-2/centos-5-3-vm-trouble-with-ntpd-no-server-suitable-for-synchronization-found-780766/)

lazybee26 01-08-2010 01:00 AM

CentOS 5.3 VM, trouble with ntpd, no server suitable for synchronization found
 
Hello -
I cant get ntpd to synchronize with the ntp servers. I have a CentOS 5.3 32 bit Virtual Machine. I'm in USA on Pacific Standard Time. Here's all configuration and other important information for troubleshooting. Is there anything wrong with my config?

btw, I used wireshark to look at the UDP packets - I dont get any responses from any of the servers back. I only see requests going out from my server, but no response. Is this a firewall Issue? If it is, then do I need to just enable UDP port 123 on the firewall?


************ uname -a ************
Linux CCSLINUXVM 2.6.18-128.1.6.el5 #1 SMP Wed Apr 1 09:19:18 EDT 2009 i686 i686 i386 GNU/Linux

************ cat /etc/redhat-release ************
CentOS release 5.3 (Final)

************ cat /boot/grub/grub.conf ************
# grub.conf generated by anaconda
#
# Note that you do not have to rerun grub after making changes to this file
# NOTICE: You have a /boot partition. This means that
# all kernel and initrd paths are relative to /boot/, eg.
# root (hd0,0)
# kernel /vmlinuz-version ro root=/dev/sda3
# initrd /initrd-version.img
#boot=/dev/sda
default=0
timeout=5
splashimage=(hd0,0)/grub/splash.xpm.gz
hiddenmenu
title CentOS (2.6.18-128.1.6.el5)
root (hd0,0)
kernel /vmlinuz-2.6.18-128.1.6.el5 ro root=LABEL=/ clocksource=acpi_pm divider=10
initrd /initrd-2.6.18-128.1.6.el5.img
title CentOS (2.6.18-92.1.22.el5)
root (hd0,0)
kernel /vmlinuz-2.6.18-92.1.22.el5 ro root=LABEL=/
initrd /initrd-2.6.18-92.1.22.el5.img
title CentOS (2.6.18-92.el5)
root (hd0,0)
kernel /vmlinuz-2.6.18-92.el5 ro root=LABEL=/
initrd /initrd-2.6.18-92.el5.img

************ cat /etc/ntp/step-tickers ************
#0.vmware.pool.ntp.org
#1.vmware.pool.ntp.org
0.us.pool.ntp.org
1.us.pool.ntp.org
2.us.pool.ntp.org
3.us.pool.ntp.org

************ cat /etc/ntp.conf ************
# The configuration directive tinker panic 0 instructs NTP not to give up if it sees a
# large jump in time. This is important for coping with large time drifts and also resuming virtual machines
# from their suspended state.
tinker panic 0

# Permit time synchronization with our time source, but do not
# permit the source to query or modify the service on this system.
restrict default kod nomodify notrap nopeer noquery
restrict -6 default kod nomodify notrap nopeer noquery

# Permit all access over the loopback interface. This could
# be tightened as well, but to do so would effect some of
# the administrative functions.
restrict 127.0.0.1
restrict -6 ::1

# Hosts on local network are less restricted.
#restrict 192.168.1.0 mask 255.255.255.0 nomodify notrap

# Use public servers from the pool.ntp.org project.
# Please consider joining the pool (http://www.pool.ntp.org/join.html).
server 0.us.pool.ntp.org iburst
server 1.us.pool.ntp.org iburst
server 2.us.pool.ntp.org iburst
server 3.us.pool.ntp.org iburst


#broadcast 192.168.1.255 key 42 # broadcast server
#broadcastclient # broadcast client
#broadcast 224.0.1.1 key 42 # multicast server
#multicastclient 224.0.1.1 # multicast client
#manycastserver 239.255.254.254 # manycast server
#manycastclient 239.255.254.254 key 42 # manycast client

# Undisciplined Local Clock. This is a fake driver intended for backup
# and when no outside source of synchronized time is available.
# Amit:07/01/2009:Commented these
# It is also important not to use the local clock as a time source, often referred to as the Undisciplined
# Local Clock. NTP has a tendency to fall back to this in preference to the remote servers when there is a
# large amount of time drift.
#server 127.127.1.0 # local clock
#fudge 127.127.1.0 stratum 10

# Drift file. Put this in a directory which the daemon can write to.
# No symbolic links allowed, either, since the daemon updates the file
# by creating a temporary in the same directory and then rename()'ing
# it to the file.
driftfile /var/lib/ntp/drift

# Key file containing the keys and key identifiers used when operating
# with symmetric key cryptography.
keys /etc/ntp/keys

# Specify the key identifiers which are trusted.
#trustedkey 4 8 42

# Specify the key identifier to use with the ntpdc utility.
#requestkey 8

# Specify the key identifier to use with the ntpq utility.
#controlkey 8

************ ntpq -pn ************
remote refid st t when poll reach delay offset jitter
==============================================================================
129.174.93.11 .INIT. 16 u - 1024 0 0.000 0.000 0.000
207.171.30.106 .INIT. 16 u - 1024 0 0.000 0.000 0.000
209.123.234.24 .INIT. 16 u - 1024 0 0.000 0.000 0.000
67.43.164.196 .INIT. 16 u - 1024 0 0.000 0.000 0.000


************ cat /etc/ntp/keys ************
#
# PLEASE DO NOT USE THE DEFAULT VALUES HERE.
#
#65535Makey
#1Mpass


************ cat /etc/ntp/ntpservers ************
#This file contains a list of ntp servers to show in the system-config-date user interface.
#It is not recommended that you modify this file by hand.

0.centos.pool.ntp.org
1.centos.pool.ntp.org
2.centos.pool.ntp.org


************ /etc/init.d/ntpd restart ************
Shutting down ntpd: [ OK ]
ntpd: Synchronizing with time server: [FAILED]
Starting ntpd: [ OK ]


************ Output of /var/log/messages when I restart ntpd ************
Jan 7 22:33:18 localhost ntpd[19891]: ntpd exiting on signal 15
Jan 7 22:33:28 localhost ntpdate[26379]: no server suitable for synchronization found
Jan 7 22:33:28 localhost ntpd[26381]: ntpd 4.2.2p1@1.1570-o Thu Apr 9 12:54:22 UTC 2009 (1)
Jan 7 22:33:28 localhost ntpd[26382]: precision = 1.000 usec
Jan 7 22:33:28 localhost ntpd[26382]: Listening on interface wildcard, 0.0.0.0#123 Disabled
Jan 7 22:33:28 localhost ntpd[26382]: Listening on interface wildcard, ::#123 Disabled
Jan 7 22:33:28 localhost ntpd[26382]: Listening on interface lo, ::1#123 Enabled
Jan 7 22:33:28 localhost ntpd[26382]: Listening on interface eth0, fe80::20c:29ff:fe71:97e#123 Enabled
Jan 7 22:33:28 localhost ntpd[26382]: Listening on interface lo, 127.0.0.1#123 Enabled
Jan 7 22:33:28 localhost ntpd[26382]: Listening on interface eth0, 192.1.32.108#123 Enabled
Jan 7 22:33:28 localhost ntpd[26382]: kernel time sync status 0040
Jan 7 22:33:31 localhost ntpd[26382]: frequency initialized 0.000 PPM from /var/lib/ntp/drift



************ ntpdate -d 0.us.pool.ntp.org ************
7 Jan 23:31:04 ntpdate[27575]: ntpdate 4.2.2p1@1.1570-o Thu Apr 9 12:54:23 UTC 2009 (1)
Looking for host 0.us.pool.ntp.org and service ntp
host found : tssnet1.tss.net
transmit(66.7.96.2)
transmit(63.240.161.99)
transmit(72.167.54.201)
transmit(66.7.96.2)
transmit(63.240.161.99)
transmit(72.167.54.201)
transmit(66.7.96.2)
transmit(63.240.161.99)
transmit(72.167.54.201)
transmit(66.7.96.2)
transmit(63.240.161.99)
transmit(72.167.54.201)
transmit(66.7.96.2)
transmit(63.240.161.99)
transmit(72.167.54.201)
66.7.96.2: Server dropped: no data
63.240.161.99: Server dropped: no data
72.167.54.201: Server dropped: no data
server 66.7.96.2, port 123
stratum 0, precision 0, leap 00, trust 000
refid [66.7.96.2], delay 0.00000, dispersion 64.00000
transmitted 4, in filter 4
reference time: 00000000.00000000 Wed, Feb 6 2036 22:28:16.000
originate timestamp: 00000000.00000000 Wed, Feb 6 2036 22:28:16.000
transmit timestamp: cef15dbc.648f2170 Thu, Jan 7 2010 23:31:08.392
filter delay: 0.00000 0.00000 0.00000 0.00000
0.00000 0.00000 0.00000 0.00000
filter offset: 0.000000 0.000000 0.000000 0.000000
0.000000 0.000000 0.000000 0.000000
delay 0.00000, dispersion 64.00000
offset 0.000000

server 63.240.161.99, port 123
stratum 0, precision 0, leap 00, trust 000
refid [63.240.161.99], delay 0.00000, dispersion 64.00000
transmitted 4, in filter 4
reference time: 00000000.00000000 Wed, Feb 6 2036 22:28:16.000
originate timestamp: 00000000.00000000 Wed, Feb 6 2036 22:28:16.000
transmit timestamp: cef15dbc.9cf6cefe Thu, Jan 7 2010 23:31:08.613
filter delay: 0.00000 0.00000 0.00000 0.00000
0.00000 0.00000 0.00000 0.00000
filter offset: 0.000000 0.000000 0.000000 0.000000
0.000000 0.000000 0.000000 0.000000
delay 0.00000, dispersion 64.00000
offset 0.000000

server 72.167.54.201, port 123
stratum 0, precision 0, leap 00, trust 000
refid [72.167.54.201], delay 0.00000, dispersion 64.00000
transmitted 4, in filter 4
reference time: 00000000.00000000 Wed, Feb 6 2036 22:28:16.000
originate timestamp: 00000000.00000000 Wed, Feb 6 2036 22:28:16.000
transmit timestamp: cef15dbc.caf0cfe1 Thu, Jan 7 2010 23:31:08.792
filter delay: 0.00000 0.00000 0.00000 0.00000
0.00000 0.00000 0.00000 0.00000
filter offset: 0.000000 0.000000 0.000000 0.000000
0.000000 0.000000 0.000000 0.000000
delay 0.00000, dispersion 64.00000
offset 0.000000

7 Jan 23:31:09 ntpdate[27575]: no server suitable for synchronization found

kbp 01-08-2010 08:37 PM

Go with that thought, if you're not seeing any return traffic you do have an issue external to the server

cheers


All times are GMT -5. The time now is 03:24 AM.