[Bug 548885] Re: ntp host name not found error

2013-04-19 Thread Barry Fishman
** Changed in: ntp (Ubuntu)
   Status: Triaged = Fix Released

-- 
You received this bug notification because you are a member of Ubuntu
Server Team, which is subscribed to ntp in Ubuntu.
https://bugs.launchpad.net/bugs/548885

Title:
  ntp host name not found error

To manage notifications about this bug go to:
https://bugs.launchpad.net/ntp/+bug/548885/+subscriptions

-- 
Ubuntu-server-bugs mailing list
Ubuntu-server-bugs@lists.ubuntu.com
Modify settings or unsubscribe at: 
https://lists.ubuntu.com/mailman/listinfo/ubuntu-server-bugs


[Bug 548885] Re: ntp host name not found error

2011-10-18 Thread Bug Watch Updater
Launchpad has imported 12 comments from the remote bug at
https://psp2.ntp.org/bugs/show_bug.cgi?id=975.

If you reply to an imported comment from within Launchpad, your comment
will be sent to the remote bug automatically. Read more about
Launchpad's inter-bugtracker facilities at
https://help.launchpad.net/InterBugTracking.


On 2007-12-10T01:22:40+00:00 H-murray wrote:

If DNS isn't working when ntpd starts, the lookup is deferred.

For the server command, that works correctly.  For the pool command, it only
gets 1 IP address.

Reply at: https://bugs.launchpad.net/ntp/+bug/548885/comments/0


On 2007-12-10T03:52:35+00:00 Stenn wrote:

Bug 761 is kinda related to this.

If one is fixed, the other could be fairly easily fixed at the same
time.

Reply at: https://bugs.launchpad.net/ntp/+bug/548885/comments/1


On 2007-12-10T04:00:37+00:00 Mayer-r wrote:

Well no. That bug doesn't deal with multiple addresses at all. The problem here
is that the pool option expects multiple addresses to be returned by DNS and
used to set up associations. That bug won't solve this one.

Danny

Reply at: https://bugs.launchpad.net/ntp/+bug/548885/comments/2


On 2007-12-10T04:12:38+00:00 Stenn wrote:

Subject: Deferred DNS lookup on pool command only gets 1 server

Danny,

Well, yes.  If the response needs to be tailored, it should be pretty
trivial to knock these things out together.

I'm talking about the work that needs to be done in the forked resolver
process to get the information sent back to the main process.


-- 
Harlan Stenn st...@ntp.org

Reply at: https://bugs.launchpad.net/ntp/+bug/548885/comments/3


On 2009-11-18T00:37:50+00:00 H-murray wrote:

Fix is in pogo:/usa/murray/bug-975

This also fixes bug-761.

I've tested on Linus, NetBSD and FreeBSD.


Reply at: https://bugs.launchpad.net/ntp/+bug/548885/comments/4


On 2009-11-18T02:48:06+00:00 Dave Hart wrote:

I've spent a bit of time reviewing Hal's bug-975 repo.

First, above all else, Hal is cleaning house in ntp_intres.c while I'm stacking 
kindling under the corners to burn it to the ground once 4.2.6 is out.

Second, after 6 weeks in a RC cycle, is it really important to fix the bugs 
this 
fixes and provide the improvements this provides for 4.2.6?  A bunch of new 
code 
which we get to debug in -stable is unappealing to me.

Assuming you get past those concerns and proceed, other items I note:

A)  ntpd.h reverts a recent change adding const to extern char *chrootdir;
B)  ntp_intres.c has hints.ai_protocol = 17; and a comment about the header 
that 
value was sniped from.  That should simply come out, setting ai_protocol 
portably is nontrivial and we don't need it, do we?
C)  getaddrinfo() returning EAI_SYSTEM was retried before, now it's considered 
permanent.  If I were writing from scratch I'd do the same, but given it has 
behaved that way for years, was there a good reason to change?
D)  There are a dozen or so places where the body of an if statement continues 
on the same line as the conditional, NTP style is to put the body on the 
following line indented.
E)  In doconfigure() there's an apparently overlooked block of test code in 
column 1 under if (0) that should come out or be cleaned up to a #ifdef 
SOME_TEST_MACRO.
F)  A few lines later in doconfigure(), there's a questionable use of 
in6addr_any when returning a v4 result, which depends on whether the system was 
built with IPv6 support.  Why not use NULL as is done for the v4 address when 
returning a v6 result?

Hal, I'm troubled posting these comments.  On the one hand, I'm thrilled you've 
taken an interest in getting ntpd DNS resolution right, and you've put a lot of 
effort into developing and testing your changes.  On the other hand, well, what 
I said up top.  The timing is just horrible.  I really do want to replace 
ntp_intres wholesale with a callback-based getaddrinfo() clone that will call 
back a given function when the results are available, and that will mean most 
of 
your intres work will be tossed.

Reply at: https://bugs.launchpad.net/ntp/+bug/548885/comments/5


On 2009-11-18T11:54:20+00:00 H-murray wrote:

Subject: Deferred DNS lookup on pool command only gets 1 server

 I've spent a bit of time reviewing Hal's bug-975 repo.

Thanks.

 First, above all else, Hal is cleaning house in ntp_intres.c while I'm
 stacking kindling under the corners to burn it to the ground once
 4.2.6 is out.

I'm OK if we dump my stuff.  If nothing else, I think some of the quirks I've 
sorted 

[Bug 548885] Re: ntp host name not found error

2011-03-13 Thread Mike Kupfer
After enabling NTP this morning, I noticed very similar messages to the
above in my syslog.

Mar 13 09:16:23 assam kernel: [  927.068998] type=1503 
audit(1300032983.633:25):  operation=open pid=2184 parent=1 
profile=/usr/sbin/ntpd requested_mask=r:: denied_mask=r:: fsuid=0 ouid=0 
name=/etc/resolv.conf.rawbw
Mar 13 09:16:23 assam kernel: [  927.069297] type=1503 
audit(1300032983.633:26):  operation=open pid=2184 parent=1 
profile=/usr/sbin/ntpd requested_mask=r:: denied_mask=r:: fsuid=0 ouid=0 
name=/etc/resolv.conf.rawbw
Mar 13 09:16:25 assam ntpd_initres[2186]: host name not found: ntp.rawbw.com
Mar 13 09:16:25 assam ntpd_initres[2186]: host name not found: ntp.ubuntu.com

I had /etc/resolv.conf as a symlink pointing to resolv.conf.rawbw  After
deleting the symlink and copying /etc/resolv.conf.rawbw to
/etc/resolv.conf, I restarted ntpd (using /etc/init.d/ntp stop and
/etc/init.d/ntp start).  This time I didn't get the error messages.

The permissions on /etc/resolv.conf.rawbw are

  -rw-r--r--   1 rootroot   80 Mar 13 09:01 resolv.conf.rawbw

so it's not a problem with the file permissions.  dig(1) and everything
else worked just fine when /etc/resolv.conf was a symlink.  Why is it a
problem for ntpd?

-- 
You received this bug notification because you are a member of Ubuntu
Server Team, which is subscribed to ntp in ubuntu.
https://bugs.launchpad.net/bugs/548885

Title:
  ntp host name not found error

-- 
Ubuntu-server-bugs mailing list
Ubuntu-server-bugs@lists.ubuntu.com
Modify settings or unsubscribe at: 
https://lists.ubuntu.com/mailman/listinfo/ubuntu-server-bugs


[Bug 548885] Re: ntp host name not found error

2010-10-18 Thread Barry Fishman
My problem is fixed.

When I installed 10.10,  I saw a similar problem, but noticed in syslog
the message:

Oct 18 19:49:07 ecube kernel: [209271.514454] type=1400
audit(1287445747.259:19): apparmor=DENIED operation=open parent=1
profile=/usr/sbin/ntpd name=/etc/resolv.conf-google pid=3036
comm=ntpd requested_mask=r denied_mask=r fsuid=0 ouid=0

I had as my /etc/resolve.conf a soft link to /etc/resolv.conf-google.  
Evidenlty apparmor does not allow
/usr/sbin/ntpd to run with resolver reference to /etc/resolv.conf-google.  When 
I had made /etc/ntpd a soft
link elsewhere there was no problem.

I now have a /etc/resolv.conf file and not a soft link, so things work
fine.

-- 
Barry Fishman

-- 
ntp host name not found error
https://bugs.launchpad.net/bugs/548885
You received this bug notification because you are a member of Ubuntu
Server Team, which is subscribed to ntp in ubuntu.

-- 
Ubuntu-server-bugs mailing list
Ubuntu-server-bugs@lists.ubuntu.com
Modify settings or unsubscribe at: 
https://lists.ubuntu.com/mailman/listinfo/ubuntu-server-bugs


Re: [Bug 548885] Re: ntp host name not found error

2010-03-28 Thread Barry Fishman
C de-Avillez hgg...@gmail.com writes:

 OK. I found the upstream bug on this. Please note that -- per upstream
 -- this is still open. The issue stems from a *non-working* DNS at the
 time NTP is triggered (most probably on boot).

The boot time issue is not what is happening for me.  Retarting the ntpd
daemon using the /etc/init.d/ntp script when DNS is known to be working
still fails.  Running it from the command line as previously mentioned
still fails.

Since I can get the upstream ntp-4.2.6 release to fail, I am going to
try to debug that rather than the 4.2@1.1620-0 lucid version, unless
you some need otherwise.  My guess would be it involves a memory leak,
although I would assume the code in deamon programs like ntpd are very
closely examined.  I can't otherwise explain why a program that works
from /home/util64/ntp-4.2.6/bin would fail when moved to /usr/sbin.

Nobody else seems to have the problem with Lucid, and there is a simple
fix to get it working, if someone else reports the problem.
-- 
Barry Fishman

-- 
ntp host name not found error
https://bugs.launchpad.net/bugs/548885
You received this bug notification because you are a member of Ubuntu
Server Team, which is subscribed to ntp in ubuntu.

-- 
Ubuntu-server-bugs mailing list
Ubuntu-server-bugs@lists.ubuntu.com
Modify settings or unsubscribe at: 
https://lists.ubuntu.com/mailman/listinfo/ubuntu-server-bugs


Re: [Bug 548885] Re: ntp host name not found error

2010-03-27 Thread Barry Fishman
C de-Avillez hgg...@gmail.com writes:

 Thank you for opening this bug and helping make Ubuntu better. If I
 understand you correctly, this is not a NTP problem -- you seem to be
 having an issue with name resolution (DNS), not NTP.

 Please check your DNS setup.

 ** Changed in: ntp (Ubuntu)
Importance: Undecided = Low

 ** Changed in: ntp (Ubuntu)
Status: New = Incomplete

DNS seems to work with everything else I've tried.  Firefox,
chromium-browser, dig, gethostip, emacs/gnus, even ntpdate.
If I could find another program that failed I would use that for
testing. 

With ntpd stopped:

$ ntpdate ntp.ubuntu.com
27 Mar 14:16:46 ntpdate[22200]: adjust time server 91.189.94.4 offset 0.000613 
sec
$ ntpdate 0.pool.ntp.org
27 Mar 14:16:59 ntpdate[22201]: adjust time server 69.94.105.81 offset 
-0.000226 sec
$ ntpdate 1.pool.ntp.org
27 Mar 14:17:06 ntpdate[22206]: adjust time server 4.79.132.217 offset 
-0.001346 sec
$ ntpdate 2.pool.ntp.org
27 Mar 14:17:12 ntpdate[22207]: adjust time server 208.53.158.34 offset 
0.009339 sec
$ ntpdate pool.ntp.org
27 Mar 14:17:20 ntpdate[22208]: adjust time server 72.167.54.201 offset 
0.006475 sec

With ntpd started:

$ ntpq
ntpq peers
No association ID's returned
ntpq host ntp.ubuntu.com
current host set to ntp.ubuntu.com
ntpq peers
ntp.ubuntu.com: timed out, nothing received
***Request timed out
ntpq host 0.pool.ntp.org
current host set to 0.pool.ntp.org
ntpq peers
 remote   refid  st t when poll reach   delay   offset  jitter
==
*clock.fmt.he.ne .PPS.1 u  226 1024  3770.2820.138   0.125
+clock.sjc.he.ne .CDMA.   1 u  572 1024  3771.7930.117   0.878
+clepsydra.dec.c .GPS.1 u  246 1024  3770.9980.106   0.331
-nist1.symmetric .ACTS.   1 u  207 1024  3775.7712.650   0.198
-time-A.timefreq .ACTS.   1 u  557 1024  377   43.445   -2.132   0.232
-clock.xmission. .GPS.1 u  227 1024  377   18.184   -0.026   0.003
ntpq host 1.pool.ntp.org
current host set to 1.pool.ntp.org
ntpq peers
 remote   refid  st t when poll reach   delay   offset  jitter
==
 ntp1.csl.tjhsst 192.5.41.40  2 u  318 1024  3770.170   -0.586   1.770
*ntp0.usno.navy. .USNO.   1 u  363 1024  377   20.175   -2.152   0.252
+ntp.alaska.edu  .GPS.1 u  283 1024  377  123.1932.198   0.957
+clock.isc.org   .GPS.1 u  368 1024  377   72.9170.836   0.592
 18.18.1.95  .STEP.  16 u- 102400.0000.000   0.000
 LOCAL(1).LOCL.  10 l   64   64  3770.0000.000   0.001
ntpq host 2.pool.ntp.org
current host set to 2.pool.ntp.org
ntpq peers
2.pool.ntp.org: timed out, nothing received
***Request timed out
ntpq host pool.ntp.org
current host set to pool.ntp.org
ntpq peers
 remote   refid  st t when poll reach   delay   offset  jitter
==
*clock.fmt.he.ne .PPS.1 u  343 1024  3770.2820.138   0.125
+clock.sjc.he.ne .CDMA.   1 u  689 1024  3771.7930.117   0.878
+clepsydra.dec.c .GPS.1 u  363 1024  3770.9980.106   0.331
-nist1.symmetric .ACTS.   1 u  324 1024  3775.7712.650   0.198
-time-A.timefreq .ACTS.   1 u  674 1024  377   43.445   -2.132   0.232
-clock.xmission. .GPS.1 u  343 1024  377   18.184   -0.026   0.003
ntpq quit

I tries a strace but did not see anyting I could understand.



I tried building the upstream ntp-4.2.6 and installed it under
/home/util64/ntp-4.2.6/.  When I ran it from the command line (as
root) or as a soft link from /usr/sbin/ it seemed to work (the strace
showed periodic connection to the right servers).  However if I moved
lucid's ntpd out of the way replacing /usr/sbin/ntpd with the new
version, and restarted the ntp service, I got the a similar problem; the
syslog indicting first a Deferring DNS for each host and then the
usual host name not found messages.

The working command was:
$ cd /home/util64/ntp-4.2.6/bin
$ strace ./ntpd -n -c /etc/ntp.conf -g -u 123:130 21 | tee /tmp/new.trace

-- 
Barry Fishman


** Attachment added: NTP.trace
   http://launchpadlibrarian.net/42195540/NTP.trace

-- 
ntp host name not found error
https://bugs.launchpad.net/bugs/548885
You received this bug notification because you are a member of Ubuntu
Server Team, which is subscribed to ntp in ubuntu.

-- 
Ubuntu-server-bugs mailing list
Ubuntu-server-bugs@lists.ubuntu.com
Modify settings or unsubscribe at: 
https://lists.ubuntu.com/mailman/listinfo/ubuntu-server-bugs


[Bug 548885] Re: ntp host name not found error

2010-03-27 Thread C de-Avillez
OK. I found the upstream bug on this. Please note that -- per upstream
-- this is still open. The issue stems from a *non-working* DNS at the
time NTP is triggered (most probably on boot).

This is why, when you are up  running, you do not see this error.
Please see the upstream bug for details.

So. Right now you have the following options: 
* move to IP addresses instead of FQSN
* have a working DNS at the time NTP is triggered

** Bug watch added: psp2.ntp.org/bugs/ #975
   https://psp2.ntp.org/bugs/show_bug.cgi?id=975

** Also affects: ntp via
   https://psp2.ntp.org/bugs/show_bug.cgi?id=975
   Importance: Unknown
   Status: Unknown

** Changed in: ntp (Ubuntu)
   Status: Incomplete = Triaged

-- 
ntp host name not found error
https://bugs.launchpad.net/bugs/548885
You received this bug notification because you are a member of Ubuntu
Server Team, which is subscribed to ntp in ubuntu.

-- 
Ubuntu-server-bugs mailing list
Ubuntu-server-bugs@lists.ubuntu.com
Modify settings or unsubscribe at: 
https://lists.ubuntu.com/mailman/listinfo/ubuntu-server-bugs


[Bug 548885] Re: ntp host name not found error

2010-03-26 Thread Barry Fishman

** Attachment added: .etc.apparmor.d.usr.sbin.ntpd.txt
   http://launchpadlibrarian.net/42061280/.etc.apparmor.d.usr.sbin.ntpd.txt

** Attachment added: Dependencies.txt
   http://launchpadlibrarian.net/42061281/Dependencies.txt

** Attachment added: KernLog.txt
   http://launchpadlibrarian.net/42061282/KernLog.txt

** Attachment added: ProcMaps.txt
   http://launchpadlibrarian.net/42061283/ProcMaps.txt

** Attachment added: ProcStatus.txt
   http://launchpadlibrarian.net/42061284/ProcStatus.txt

** Attachment added: modified.conffile..etc.ntp.conf.txt
   http://launchpadlibrarian.net/42061285/modified.conffile..etc.ntp.conf.txt

-- 
ntp host name not found error
https://bugs.launchpad.net/bugs/548885
You received this bug notification because you are a member of Ubuntu
Server Team, which is subscribed to ntp in ubuntu.

-- 
Ubuntu-server-bugs mailing list
Ubuntu-server-bugs@lists.ubuntu.com
Modify settings or unsubscribe at: 
https://lists.ubuntu.com/mailman/listinfo/ubuntu-server-bugs


[Bug 548885] Re: ntp host name not found error

2010-03-26 Thread C de-Avillez
Thank you for opening this bug and helping make Ubuntu better. If I
understand you correctly, this is not a NTP problem -- you seem to be
having an issue with name resolution (DNS), not NTP.

Please check your DNS setup.

** Changed in: ntp (Ubuntu)
   Importance: Undecided = Low

** Changed in: ntp (Ubuntu)
   Status: New = Incomplete

-- 
ntp host name not found error
https://bugs.launchpad.net/bugs/548885
You received this bug notification because you are a member of Ubuntu
Server Team, which is subscribed to ntp in ubuntu.

-- 
Ubuntu-server-bugs mailing list
Ubuntu-server-bugs@lists.ubuntu.com
Modify settings or unsubscribe at: 
https://lists.ubuntu.com/mailman/listinfo/ubuntu-server-bugs