LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Desktop
User Name
Password
Linux - Desktop This forum is for the discussion of all Linux Software used in a desktop context.

Notices



Reply
 
Search this Thread
Old 02-09-2014, 07:46 PM   #1
opus-outlaw
LQ Newbie
 
Registered: Jan 2008
Posts: 15

Rep: Reputation: 0
ntpdate (more problems)


'm trying to use the ntpdate command to update my systems local time.
I've run into a few problems: (Running SolydX-64 home edition - debian testing)

The first was the error message: socket was already in use ...
(Solved by disabling ntp service and then shutting it down.)

Next the command appeared to hang when issued from a command line.
(Solved by opening 123 tcp/udp port to incoming and outgoing traffic.)

Now the problem is this error message: no server suitable for synchronization found

My first attemp was:
ntpdate -u ntp.ubuntu.com
9 Feb 14:19:04 ntpdate[14674]: no server suitable for synchronization found

Second attempt: I thought perhaps I was being blocked from using the ubuntu server so I tried a local time server running on a smoothwall firewall. (The ntpdate command has run successfully in the past using a a smoothwall time server - different version.)

ntpdate 192.168.0.1
9 Feb 14:23:06 ntpdate[14945]: no server suitable for synchronization found

A third attempt: connect to public server using an absolute IP address with some parameters that appeared to solved the
problem for other folks.

ntpdate -u -b -t 4 -p 4 70.86.250.6
9 Feb 13:03:50 ntpdate[9457]: no server suitable for synchronization found

A different approach: use ntpdate-debian which using the confg file for ntp by default. (The thinking here was probably the default config file for ntp should be generic enough to work in most environments.)

If at first you don't succeed try try again ...
Unfortunately I can't think of any other approaches to solve the problem ...

Could someone please try these commands on their system / network and see if you receive the same error message:
no server suitable for synchronization found

Thank you in advance for any advice / suggestions offered to solve this problem.

Tom
 
Old 02-10-2014, 06:29 AM   #2
yongitz
Member
 
Registered: Nov 2005
Location: Davao City, Philippines
Distribution: RHEL, CentOS, Ubuntu, Mint
Posts: 139

Rep: Reputation: 20
Can you please post the result of this command:
Quote:
ntpdate -d 192.168.0.1
 
1 members found this post helpful.
Old 02-10-2014, 07:58 AM   #3
pan64
Guru
 
Registered: Mar 2012
Location: Hungary
Distribution: debian i686 (solaris)
Posts: 5,150

Rep: Reputation: 1364Reputation: 1364Reputation: 1364Reputation: 1364Reputation: 1364Reputation: 1364Reputation: 1364Reputation: 1364Reputation: 1364Reputation: 1364
try to find a server from here: http://www.pool.ntp.org/en/
 
1 members found this post helpful.
Old 02-10-2014, 08:59 AM   #4
opus-outlaw
LQ Newbie
 
Registered: Jan 2008
Posts: 15

Original Poster
Rep: Reputation: 0
@ yongitz

opus default # ntpdate -d 192.168.0.1
10 Feb 08:30:22 ntpdate[17075]: ntpdate 4.2.6p5@1.2349-o Mon May 20 14:24:36 UTC 2013 (1)
transmit(192.168.0.1)
receive(192.168.0.1)
transmit(192.168.0.1)
receive(192.168.0.1)
transmit(192.168.0.1)
receive(192.168.0.1)
transmit(192.168.0.1)
receive(192.168.0.1)
192.168.0.1: Server dropped: strata too high
server 192.168.0.1, port 123
stratum 16, precision -29, leap 11, trust 000
refid [192.168.0.1], delay 0.02605, dispersion 0.00082
transmitted 4, in filter 4
reference time: 00000000.00000000 Sun, Dec 31 1899 19:00:00.000
originate timestamp: d6a352f4.13b667ff Mon, Feb 10 2014 8:30:28.077
transmit timestamp: d6a352f4.239067f0 Mon, Feb 10 2014 8:30:28.138
filter delay: 0.02618 0.02605 0.02606 0.02606
0.00000 0.00000 0.00000 0.00000
filter offset: -0.06437 -0.06362 -0.06289 -0.06214
0.000000 0.000000 0.000000 0.000000
delay 0.02605, dispersion 0.00082
offset -0.063627

Thank you yongitz: (Server dropped: strata too high) seems to be the problem ...
Seems odd that every server I chose has too high a strata. Would you by chance know how to change the configuration
of the (smoothwall) time server? I can always post on the smoothwall forum but it would be nice to solve the problem here at LQ.
Searching now for a how to ...

Tom
 
Old 02-10-2014, 09:54 AM   #5
yongitz
Member
 
Registered: Nov 2005
Location: Davao City, Philippines
Distribution: RHEL, CentOS, Ubuntu, Mint
Posts: 139

Rep: Reputation: 20
From what I know, You'll have to allow UDP traffic on source/destination port 123. I am not quite sure how to do it in smoothwall.
 
Old 02-14-2014, 05:48 PM   #6
michaelk
Moderator
 
Registered: Aug 2002
Posts: 12,157

Rep: Reputation: 783Reputation: 783Reputation: 783Reputation: 783Reputation: 783Reputation: 783Reputation: 783
ntp.ubuntu.com works from my end.

Quote:
ntpdate -q ntp.ubuntu.com
server 91.189.89.199, stratum 2, offset -0.000092, delay 0.16757
server 91.189.94.4, stratum 2, offset -0.000271, delay 0.15886
14 Feb 16:42:31 ntpdate[12822]: adjust time server 91.189.94.4 offset -0.000271 sec
 
Old 02-17-2014, 06:50 PM   #7
opus-outlaw
LQ Newbie
 
Registered: Jan 2008
Posts: 15

Original Poster
Rep: Reputation: 0
Thank you to all you who replied to this thread. The smoothwall time server (192.168.0.1) has a problem
synchronizing with public time servers which explains the error message: (Server dropped: strata too high)
My difficulties with connecting to public time servers also seems to be related to the smoothwall firewall.
It doesn't recognize (authenticate) certain systems after they reboot.

It is not my intention to criticize the smoothwall project, I'm using a release candidate and problems are to be expected.
I believe it's a important initiative whose value will be appreciated by a wider audience as time goes by.

Tom
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
ntpdate XXX works ; ntpdate -q XXX don't works - ntpd stays on local oudoubah Linux - Software 5 12-12-2011 08:28 AM
regarding ntpdate niaz_ph Linux - Newbie 1 01-12-2010 11:03 PM
ntpdate works sometimes linuxbird Linux - Server 10 12-01-2008 12:17 PM
ntpdate - ntpd czezz Solaris / OpenSolaris 6 09-02-2008 03:05 PM
ntpdate installation. Oberon_sedai Linux - Newbie 1 12-06-2001 11:27 AM


All times are GMT -5. The time now is 01:08 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration