You are here
Christian Reina, CISSP - Tue, 2009/11/10 - 19:06
This is probably a stupid question, but I tried to search your forum for anything regarding setting up ntp.
Our company only allows one specific ntp server and when i edit the time sync tab, i get the above msg.
Thanks! no rush
Forum:
ntpdate is not installed by default, ntp is
Installing ntpdate should be as simple as: I am assuming you are referring to the Webmin Time Sync tab. If you are, then this is a bug in the webmin packaging (webmin-time), and it should depend, or atleast recommend ntpdate, if configuring webmin-time to use the ntp package is not an option. If its not an option, and this is a bug, then we will include ntpdate in future appliance releases, and thanks for reporting it.
problem continues...
You are correct. I'm referring to the Webmin Time Sync. I installed ntpdate and made changes to the ntp.conf file to point to the ip address.
ntpq -p shows the correct ntp server, but ntpdate -d ipaddress gives me the following error:
The above error is identical to the one I get on webmin if I manually add the ip address or if I go in the module config and enter the ip as the default time server.
Thank you for your support
Christian Reina, CISSP | Security Professional
888.338.3666 | christian[at]christianreina.com
W W W . C H R I S T I A N R E I N A . C O M
ntpdate seems to work on my side
It sounds like a connectivity issue. Have you setup the firewall on the appliance? Maybe the firewall/router on your LAN is limiting traffic? Can you connect to the NTP server with netcat, port 123?
Maybe its time to break out the sniffer :)
Fixed
no issues with the firewall but web content filtering was blocking it.
Christian Reina, CISSP | Security Professional
888.338.3666 | christian[at]christianreina.com
W W W . C H R I S T I A N R E I N A . C O M
I needed to install ntupdate
Just to confirm - I have the current Mediawiki appliance 2009.10, and needed to install ntupdate to get time synchronization to work.
Thanks for all the great work.
--Peter Goodall
Updated webmin-time to depend on ntpdate
Just a quick related
Just a quick related question. If I want to permanently set up NTP server to certain URL of national NTP server - what config files do I have to change, so it will be setup by default ?
Thanks in advance
/etc/ntp.conf
The time servers are listed in /etc/ntp.conf
You should see a line like this:
server ntp.ubuntu.com
You can set the server line to whatever you like.
Can I setup TKL to sync time to NTP server via TKLPatch ?
Hi, can I setup TKL to sync from certain or default NTP server automatically, or is perhaps already setup to do so ?
If not already setup to sync automatically, what should I do to make this work via TKLPatch ?
Thanks in advance,
Bulek.
TKL runs NTP by default
I believe all the TKL appliances are set by default to use NTP (I just checked the Joomla appliance and it uses ntp.ubuntu.com) so there is nothing you have to do.
The previous post was asking how he can set up an appliance to use a specific NTP server instead of the default ones.
ntpdate
ntpdate has been deprecated since about 2007. It is incompatible with ntpd and if the ntpd daemon is running you get this error when using ntpdate.
If webmin is still using ntpdate, a bug report should filed telling them to use ntpd -gq instead. From the ntpd man page:
Ubuntu and TKL start ntpd with the -g option, so this shouldn't be necessary if ntpd is able to contact ntp.ubuntu.com during boot.
Information is free, knowledge is acquired, but wisdom is earned.
Time server sync and Webmin
Webmin seems blissfully unaware of the existence of ntpd. The 'Time server sync' tab on the System Time page allows ntpdate, if it is present, to be run periodically, probably via cron. This functionality is redundant under TurnKey Linux which configures ntpd to set the time at boot and sync it ntp.ubuntu.com or other servers thereafter. The 'Time server sync' tab should probably be hidden. I know there are some configuration options in webmin, but it's been a long time since I've tried to customize webmin. After poking around the webmin directory, it appears that the tab can be hidden by modifying the defaultacl. Warning: I don't know if this causes any side effects.
There once was a third-party NTP module for Webmin, but it is no longer available. I wasn't able to locate an alternate source. It would be nice to have a tabbed page to configure the ntp servers in /etc/ntp.conf and start/stop the ntpd daemon. For now, the only way to control ntpd in Webmin is via the Command Console.
Information is free, knowledge is acquired, but wisdom is earned.
We should look into disabling 'time server sync' tab
ntpdate is unfortunately a necessary evil
Unfortunately, we've since discovered that ntpdate is a necessary evil. ntpd tweaks your clock continually to keep it accurate. That only works for small time discrepancies. If your clock is way out of whack (e.g., the wrong date) ntpd won't help you.
Unfortunately, in certain situations involving virtualization it's easy for the clock to fail spectacularly and since certain services such as TKLBAM require an accurate clock to function, ntpdate is indispensable.
At least usually with virtualization the problem is that the clock is stuck in the past so if you shift it into the future, Dovecot should still work.
Thanks for the info
Although I suspect that your info is somewhat irrelevant for TurnKey. By default TurnKey does auto time updates from an external/remote ntp server.
Not sure if I understand the question...
But you could just use ping to see if the remote NTP server is available.
Probably be somewhere in the logs...
Perhaps there's even an NTP log? A google should hopefully head you in the right direction.
Otherwise I guess you could explicitly set a cron job to update time and set it to log to a custom file.
Add new comment