<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>ewald.tienkamp.nl &#187; NTP</title>
	<atom:link href="http://ewald.tienkamp.nl/tag/ntp/feed/" rel="self" type="application/rss+xml" />
	<link>http://ewald.tienkamp.nl</link>
	<description>Gentoo Linux and whatever else I think needs to be shot into cyberspace.</description>
	<lastBuildDate>Sat, 04 Sep 2010 08:39:02 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0.4</generator>
		<item>
		<title>NTPq refuses to provide info on peers</title>
		<link>http://ewald.tienkamp.nl/2009/12/23/ntpq-refuses-to-provide-info-on-peers/</link>
		<comments>http://ewald.tienkamp.nl/2009/12/23/ntpq-refuses-to-provide-info-on-peers/#comments</comments>
		<pubDate>Wed, 23 Dec 2009 01:56:01 +0000</pubDate>
		<dc:creator>Ewald</dc:creator>
				<category><![CDATA[Desktop]]></category>
		<category><![CDATA[Gentoo Linux]]></category>
		<category><![CDATA[Server]]></category>
		<category><![CDATA[date]]></category>
		<category><![CDATA[NTP]]></category>
		<category><![CDATA[ntpd]]></category>
		<category><![CDATA[ntpq]]></category>
		<category><![CDATA[syslog]]></category>

		<guid isPermaLink="false">http://ewald.tienkamp.nl/?p=87</guid>
		<description><![CDATA[While equipping my fresh Gentoo server with NTP capabilities I was wondering why after a couple of minutes after starting ntpd, ntpq -p (or ntpq -c peers) was shouting &#8220;ntpq: read: Connection refused&#8221; at me&#8230; What is going on? After some reading I found out that this error usually means that ntpd is not running. [...]]]></description>
			<content:encoded><![CDATA[<p>While equipping my fresh Gentoo server with NTP capabilities I was wondering why after a couple of minutes after starting ntpd, ntpq -p (or ntpq -c peers) was shouting &#8220;ntpq: read: Connection refused&#8221; at me&#8230; What is going on?<br />
<span id="more-87"></span><br />
After some reading I found out that this error usually means that ntpd is not running. But why?<br />
<code>tail /var/log/messages</code><br />
&#8230;did not leave me with any information on possible errors.</p>
<p>Yet after some more searching I discovered that <a href="http://www.eecis.udel.edu/~ntp/ntpfaq/NTP-s-trouble.htm#AEN4599">ntpd quits if it discovers that the time offset is too large</a>. As my server time was about 1 hour off, that kind of made sense. Another logfile revealed that this was indeed the issue:<br />
<code>tail /var/log/syslog</code></p>
<blockquote><p>time correction of -3635 seconds exceeds sanity limit (1000); set clock manually to the correct UTC time.</p></blockquote>
<p>So how do we do that? Easy:<br />
<code>date MMDDhhmmYYYY #(Month, Day, hour, minute and Year)</code></p>
<p>And presto, problem solved! Do note that some programs may not appreciate sudden jumps in system time which you do cause by manually setting system time.</p>
]]></content:encoded>
			<wfw:commentRss>http://ewald.tienkamp.nl/2009/12/23/ntpq-refuses-to-provide-info-on-peers/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

